Example #1
0
/**
 * Registers JavaScript files for the framework.
 *
 * @access private
 * @return void
 * @since 1.2
 */
function momtaz_register_core_scripts()
{
    $core_scripts = array('less' => array('src' => momtaz_theme_uri('content/scripts/less.min.js'), 'version' => Momtaz::VERSION));
    $core_scripts = apply_filters('momtaz_core_scripts', $core_scripts);
    foreach ($core_scripts as $key => $args) {
        $args = array_merge(array('handle' => $key, 'src' => false, 'deps' => array(), 'version' => false, 'in_footer' => true), $args);
        wp_register_script($args['handle'], $args['src'], $args['deps'], $args['version'], $args['in_footer']);
    }
}
Example #2
0
<head>
<!-- Momtaz Head -->
<meta charset="<?php 
bloginfo('charset');
?>
" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />
<meta name="viewport" content="width=device-width,initial-scale=1" />

<!--[if lt IE 9]>
	<script src="<?php 
echo esc_url(momtaz_theme_uri('content/scripts/html5shiv.min.js'));
?>
"></script>
<![endif]-->

<?php 
Momtaz_Zones::call('head');
?>
<!-- end Momtaz Head -->

<!-- WP Head -->
<?php 
wp_head();
?>
<!-- end WP Head -->
</head>
Example #3
0
/**
 * Registers the framework's 'admin.css' stylesheet file. The function does not load the stylesheet. It merely
 * registers it with WordPress.
 *
 * @return void
 * @since 1.0
 */
function momtaz_admin_register_styles()
{
    // Register the core admin style.
    wp_register_style('momtaz-core-admin', momtaz_theme_uri('content/styles/admin.css'), array(), Momtaz::VERSION);
}