Output FunctionsThere are a variety of output functions available to theme builders. Some you'll need to include for proper site functioning, while others can be mixed. Note: The function information on this page relates to version of gpEasy greater than or equal to version 1.6RC1. Necessary Functions<?php $page->GetContent(); ?>
<?php gpOutput::GetHead(); ?>
<?php gpOutput::GetAdminLink(); ?>
Menu Output<?php gpOutput::Get('Menu'); ?>
<?php gpOutput::Get('FullMenu'); ?>
<?php gpOutput::Get('SubMenu'); ?>
<?php gpOutput::Get('ExpandMenu'); ?>
<?php gpOutput::Get('ExpandLastMenu'); ?>
<?php gpOutput::Get('TopTwoMenu'); ?>
<?php gpOutput::Get('BottomTwoMenu'); ?>
<?php gpOutput::Get('MiddleSubMenu'); ?>
<?php gpOutput::Get('BottomSubMenu'); ?>
HTML Content Areas<?php gpOutput::Get('Extra',[area]); ?>
You can find a brief tutorial on how to add unique header and/or side menu on a per page basis in the forum here: [1].
Text Areas<?php gpOutput::Area([area_name],[area_html]); ?>... <?php gpOutput::GetArea([area_name],[area_text]); ?>
This line of code defines an area named My_Html_Area that contains the html <div class="my_html_area">%s</div> gpOutput::Area('My_Html_Area','<div class="my_html_area">%s</div>'); Then using this line of code, we can retrieve that html, in a user draggable wrapper with editable text. gpOutput::GetArea('My_Html_Area','This Text'); The result will be an area in your template that a user can do two things with:
Note: gpOutput::Area() should be called before any other output functions are used in your template. Before <head>label and enclosed on php calls Designing for Arrangeable ContentBy default, most of the areas outlined above can be rearranged by the user within gpEasy's administration scripts. To prevent users from being able to move an area in your theme, you can precede the function call with $GP_ARRANGE = false;. Example: $GP_ARRANGE = false; gpOutput::Get('Menu');
|
|