Changeset 28650 for extensions/skeleton/trunk/include/public_events.inc.php
- Timestamp:
- Jun 9, 2014, 7:11:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/skeleton/trunk/include/public_events.inc.php
r26137 r28650 12 12 { 13 13 $page['section'] = 'skeleton'; 14 14 15 15 // section_title is for breadcrumb, title is for page <title> 16 16 $page['section_title'] = '<a href="'.get_absolute_root_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].'<a href="'.SKELETON_PUBLIC.'">'.l10n('Skeleton').'</a>'; 17 17 $page['title'] = l10n('Skeleton'); 18 18 19 19 $page['body_id'] = 'theSkeletonPage'; 20 20 $page['is_external'] = true; // inform Piwigo that you are on a new page … … 29 29 global $page, $template; 30 30 31 if ( isset($page['section']) and $page['section']=='skeleton')31 if (isset($page['section']) and $page['section']=='skeleton') 32 32 { 33 33 include(SKELETON_PATH . 'include/skeleton_page.inc.php'); … … 41 41 { 42 42 global $template; 43 43 44 44 $template->assign('SKELETON_PATH', SKELETON_PATH); 45 45 $template->set_filename('skeleton_button', realpath(SKELETON_PATH.'template/my_button.tpl')); 46 46 $button = $template->parse('skeleton_button', true); 47 47 48 48 if (script_basename()=='index') 49 49 { 50 $template->add_index_button($button, EVENT_HANDLER_PRIORITY_NEUTRAL);50 $template->add_index_button($button, BUTTONS_RANK_NEUTRAL); 51 51 } 52 52 else 53 53 { 54 $template->add_picture_button($button, EVENT_HANDLER_PRIORITY_NEUTRAL);54 $template->add_picture_button($button, BUTTONS_RANK_NEUTRAL); 55 55 } 56 56 } … … 62 62 { 63 63 global $template; 64 64 65 65 $template->set_prefilter('picture', 'skeleton_picture_prefilter'); 66 66 } … … 69 69 { 70 70 $search = '{if $display_info.author and isset($INFO_AUTHOR)}'; 71 $replace = '<div id="Skeleton" class="imageInfo"> 72 <dt>{\'Skeleton\'|@translate}</dt> 73 <dd style="color:orange;">{\'Piwigo rocks\'|@translate}</dd> 74 </div> 75 '.$search; 71 $replace = ' 72 <div id="Skeleton" class="imageInfo"> 73 <dt>{\'Skeleton\'|@translate}</dt> 74 <dd style="color:orange;">{\'Piwigo rocks\'|@translate}</dd> 75 </div> 76 '; 76 77 77 return str_replace($search, $replace , $content);78 return str_replace($search, $replace.$search, $content); 78 79 }
Note: See TracChangeset
for help on using the changeset viewer.