コード例 #1
0
ファイル: theme.php プロジェクト: dioda/phpfusion
$enable_colour_switcher = true;
//true=enable colour switcher | false=disable colour switcher
$enable_fontsize_switcher = true;
//true=enable fontsize switcher | false=disable fontsize switcher
if (!defined("IN_FUSION")) {
    die("Access Denied");
}
require_once INCLUDES . "theme_functions_include.php";
require_once THEMES . "templates/switcher.php";
$colour_switcher = new Switcher("select", "colour", "gif", "green", "switcherbutton");
if (!$enable_colour_switcher) {
    $colour_switcher->disable();
}
$fontsize_switcher = new Switcher("increment", "fontsize", "gif", 1, "switcherbutton", "", true, array("step" => 0.1, "max" => 1.5));
if (!$enable_fontsize_switcher) {
    $fontsize_switcher->disable();
}
function get_head_tags()
{
    global $colour_switcher, $fontsize_switcher;
    echo $colour_switcher->makeHeadTag();
    echo "<style type='text/css'>body{font-size: " . $fontsize_switcher->selected . "em;}</style>";
    echo "<!--[if lte IE 7]><style type='text/css'>.clearfix {display:inline-block;} * html .clearfix{height: 1px;}</style><![endif]-->";
}
function render_page($license = false)
{
    global $aidlink, $locale, $settings, $colour_switcher, $fontsize_switcher, $main_style;
    echo "\n\t<div id='main' style='width: " . THEME_WIDTH . ";'>\n\t\t<div id='uborder' class='clearfix'>\n\t\t\t<div id='ucornerl' class='flleft'></div>\n\t\t\t<div id='ucornerr' class='flright'></div>\n\t\t</div>\n\t\t<div id='borderr'>\n\t\t\t<div id='borderl'>\n\t\t\t\t<div id='cont' class='clearfix {$main_style}'>\n\t\t\t\t\t<div id='userbar' class='floatfix'>\n\t\t\t\t\t\t<ul id='anchors' class='flleft'><li><a href='#Content'>" . $locale['global_210'] . "</a></li></ul>\n\t\t\t\t\t\t<ul id='links' class='clearfix flright'>\n";
    if (iMEMBER) {
        echo "\t\t\t\t\t\t\t<li><a href='" . BASEDIR . "edit_profile.php'>" . $locale['global_120'] . "</a></li>\n\t\t\t\t\t\t\t<li><a href='" . BASEDIR . "messages.php'>" . $locale['global_121'] . "</a></li>\n\t\t\t\t\t\t\t" . (iADMIN ? "<li><a href='" . ADMIN . "index.php" . $aidlink . "' >" . $locale['global_123'] . "</a></li>" : "") . "\n\t\t\t\t\t\t\t<li><a href='" . BASEDIR . "setuser.php?logout=yes'>" . $locale['global_124'] . "</a></li>\n";
    } else {
コード例 #2
0
ファイル: theme.php プロジェクト: necrophcodr/Muks
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) {
    die("Access Denied");
}
define("THEME_BULLET", "<img src='" . THEME . "images/bullet.gif' class='bullet' alt='&raquo;' border='0' />");
define("THEME_WIDTH", "100%");
$enable_colour_switcher = true;
require_once THEME . "functions.php";
require_once THEMES . "templates/switcher.php";
require_once INCLUDES . "theme_functions_include.php";
$colour_switcher = new Switcher("select", "colour", "png", "blue", "switcherbutton");
if (!$enable_colour_switcher) {
    $colour_switcher->disable();
}
function get_head_tags()
{
    global $colour_switcher;
    echo $colour_switcher->makeHeadTag();
    echo "<!--[if lte IE 7]><style type='text/css'>.clearfix {display:inline-block;} * html .clearfix{height: 1px;}</style><![endif]-->";
}
function render_page($license = false)
{
    add_handler("theme_output");
    global $settings, $main_style, $locale, $colour_switcher, $mysql_queries_time;
    //Wrapper
    echo "<div class='wrapper' style='width:" . THEME_WIDTH . ";'>\n";
    //Header
    echo "<div class='main-header'>\n" . showbanners() . "</div>\n";