Ejemplo n.º 1
0
function _get_override_css_files()
{
    $url_part = _get_sections();
    $mypath = "/var/www-d6/docroot";
    $files = array();
    // FIXME temporary hack for avc development
    if (_get_bucket() == 'avc') {
        return array('/css/avc-sunshine.css');
    }
    for ($len = 1; $len <= count($url_part); $len++) {
        $url = array_slice($url_part, 0, $len);
        $file_name = '/css/' . join('_', $url) . '.css';
        if (is_file($mypath . $file_name)) {
            $output .= '<link rel="stylesheet" type="text/css" href="' . $file_name . "\" />\n";
            $files[] = $file_name;
        }
    }
    return $files;
}
Ejemplo n.º 2
0
      <?php 
if ($footer_region) {
    ?>
        <div id="footer-region"><?php 
    print $footer_region;
    ?>
</div>
      <?php 
}
?>
      <?php 
if ($footer_message) {
    ?>
        <div id="footer-message">
		<?php 
    $bucket = _get_bucket();
    if ($bucket != "home" && $bucket != "avc") {
        print "<img style=\"position:relative;top:16px;\" src=\"/css/images/leaf_rust_gold.jpg\">";
    }
    print $footer_message;
    $date = date('Y');
    print "<br />University of Prince Edward Island, 550 University Avenue, Charlottetown, PE, Canada C1A 4P3<br />\r\n\t\t&copy; {$date} | University of Prince Edward Island | All Rights Reserved ";
    ?>
		

		</div>
      <?php 
}
?>
      <?php 
$logo_path = base_path() . path_to_theme() . "/images/" . get_newsflash_style();
Ejemplo n.º 3
0
<!-- google analytics/quancast code. -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("<?php 
echo $_ga;
?>
");
<? if ((_get_bucket() == 'home' && arg(0) == 'node' && arg(1) == '190')): // campuslinks page ?>
pageTracker._trackPageview("/404.html?page=" + document.location.pathname + document.location.search + "&from=" + document.referrer);
<? else: ?>
pageTracker._trackPageview();
<? endif; ?>

} catch(err) {}</script>
<!-- Start Quantcast tag -->
<script type="text/javascript">
_qoptions={
qacct:"p-73x8TBYuYZv9-"
};
</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
<noscript>
<img src="http://pixel.quantserve.com/pixel/p-73x8TBYuYZv9-.gif" style="display: none;" height="1" width="1" alt="Quantcast"/>
</noscript>
<!-- End Quantcast tag -->
Ejemplo n.º 4
0
<!-- google analytics/quancast code. -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("<?php 
echo $_ga;
?>
");
<? if (function_exists('_get_bucket') && (_get_bucket() == 'home' && arg(0) == 'node' && arg(1) == '190')): // campuslinks page ?>
pageTracker._trackPageview("/404.html?page=" + document.location.pathname + document.location.search + "&from=" + document.referrer);
<? else: ?>
pageTracker._trackPageview();
<? endif; ?>

} catch(err) {}</script>
<!-- Start Quantcast tag -->
<script type="text/javascript">
_qoptions={
qacct:"p-73x8TBYuYZv9-"
};
</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
<noscript>
<img src="http://pixel.quantserve.com/pixel/p-73x8TBYuYZv9-.gif" style="display: none;" height="1" width="1" alt="Quantcast"/>
</noscript>
<!-- End Quantcast tag -->
Ejemplo n.º 5
0
  <?php 
}
?>
</head>
<body<?php 
print phptemplate_body_class($sidebar_left, $sidebar_right);
?>
>

<?php 
include "site-includes/00-primarynav.php";
include "site-includes/01-topsection.php";
?>

<?
	if (_get_bucket() == 'home') {
		include ('site-includes/02-home.tpl.php');
	}else {
  		include ('site-includes/02-second.tpl.php');
	}
	include ('site-includes/03-footer.php');
?>	
<?php 
print $closure;
?>

<?php 
if ($_SERVER['REMOTE_ADDR'] == '137.149.3.48' || $_SERVER['REMOTE_ADDR'] == '137.149.3.28') {
    $_ga = 'UA-7323270-1';
} else {
    $_ga = 'UA-7323270-2';