Changeset 8984
- Timestamp:
- Jan 30, 2011, 2:49:54 PM (13 years ago)
- Location:
- extensions/rv_sitemap
- Files:
-
- 10 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_sitemap/sitemap.php
r8666 r8984 1 1 <?php 2 2 defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 3 4 define('RVS_DIR' , basename(dirname(__FILE__))); 5 define('RVS_PATH' , PHPWG_PLUGINS_PATH . RVS_DIR . '/'); 6 load_language('plugin.lang', RVS_PATH); 3 7 4 8 function sitemaps_get_config_file_name() … … 72 76 73 77 78 79 $frequenciesT = array( 80 '', 81 l10n('always'), 82 l10n('hourly'), 83 l10n('daily'), 84 l10n('weekly'), 85 l10n('monthly'), 86 l10n('yearly'), 87 l10n('never'), 88 ); 74 89 75 90 $frequencies = array( … … 83 98 'never', 84 99 ); 85 100 86 101 $specials = array( 87 102 'categories' => array('L'=>l10n('Home'), 'P'=>0.9), 88 'best_rated' => array( 103 'best_rated' => array('L'=>l10n('Best rated'), 'P'=>0.8 ) , 89 104 'most_visited' => array('L'=>l10n('Most visited'), 'P'=>0.8 ), 90 105 'recent_pics' => array('L'=>l10n('Recent photos'), 'P'=>0.8, 'F'=>'weekly' ), … … 304 319 305 320 $template->assign('frequencies', $frequencies); 321 $template->assign('frequenciesT', $frequenciesT); 306 322 307 323 $template->set_filename('sitemap', dirname(__FILE__).'/sitemap.tpl'); -
extensions/rv_sitemap/sitemap.tpl
r3417 r8984 7 7 8 8 <fieldset> 9 <legend> Global</legend>9 <legend>{'Global'|@translate}</legend> 10 10 <p> 11 <label for="filename"> Filename<input type="input" name="filename" value="{$FILENAME}" /></label> <a href="{$U_FILENAME}">{$U_FILENAME}</a>11 <label for="filename">{'Filename'|@translate} <input type="input" name="filename" value="{$FILENAME}" /></label> <a href="{$U_FILENAME}">{$U_FILENAME}</a> 12 12 <label for="gzip">Gzip<input type="checkbox" name="gzip" {$GZIP_CHECKED} /></label> 13 13 </p> 14 14 {foreach from=$specials item=special} 15 <label><input type="checkbox" {$special.CHECKED} name="special_{$special.NAME}"/> {$special.LABEL}</label>15 <label><input type="checkbox" {$special.CHECKED} name="special_{$special.NAME}"/> {$special.LABEL} </label> 16 16 <input type="input" size="4" name="special_prio_{$special.NAME}" value="{$special.PRIO}"/> 17 17 <select name="special_freq_{$special.NAME}" > 18 {html_options values=$frequencies output=$frequencies selected=$special.FREQ}18 {html_options values=$frequencies output=$frequenciesT selected=$special.FREQ} 19 19 </select> 20 20 <br/> … … 23 23 24 24 <fieldset> 25 <legend> Categories</legend>25 <legend>{'Categories'|@translate}</legend> 26 26 <select style="width:500px" name="categories[]" multiple="multiple" size="15"> 27 27 {html_options options=$categories selected=$categories_selected} 28 28 </select> 29 <label for="prio_categories"> Priority<input name="prio_categories" size="4" value="{$PRIO_CATEGORIES}" /></label>30 <label for="freq_categories"> Frequency29 <label for="prio_categories">{'Priority'|@translate} <input name="prio_categories" size="4" value="{$PRIO_CATEGORIES}" /></label> 30 <label for="freq_categories">{'Frequency'|@translate} 31 31 <select name="freq_categories" > 32 {html_options values=$frequencies output=$frequencies selected=$freq_categories_selected}32 {html_options values=$frequencies output=$frequenciesT selected=$freq_categories_selected} 33 33 </select> 34 34 </label> … … 36 36 37 37 <fieldset> 38 <legend> Tags</legend>38 <legend>{'Tags'|@translate}</legend> 39 39 <select style="width:200px" name="tags[]" multiple="multiple" size="15"> 40 40 {html_options options=$tags selected=$tags_selected} 41 41 </select> 42 <label for="prio_tags"> Priority<input name="prio_tags" size="4" value="{$PRIO_TAGS}" /></label>43 <label for="freq_tags"> Frequency42 <label for="prio_tags">{'Priority'|@translate} <input name="prio_tags" size="4" value="{$PRIO_TAGS}" /></label> 43 <label for="freq_tags">{'Frequency'|@translate} 44 44 <select name="freq_tags" > 45 {html_options values=$frequencies output=$frequencies selected=$freq_tags_selected}45 {html_options values=$frequencies output=$frequenciesT selected=$freq_tags_selected} 46 46 </select> 47 47 </label>
Note: See TracChangeset
for help on using the changeset viewer.