<?php // Display message if no post: display_if_empty(); echo '<div id="styled_content_block">'; // Beginning of posts display if ($Item =& mainlist_get_item()) { // For each blog post, do everything below up to the closing curly brace "}" // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ skin_include('_item_block.inc.php', array('content_mode' => 'auto', 'image_size' => 'fit-640x480')); // ----------------------------END ITEM BLOCK ---------------------------- } echo '</div>'; // End of posts display ?> </div> <?php // -------------------------- BODY FOOTER INCLUDED HERE -------------------------- skin_include('_body_footer.inc.php'); // Note: You can customize the default BODY footer by copying the generic // /skins/_body_footer.inc.php file into the current skin folder. // -------------------------------- END OF BODY FOOTER --------------------------- // ---------------------------- SITE FOOTER INCLUDED HERE ---------------------------- // If site footers are enabled, they will be included here: siteskin_include('_site_body_footer.inc.php'); // ------------------------------- END OF SITE FOOTER -------------------------------- // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- skin_include('_html_footer.inc.php'); // Note: You can customize the default HTML footer by copying the // _html_footer.inc.php file into the current skin folder. // ------------------------------- END OF FOOTER --------------------------------
* * For a quick explanation of b2evo 2.0 skins, please start here: * {@link http://b2evolution.net/man/skin-development-primer} * * The main page template is used to display the blog when no specific page template is available * to handle the request (based on $disp). * * @package evoskins * @subpackage colourise */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } // ---------------------------- SITE HEADER INCLUDED HERE ---------------------------- // If site headers are enabled, they will be included here: siteskin_include('_site_body_header.inc.php'); // ------------------------------- END OF SITE HEADER -------------------------------- ?> <div id="wrap"> <div id="header" class="pageHeader"> <div id="top_menu"> <?php // Display container and contents: skin_container(NT_('Page Top'), array('block_start' => '<div class="widget $wi_class$">', 'block_end' => '</div>', 'block_display_title' => false, 'list_start' => '<ul>', 'list_end' => '</ul>', 'item_start' => '<li>', 'item_end' => '</li>')); ?> </div> <?php // ------------------------- "Header" CONTAINER EMBEDDED HERE -------------------------- // Display container and contents: skin_container(NT_('Header'), array('block_start' => '<div class="widget $wi_class$">', 'block_end' => '</div>', 'block_title_start' => '<h1>', 'block_title_end' => '</h1>'));
function siteskin_init() { // The following is temporary and should be moved to some SiteSkin class global $Settings; if ($Settings->get('site_skins_enabled')) { // Site skins are enabled // Include the additional required files siteskin_include('_skin_init.inc.php'); } }
/** * This page displays an error message when we cannot resolve the extra path. * * This happens when you request an invalid tracking code on track.php for example * * @package evocore */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } header_http_response('404 Not Found'); header('Content-Type: text/html; charset=utf-8'); // no translation $page_title = '404 Not Found'; // -------------------------- HTML HEADER INCLUDED HERE -------------------------- siteskin_include('_html_header.inc.php', array(), true); // force include even if site headers/footers are not enabled // -------------------------------- END OF HEADER -------------------------------- ?> <h1>404 Not Found</h1> <p>The page you requested doesn't seem to exist on <a href="<?php echo $baseurl; ?> ">this system</a>.</p> <?php // -------------------------- HTML FOOTER INCLUDED HERE -------------------------- siteskin_include('_html_footer.inc.php', array(), true); // force include even if site headers/footers are not enabled // -------------------------------- END OF FOOTER -------------------------------- exit(0);
/** * Check if current user has access to this blog depending on settings * * @return boolean TRUE on success */ function check_access() { global $Messages, $skins_path, $ads_current_skin_path, $ReqURL, $disp; $allow_access = $this->get_setting('allow_access'); if ($allow_access == 'public') { // Everyone has an access to this blog return true; } if (in_array($disp, array('login', 'lostpassword', 'register', 'help', 'msgform', 'access_requires_login'))) { // Don't restrict these pages return true; } /** * $allow_access == 'users' || 'members' */ if (!is_logged_in()) { // Only logged in users have an access to this blog $Messages->add(T_('You need to log in before you can access this section.'), 'error'); $login_Blog =& get_setting_Blog('login_blog_ID'); if ($login_Blog && $login_Blog->ID != $this->ID) { // If this collection is not used for login actions, // Redirect to login form on "access_requires_login.main.php": header_redirect(get_login_url('no access to blog', NULL, false, NULL, 'access_requires_loginurl'), 302); // will have exited } else { // This collection is used for login actions // Don't redirect, just display a login form of this collection: $disp = 'access_requires_login'; // Set redirect_to param to current url in order to display a requested page after login action: global $ReqURI; param('redirect_to', 'url', $ReqURI); } } elseif ($allow_access == 'members') { // Check if current user is member of this blog global $current_User; if (!$current_User->check_perm('blog_ismember', 'view', false, $this->ID)) { // Force disp to restrict access for current user $disp = 'access_denied'; $Messages->add(T_('You are not a member of this section, therefore you are not allowed to access it.'), 'error'); $blog_skin_ID = $this->get_skin_ID(); if (!empty($blog_skin_ID)) { // Use 'access_denied.main.php' instead of real template when current User is not a member of this blog $template = 'access_denied.main.php'; $SkinCache =& get_SkinCache(); $Skin =& $SkinCache->get_by_ID($blog_skin_ID); $ads_current_skin_path = $skins_path . $Skin->folder . '/'; $skin_template_name = $ads_current_skin_path . $template; if (file_exists($skin_template_name)) { // Display a special template of this skin require $skin_template_name; exit; } else { // Display a template from site skins siteskin_include($template); exit; } } } } return true; }
// ---------------------------- SITE HEADER INCLUDED HERE ---------------------------- // If site headers are enabled, they will be included here: siteskin_include('_html_header.inc.php'); // ------------------------------- END OF SITE HEADER -------------------------------- // ---------------------------- TOOLBAR INCLUDED HERE ---------------------------- require skin_fallback_path('_toolbar.inc.php'); // ------------------------------- END OF TOOLBAR -------------------------------- echo "\n"; if (show_toolbar()) { echo '<div id="skin_wrapper" class="skin_wrapper_loggedin">'; } else { echo '<div id="skin_wrapper" class="skin_wrapper_anonymous">'; } echo "\n"; // ---------------------------- SITE BODY HEADER INCLUDED HERE ---------------------------- // If site headers are enabled, they will be included here: siteskin_include('_site_body_header.inc.php'); // ------------------------------- END OF SITE BODY HEADER -------------------------------- // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>')); // --------------------------------- END OF MESSAGES --------------------------------- // ---------------------------- SITE BODY FOOTER INCLUDED HERE ---------------------------- // If site footers are enabled, they will be included here: siteskin_include('_site_body_footer.inc.php'); // ------------------------------- END OF SITE BODY FOOTER -------------------------------- echo '</div>'; // End of skin_wrapper // ---------------------------- SITE HEADER INCLUDED HERE ---------------------------- // If site headers are enabled, they will be included here: siteskin_include('_html_footer.inc.php'); // ------------------------------- END OF SITE HEADER --------------------------------