// Adjust here
$default_left_size = 2;
$default_right_size = 4;
// If has left panel, use default size, if not is 0
$left_size = defined("LEFT") ? $default_left_size : 0;
// If has right panel, use default size, if not is 0
$right_size= defined("RIGHT") ? $default_right_size : 0;
// Center size is 12 - left and right size
$center_size = 12 - $left_size - $right_size;
// Now implement the total of 12 into position
echo "<div class='row'>\n";
if (defined("LEFT")) echo "<div class='col-xs-12 col-sm-$left_size'>".LEFT."</div>";
echo "<div class='col-xs-12 col-sm-$center_size'>".U_CENTER . CONTENT . L_CENTER."</div>";
if (defined("RIGHT")) echo "<div class='col-xs-12 col-sm-$right_size'>".RIGHT."</div>";
echo "</div>";
defined("LEFT") && !empty(LEFT)
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: theme.php
| Author: Frederick MC Chan (Chan)
+--------------------------------------------------------+
| This program is released as free software under the
| 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", "·");
require_once INCLUDES."theme_functions_include.php";
include "functions.php";
function render_page($license = FALSE) {
//add_handler("theme_output");
global $settings, $main_style, $locale, $userdata, $aidlink, $mysql_queries_time;
// set variables
$brand = $settings['sitebanner'] ? "<img title='".$settings['sitename']."' style='margin-left:-20px; width:100%; margin-top:-35px;' src='".BASEDIR.$settings['sitebanner']."' />" : $settings['sitename'];
// set size - max of 12 min of 0
$side_grid_settings = array(
'desktop_size' => 2,
'laptop_size' => 3,
'tablet_size' => 3,
'phone_size' => 12,
);
$side_grid_settings1 = array(
'desktop_size' => 3,
'laptop_size' => 3,
'tablet_size' => 3,
'phone_size' => 12,
);
// Render Theme
echo "<div class='container p-t-20 p-b-20'>\n";
echo "<div class='display-inline-block m-t-20 m-l-20' style='max-width: 280px;'>";
echo $brand;
echo "</div>\n";
echo showsublinks('', '', array('logo'=>$brand))."\n";
// row 1 - go for max width
if (defined('AU_CENTER') && AU_CENTER) echo "<div class='row'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>".AU_CENTER."</div>\n</div>";
// row 2 - fluid setitngs depending on panel appearances
// Adjust here
$default_left_size = 2;
$default_right_size = 4;
// If has left panel, use default size, if not is 0
$left_size = defined("LEFT") ? $default_left_size : 0;
// If has right panel, use default size, if not is 0
$right_size= defined("RIGHT") ? $default_right_size : 0;
// Center size is 12 - left and right size
$center_size = 12 - $left_size - $right_size;
// Now implement the total of 12 into position
echo "<div class='row'>\n";
if (defined("LEFT")) echo "<div class='col-xs-12 col-sm-$left_size'>".LEFT."</div>";
echo "<div class='col-xs-12 col-sm-$center_size'>".U_CENTER . CONTENT . L_CENTER."</div>";
if (defined("RIGHT")) echo "<div class='col-xs-12 col-sm-$right_size'>".RIGHT."</div>";
echo "</div>";
//defined("LEFT") && !empty(LEFT)
// row 3
if (defined('BL_CENTER') && BL_CENTER) echo "<div class='row'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>".BL_CENTER."</div>\n</div>";
// footer
echo "<hr>\n";
echo "<div class='row'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>";
echo "<span>".stripslashes(strip_tags($settings['footer']))."</span><br/>\n";
echo "<span>".showcopyright()."</span><br/>\n";
echo "<span>Bootstrap Theme by <a href='http://www.php-fusion.co.uk' target='_blank'>PHPFusion Inc</a></span><br/>\n";
echo "<span>";
if ($settings['visitorcounter_enabled']) echo showcounter();
if ($settings['rendertime_enabled'] == '1' || $settings['rendertime_enabled'] == '2') {
if ($settings['visitorcounter_enabled']) {
echo " | ";
}
echo showrendertime();
}
echo "</span>\n";
echo "</div>\n</div>\n";
echo "</div>\n";
}
//add_handler("theme_output");
global $settings, $main_style, $locale, $userdata, $aidlink, $mysql_queries_time;
$default_left_size = 2;
$default_right_size = 4;
// If has left panel, use default size, if not is 0
$left_size = defined("LEFT") && !empty(LEFT) ? $default_left_size : 0;
// If has right panel, use default size, if not is 0
$right_size= defined("RIGHT") && !empty(RIGHT) ? $default_right_size : 0;
// Center size is 12 - left and right size
$center_size = 12 - $left_size - $right_size;
Category Forum
Themes SupportLabels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions