Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 110 lines (102 sloc) 3.422 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
<?php
require_once "config.php";
require_once "functions.php";
require_once "widgets.php";

//turn off warnings
$errlevel = error_reporting();
error_reporting(E_ALL & ~E_WARNING);
if (!include ("layout.php")){
// file was missing so include default theme
require("default-layout.php");
}
// Turn on warnings
error_reporting($errlevel);

if (empty ($arrLayout)) {
require_once("default-layout.php");
}
?>
<html>
<head>
<title>Media Front Page</title>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<script type="text/javascript" language="javascript" src="js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="js/popuptext.js"></script>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="js/highslide/highslide.js"></script>
<link rel="stylesheet" type="text/css" href="js/highslide/highslide.css" />
<script type="text/javascript">
//<![CDATA[
// override Highslide settings here
// instead of editing the highslide.js file
hs.registerOverlay({
html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
position: 'top right',
fade: 2 // fading the semi-transparent overlay looks bad in IE
});
hs.showCredits = false;
hs.graphicsDir = 'js/highslide/graphics/';
hs.wrapperClassName = 'borderless';
//hs.outlineType = 'outer-glow';
//hs.outlineType = 'borderless';
//hs.outlineType = 'rounded-white';
hs.outlineType = null;
//hs.wrapperClassName = 'outer-glow';
hs.dimmingOpacity = 0.75;
//]]>
</script>
<style type="text/css">
.highslide-dimming {
background: black;
}
a.highslide {
border: 0;
}
</style>
<link href="css/widget.css" rel="stylesheet" type="text/css" />
<link href="css/front.css" rel="stylesheet" type="text/css" />
<!-- START: Dynamic Header Inserts From Widgets -->
<?php
foreach( $wIndex as $wId => $widget ) {
renderWidgetHeaders($widget);
}
if(!empty($customStyleSheet)) {
echo "\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"".$customStyleSheet."\">\n";
}
?>

<!-- END: Dynamic Header Inserts From Widgets -->
<script type="text/javascript">InitPopupBox();</script>
</head>

<body>

<div id="main">
<?php
foreach ($arrLayout as $sectionId => $widgets) {
echo "\n\t<ul id=\"".$sectionId."\" class=\"section ui-sortable\">\n";
foreach ($widgets as $wId => $wAttribute) {
echo "\t\t<li id=\"".$wId."\" class=\"widget";
if (!empty($wAttribute["color"])) {
echo " ".$wAttribute["color"];
}
if (!empty($wAttribute["display"])) {
echo " ".$wAttribute["display"];
}
echo "\">";
echo "\t\t\t<div class=\"widget-head\">";
echo "\t\t\t\t<h3>".$wAttribute['title']."</h3>\n";
echo "\t\t\t</div><!-- .widget-head -->\n";
echo "\t\t\t<div class=\"widget-content\">\n";
if(empty($wAttribute['params'])) {
renderWidget($wIndex[$wId]);
} else {
renderWidget($wIndex[$wId], $wAttribute['params']);
}
echo "\t\t\t</div><!-- .widget-content -->\n";
echo "\t\t</li><!-- #".$wId." .widget -->\n";
}
echo "\t</ul><!-- #".$sectionId." .section -->\n";
}

?>
</div><!-- #main -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/widget.js"></script>
</body>
</html>
Something went wrong with that request. Please try again.