Exemplo n.º 1
0
  			  </div>
        </div>
        <?php 
dynamic_sidebar('footer');
?>
  		</div><!--/.grid__item -->
  
  	</div><!--/.grid -->
  </div><!--/.wrapper -->
</footer>

<!--[if (gte IE 6)&(lte IE 8)]>
<script src="<?php 
getThemePath();
?>
/dist/js/selectivizr.js"></script>
<![endif]-->

<?php 
wp_footer();
?>

<noscript>
  <link rel="stylesheet" href="<?php 
getThemePath();
?>
/dist/css/no-js.css">
</noscript>

</body>
</html>
Exemplo n.º 2
0
    //returns http://example.com/rss/plugins/
    return guessTransportProto() . $_SERVER['HTTP_HOST'] . getPath() . RSS_PLUGINS_DIR . "/";
}
/**
 * loads the specified plugin file
 */
function rss_load_plugin($plugin_filename)
{
    set_loading_plugin($plugin_filename);
    if (file_exists(rss_home_dir() . RSS_PLUGINS_DIR . '/' . $plugin_filename)) {
        rss_require(RSS_PLUGINS_DIR . '/' . $plugin_filename);
    }
    set_loading_plugin('');
}
/**
 * loads the active plugins from the config, instantiates
 * them
 */
foreach (getConfig('rss.config.plugins') as $pf) {
    rss_load_plugin($pf);
}
/*
 * autoload plugins specific to a theme without the
 * need to add them to config
 * all plugins def must be inside a unique file called plugins.php that
 * do all the works
 */
$mythemeplugin = getThemePath(GREGARIUS_HOME) . "plugins.php";
if (file_exists($mythemeplugin)) {
    require_once $mythemeplugin;
}
Exemplo n.º 3
0
/favicon.ico" rel="shortcut icon">

<script>
  (function(d) {
    var config = {
      kitId: 'gxo1ywi',
      scriptTimeout: 3000
    },
    h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='//use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
  })(document);
</script>

<?php 
wp_head();
?>

<script>
var getThemePath = '<?php 
echo getThemePath();
?>
';

/* grunticon Stylesheet Loader | https://github.com/filamentgroup/grunticon | (c) 2012 Scott Jehl, Filament Group, Inc. | MIT license. */
window.grunticon=function(e){if(e&&3===e.length){var t=window,n=!(!t.document.createElementNS||!t.document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect||!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||window.opera&&-1===navigator.userAgent.indexOf("Chrome")),o=function(o){var r=t.document.createElement("link"),a=t.document.getElementsByTagName("script")[0];r.rel="stylesheet",r.href=e[o&&n?0:o?1:2],a.parentNode.insertBefore(r,a)},r=new t.Image;r.onerror=function(){o(!1)},r.onload=function(){o(1===r.width&&1===r.height)},r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}};
grunticon( [ getThemePath+"/dist/images/icons.data.svg.css", getThemePath+"/dist/images/icons.data.png.css", getThemePath+"/dist/images/icons.fallback.css" ] );</script>
<noscript><link href="<?php 
getImagePath();
?>
\icons.fallback.css" rel="stylesheet"></noscript>

</head>
Exemplo n.º 4
0
function rss_theme_path()
{
    return getThemePath();
}
Exemplo n.º 5
0
<?php

// Site and Theme Paths.
// Returns or echo URLs
function getThemePath($return = false)
{
    $url = get_template_directory_uri();
    if ($return === true) {
        return $url;
    } else {
        echo $url;
    }
}
$themePath = getThemePath(true);
function getBasePath($return = false)
{
    $url = site_url();
    if ($return === true) {
        return $url;
    } else {
        echo $url;
    }
}
$basePath = getBasePath(true);
function getImagePath($return = false)
{
    $url = get_template_directory_uri() . '/dist/images';
    if ($return === true) {
        return $url;
    } else {
        echo $url;
Exemplo n.º 6
0
// Localization
_pf('Loading l10n...');
require_once 'cls/l10n.php';
$GLOBALS['rssl10n'] = new RSSl10n();
$lang = $GLOBALS['rssl10n']->getLocale();
_pf('done');
// Theme  specific l10n handling
list($theme, $media) = getActualTheme();
if (file_exists(RSS_THEME_DIR . "/{$theme}/intl/{$lang}.php")) {
    rss_require(RSS_THEME_DIR . "/{$theme}/intl/{$lang}.php");
} elseif ($lang != "en" && file_exists(RSS_THEME_DIR . "/{$theme}/intl/en.php")) {
    rss_require(RSS_THEME_DIR . "/{$theme}/intl/en.php");
}
//
if (file_exists(getThemePath(GREGARIUS_HOME) . "overrides.php")) {
    rss_require(getThemePath('') . "overrides.php");
}
/*
// Load the right locale
if (defined('OVERRIDE_LOCALE')) {
    setlocale(LC_TIME,constant("OVERRIDE_LOCALE"));
}
elseif (isset($_SERVER["WINDIR"]) && defined("LOCALE_WINDOWS")) {
    setlocale(LC_TIME,constant("LOCALE_WINDOWS"));
}
elseif (defined("LOCALE_LINUX")) {
    setlocale(LC_TIME,constant("LOCALE_LINUX"));
}
else {
    //last chance, we try to guess it
    $mylocale=strtolower(getConfig('rss.output.lang'));