* It is meant to be called by an include in the main.page.php template.
 * To display the archive directory, you should call a stub AND pass the right parameters
 * For example: /blogs/index.php?disp=help
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
 * @copyright (c)2003-2016 by Francois Planque - {@link http://fplanque.com/}
 *
 * @package evoskins
 * @subpackage bootstrap_forums_skin
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $app_version, $disp, $Blog, $Skin, $Settings;
if (evo_version_compare($app_version, '6.4') < 0) {
    // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
    die('This skin is designed for b2evolution 6.4 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.');
}
global $Skin;
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init($disp);
// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include('_html_header.inc.php');
// -------------------------------- END OF HEADER --------------------------------
// ---------------------------- 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 --------------------------------
?>
<?php

/**
 * This file is the template that displays an access denied for non-members
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://b2evolution.net/man/skin-development-primer}
 *
 * @package evoskins
 * @subpackage evopress
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $app_version, $disp;
if (evo_version_compare($app_version, '4.0.0-dev') < 0) {
    // Older 2.x skins work on newer 2.x b2evo versions, but newer 2.x skins may not work on older 2.x b2evo versions.
    die('This skin is designed for b2evolution 4.0.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.');
}
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init($disp);
// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include('_html_header.inc.php', array());
// -------------------------------- END OF HEADER --------------------------------
// ------------------------- BODY HEADER INCLUDED HERE --------------------------
skin_include('_body_header.inc.php');
// Note: You can customize the default BODY header by copying the generic
// /skins/_body_header.inc.php file into the current skin folder.
// ------------------------------- END OF HEADER --------------------------------
?>
예제 #3
0
/**
 * This is the main/default page template.
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://b2evolution.net/man/skin-development-primer}
 *
 * It is used to display the blog when no specific page template is available to handle the request.
 *
 * @package evoskins
 * @subpackage asevo
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
if (evo_version_compare($app_version, '3.0') < 0) {
    // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
    die('This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.');
}
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init($disp);
// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include('_html_header.inc.php');
// -------------------------------- END OF HEADER --------------------------------
// ---------------------------- 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 --------------------------------
?>
예제 #4
0
	<?php 
if (evo_version_compare($app_version, '6.7') >= 0) {
    // We are running at least b2evo 6.7, so we can include this file:
    // ------------------ WORKFLOW PROPERTIES INCLUDED HERE ------------------
    skin_include('_item_workflow.inc.php');
    // ---------------------- END OF WORKFLOW PROPERTIES ---------------------
}
?>

	<?php 
if ($disp == 'single' || $disp == 'page') {
    ?>
		<div class="item_meta_comments">
			<?php 
    if (evo_version_compare($app_version, '6.7') >= 0) {
        // We are running at least b2evo 6.7, so we can include this file:
        // ------------------ META COMMENTS INCLUDED HERE ------------------
        skin_include('_item_meta_comments.inc.php', array('comment_start' => '<article class="evo_comment evo_comment__meta panel panel-default">', 'comment_end' => '</article>', 'comment_post_before' => '<h3 class="evo_comment_post_title">', 'comment_post_after' => '</h3>', 'comment_title_before' => '<div class="panel-heading"><h4 class="evo_comment_title panel-title">', 'comment_title_after' => '</h4></div><div class="panel-body">'));
        // ---------------------- END OF META COMMENTS ---------------------
    }
    ?>
		</div>
	<?php 
}
?>

	<?php 
locale_restore_previous();
// Restore previous locale (Blog locale)
?>
예제 #5
0
<?php

/**
 * This file is the template that displays an access denied for non-members
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://b2evolution.net/man/skin-development-primer}
 *
 * @package evoskins
 * @subpackage basic
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $app_version, $disp, $Blog, $Plugins, $Hit;
if (evo_version_compare($app_version, '2.4.1') < 0) {
    // Older 2.x skins work on newer 2.x b2evo versions, but newer 2.x skins may not work on older 2.x b2evo versions.
    die('This skin is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.');
}
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init($disp);
// The following is temporary and should be moved to some SiteSkin class
siteskin_init();
// ----------------------------- HEADER BEGINS HERE ------------------------------
?>
<html>
<head>
	<?php 
skin_content_meta();
/* Charset for static pages */
예제 #6
0
    /**
     * Create new group
     *
     * @param integer Template group ID
     * @param string Group name
     * @param string Group usage: 'primary', 'secondary'
     */
    function usergroup_create($template_group_ID, $group_name, $usage = 'primary')
    {
        global $app_version;
        $GroupCache =& get_Cache('GroupCache');
        if (empty($template_group_ID)) {
            $this->debug_log('No template Group ID provided!');
        } elseif (!($template_Group = $GroupCache->get_by_ID($template_group_ID, false))) {
            $this->debug_log('Template with Group ID #' . $template_group_ID . ' not found!');
        } else {
            // Take a copy of the Group to use as template:
            global $DB;
            $this->debug_log('Using Group <b>' . $template_Group->get('name') . '</b> (#' . $template_group_ID . ') as template.');
            // Create new group:
            $new_Group = new Group();
            // Get field values of the template group:
            $group_row = $DB->get_row('SELECT *
				 FROM T_groups
				WHERE grp_ID = ' . $DB->quote($template_group_ID), ARRAY_A);
            foreach ($group_row as $group_field_name => $group_field_value) {
                // Copy each value from template group to new:
                $new_Group->set(preg_replace('/^grp_/', '', $group_field_name), $group_field_value);
            }
            $new_Group->set('ID', 0);
            // unset ID (to allow inserting)
            $new_Group->set('name', $group_name);
            // set the wanted name
            if (evo_version_compare($app_version, '6.7.0-alpha') >= 0) {
                // The plugin is used on b2evo 6.7+
                $new_Group->set('usage', $usage);
            }
            // Get settings of the template group:
            $GroupSettings =& $new_Group->get_GroupSettings();
            $group_settings = $DB->get_results('SELECT gset_name AS name, gset_value AS value
				 FROM T_groups__groupsettings
				WHERE gset_grp_ID = ' . $DB->quote($template_group_ID));
            foreach ($group_settings as $group_setting) {
                // Copy each setting from template group to new:
                $GroupSettings->set($group_setting->name, $group_setting->value, $new_Group->ID);
            }
            // Insert new group:
            $new_Group->dbinsert();
            if (!empty($new_Group->ID)) {
                $this->debug_log('Created ' . $usage . ' Group #' . $new_Group->ID . ' <b>' . $new_Group->get('name') . '</b>');
                return $new_Group;
            }
        }
        $r = false;
        return $r;
    }