function wptouch_core_header_enqueue()
{
    $version = get_bloginfo('version');
    if (!bnc_wptouch_is_exclusive()) {
        wp_enqueue_script('wptouch-core', '' . compat_get_plugin_url('wptouch') . '/themes/core/core.js', array('jquery'), '1.9');
        wp_head();
    } elseif (bnc_wptouch_is_exclusive()) {
        echo "<script src='" . get_bloginfo('wpurl') . "/wp-includes/js/jquery/jquery.js' type='text/javascript' charset='utf-8'></script>\n";
        echo "<script src='" . compat_get_plugin_url('wptouch') . "/themes/core/core.js' type='text/javascript' charset='utf-8'></script>\n";
    }
}
Exemple #2
0
    ?>
		<p><?php 
    _e('Powered by', 'wptouch');
    ?>
 <a href="http://www.wordpress.org/"><?php 
    _e('WordPress', 'wptouch');
    ?>
</a> <?php 
    _e('+', 'wptouch');
    ?>
 <a href="http://www.bravenewcode.com/products/wptouch-pro"><?php 
    WPtouch();
    ?>
</a></p>
	<?php 
}
?>
	<?php 
if (!bnc_wptouch_is_exclusive()) {
    wp_footer();
}
?>
</div>

<?php 
wptouch_get_stats();
// WPtouch theme designed and developed by Dale Mugford and Duane Storey @ BraveNewCode.com
// If you modify it for yourself, please keep the link credit *visible* in the footer (and keep the WordPress credit, too!) that's all we ask.
?>
</body>
</html>
Exemple #3
0
/**
 * Check if wptouch is set on exclusive. This means that, if plugin is installed,
 * it checks if option for not loading styles and scripts into header or footer is on.
 * @return bool
 */
function fa_is_wptouch_exclusive()
{
    $result = false;
    // wptouch has an option to disable scripts and stylesheets in header/footer
    if (function_exists('bnc_wptouch_is_exclusive')) {
        $result = bnc_wptouch_is_exclusive();
    }
    return $result;
}