Changeset 12927


Ignore:
Timestamp:
Jan 19, 2012, 10:04:18 PM (12 years ago)
Author:
plg
Message:

get rid of icon/home.png (obsolete in many themes) and use the breadcrumbs instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/trunk/additional_page.php

    r9713 r12927  
    120120  global $template, $page, $conf;
    121121
    122   $template->assign(array(
    123     'TITLE' => $page['additional_page']['title'],
    124     'PLUGIN_INDEX_CONTENT_BEGIN' => $page['additional_page']['content'],
    125     )
    126   );
    127 
    128   if ($conf['AP']['show_home'] and !$page['ap_homepage'])
    129   {
    130     $template->assign('PLUGIN_INDEX_ACTIONS' , '
    131       <li><a href="'.make_index_url().'" title="' . l10n('return to homepage') . '">
    132         <img src="' . $template->get_themeconf('icon_dir') . '/home.png" class="button" alt="' . l10n('home') . '"/></a>
    133       </li>');
    134   }
    135122  if (is_admin())
    136123  {
    137124    $template->assign('U_EDIT', get_root_url().'admin.php?page=plugin-'.AP_DIR.'-edit_page&amp;edit='.$page['additional_page']['id'].'&amp;redirect=true');
    138125  }
     126
     127  $title = $page['additional_page']['title'];
     128  if ($conf['AP']['show_home'] and !$page['ap_homepage'])
     129  {
     130    $title = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].$title;
     131  }
     132
     133  $template->assign(array(
     134    'TITLE' => $title,
     135    'PLUGIN_INDEX_CONTENT_BEGIN' => $page['additional_page']['content'],
     136    )
     137  );
     138 
    139139  $template->clear_assign(array('U_MODE_POSTED', 'U_MODE_CREATED'));
    140140}
Note: See TracChangeset for help on using the changeset viewer.