Esempio n. 1
0
File: js_css.php Progetto: rair/yacs
 public static function call_skin_css()
 {
     global $context;
     if (!isset($context['skin'])) {
         return '';
     }
     // retrieve base name of the skin (remove "skin/")
     $skin = substr($context['skin'], 5);
     return Js_css::link_file($context['skin'] . $skin . '.css', 'now');
 }
Esempio n. 2
0
File: page.php Progetto: rair/yacs
 /**
  * link a javascript file in the header of the page
  * 
  * @param string $path 
  */
 public static function load_script($path, $now = false)
 {
     $job = Js_css::link_file($path, 'js', 'header', $now);
     if ($now) {
         echo $job;
     }
 }
Esempio n. 3
0
echo '<footer id="footer_panel" class="mw960p line mod center">' . "\n";
// last <p>
Page::footer();
echo '</footer>' . "\n";
// call jquery
// echo '<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>'."\n";
// echo '<script>window.jQuery || document.write(\'<script src="'.$context['url_to_root'].'skins/boilerplate/js/vendor/jquery-1.8.0.min.js"><\/script>\')</script>'."\n";
// scripts concatenated and minified via ant build script
// <script src="js/plugins.js"></script>
// <script src="js/script.js"></script>
// end scripts
// insert the dynamic footer, if any, including inline scripts
echo $context['page_footer'];
// template layout activation, if needed (http://code.google.com/p/css-template-layout)
// echo '<script>$(function() {$.setTemplateLayout("'.$context['url_to_root'].'skins/starterfive/starterfive.css", "js");});</script>'."\n";
// Google Analytics: change UA-XXXXX-X to be your site's ID.
/*echo '<script>'."\n"
      ."\t"."(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]="."\n"
      ."\t"."function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;"."\n"
      ."\t"."e=o.createElement(i);r=o.getElementsByTagName(i)[0];"."\n"
      ."\t"."e.src='//www.google-analytics.com/analytics.js';"."\n"
      ."\t"."r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));"."\n"
      ."\t"."ga('create','UA-XXXXX-X','auto');ga('send','pageview');"."\n"
  .'</script>'."\n";*/
// CSS3Pie for decoration with old IE browser
echo '<!--[if lt IE 10]>' . "\n";
echo Js_css::link_file('skins/starterfive/js/PIE.js', 'now') . "\n";
echo Js_css::link_file('skins/starterfive/js/pie_enhance_ie.js', 'now') . "\n";
echo '<![endif]-->' . "\n";
echo '</body>' . "\n";
echo '</html>';