Changeset 23398
- Timestamp:
- Jun 20, 2013, 1:12:14 PM (11 years ago)
- Location:
- extensions/skeleton/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/skeleton/trunk/include/public_events.inc.php
r21307 r23398 17 17 $page['title'] = l10n('Skeleton'); 18 18 19 // define body_id20 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 21 21 } 22 }23 24 function skeleton_loc_begin_page_header()25 {26 global $page;27 $page['body_id'] = 'theSkeletonPage';28 22 } 29 23 -
extensions/skeleton/trunk/include/skeleton_page.inc.php
r18858 r23398 14 14 )); 15 15 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'); 17 18 18 19 ?> -
extensions/skeleton/trunk/template/skeleton_page.tpl
r23395 r23398 1 1 {combine_css path=$SKELETON_PATH|@cat:"template/style.css"} 2 3 2 4 3 {* <!-- add scripts here --> *} … … 20 19 {/literal}{/footer_script} 21 20 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 39 21 {* <!-- add page content here --> *} 40 22 <h1>{'What Skeleton can do for me?'|@translate}</h1> … … 44 26 45 27 <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.