Public feed
#893279
<?php/*------------------------------------------------------------------------# Whitesquid 1.0 - 2008# ------------------------------------------------------------------------# Copyright (C) 2008 Marcofolio.net# Design by Dezinerfolio# Websites: http://www.marcofolio.net - http://www.dezinerfolio.com/-------------------------------------------------------------------------*/defined( '_VALID_MOS' ) or die( 'Restricted access' );$iso = split( '=', _ISO );/*echo "<?xml version=\"1.0\" encoding=\"'. $iso[1] .'\"?' .'>";*/global $mf_color_themes, $mf_header_images, $mf_width_default, $mf_color_default, $mf_font_size_default, $mf_tool, $mf_menutype, $mf_template_path, $mf_template_absolute_path, $mf_headerimg, $mf_color, $mf_width, $mf_font_size, $mf_template_name;$mf_template_name = 'mf_whitesquid';# TEMPLATE CONFIGURATIONS ###############################################support extra color themes$mf_color_themes = array('default');##################################### Change the width of the template$mf_width_default = 'wide'; // 'narrow': 800x600; 'wide': 1024x768; 'auto': fluid width# default color$mf_color_default = 'default'; //blank for default, else pick one of in extra color themes $mf_color_themes#font size default$mf_font_size_default = 3;# Enable users option$mf_tool = 1; // 0: Disable screen; 1: Enable screen# Choose your prefer Menu Type$mf_menutype = 4; // Script Dropline Menu;# END: TEMPLATE CONFIGURATIONS ########### Define the template path ##########$mf_template_path = $mosConfig_live_site.'/templates/'.$mf_template_name;$mf_template_absolute_path = $mosConfig_absolute_path.'/templates/'.$mf_template_name;include ($mf_template_absolute_path."/mf_templatetools.php");//$mf_headerimg = $mf_header_images [getCurrentMenuIndex() % count($mf_header_images)];if (!is_file("$mf_template_absolute_path/images/$mf_color/$mf_headerimg")) $mf_headerimg = $mf_header_images [0];$topnav = "";$subnav = "";require($mf_template_absolute_path."/mf_scriptdlmenu.php");$topnav = $mfmenu->menuObj->main;$subnav = $mfmenu->menuObj->sub;# Auto Collapse Divs Functions ##########$mf_left = mosCountModules( 'left' );$mf_right = mosCountModules( 'right' );if ( $mf_left && $mf_right ) { $divid = ''; } elseif ( $mf_left ) { $divid = '-fr'; } elseif ( $mf_right ) { $divid = '-fl'; } else { $divid = '-f';}$bottommodule = 0;if (mosCountModules('user1')) $bottommodule++;if (mosCountModules('user2')) $bottommodule++;if (mosCountModules('top')) $bottommodule++;if ( $bottommodule == 3 ) { $divwidth = '32%';} else if ($bottommodule == 2) { $divwidth = '49%';} else if ($bottommodule == 1) { $divwidth = '99%';}?><?php $dir = "/images/$mf_color/header-deco/"; //You could change this to the folder store your header images. $regex = '/(\.gif)|(.jpg)|(.png)|(.bmp)$/i'; //Support image type: gif, jpg, png, bmp $headerimage = ""; $abs_path = $mf_template_absolute_path.$dir; $live_path = $mf_template_path.$dir; $dh = opendir($abs_path); $files = array(); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } if (count ($files) > 0){ $i = 0; while (++$i < 10) { $rnd = rand(2, count($files)-1); $imgname = $files[$rnd]; if (is_file($abs_path."/".$imgname) && preg_match($regex, $imgname)) { $headerimage = $live_path."/".$imgname; break; } } }?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><?php mosShowHead(); ?><meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" /><meta http-equiv="Content-Style-Type" content="text/css" /><link href="<?php echo $mf_template_path;?>/css/template_css.css" rel="stylesheet" type="text/css" /><script language="javascript" type="text/javascript" src="<?php echo $mf_template_path;?>/scripts/mf.script.js"></script><link href="<?php echo $mf_template_path;?>/css/colors/<?php echo $mf_color; ?>.css" rel="stylesheet" type="text/css" /><?php genMenuHead(); ?><?php //genColorHead(); ?><?php if ( $my->id ) { initEditor(); } ?><!--[if lte IE 6]><style type="text/css">.clearfix { height: 1%;}</style><![endif]--><!--[if gte IE 7.0]><style type="text/css">.clearfix { display: inline-block;}</style><![endif]--><link rel="icon" href="<?php echo $mf_template_path;?>/favicon.ico" type="image/x-icon"></head><body id="bd" class="<?php echo "$mf_width fs".$mf_font_size;?>"><a title="Skip to content" href="#Content" style="display: none;">Skip to content</a><!-- BEGIN: HEADER --><a name="Top" id="Top"></a><div id="mf-headerwrap"> <div id="mf-header" class="clearfix" style="background: url(<?php echo $headerimage; ?>) no-repeat bottom right;"> <?php if ($mf_tool || mosCountModules('user4')) {?> <div id="mf-usertoolswrap"> <div id="mf-usertools"> <?php genToolMenu($mf_tool & 1); /*screen tool*/ ?> <?php if (mosCountModules('user4')) {?> <div id="mf-search"> <?php mosLoadModules ( 'user4', -1 ); ?> </div> <?php } ?> </div> </div> <?php } ?> <h1> <a href="index.php"><img src="<?php echo $mf_template_path;?>/images/logo.png" alt="<?php echo $mosConfig_sitename?>" /></a> </h1> <!-- BEGIN: MAIN NAVIGATION --> <div id="mf-mainnav"> <?php switch ($mf_menutype) { case 4: echo $topnav; break; } ?> </div> <!-- END: MAIN NAVIGATION --> </div> </div><!-- END: HEADER --><div id="mf-containerwrap" class="clearfix"><div id="mf-container"> <!-- BEGIN: CONTENT --> <div id="mf-mainbody<?php echo $divid; ?>"> <a name="Content" id="Content"></a> <div id="mf-content"> <?php if (mosCountModules('user5')) { ?> <div id="mf-coolads"> <?php mosLoadModules('user5', -2); ?> </div> <?php } ?> <div id="mf-pathway"> <?php if (strtolower($option) != 'com_frontpage'){ ?> <?php mosPathway(); ?> <?php } ?> </div> <?php mosMainBody(); ?> </div> <?php if ($mf_left) { ?> <!-- BEGIN: LEFT COLUMN --> <div id="mf-leftcol"> <?php echo mosLoadModules ( 'left',-3 ); ?> </div> <!-- END: LEFT COLUMN --> <?php } ?> </div> <!-- END: CONTENT --> <?php if ($mf_right) { ?> <!-- BEGIN: RIGHT COLUMN --> <div id="mf-rightcol"> <?php echo mosLoadModules ( 'right',-3 ); ?> </div> <br /> <!-- END: RIGHT COLUMN --> <?php } ?></div></div><!-- BEGIN: FOOTER --><div id="mf-footerwrap"> <div id="mf-footer"> <?php $user1divstyle = ""; $user2divstyle = ""; $topdivstyle = " box-ended"; if ( !mosCountModules('top') ) { $user2divstyle = " box-ended"; } if ( !mosCountModules('user2') ) { $user1divstyle = " box-ended"; } ?> <?php if ($bottommodule) { ?> <!-- BEGIN: SPOTLIGHT --> <div id="mf-spotlight" class="mf-spotlight clearfix"> <?php if ( mosCountModules('user1') ) { ?> <div class="mf-box<?php echo $user1divstyle; ?>" style="width: <?php echo $divwidth ?>;"> <?php mosLoadModules ( 'user1', -2 ); ?> </div> <?php } ?> <?php if ( mosCountModules('user2') ) { ?> <div class="mf-box<?php echo $user2divstyle; ?>" style="width: <?php echo $divwidth ?>;"> <?php mosLoadModules ( 'user2', -2 ); ?> </div> <?php } ?> <?php if ( mosCountModules('top') ) { ?> <div class="mf-box<?php echo $topdivstyle; ?>" style="width: <?php echo $divwidth ?>;"> <?php mosLoadModules ( 'top', -2 ); ?> </div> <?php } ?> </div> <!-- END: SPOTLIGHT --> <?php } ?> <div id="mf-certwrap"> <p id="mf-bottomline"> </p> <div id="mf-cert"> <p><?php include_once( $mf_template_absolute_path.'/footer.php' ); ?></p> </div> </div> </div></div><?php mosLoadModules( 'debug', -1 );?></body></html>