Exemplo n.º 1
0
function add_custom_style()
{
    global $wp_styles;
    $mt_options = mt_get_plugin_options(true);
    if (!empty($mt_options['body_font_family'])) {
        $font_link = '';
        $font_link = mt_get_google_font(esc_attr($mt_options['body_font_family']));
        if ($font_link != '') {
            wp_register_style('_custom_fonts', $font_link);
            $wp_styles->do_items('_custom_fonts');
        }
    }
    wp_register_style('_iconstyle', MAINTENANCE_URI . 'load/images/fonts-icon/icons.style.css');
    wp_register_style('_style', MAINTENANCE_URI . 'load/style.css');
    $wp_styles->do_items('_iconstyle');
    /*Add inline custom style*/
    get_options_style();
    $wp_styles->do_items('_style');
}
Exemplo n.º 2
0
function add_custom_style()
{
    global $wp_styles;
    $mt_options = mt_get_plugin_options(true);
    if (!empty($mt_options['body_font_family'])) {
        $font_link = '';
        $font_link = mt_get_google_font(esc_attr($mt_options['body_font_family']));
        $font_subset = esc_attr($mt_options['body_font_subset']);
        $font_link .= "&subset=" . $font_subset . "";
        if ($font_link != '') {
            wp_register_style('_custom_fonts', $font_link);
            $wp_styles->do_items('_custom_fonts');
        }
    }
    wp_register_style('_iconstyle_fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
    wp_register_style('_iconstyle_fi', 'https://cdn.jsdelivr.net/foundation-icons/3.0/foundation-icons.min.css');
    wp_register_style('_style', MAINTENANCE_URI . 'load/style.css');
    /*Add inline custom style*/
    get_options_style();
    $wp_styles->do_items('_iconstyle_fa');
    $wp_styles->do_items('_iconstyle_fi');
    $wp_styles->do_items('_style');
}