Changeset 2923
- Timestamp:
- Dec 6, 2008, 3:28:54 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/extend_for_templates.php
r2712 r2923 103 103 'tags.tpl' => 'tags', 104 104 'upload.tpl' => 'upload',); 105 $flip_templates = array_flip($eligible_templates); 105 106 $flip_templates = array_flip($eligible_templates); 107 108 $available_templates = array_merge( 109 array('N/A' => '----------'), 110 get_dirs(PHPWG_ROOT_PATH.'template')); 111 106 112 // +-----------------------------------------------------------------------+ 107 113 // | selected templates | … … 119 125 $url_keyword = $_POST['url'][$i]; 120 126 if ($url_keyword == '----------') $url_keyword = 'N/A'; 127 $bound_tpl = $_POST['bound'][$i]; 128 if ($bound_tpl == '----------') $bound_tpl = 'N/A'; 121 129 if ($handle != 'N/A') 122 130 { 123 $replacements[$newtpl] = array($handle, $url_keyword );131 $replacements[$newtpl] = array($handle, $url_keyword, $bound_tpl); 124 132 } 125 133 $i++; … … 151 159 foreach ($new_extensions as $file) 152 160 { 153 $tpl_extension[$file] = array('N/A', 'N/A' );161 $tpl_extension[$file] = array('N/A', 'N/A', 'N/A'); 154 162 } 155 163 … … 168 176 $handle = $conditions[0]; 169 177 $url_keyword = $conditions[1]; 178 $bound_tpl = $conditions[2]; 170 179 { 171 180 $template->append('extents', 172 181 array( 173 'replacer' => $file, 174 'url_parameter' => $relevant_parameters, 175 'original_tpl' => array_keys($eligible_templates), 176 'selected_tpl' => $flip_templates[$handle], 177 'selected_url' => $url_keyword,) 182 'replacer' => $file, 183 'url_parameter' => $relevant_parameters, 184 'original_tpl' => array_keys($eligible_templates), 185 'bound_tpl' => $available_templates, 186 'selected_tpl' => $flip_templates[$handle], 187 'selected_url' => $url_keyword, 188 'selected_bound' => $bound_tpl,) 178 189 ); 179 190 } -
trunk/admin/template/goto/default-layout.css
r2675 r2923 8 8 } 9 9 10 TABLE.table2 TD {10 TABLE.table2 TD, TABLE.table2 TH { 11 11 padding: 0 5px; 12 12 } -
trunk/admin/template/goto/extend_for_templates.tpl
r2531 r2923 10 10 <th>{'Original templates'|@translate}</th> 11 11 <th>{'Optional URL keyword'|@translate}</th> 12 <th>{'Bound template'|@translate}</th> 12 13 </tr> 13 14 {foreach from=$extents item=tpl name=extent_loop} … … 23 24 {html_options name=url[] output=$tpl.url_parameter values=$tpl.url_parameter selected=$tpl.selected_url} 24 25 </td> 26 <td> 27 {html_options name=bound[] output=$tpl.bound_tpl values=$tpl.bound_tpl selected=$tpl.selected_bound} 28 </td> 25 29 </tr> 26 30 {/foreach} -
trunk/include/template.class.php
r2790 r2923 187 187 $handle = $value[0]; 188 188 $param = $value[1]; 189 $tpl = $value[2]; 189 190 } 190 191 elseif (is_string($value)) … … 192 193 $handle = $value; 193 194 $param = 'N/A'; 195 $tpl = 'N/A'; 194 196 } 195 197 else … … 199 201 200 202 if ((stripos(implode('/',array_flip($_GET)), $param) > 0 or $param == 'N/A') 203 and (preg_match('/'.preg_quote($tpl,'/').'$/', $this->get_template_dir()) or $tpl == 'N/A') 201 204 and (!isset($this->extents[$handle]) or $overwrite) 202 205 and file_exists($dir . $filename)) -
trunk/language/de_DE/admin.lang.php
r2880 r2923 645 645 $lang['%d photo was deleted'] = '%d Foto wurde gelöscht'; 646 646 $lang['%d photos were deleted'] = '%d Fotos wurden gelöscht'; 647 /* TODO */ $lang['Bound template'] = 'Bound template'; 647 648 ?> -
trunk/language/de_DE/help/extend_for_templates.html
r2715 r2923 65 65 class="pwgScreen">index.php? /<strong> most_visited</strong></span></p> 66 66 67 <p>Advanced-User nutzen werden Dauerlinks als <strong>optional URL 68 Keyword</strong>.</p> 67 <p>Advanced-User nutzen werden Dauerlinks als <strong>optional URL Keyword</strong>.</p> 68 69 <!-- TODO --> 70 <p>If you select a <strong>Bound template</strong> then replacements will be operate only on this template.</p> 69 71 70 72 <h3>Wie kann ich deaktivieren meine "replacers"?</h3> -
trunk/language/en_UK/admin.lang.php
r2880 r2923 645 645 $lang['%d photo was deleted'] = '%d photo was deleted'; 646 646 $lang['%d photos were deleted'] = '%d photos were deleted'; 647 $lang['Bound template'] = 'Bound template'; 647 648 ?> -
trunk/language/en_UK/help/extend_for_templates.html
r2434 r2923 65 65 class="pwgScreen">index.php?/<strong>most_visited</strong></span></p> 66 66 67 <p>Advanced users will use permalinks as <strong>optional URL 68 keyword</strong>. </p> 67 <p>Advanced users will use permalinks as <strong>optional URL keyword</strong>. </p> 68 69 <p>If you select a <strong>Bound template</strong> then replacements will be operate only on this template.</p> 70 69 71 <h3>How can I deactivate my "replacers"?</h3> 70 72 <ul> -
trunk/language/es_ES/admin.lang.php
r2880 r2923 642 642 $lang['%d photo was deleted'] = '%d foto ha sido suprimida'; 643 643 $lang['%d photos were deleted'] = '%d fotos han sido suprimidas'; 644 /* TODO */ $lang['Bound template'] = 'Bound template'; 644 645 ?> -
trunk/language/es_ES/help/extend_for_templates.html
r2566 r2923 71 71 <p>Los usuarios avanzados utilizarán el permalinks (permaliens, lazos permanentes) como strong> parámetro facultativo del URL </strong>. </p> 72 72 73 <!-- TODO --> 74 <p>If you select a <strong>Bound template</strong> then replacements will be operate only on this template.</p> 75 73 76 <h3>¿ Cómo puedo desactivar mi "sustitutos"?</h3> 74 77 <ul> -
trunk/language/fr_FR/admin.lang.php
r2880 r2923 644 644 $lang['%d photo was deleted'] = '%d photo a été supprimée'; 645 645 $lang['%d photos were deleted'] = '%d photos ont été supprimées'; 646 $lang['Bound template'] = 'Template rattaché'; 646 647 ?> -
trunk/language/fr_FR/help/extend_for_templates.html
r2439 r2923 68 68 <strong>paramètre facultatif de l'URL</strong>. </p> 69 69 70 <p>Si vous sélectionnez un <strong>Template rattaché</strong> alors les remplacements ne seront réalisés que sur ce template.</p> 71 70 72 <h3>Comment puis-je désactiver mes "replacers"?</h3> 71 73 <ul> -
trunk/language/it_IT/admin.lang.php
r2887 r2923 644 644 $lang['%d photo was deleted'] = '%d foto cancellata'; 645 645 $lang['%d photos were deleted'] = '%d foto cancellate'; 646 /* TODO */ $lang['Bound template'] = 'Bound template'; 646 647 ?> -
trunk/language/it_IT/help/extend_for_templates.html
r2887 r2923 66 66 <p>Gli utenti esperti useranno i permalinks come <strong>parametro facoltativo del URL</strong>. </p> 67 67 68 <!-- TODO --> 69 <p>If you select a <strong>Bound template</strong> then replacements will be operate only on this template.</p> 70 68 71 <h3>Come posso disattivare mio "rimpiazzante"?</h3> 69 72 <ul> -
trunk/language/nl_NL/admin.lang.php
r2880 r2923 640 640 /* TODO */ $lang['%d photo was deleted'] = '%d photo was deleted'; 641 641 /* TODO */ $lang['%d photos were deleted'] = '%d photos were deleted'; 642 /* TODO */ $lang['Bound template'] = 'Bound template'; 642 643 ?> -
trunk/language/nl_NL/help/extend_for_templates.html
r2439 r2923 65 65 class="pwgScreen">index.php?/<strong>most_visited</strong></span></p> 66 66 67 <p>Advanced users will use permalinks as <strong>optional URL 68 keyword</strong>. </p> 67 <p>Advanced users will use permalinks as <strong>optional URL keyword</strong>. </p> 68 69 <p>If you select a <strong>Bound template</strong> then replacements will be operate only on this template.</p> 70 69 71 <h3>How can I deactivate my "replacers"?</h3> 70 72 <ul>
Note: See TracChangeset
for help on using the changeset viewer.