// theme settings $body_text = "#000000"; $body_bg = "#ffffff"; $theme_width = "80%"; $theme_width_l = "180"; $theme_width_r = "180"; //The Nature Themes look best with 2 columns. //You can enable one side's panels to be switched to the opposite side temporary $disable_side = 0; //Disable a Panel column for 2 Column look? (1=left/2=right/0=no) EXPERIMENTAL //Choose where to display the horizontal navigation $topnavi_position = 2; // Position of the horizontal navigation? (1=Above Header/2=below header/3=both/0=off) //Choose whether you want to show a additional navigation in the footer displaying the links of the top navigation $footer_navigation = 0; //Enable the Horizontal Navigation to be shown in the footer, too? (1=yes/0=no) //Disable the Header if you don't need it, here $show_header = 1; //Show the Header? (1=yes/0=no) //Setting this to 1 will disable the default header background image $disable_background = 0; //Disable Background? (1=yes/0=no) //Descide whether or not to show the date next to the top navigation $show_date = 1; //Show date? (1=yes/0=no) //If this is enabled, the Banner you set in Main Settings will be shown //Elsewise the banner.jpg in the Theme folder is displayed $default_banner = 0; //Whether or not to use the Banner set in Main Settings (1=yes/0=no) //Enable this to show a cool CSS-based Rollover Navigation, replacing the default one temporary $advanced_navigation = 1; //Fancy Navigation? (1=yes/0=no) //If you want to have you php-fusion version displayed in the footer, set this to 1 $show_version = 0; //Show your php-fusion version? (1=yes/0=no) function render_header($header_content) { global $theme_width, $settings, $locale, $default_banner, $topnavi_position, $show_header, $navigation_table, $panel_ids, $disable_side, $show_date, $disable_background; if($disable_side == 1 || $disable_side == 2){ $panel_query = dbquery("SELECT panel_id FROM ".DB_PREFIX."panels WHERE panel_side = ".($disable_side == 1 ? "1" : "3" ).""); $panel_ids = array(); while($panel_id = mysql_fetch_row($panel_query)) array_push($panel_ids, $panel_id[0]); dbquery("UPDATE ".DB_PREFIX."panels SET panel_side = ".($disable_side == 1 ? "3" : "1" )." WHERE panel_side = ".($disable_side == 1 ? "1" : "3" ).""); } if($show_header == 1){ $header_table = "
|
\n"; $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order"); if (dbrows($result) != 0) { $i = 0; while($data = dbarray($result)) { if (checkgroup($data['link_visibility'])) { if ($data['link_url']!="---") { if ($i != 0) { $navigation_table .= " ·\n"; } else { $navigation_table .= "\n"; } $link_target = ($data['link_window'] == "1" ? " target='_blank'" : ""); if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) { $navigation_table .= "".$data['link_name'].""; } else { $navigation_table .= "".$data['link_name']."";[/color] } } $i++; } } } $navigation_table .= ($i == 0 ? " " : "")." | "; if($show_date == 1) $navigation_table .= "".ucwords(showdate("longdate", time()))." | "; $navigation_table .= "
![]() |
![]() |
|||||
|
||||||
![]() |
![]() |
|
|
|
$title |
\n";
if($advanced_navigation == 1 AND $p_data['panel_filename'] == 'navigation_panel'){
$query = dbquery("SELECT * FROM `".DB_PREFIX."panels` WHERE panel_name ='".$title."'");
if(dbrows($query) != 0){
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position<='2' ORDER BY link_order");
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
echo "
".$data['link_name']." \n";
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
echo "
\n"; } else { $link_target = ($data['link_window'] == "1" ? " target='_blank'" : ""); if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) { echo " ".$data['link_name']." \n"; } else { echo " ".$data['link_name']." \n"; } } } } echo " "; $navigation_hidden = 0; } } echo " |
$title |
![]() |
\n";
}
function closesidex() {
echo "
|