/** * echo main text * * You can override this function into your skin */ public static function echo_text() { global $context; // from $context echo $context['text']; $context['text'] = ''; // display the dynamic content, if any if (is_callable('send_body')) { send_body(); } // maybe some additional text has been created in send_body() echo $context['text']; }
if ($context['prefix']) { echo $context['prefix']; } // display the title if ($context['page_title']) { echo Skin::build_block($context['page_title'], 'page_title'); } // display error messages, if any echo Skin::build_error_block(); // display the page image, if any if ($context['page_image']) { echo ICON_PREFIX . '<img src="' . $context['page_image'] . '" class="icon" alt="" />' . ICON_SUFFIX; } // display the dynamic content, if any if (is_callable('send_body')) { send_body(); } // render and display the content, if any echo $context['text']; // debug output, if any if ($context['debug']) { echo '<p>' . $context['debug'] . "</p>\n"; } // display the suffix, if any if ($context['suffix']) { echo $context['suffix']; } ?> </body> </html>