Changeset 23398


Ignore:
Timestamp:
Jun 20, 2013, 1:12:14 PM (8 years ago)
Author:
mistic100
Message:

update public page for 2.6

Location:
extensions/skeleton/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/skeleton/trunk/include/public_events.inc.php

    r21307 r23398  
    1717    $page['title'] = l10n('Skeleton');
    1818   
    19     // define body_id
    20     add_event_handler('loc_begin_page_header', 'skeleton_loc_begin_page_header');
     19    $page['body_id'] = 'theSkeletonPage';
     20    $page['is_external'] = true; // inform Piwigo that you are on a new page
    2121  }
    22 }
    23 
    24 function skeleton_loc_begin_page_header()
    25 {
    26   global $page;
    27   $page['body_id'] = 'theSkeletonPage';
    2822}
    2923
  • extensions/skeleton/trunk/include/skeleton_page.inc.php

    r18858 r23398  
    1414  ));
    1515
    16 $template->set_filename('index', realpath(SKELETON_PATH . 'template/skeleton_page.tpl'));
     16$template->set_filename('skeleton_page', realpath(SKELETON_PATH . 'template/skeleton_page.tpl'));
     17$template->assign_var_from_handle('CONTENT', 'skeleton_page');
    1718
    1819?>
  • extensions/skeleton/trunk/template/skeleton_page.tpl

    r23395 r23398  
    11{combine_css path=$SKELETON_PATH|@cat:"template/style.css"}
    2 
    32
    43{* <!-- add scripts here --> *}
     
    2019{/literal}{/footer_script}
    2120
    22 
    23 {* <!-- Menubar & titrePage --> *}
    24 {if $themeconf.name == "stripped" or $themeconf.parent == "stripped"}
    25   {include file=$SKELETON_ABS_PATH|@cat:'template/themes/stripped.tpl'}
    26   {assign var="clear" value="true"}
    27 {elseif $themeconf.name == "simple-grey" or $themeconf.parent == "simple"}
    28   {include file=$SKELETON_ABS_PATH|@cat:'template/themes/simple.tpl'}
    29   {assign var="clear" value="true"}
    30 {else}
    31   {include file=$SKELETON_ABS_PATH|@cat:'template/themes/default.tpl'}
    32 {/if}
    33 
    34 {if isset($errors) or not empty($infos)}
    35 {include file='infos_errors.tpl'}
    36 {/if}
    37 
    38 
    3921{* <!-- add page content here --> *}
    4022<h1>{'What Skeleton can do for me?'|@translate}</h1>
     
    4426
    4527<div id="test">Click for fun</div>
    46 
    47 
    48 {if isset($clear)}<div style="clear: both;"></div>
    49 </div>{/if}
    50 </div>{* <!-- content --> *}
Note: See TracChangeset for help on using the changeset viewer.