Example #1
0
//Theme Settings /
if (!defined("IN_FUSION")) {
    header("Location: ../../index.php");
    exit;
}
require_once INCLUDES . "theme_functions_include.php";
require_once THEMES . "templates/switcher.php";
$colour_switcher = new Switcher("select", "colour", "gif", "olive", "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();
}
set_image("pollbar", THEME . "images/blank.gif");
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)
{
    global $aidlink, $locale, $settings, $colour_switcher, $fontsize_switcher, $main_style;
    echo "\n\t<div id='main' style='width: " . THEME_WIDTH . "; left: 50%; margin-left: -47.5%;'>\n\t\t<div id='cont' class='clearfix {$main_style}'>\n\t\t\t<div id='header'>\n\t\t\t\t<div id='userbar' class='floatfix'>\n\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<ul id='links' class='clearfix flright'>\n";
    if (iMEMBER) {
        echo "\t\t\t\n\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<li><a href='" . BASEDIR . "messages.php'>" . $locale['global_121'] . "</a></li>\n\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<li><a href='" . BASEDIR . "setuser.php?logout=yes'>" . $locale['global_124'] . "</a></li>\n";
    } else {
        echo "\t\t\t<li><a href='" . BASEDIR . "login.php'>" . $locale['global_104'] . "</a></li>\n\t\t\t\t\t\t" . ($settings['enable_registration'] ? "<li><a href='" . BASEDIR . "register.php'>" . $locale['global_107'] . "</a></li>\n" : "");
require_once INCLUDES . "theme_functions_include.php";
require_once THEMES . "templates/switcher.php";
$colour_switcher = new Switcher("select", "colour", "gif", "blue", "switcherbutton");
if (!$enable_colour_switcher) {
    $colour_switcher->disable();
}
$column_switcher = new Switcher("select", "columns", "gif", "both", "switcherbutton");
if (!$enable_column_switcher) {
    $column_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();
}
redirect_img_dir(THEME . "forum", THEME . "forum/" . $colour_switcher->selected);
set_image("pollbar", THEME . "images/panelcap_bg.jpg");
function get_head_tags()
{
    global $colour_switcher, $fontsize_switcher, $column_switcher;
    echo $colour_switcher->makeHeadTag();
    echo $column_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;}#subheader ul {display:inline-block;}#subheader ul {display:inline;}#subheader ul li {float:left;} #main-bg, .panelbody{position: relative;}</style><![endif]-->";
}
function render_page($license = false)
{
    global $aidlink, $locale, $settings, $colour_switcher, $fontsize_switcher, $column_switcher, $main_style;
    echo "<div id='main' style='width: " . THEME_WIDTH . "; left: 50%; margin-left: -47.5%;'>\r\n\t\t<div id='header_t'><div id='header_r'><div id='header_l'><div id='corner_tr'><div id='corner_tl'>\r\n\t\t\t<div id='header'>\r\n\t\t\t<div id='header_bg' class='clearfix'>\r\n\t\t\t\t<div id='userbar' class='floatfix'>\r\n\t\t\t\t\t<ul id='anchors' class='flleft'><li><a href='#content'>" . $locale['global_210'] . "</a></li></ul>\r\n\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>\r\n\t\t\t\t\t\t<li> | <a href='" . BASEDIR . "messages.php'>" . $locale['global_121'] . "</a></li>\r\n\t\t\t\t\t\t" . (iADMIN ? "<li> | <a href='" . ADMIN . "index.php" . $aidlink . "' >" . $locale['global_123'] . "</a></li>" : "") . "\r\n\t\t\t\t\t\t<li> | <a href='" . BASEDIR . "setuser.php?logout=yes'>" . $locale['global_124'] . "</a></li>\n";
    } else {
Example #3
0
function render_article($subject, $article, $info)
{
    global $locale, $settings, $aidlink;
    set_image("edit", THEME . "images/icons/article_edit.png");
    echo "<div class='capmain-top'></div>\n";
    echo "<div class='capmain-articles floatfix'>\n";
    echo "<div class='flleft'>" . $subject . "</div>\n";
    if (iADMIN && checkrights("A")) {
        echo "<div class='flright clearfix' style='padding-right: 13px;'>\n";
        echo "<a href='" . ADMIN . "articles.php" . $aidlink . "&amp;action=edit&amp;article_id=" . $info['article_id'] . "'><img src='" . get_image("edit") . "' alt='" . $locale['global_076'] . "' title='" . $locale['global_076'] . "' /></a>\n";
        echo "</div>\n";
    }
    echo "</div>\n";
    echo "<div class='spacer'>\n";
    echo "<div class='news_info middle-border floatfix'>\n";
    echo "<ul>\n";
    echo "<li class='print'><a href='" . BASEDIR . "print.php?type=A&amp;item_id=" . $info['article_id'] . "'><span>" . $locale['global_075'] . "</span></a></li>\n";
    echo "<li class='date'>" . showdate("%d %b %Y", $info['article_date']) . "</li>\n";
    echo "<li class='author'>" . profile_link($info['user_id'], $info['user_name'], $info['user_status']) . "</li>\n";
    if ($info['cat_id']) {
        echo "<li class='cat'><a href='" . BASEDIR . "articles.php?cat_id=" . $info['cat_id'] . "'>" . $info['cat_name'] . "</a></li>\n";
    } else {
        echo "<li class='cat'><a href='" . BASEDIR . "articles.php?cat_id=0'>" . $locale['global_080'] . "</a></li>\n";
    }
    echo "<li class='reads'>" . $info['article_reads'] . $locale['global_074'] . "</li>\n";
    if ($info['article_allow_comments'] && $settings['comments_enabled'] == "1") {
        echo "<li class='comments'><a href='" . BASEDIR . "articles.php?article_id=" . $info['article_id'] . "#comments'>" . $info['article_comments'] . ($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073']) . "</a></li>\n";
    }
    echo "</ul>\n";
    echo "</div>\n";
    echo "<div class='main-body floatfix'>" . ($info['article_breaks'] == "y" ? nl2br($article) : $article) . "</div>\n";
    echo "</div>\n";
}
Example #4
0
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| 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.png' class='bullet'  alt='&raquo;' />");
set_image("stickythread", THEME . "forum/stickythread.png");
set_image("printer", THEME . "images/icons/printer.png");
set_image("up", THEME . "images/up.png");
set_image("down", THEME . "images/down.png");
set_image("left", THEME . "images/left.png");
set_image("right", THEME . "images/right.png");
set_image("reply", "reply");
set_image("newthread", "newthread");
set_image("web", "web");
set_image("pm", "pm");
set_image("quote", "quote");
set_image("forum_edit", "forum_edit");
// From Stylo Theme By Falcon
function theme_output($output)
{
    $search = array("@><img src='reply' alt='(.*?)' style='border:0px' />@si", "@><img src='newthread' alt='(.*?)' style='border:0px;?' />@si", "@><img src='web' alt='(.*?)' style='border:0;vertical-align:middle' />@si", "@><img src='pm' alt='(.*?)' style='border:0;vertical-align:middle' />@si", "@><img src='quote' alt='(.*?)' style='border:0px;vertical-align:middle' />@si", "@><img src='forum_edit' alt='(.*?)' style='border:0px;vertical-align:middle' />@si", "@<a href='" . ADMIN . "comments.php(.*?)&amp;ctype=(.*?)&amp;cid=(.*?)'>(.*?)</a>@si");
    $replace = array(' class="big button"><span class="reply-button icon"></span>$1', ' class="big button"><span class="newthread-button icon"></span>$1', ' class="button" rel="nofollow" title="$1"><span class="web-button icon"></span>Web', ' class="button" title="$1"><span class="pm-button icon"></span>PM', ' class="button" title="$1"><span class="quote-button icon"></span>$1', ' class="negative button" title="$1"><span class="edit-button icon"></span>$1', '<a href="' . ADMIN . 'comments.php$1&amp;ctype=$2&amp;cid=$3" class="big button"><span class="settings-button icon"></span>$4</a>');
    $output = preg_replace($search, $replace, $output);
    return $output;
}
Example #5
0
require_once INCLUDES . "theme_functions_include.php";
require_once THEMES . "templates/switcher.php";
$colour_switcher = new Switcher("select", "colour", "png", "blue", "switcherbutton");
if (!$enable_colour_switcher) {
    $colour_switcher->disable();
}
$column_switcher = new Switcher("select", "columns", "png", "both", "switcherbutton");
if (!$enable_column_switcher) {
    $column_switcher->disable();
}
$fontsize_switcher = new Switcher("increment", "fontsize", "png", 1, "switcherbutton", "", true, array("step" => 0.1, "max" => 1.5));
if (!$enable_fontsize_switcher) {
    $fontsize_switcher->disable();
}
redirect_img_dir(THEME . "forum", THEME . "forum/" . $colour_switcher->selected);
set_image("pollbar", THEME . "images/navbg.jpg");
function get_head_tags()
{
    global $colour_switcher, $fontsize_switcher, $column_switcher;
    echo $colour_switcher->makeHeadTag();
    echo $column_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;}#subheader ul {display:inline-block;}#subheader ul {display:inline;}#subheader ul li {float:left;}</style><![endif]-->";
}
function render_page($license = false)
{
    global $aidlink, $locale, $settings, $colour_switcher, $fontsize_switcher, $column_switcher, $main_style;
    echo "\t<div id='body2'>\n\t\t<div id='header' class='clearfix'>\n\t\t\t<div class='resized'>\n\t\t\t\t<div id='userbar' class='floatfix'>\n\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<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<li> | <a href='" . BASEDIR . "messages.php'>" . $locale['global_121'] . "</a></li>\n\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<li> | <a href='" . BASEDIR . "setuser.php?logout=yes'>" . $locale['global_124'] . "</a></li>\n";
    } else {
Example #6
0
set_image("down", THEME . "images/down.png");
set_image("left", THEME . "images/left.png");
set_image("right", THEME . "images/right.png");
set_image("newthread", THEME . "forum/newthread.png");
set_image("reply", THEME . "forum/reply.png");
set_image("forum_edit", THEME . "forum/edit.png");
set_image("quote", THEME . "forum/quote.png");
set_image("pm", THEME . "forum/pm.png");
set_image("web", THEME . "forum/web.png");
set_image("email", THEME . "forum/email.png");
set_image("profile", THEME . "forum/profile.png");
set_image("folder", THEME . "forum/folder.png");
set_image("folderhot", THEME . "forum/folderhot.png");
set_image("folderlock", THEME . "forum/folderlock.png");
set_image("foldernew", THEME . "forum/foldernew.png");
set_image("stickythread", THEME . "forum/stickythread.png");
function render_page($license = false)
{
    global $settings, $main_style, $locale, $mysql_queries_time;
    // Container Start
    echo "<div id='container'>\n";
    // Top Nav
    echo "<div id='top-nav'>" . showsublinks("") . "</div>\n";
    // Header
    echo "<div id='header'><a href='" . BASEDIR . "index.php'>" . $settings['sitename'] . "</a></div>\n";
    // Search
    echo "<div id='search'>\n";
    echo "<form action='" . BASEDIR . "search.php' method='get'>\n";
    echo "<input type='text' class='search' name='stext' />";
    echo "<input type='submit' class='submit' name='search' value='' />";
    echo "</form>\n";
if (!defined("IN_FUSION")) {
    die("Access Denied");
}
include INCLUDES . "infusions_include.php";
if (file_exists(INFUSIONS . "rss_feeds_panel/locale/" . LANGUAGE . ".php")) {
    include INFUSIONS . "rss_feeds_panel/locale/" . LANGUAGE . ".php";
} else {
    include INFUSIONS . "rss_feeds_panel/locale/English.php";
}
if (file_exists(INFUSIONS . "rss_feeds_panel/images/" . LANGUAGE)) {
    set_image("rss_article", INFUSIONS . "rss_feeds_panel/images/" . LANGUAGE . "/rss_articles.gif");
    set_image("rss_blog", INFUSIONS . "rss_feeds_panel/images/" . LANGUAGE . "/rss_blog.gif");
    set_image("rss_downloads", INFUSIONS . "rss_feeds_panel/images/" . LANGUAGE . "/rss_downloads.gif");
    set_image("rss_forums", INFUSIONS . "rss_feeds_panel/images/" . LANGUAGE . "/rss_forums.gif");
    set_image("rss_news", INFUSIONS . "rss_feeds_panel/images/" . LANGUAGE . "/rss_news.gif");
    set_image("rss_weblinks", INFUSIONS . "rss_feeds_panel/images/" . LANGUAGE . "/rss_weblinks.gif");
}
openside($locale['rss009']);
echo "<p style='text-align: center;'>\n";
if (db_exists(DB_NEWS)) {
    echo "<a href='" . INFUSIONS . "rss_feeds_panel/feeds/rss_news.php'>" . get_image("rss_news", $locale['rss004'], "", "", "class='img-responsive'") . "</a>\n";
}
if (db_exists(DB_BLOG)) {
    echo "<a href='" . INFUSIONS . "rss_feeds_panel/feeds/rss_blog.php'>" . get_image("rss_blog", $locale['rss000'], "", "", "class='img-responsive'") . "</a>\n";
}
if (db_exists(DB_ARTICLES) && db_exists(DB_ARTICLE_CATS)) {
    echo "<a href='" . INFUSIONS . "rss_feeds_panel/feeds/rss_articles.php'>" . get_image("rss_article", $locale['rss002'], "", "", "class='img-responsive'") . "</a>\n";
}
if (db_exists(DB_DOWNLOADS) && db_exists(DB_DOWNLOAD_CATS)) {
    echo "<a href='" . INFUSIONS . "rss_feeds_panel/feeds/rss_downloads.php'>" . get_image("rss_downloads", $locale['rss003'], "", "", "class='img-responsive'") . "</a>\n";
}