Changeset 505:3cf15f858012
- Timestamp:
- 07/04/11 12:42:05 (14 years ago)
- Branch:
- default
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/media.php
r500 r505 278 278 } 279 279 280 echo '<h2>'.html::escapeHTML($core->blog->name).' › <a href="'.html::escapeURL($page_url.'&d=').'">'.__('Media manager').'</a>'. 281 ' / '.(isset($core->media) ? $core->media->breadCrumb(html::escapeURL($page_url).'&d=%s') : '').'</h2>'; 280 echo '<h2>'.html::escapeHTML($core->blog->name).' › '; 281 if (!isset($core->media)) { 282 echo '<span class="page-title">'.__('Media manager').'</span></h2>'; 283 } else { 284 $breadcrumb = $core->media->breadCrumb(html::escapeURL($page_url).'&d=%s','<span class="page-title">%s</span>'); 285 if ($breadcrumb == '') { 286 echo '<span class="page-title">'.__('Media manager').'</span></h2>'; 287 } else { 288 echo '<a href="'.html::escapeURL($page_url.'&d=').'">'.__('Media manager').'</a>'.' / '.$breadcrumb.'</h2>'; 289 } 290 } 282 291 283 292 if (!$dir) { -
inc/core/class.dc.media.php
r407 r505 175 175 176 176 @param href <b>string</b> URL pattern 177 @param last <b>string</b> Last item pattern 177 178 @return <b>string</b> HTML code 178 179 */ 179 public function breadCrumb($href )180 public function breadCrumb($href,$last='') 180 181 { 181 182 $res = ''; 182 183 if ($this->relpwd && $this->relpwd != '.') { 183 184 $pwd = ''; 184 foreach (explode('/',$this->relpwd) as $v) { 185 $pwd .= rawurlencode($v).'/'; 186 $res .= '<a href="'.sprintf($href,$pwd).'">'.$v.'</a> / '; 185 $arr = explode('/',$this->relpwd); 186 $count = count($arr); 187 foreach ($arr as $v) { 188 if (($last != '') && (0 === --$count)) { 189 $res .= sprintf($last,$v); 190 } else { 191 $pwd .= rawurlencode($v).'/'; 192 $res .= '<a href="'.sprintf($href,$pwd).'">'.$v.'</a> / '; 193 } 187 194 } 188 195 } -
plugins/antispam/index.php
r500 r505 110 110 <body> 111 111 <?php 112 echo '<h2>'.html::escapeHTML($core->blog->name).' › <span class="page-title">'.$page_name.'</span></h2>';113 112 114 113 if ($filter_gui !== false) 115 114 { 116 echo '< p><a href="'.$p_url.'">'.__('Return to filters').'</a></p>';117 printf('<h3>'.__('%s configuration').'</h3>',$filter->name);115 echo '<h2>'.html::escapeHTML($core->blog->name).' › <a href="'.$p_url.'">'.$page_name.'</a>'. 116 ' › <span class="page-title">'.sprintf(__('%s configuration'),$filter->name).'</span></h2>'; 118 117 119 118 echo $filter_gui; … … 121 120 else 122 121 { 122 echo '<h2>'.html::escapeHTML($core->blog->name).' › <span class="page-title">'.$page_name.'</span></h2>'; 123 123 124 # Information 124 125 $spam_count = dcAntispam::countSpam($core);
Note: See TracChangeset
for help on using the changeset viewer.