Changeset 1328:c75c6abd88f2
- Timestamp:
- 08/11/13 16:34:50 (12 years ago)
- Branch:
- default
- Files:
-
- 2 added
- 1 deleted
- 5 edited
-
admin/blog.php (modified) (1 diff)
-
admin/images/menu/dashboard.png (deleted)
-
admin/index.php (modified) (1 diff)
-
admin/post.php (modified) (2 diffs)
-
admin/posts.php (modified) (1 diff)
-
admin/style/dashboard-alt.png (added)
-
admin/style/dashboard.png (added)
-
inc/admin/lib.dc.page.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
admin/blog.php
r1312 r1328 69 69 dcPage::open(__('New blog'),dcPage::jsConfirmClose('blog-form')); 70 70 71 echo dcPage::breadcrumb( 72 array( 73 __('System') => '', 74 __('Blogs') => 'blogs.php', 75 '<span class="page-title">'.__('New blog').'</span>' => '' 76 )); 77 71 78 echo 72 '<h2>'.__('System').' › <a href="blogs.php">'.__('Blogs').'</a> › <span class="page-title">'.__('New blog').'</span></h2>'.73 74 79 '<form action="blog.php" method="post" id="blog-form" class="fieldset">'. 75 80 -
admin/index.php
r1280 r1328 196 196 ); 197 197 198 echo '<h2>'.html::escapeHTML($core->blog->name).' › <span class="page-title">'.__('Dashboard').'</span></h2>'; 198 echo dcPage::breadcrumb( 199 array( 200 '<span class="page-title">'.__('Dashboard').' : '.html::escapeHTML($core->blog->name).'</span>' => '' 201 ), 202 true); 199 203 200 204 if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->blog_count > 1) { -
admin/post.php
r1312 r1328 334 334 } 335 335 336 echo '<h2>'.html::escapeHTML($core->blog->name).' › '.'<a href="posts.php">'.__('Entries').'</a> › <span class="page-title">';337 336 if ($post_id) { 338 337 switch ($post_status) { … … 353 352 } 354 353 $edit_entry_str = __('Edit entry “%s”'); 355 echo sprintf($edit_entry_str, html::escapeHTML($post_title)).' '.$img_status; 356 } else { 357 echo $page_title; 358 } 359 echo '</span></h2>'; 354 $page_title_edit = sprintf($edit_entry_str, html::escapeHTML($post_title)).' '.$img_status; 355 } 356 echo dcPage::breadcrumb( 357 array( 358 html::escapeHTML($core->blog->name) => '', 359 __('Entries') => 'posts.php', 360 '<span class="page-title">'.($post_id ? $page_title_edit : $page_title).'</span>' => '' 361 )); 360 362 361 363 if ($post_id && $post->post_status == 1) { -
admin/posts.php
r1179 r1328 249 249 if (!$core->error->flag()) 250 250 { 251 echo 252 '<h2>'.html::escapeHTML($core->blog->name).' › <span class="page-title">'.__('Entries').'</span></h2>'. 251 echo dcPage::breadcrumb( 252 array( 253 html::escapeHTML($core->blog->name) => '', 254 '<span class="page-title">'.__('Entries').'</span>' => '' 255 )); 256 257 echo 253 258 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'; 254 259 -
inc/admin/lib.dc.page.php
r1318 r1328 271 271 "</div>\n". // End of #wrapper 272 272 '</body></html>'; 273 } 274 275 public static function breadcrumb($elements=null,$no_home_link=false) 276 { 277 // First item of array elements should be blog's name, System or Plugins 278 $res = '<h2>'.($no_home_link ? 279 '<img src="style/dashboard-alt.png" alt="" />' : 280 '<a class="go_home" href="index.php"><img src="style/dashboard.png" alt="'.__('Go to dashboard').'" /></a>'); 281 $index = 0; 282 foreach ($elements as $element => $url) { 283 $res .= ($no_home_link ? ' ' : ($index == 1 ? ' : ' : ' › ')).($url ? '<a href="'.$url.'">' : '').$element.($url ? '</a>' : ''); 284 $index++; 285 } 286 $res .= '</h2>'; 287 return $res; 273 288 } 274 289
Note: See TracChangeset
for help on using the changeset viewer.
