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
Menu Output
HTML Content AreasgpOutput::Get('Extra',[area]); where area is the name of a content area. 'Header', 'Footer', 'Side_Menu' are all standard areas. Additional areas can be added just by changing the value of area. You can find a brief tutorial on how to add unique header and/or side menu on a per page basis in gpEasy 1.6.3 in the forum here: [1].
Text Areas
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');
|
|