PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/gsitemap/views/templates/admin/configuration.tpl

https://gitlab.com/elasa/shop2.elasa.ir
Smarty Template | 119 lines | 115 code | 4 blank | 0 comment | 18 complexity | 42ccb29cd4088846304ff17216393a95 MD5 | raw file
  1. <div style="width: 700px; margin: 0 auto;">
  2. </div>
  3. {if isset($smarty.get.validation)}
  4. <div class="conf confirm" style="width: 710px; margin: 0 auto;">
  5. {l s='Your Sitemaps were successfully created. Please do not forget to setup the URL' mod='gsitemap'} <a href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml" target="_blank"><span style="text-decoration: underline;">{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml</a></span> {l s='in your Google Webmaster account.' mod='gsitemap'}
  6. </div>
  7. <br/>
  8. {/if}
  9. {if isset($google_maps_error)}
  10. <div class="error" style="width: 710px; margin: 0 auto;">
  11. {$google_maps_error|escape:'htmlall':'UTF-8'}<br />
  12. </div>
  13. {/if}
  14. {if isset($gsitemap_refresh_page)}
  15. <fieldset style="width: 700px; margin: 0 auto; text-align: center;">
  16. <legend><img src="{$module_dir|escape:'htmlall':'UTF-8'}logo.gif" alt="" />{l s='Your Sitemaps' mod='gsitemap'}</legend>
  17. <p>{$gsitemap_number|intval} {l s='Sitemaps were already created.' mod='gsitemap'}<br/>
  18. </p>
  19. <br/>
  20. <form action="{$gsitemap_refresh_page|escape:'htmlall':'UTF-8'}" method="post" id="gsitemap_generate_sitmap">
  21. <img src="../img/loader.gif" alt=""/>
  22. <input type="submit" class="button" value="{l s='Continue' mod='gsitemap'}" style="display: none;"/>
  23. </form>
  24. </fieldset>
  25. {else}
  26. {if $gsitemap_links}
  27. <fieldset style="width: 700px; margin: 0 auto;">
  28. <legend><img src="{$module_dir|escape:'htmlall':'UTF-8'}logo.gif" alt="" />{l s='Your Sitemaps' mod='gsitemap'}</legend>
  29. {l s='Please set up the following Sitemap URL in your Google Webmaster account:' mod='gsitemap'}<br/>
  30. <a href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml" target="_blank"><span style="color: blue;">{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml</span></a><br/><br/>
  31. {l s='This URL is the master Sitemaps file. It refers to the following sub-sitemap files:' mod='gsitemap'}
  32. <div style="max-height: 220px; overflow: auto;">
  33. <ul>
  34. {foreach from=$gsitemap_links item=gsitemap_link}
  35. <li><a target="_blank" style="color: blue;" href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$gsitemap_link.link|escape:'htmlall':'UTF-8'}">{$gsitemap_link.link|escape:'htmlall':'UTF-8'}</a></li>
  36. {/foreach}
  37. </ul>
  38. </div>
  39. <p>{l s='Your last update was made on this date:' mod='gsitemap'} {$gsitemap_last_export|escape:'htmlall':'UTF-8'}</p>
  40. </fieldset>
  41. {/if}
  42. <br/>
  43. {if ($gsitemap_customer_limit.max_exec_time < 30 && $gsitemap_customer_limit.max_exec_time > 0) || ($gsitemap_customer_limit.memory_limit < 128 && $gsitemap_customer_limit.memory_limit > 0)}
  44. <div class="warn" style="width: 700px; margin: 0 auto;">
  45. <p>{l s='For a better use of the module, please make sure that you have' mod='gsitemap'}<br/>
  46. <ul>
  47. {if $gsitemap_customer_limit.memory_limit < 128 && $gsitemap_customer_limit.memory_limit > 0}
  48. <li>{l s='a minimum memory_limit value of 128 MB.' mod='gsitemap'}</li>
  49. {/if}
  50. {if $gsitemap_customer_limit.max_exec_time < 30 && $gsitemap_customer_limit.max_exec_time > 0}
  51. <li>{l s='a minimum max_execution_time value of 30 seconds.' mod='gsitemap'}</li>
  52. {/if}
  53. </ul>
  54. {l s='You can edit these limits in your php.ini file. For more details, please contact your hosting provider.' mod='gsitemap'}</p>
  55. </div>
  56. {/if}
  57. <br/>
  58. <form action="{$gsitemap_form|escape:'htmlall':'UTF-8'}" method="post">
  59. <fieldset style="width: 700px; margin: 0 auto;">
  60. <legend><img src="{$module_dir|escape:'htmlall':'UTF-8'}logo.gif" alt="" />{l s='Configure your Sitemap' mod='gsitemap'}</legend>
  61. <p>{l s='Several Sitemaps files will be generated depending on how your server is configured and on the number of activated products in your catalog.' mod='gsitemap'}<br/></p>
  62. <div class="margin-form">
  63. <label for="gsitemap_frequency" style="width: 235px;">{l s='How often do you update your store?' mod='gsitemap'}
  64. <select name="gsitemap_frequency">
  65. <option{if $gsitemap_frequency == 'always'} selected="selected"{/if} value='always'>{l s='always' mod='gsitemap'}</option>
  66. <option{if $gsitemap_frequency == 'hourly'} selected="selected"{/if} value='hourly'>{l s='hourly' mod='gsitemap'}</option>
  67. <option{if $gsitemap_frequency == 'daily'} selected="selected"{/if} value='daily'>{l s='daily' mod='gsitemap'}</option>
  68. <option{if $gsitemap_frequency == 'weekly' || $gsitemap_frequency == ''} selected="selected"{/if} value='weekly'>{l s='weekly' mod='gsitemap'}</option>
  69. <option{if $gsitemap_frequency == 'monthly'} selected="selected"{/if} value='monthly'>{l s='monthly' mod='gsitemap'}</option>
  70. <option{if $gsitemap_frequency == 'yearly'} selected="selected"{/if} value='yearly'>{l s='yearly' mod='gsitemap'}</option>
  71. <option{if $gsitemap_frequency == 'never'} selected="selected"{/if} value='never'>{l s='never' mod='gsitemap'}</option>
  72. </select></label>
  73. </div>
  74. <label for="ggsitemap_check_image_file" style="width: 526px;">{l s='Check this box if you wish to check the presence of the image files on the server' mod='gsitemap'}
  75. <input type="checkbox" name="gsitemap_check_image_file" value="1" {if $gsitemap_check_image_file}checked{/if}></label>
  76. <label for="ggsitemap_check_all" style="width: 526px;"><span>{l s='check all' mod='gsitemap'}</span>
  77. <input type="checkbox" name="gsitemap_check_all" value="1" class="check"></label>
  78. <br class="clear" />
  79. <p for="gsitemap_meta">{l s='Indicate the pages that you do not want to include in your Sitemaps file:' mod='gsitemap'}</p>
  80. <ul>
  81. {foreach from=$store_metas item=store_meta}
  82. <li style="float: left; width: 200px; margin: 1px;">
  83. <input type="checkbox" class="gsitemap_metas" name="gsitemap_meta[]"{if in_array($store_meta.id_meta, $gsitemap_disable_metas)} checked="checked"{/if} value="{$store_meta.id_meta|intval}" /> {$store_meta.title|escape:'htmlall':'UTF-8'} [{$store_meta.page|escape:'htmlall':'UTF-8'}]
  84. </li>
  85. {/foreach}
  86. </ul>
  87. <br/>
  88. <div class="margin-form" style="clear: both;">
  89. <input type="submit" style="margin: 20px;" class="button" name="SubmitGsitemap" onclick="$('#gsitemap_loader').show();" value="{l s='Generate Sitemap' mod='gsitemap'}" />{l s='This can take several minutes' mod='gsitemap'}
  90. </div>
  91. <p id="gsitemap_loader" style="text-align: center; display: none;"><img src="../img/loader.gif" alt=""/></p>
  92. </fieldset>
  93. </form><br />
  94. <p class="info" style="width: 680px; margin: 10px auto;">
  95. <b style="display: block; margin-top: 5px; margin-left: 3px;">{l s='You have two ways to generate Sitemap:' mod='gsitemap'}</b><br /><br />
  96. 1. <b>{l s='Manually:' mod='gsitemap'}</b> {l s='using the form above (as often as needed)' mod='gsitemap'}<br />
  97. <br /><span style="font-style: italic;">{l s='-or-' mod='gsitemap'}</span><br /><br />
  98. 2. <b>{l s='Automatically:' mod='gsitemap'}</b> {l s='Ask your hosting provider to setup a "Cron task" to load the following URL at the time you would like:' mod='gsitemap'}
  99. <a href="{$gsitemap_cron|escape:'htmlall':'UTF-8'}" target="_blank">{$gsitemap_cron|escape:'htmlall':'UTF-8'}</a><br /><br />
  100. {l s='It will automatically generate your XML Sitemaps.' mod='gsitemap'}<br /><br />
  101. </p>
  102. {/if}
  103. <script type="text/javascript">
  104. $(document).ready(function() {
  105. if ($('.gsitemap_metas:checked').length == $('.gsitemap_metas').length)
  106. $('.check').parent('label').children('span').html("{l s='uncheck all' mod='gsitemap'}");
  107. $('.check').toggle(function() {
  108. $('.gsitemap_metas').attr('checked', 'checked');
  109. $(this).parent('label').children('span').html("{l s='uncheck all' mod='gsitemap'}");
  110. }, function() {
  111. $('.gsitemap_metas').removeAttr('checked');
  112. $(this).parent('label').children('span').html("{l s='check all' mod='gsitemap'}");
  113. });
  114. });
  115. </script>