Пример #1
0
function cloudfw_module_register_fontawesome()
{
    global $wp_styles;
    /** Register FontAwesome */
    wp_register_style('theme-fontawesome', cloudfw_relative_path(dirname(__FILE__)) . '/source/css/font-awesome.min.css', 'theme-bootstrap', cloudfw_get_combined_version());
    wp_enqueue_style('theme-fontawesome');
    /** Register FontAwesome for IE */
    wp_register_style('theme-fontawesome-ie7', cloudfw_relative_path(dirname(__FILE__)) . '/source/css/font-awesome-ie7.min.css', 'theme-bootstrap', cloudfw_get_combined_version());
    $wp_styles->add_data('theme-fontawesome-ie7', 'conditional', 'IE 7');
    wp_enqueue_style('theme-fontawesome-ie7');
}
Пример #2
0
/**
 * Adds the iconmoon css file into the css enqueue.
 * 
 * @return null
 */
function cloudfw_module_enqueue_icomoon()
{
    wp_register_style('theme-icomoon', cloudfw_relative_path(dirname(__FILE__)) . '/source/css/icomoon.css', 'theme-bootstrap', cloudfw_get_combined_version());
    wp_enqueue_style('theme-icomoon');
}