C:\xampp\htdocs\landing\wp-content\themes\pennews\inc\custom-css\color-sidebar.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
if ( function_exists'penci_customizer_color_sidebar' ) ) {
    return;
}
function 
penci_customizer_color_sidebar() {
    
$css '';


    
$background_title_color    penci_get_theme_mod'pcolor_sidebar_bgtitle' );
    
$block_title_off_uppercase penci_get_theme_mod'penci_off_uppearcase_block_title' );
    
$title_color               penci_get_theme_mod'pcolor_sidebar_title' );
    
$title_hover_color         penci_get_theme_mod'pcolor_sidebar_htitle' );

    
$bordertop_color    penci_get_theme_mod'pcolor_sidebar_bordertop' );
    
$borderbottom_color penci_get_theme_mod'pcolor_sidebar_border_bottom' );
    
$borderleft_color   penci_get_theme_mod'pcolor_sidebar_border_left' );
    
$borderright_color  penci_get_theme_mod'pcolor_sidebar_border_right' );
    
$border_line_color  penci_get_theme_mod'pcolor_sidebar_border_line' );


    
$id '.penci-widget-sidebar';

    
$title_temp '%s .penci-block__title a, %s .penci-block__title span{ color:%s !important; } %s .penci-block-heading:after{ background-color:%s !important; }';


    if ( 
$bordertop_color ) {
        
$css .= sprintf'%s.style-title-1:not(.footer-widget) .penci-block__title:before{ border-top-color:%s; }'esc_attr$id ), esc_attr$bordertop_color ) );
        
$css .= sprintf'%s.style-title-10:not(.footer-widget) .penci-block-heading{ border-top-color:%s; }'esc_attr$id ), esc_attr$bordertop_color ) );
    }
    if ( 
$background_title_color ) :
        
$css .= sprintf'%s .penci-block__title a, %s .penci-block__title span{ background-color:%s !important; }',
            
esc_attr$id ), esc_attr$id ), esc_attr$background_title_color ) );

        
$css .= sprintf'%s.style-title-9 .penci-block-heading, %s.style-title-13 .penci-block-heading{ background-color:%s !important; }',
            
esc_attr$id ),esc_attr$id ), esc_attr$background_title_color ) );

        
$css .= sprintf'%s.style-title-13 .penci-block__title:after{ border-top-color:%s !important; }',
            
esc_attr$id ), esc_attr$background_title_color ) );

        
$css .= sprintf'%s.style-title-11:not(.footer-widget) .penci-slider-nav { background-color:%s !important; }',
            
esc_attr$id ), esc_attr$background_title_color ) );

    endif;
    
    if ( 
$title_color ) : $css .= sprintf$title_tempesc_attr$id ), esc_attr$id ), esc_attr$title_color ), esc_attr$id ), esc_attr$title_color ) ); endif;
    if ( 
$title_hover_color ) : $css .= sprintf'%s .penci-block__title a:hover{ color:%s !important; }'esc_attr$id ), esc_attr$title_hover_color ) ); endif;
    if ( 
$block_title_off_uppercase ) : $css .= sprintf'%s .penci-block__title{ text-transform: none; }'esc_attr$id ) ); endif;

    if ( 
$borderbottom_color ) {
        
$css .= sprintf'%s .penci-block-heading{ border-bottom-color:%s !important; }'esc_attr$id ), esc_attr$borderbottom_color ) );
        
$css .= sprintf'%s.style-title-5 .penci-block-heading:after{ background-color:%s !important; }'esc_attr$id ), esc_attr$borderbottom_color ) );
    }

    if( 
$borderleft_color ) {
        
$css .= sprintf'%s.style-title-9:not(.footer-widget) .penci-block-heading{ border-left-color:%s;border-right-color: transparent; }'esc_attr$id ), esc_attr$borderleft_color ) );


        
$css .= sprintf'%s.style-title-10 .penci-block-heading{ border-left-color:%s; }'esc_attr$id ), esc_attr$borderleft_color ) );
        
$css .= sprintf'%s.style-title-10 .penci-block-heading:after{ background-color:%s; }'esc_attr$id ), esc_attr$borderleft_color ) );
    }

    if( 
$borderright_color ) {
        
$css .= sprintf'%s.style-title-9.style-title-right .penci-block-heading{ border-right-color:%s;border-left-color: transparent; }'esc_attr$id ), esc_attr$borderleft_color ) );

        
$css .= sprintf'%s.style-title-10.style-title-right .penci-block-heading{ border-right-color:%s; }'esc_attr$id ), esc_attr$borderright_color ) );
        
$css .= sprintf'%s.style-title-10.style-title-right .penci-block-heading:after{ background-color:%s; }'esc_attr$id ), esc_attr$borderright_color ) );
    }

    if ( 
$border_line_color ) {
        
$css .= sprintf'%s.style-title-6 .penci-block__title a:before,
         %s.style-title-6 .penci-block__title a:after,
         %s.style-title-6 .penci-block__title span:before,
         %s.style-title-6 .penci-block__title span:after{ border-top-color:%s !important; }'
,
            
esc_attr$id ),
            
esc_attr$id ),
            
esc_attr$id ),
            
esc_attr$id ),
            
esc_attr$border_line_color )
        );

        
$css .= sprintf'%s.style-title-11 .penci-block__title:after{ background-color:%s !important; }',
            
esc_attr$id ),
            
esc_attr$border_line_color )
        );
    }


    
$link_color       penci_get_theme_mod'pcolor_sidebar_link' );
    
$link_hcolor      penci_get_theme_mod'pcolor_sidebar_hlink' );
    
$text_color       penci_get_theme_mod'pcolor_sidebar_text_color' );
    
$background_color penci_get_theme_mod'pcolor_sidebar_backg_color' );
    
$post_meta_color  penci_get_theme_mod'pcolor_sidebar_meta_color' );


    if ( 
$link_color ) :
        
$css .= sprintf'.penci-widget-sidebar a:not( .button ):not( .penci_pmeta-link ){ color:%s;border-color:%s; }'esc_attr$link_color ), esc_attr$link_color ) );
    endif;

    if ( 
$link_hcolor ) :
        
$css .= sprintf'.penci-widget-sidebar a:not( .button ):hover{ color:%s;border-color:%s; }.widget .tagcloud a{background: transparent; !important; }',
            
esc_attr$link_hcolor ), esc_attr$link_hcolor ) );
    endif;

    if ( 
$background_color ) :
        
$css .= '.penci-widget-sidebar,.penci_dis_padding_bw .penci-widget-sidebar{ background-color: ' esc_attr$background_color ) . ';}';
    endif;

    if ( 
$post_meta_color ) :
        
$css .= '.penci-widget-sidebar .penci_post-meta{ color: ' esc_attr$post_meta_color ) . ';}';
    endif;

    if ( 
$text_color ) :
        
$css .= '.widget.penci-widget-sidebar,';
        
$css .= '.widget.penci-widget-sidebar cite,';
        
$css .= '.widget.penci-widget-sidebar ul li{ color: ' esc_attr$text_color ) . ';}';
    endif;

    
$sb_tagcolud_color            penci_get_theme_mod'pcolor_sb_tagcolud_color' );
    
$pcolor_sb_tagcolud_borcolor  penci_get_theme_mod'pcolor_sb_tagcolud_borcolor' );
    
$pcolor_sb_tagcolud_bgcolor   penci_get_theme_mod'pcolor_sb_tagcolud_bgcolor' );
    
$pcolor_sb_tagcolud_hcolor    penci_get_theme_mod'pcolor_sb_tagcolud_hcolor' );
    
$pcolor_sb_tagcolud_hborcolor penci_get_theme_mod'pcolor_sb_tagcolud_hborcolor' );
    
$pcolor_sb_tagcolud_hbgcolor  penci_get_theme_mod'pcolor_sb_tagcolud_hbgcolor' );

    
$css_tagcloud $css_tagcloud_hover '';

    if ( 
$sb_tagcolud_color ) {
        
$css_tagcloud .= 'color: ' esc_attr$sb_tagcolud_color ) . ';';
    }

    if ( 
$pcolor_sb_tagcolud_borcolor ) {
        
$css_tagcloud .= 'border-color: ' esc_attr$pcolor_sb_tagcolud_borcolor ) . ';';
    }

    if ( 
$pcolor_sb_tagcolud_bgcolor ) {
        
$css_tagcloud .= 'background-color: ' esc_attr$pcolor_sb_tagcolud_bgcolor ) . ';';
    }

    
$css .= '#main .widget .tagcloud a{ ' . ( $css_tagcloud ) . '}';

    if ( 
$pcolor_sb_tagcolud_hcolor ) {
        
$css_tagcloud_hover .= 'color: ' esc_attr$pcolor_sb_tagcolud_hcolor ) . ';';
    }

    if ( 
$pcolor_sb_tagcolud_hborcolor ) {
        
$css_tagcloud_hover .= 'border-color: ' esc_attr$pcolor_sb_tagcolud_hborcolor ) . ';';
    }

    if ( 
$pcolor_sb_tagcolud_hbgcolor ) {
        
$css_tagcloud_hover .= 'background-color: ' esc_attr$pcolor_sb_tagcolud_hbgcolor ) . ';';
    }
    
$css .= '#main .widget .tagcloud a:hover{' . ( $css_tagcloud_hover ) . '}';

    return 
$css;
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586