예제 #1
0
        color: <?php 
echo esc_attr(get_theme_mod('mythemes-header-title-color', '#e53932'));
?>
    }
</style>

<?php 
//- DESCRIPTION COLOR, HOVER COLOR -//
?>

<style type="text/css" id="mythemes-header-description-color" media="all">

    <?php 
$hex = esc_attr(get_theme_mod('mythemes-header-description-color', '#000000'));
$rgba1 = 'rgba( ' . mythemes_tools::hex2rgb($hex) . ', 0.55 )';
$rgba2 = 'rgba( ' . mythemes_tools::hex2rgb($hex) . ', 1.0 )';
?>

    div.mythemes-header a.header-description{
        color: <?php 
echo esc_attr($rgba1);
?>
;
    }
    div.mythemes-header a.header-description:hover{
        color: <?php 
echo esc_attr($rgba2);
?>
;
    }
</style>
예제 #2
0
    $first_btn_class = '';
    /* HEADER SECOND BUTTON */
    $second_btn = (bool) mythemes_mod('second-btn', true);
    $second_btn_class = '';
}
?>

<div class="mythemes-header overflow-wrapper parallax-container <?php 
echo esc_attr($mythemes_header_class);
?>
" style="height: <?php 
echo absint($header_height);
?>
px;">
    <div class="valign-cell-wrapper" style="background: rgba( <?php 
echo mythemes_tools::hex2rgb(esc_attr($header_mask_color));
?>
, <?php 
echo floatval($header_mask_opacity);
?>
 );">

        <!-- VERTICAL ALIGN CENTER -->
        <div class="valign-cell">
            
                <div class="row">
                    <div class="col-lg-12">
                        <?php 
/* HEADER BRANDING  */
if ($header_logo) {
    echo '<a class="mythemes-logo ' . esc_attr($header_logo_class) . '" href="' . esc_url(home_url('/')) . '" title="' . esc_attr($blog_title . ' - ' . $blog_description) . '">';
예제 #3
0
$hd_bkg_color = esc_attr(mythemes_mod('header-background-color', '#343b43'));
$hd_color = esc_attr(mythemes_mod('header-title-color', '#ffffff'));
$desc_color = esc_attr('rgba( ' . mythemes_tools::hex2rgb(mythemes_mod('header-description-color', '#ffffff')) . ' , 0.5 )');
$desc_color_h = esc_attr('rgba( ' . mythemes_tools::hex2rgb(mythemes_mod('header-description-color', '#ffffff')) . ' , 0.7 )');
/* GENERATED COLORS */
$bg_color_rgba = esc_attr('rgba( ' . mythemes_tools::hex2rgb($bg_color) . ' , 0.91 )');
$hd_btn1_color = esc_attr('rgba( ' . mythemes_tools::hex2rgb($btn1_color) . ' , 0.4 )');
$hd_btn1_border = esc_attr('rgba( ' . mythemes_tools::hex2rgb($btn1_color) . ' , 0.2 )');
$hd_btn1_bkg = esc_attr('rgba( ' . mythemes_tools::hex2rgb($btn1_color) . ' , 0.03 )');
$hd_btn1_color_ = esc_attr('rgba( ' . mythemes_tools::hex2rgb($btn1_color) . ' , 0.9 )');
$hd_btn1_border_ = esc_attr('rgba( ' . mythemes_tools::hex2rgb($btn1_color) . ' , 0.7 )');
$hd_btn2_color = esc_attr('rgba( ' . mythemes_tools::hex2rgb($btn2_color) . ' , 0.4 )');
$hd_btn2_border = esc_attr('rgba( ' . mythemes_tools::hex2rgb($btn2_color) . ' , 0.2 )');
$hd_btn2_bkg = esc_attr('rgba( ' . mythemes_tools::hex2rgb($btn2_color) . ' , 0.03 )');
$hd_btn2_color_ = esc_attr('rgba( ' . mythemes_tools::hex2rgb($btn2_color) . ' , 0.9 )');
$hd_btn2_border_ = esc_attr('rgba( ' . mythemes_tools::hex2rgb($btn2_color) . ' , 0.7 )');
$nav_1 = esc_attr(mythemes_tools::brightness($color_1, 60));
$nav_2 = esc_attr(mythemes_tools::brightness($color_1, -60));
$link_1 = esc_attr(mythemes_tools::brightness($color_1, 30));
$link_2 = esc_attr(mythemes_tools::brightness($color_2, 30));
$link_3 = esc_attr(mythemes_tools::brightness($color_3, 30));
$btn_border_1 = esc_attr(mythemes_tools::brightness($color_1, -40));
$btn_border_2 = esc_attr(mythemes_tools::brightness($color_2, -40));
$footer_p = esc_attr(mythemes_tools::brightness($color_1, 95));
$footer_a = esc_attr(mythemes_tools::brightness($color_1, 150));
$footer_ah = esc_attr(mythemes_tools::brightness($color_1, 190));
?>

<style type="text/css" id="mythemes-custom-style-header">
    .mythemes-header a.header-description{
        color: <?php 
예제 #4
0
    div.widget_post_tags div.tagcloud a,
    div.widget_tag_cloud div.tagcloud a,
    .content-border article div.post-meta-tags a,
    .content-border article div.post-meta-categories a:hover,
    div.comment-respond h3.comment-reply-title small a:hover{
        border-bottom: 2px solid <?php 
echo mythemes_tools::brightness($second_color, -40);
?>
;
    }

    nav.user-nav div > ul > li,
    nav.user-nav > ul > li{
        border-left: 1px solid <?php 
echo mythemes_tools::brightness($first_color, 30);
?>
;
    }

    .single-portfolio div.widget-collections a:hover{
        border-color: rgba( <?php 
echo mythemes_tools::hex2rgb($first_color);
?>
 , 0.5 );
    }
</style>
<style type="text/css">
    <?php 
echo myThemes::get('css');
?>
</style>
예제 #5
0
?>
<div class="mythemes-header mythemes-bkg-image" style="<?php 
echo $bkg;
?>
 height: <?php 
echo myThemes::get('header-height');
?>
px;" data-bkg-image="<?php 
echo $header_img;
?>
" data-bkg-color="<?php 
echo myThemes::get('mask-color');
?>
">
    <div style="background: rgba( <?php 
echo mythemes_tools::hex2rgb(myThemes::get('mask-color'));
?>
, <?php 
echo (double) myThemes::get('mask-opacity') / 100;
?>
 ); height: <?php 
echo myThemes::get('header-height');
?>
px;">

        <div class="overflow-wrapper" style="height: <?php 
echo (int) myThemes::get('header-height');
?>
px;">
            <div class="valign-cell-wrapper">
예제 #6
0
    static function admin()
    {
        wp_enqueue_style('mythemes-google-fonts', 'http://fonts.googleapis.com/css?family=Quicksand:300,400,700|Roboto:400,300,100,500,700&subset=latin,cyrillic-ext,latin-ext,cyrillic,greek-ext,greek,vietnamese');
        wp_enqueue_style('mythemes-effects', get_template_directory_uri() . '/media/css/effects.css');
        wp_enqueue_style('mythemes-header', get_template_directory_uri() . '/media/css/header.css');
        $first_color = myThemes::get('first-color');
        $second_color = myThemes::get('second-color');
        ?>
                <style>
                    div.mythemes-header div.overflow-wrapper,
                    div.mythemes-header div.overflow-wrapper:after,
                    div.mythemes-header div.overflow-wrapper::before,
                    div.mythemes-header div.overflow-wrapper:before{
                        -moz-box-sizing: border-box;
                             box-sizing: border-box;
                    }
                    div.mythemes-header div.overflow-wrapper{
                        margin: 0px;
                    }
                    .mythemes-header-animation .mythemes-logo{
                        color: #<?php 
        echo get_header_textcolor();
        ?>
;
                    }
                    .mythemes-header-animation .mythemes-description{
                        color: rgba(<?php 
        echo mythemes_tools::hex2rgb(get_header_textcolor());
        ?>
 , 0.65 );
                    }
                    div.mythemes-header .valign-cell p.buttons a.btn{
                        background: <?php 
        echo myThemes::get('first-color');
        ?>
                    }
                    div.mythemes-header .valign-cell p.buttons a.btn.second-button{
                        background: <?php 
        echo myThemes::get('second-color');
        ?>
                    }
                    /* DARK BORDER BOTTOM */
                    .btn{
                        font-family: Quicksand, sans-serif, Arial, serif;
                        font-size: 13px;

                        padding: 12px 25px;
                        border-bottom: 2px solid <?php 
        echo mythemes_tools::brightness($first_color, -40);
        ?>
;
                    }

                    .btn.second-button{
                        border-bottom: 2px solid <?php 
        echo mythemes_tools::brightness($second_color, -40);
        ?>
;
                    }
                </style>
            <?php 
    }