/**
  * How to display the widget on the screen.
  */
 function widget($args, $instance)
 {
     extract($args);
     /* Our variables from the widget settings. */
     $title = apply_filters('widget_title', isset($instance['title']) ? $instance['title'] : '');
     $twitter_username = isset($instance['twitter_username']) ? $instance['twitter_username'] : '';
     $twitter_consumer_key = isset($instance['twitter_consumer_key']) ? $instance['twitter_consumer_key'] : '';
     $twitter_consumer_secret = isset($instance['twitter_consumer_secret']) ? $instance['twitter_consumer_secret'] : '';
     $twitter_token_key = isset($instance['twitter_token_key']) ? $instance['twitter_token_key'] : '';
     $twitter_token_secret = isset($instance['twitter_token_secret']) ? $instance['twitter_token_secret'] : '';
     $twitter_count = isset($instance['twitter_count']) ? $instance['twitter_count'] : '';
     if (empty($twitter_consumer_key) || empty($twitter_consumer_secret) || empty($twitter_token_key) || empty($twitter_token_secret)) {
         return;
     }
     $data = getTwitterData(array('mode' => 'user_timeline', 'consumer_key' => $twitter_consumer_key, 'consumer_secret' => $twitter_consumer_secret, 'token' => $twitter_token_key, 'secret' => $twitter_token_secret));
     if (!$data || !isset($data[0]['text'])) {
         return;
     }
     $output = '<ul>';
     $cnt = 0;
     foreach ($data as $tweet) {
         $tweet_date = $tweet['created_at'];
         $date_diff = '<span class="tweet_date"><i class="icon-clock-1"></i>' . getDateOrDifference($tweet_date) . '</span>';
         if (themerex_substr($tweet['text'], 0, 1) == '@') {
             continue;
         }
         $output .= '<li class="theme_text' . ($cnt == $twitter_count - 1 ? ' last' : '') . '"><i class="icon-twitter"></i><a href="https://twitter.com/' . $twitter_username . '" class="username" target="_blank">@' . $tweet['user']['screen_name'] . '</a> ' . twitter_prepare_text($tweet) . $date_diff . '</li>';
         if (++$cnt >= $twitter_count) {
             break;
         }
     }
     $output .= '</ul>';
     if (!empty($output)) {
         /* Before widget (defined by themes). */
         echo $before_widget;
         /* Display the widget title if one was input (before and after defined by themes). */
         echo $before_title . $title . $after_title;
         echo $output;
         /* After widget (defined by themes). */
         echo $after_widget;
     }
 }
示例#2
0
 function themerex_enqueue_script($handle, $src = false, $depts = array(), $ver = null, $in_footer = false)
 {
     if (!is_array($src) && $src !== false && $src !== '') {
         global $THEMEREX_DEBUG_MODE;
         //if (empty($THEMEREX_DEBUG_MODE)) $THEMEREX_DEBUG_MODE = get_theme_option('debug_mode');
         $THEMEREX_DEBUG_MODE = false;
         $theme_dir = get_template_directory();
         $theme_url = get_template_directory_uri();
         $child_dir = get_stylesheet_directory();
         $child_url = get_stylesheet_directory_uri();
         $dir = $url = '';
         if (themerex_strpos($src, $child_url) === 0) {
             $dir = $child_dir;
             $url = $child_url;
         } else {
             if (themerex_strpos($src, $theme_url) === 0) {
                 $dir = $theme_dir;
                 $url = $theme_url;
             }
         }
         if ($dir != '') {
             if ($THEMEREX_DEBUG_MODE == 'no') {
                 if (themerex_substr($src, -3) == '.js') {
                     if (themerex_substr($src, -7) != '.min.js') {
                         $src_min = themerex_substr($src, 0, themerex_strlen($src) - 3) . '.min.js';
                         $file_src = $dir . themerex_substr($src, themerex_strlen($url));
                         $file_min = $dir . themerex_substr($src_min, themerex_strlen($url));
                         if (file_exists($file_min) && filemtime($file_src) <= filemtime($file_min)) {
                             $src = $src_min;
                         }
                     }
                 }
             }
         }
     }
     if (is_array($src)) {
         wp_enqueue_script($handle, $depts, $ver, $in_footer);
     } else {
         wp_enqueue_script($handle, $src, $depts, $ver, $in_footer);
     }
 }
	 	<?php 
    }
    ?>
	</header>
	<?php 
}
?>
	<div class="entry_content">		

		<?php 
if ($post_data['post_protected']) {
    echo $post_data['post_excerpt'];
} else {
    if ($post_data['post_excerpt']) {
        if (in_array($post_data['post_format'], array('standard', 'gallery', 'video', 'audio', 'image'))) {
            $post_excerpt = strip_tags(themerex_substr($post_data['post_excerpt'], 0, $excerpt_length));
        } else {
            $post_excerpt = $post_data['post_excerpt'];
        }
        ?>
				<div class="<?php 
        echo $post_data['post_format'];
        ?>
_text_wrap">
					<?php 
        if (!in_array($post_data['post_format'], array('quote', 'image', 'chat', 'status', 'aside', 'link'))) {
            echo $post_excerpt . '&nbsp;<a href="' . $post_data['post_link'] . '">[...]</a>';
        } else {
            echo $post_excerpt;
        }
        ?>
示例#4
0
 function themerex_compose_styles()
 {
     global $wp_styles, $concatenate_scripts, $compress_css, $THEMEREX_styles_collector;
     if (is_admin() || get_theme_option('compose_scripts') != 'yes' || !is_object($wp_styles)) {
         return;
     }
     //$concatenate_scripts = $compress_css = true;
     $theme_url = get_template_directory_uri();
     foreach ($wp_styles->queue as $style) {
         if (isset($wp_styles->registered[$style]) && themerex_strpos($wp_styles->registered[$style]->src, $theme_url) === 0 && themerex_strpos($wp_styles->registered[$style]->ver, 'no-compose') === false) {
             //$dir = dirname(themerex_substr($wp_styles->registered[$style]->src, themerex_strlen($wp_styles->base_url))).'/';
             $dir = dirname($wp_styles->registered[$style]->src) . '/';
             if (file_exists($file = get_template_directory() . themerex_substr($wp_styles->registered[$style]->src, themerex_strlen($theme_url)))) {
                 $css = file_get_contents($file);
                 if (isset($wp_styles->registered[$style]->extra['after'])) {
                     foreach ($wp_styles->registered[$style]->extra['after'] as $add) {
                         $css .= "\n" . $add . "\n";
                     }
                 }
                 $pos = -1;
                 while (($pos = themerex_strpos($css, 'url(', $pos + 1)) !== false) {
                     if (themerex_substr($css, $pos, 9) == 'url(data:') {
                         continue;
                     }
                     $shift = 0;
                     if (($ch = themerex_substr($css, $pos + 4, 1)) == '"' || $ch == "'") {
                         $shift = 1;
                     }
                     $css = themerex_substr($css, 0, $pos + 4 + $shift) . $dir . themerex_substr($css, $pos + 4 + $shift);
                 }
                 $THEMEREX_styles_collector .= "\n" . $css . "\n";
                 $wp_styles->done[] = $style;
             }
         }
     }
     if ($THEMEREX_styles_collector) {
         echo "\n<!-- Stylesheets composer -->\n<style type=\"text/css\">\n" . $THEMEREX_styles_collector . "\n</style>\n<!-- /Stylesheets composer -->\n";
     }
 }
<?php

$post_title_tag = 'h4';
$style = $opt['style'];
$border = $opt['border'];
/* Reviews */
$review_type = get_custom_option('reviews_first');
$review_avg = $post_data['post_reviews_' . $review_type];
$review_first = get_custom_option('reviews_first');
$review_max = get_custom_option('reviews_max_level');
$review_style = get_custom_option('reviews_style');
$review_color = get_custom_option('review_color');
$review = !empty($review_avg) ? get_review_rating('5stars', $review_avg, $review_max, '#f2c574') : '';
/* /Reviews */
$format_icon = getPostFormatIcon($post_data['post_format']);
$title = '<' . $post_title_tag . ' class="sc_blogger_title sc_title' . (in_array($opt['style'], array('accordion_1', 'accordion_2')) ? ' sc_accordion_title' : '') . '">' . '<a href="' . (in_array($opt['style'], array('accordion_1', 'accordion_2')) ? '#' : $post_data['post_link']) . '">' . (themerex_substr($opt['style'], 0, 6) == 'bubble' ? '<span class="sc_title_bubble_icon ' . ($post_data['post_icon'] != '' ? ' ' . $post_data['post_icon'] : '') . '"' . ($post_data['bubble_color'] != '' ? ' style="background-color:' . $post_data['bubble_color'] . '"' : '') . '></span>' : '') . $post_data['post_title'] . '</a>' . '</' . $post_title_tag . '>';
$info = '<header class="post_info infoPost">';
$info .= $title;
$info .= '<div class="subheader">';
$info .= $review;
$info .= '<span class="icon-clock-1"></span>' . $post_data['post_date'];
$info .= '<span class="separator">|</span>
		 			<a class="icon-comment-1" title="' . sprintf(__('Comments - %s', 'themerex'), $post_data['post_comments']) . '" href="' . $post_data['post_comments_link'] . '">' . $post_data['post_comments'] . '</a>';
$info .= '</div>';
$info .= '</header>';
?>
<article class="sc_blogger_item<?php 
echo (in_array($opt['style'], array('accordion_1', 'accordion_2')) ? ' sc_accordion_item' : '') . ($opt['number'] == $opt['found'] ? ' sc_blogger_item_last' : '') . (sc_param_is_on($opt['scroll']) && ($opt['dir'] == 'vertical' || $opt['style'] == 'date') ? ' sc_scroll_slide swiper-slide' : '') . ($border == "true" ? ' border' : '') . ($opt['number'] == $opt['found'] ? ' last' : '');
?>
">
示例#6
0
function decorateMoreLink($text, $tag_start = '<div class="readmore">', $tag_end = '</div>')
{
    //return preg_replace('/(<a[^>]+class="more-link"[^>]*>[^<]*<\\/a>)/', "{$tag_start}\${1}{$tag_end}", $text);
    $rez = $text;
    if (($pos = themerex_strpos($text, ' class="more-link"><span class="readmore">')) !== false) {
        $i = $pos - 1;
        while ($i > 0) {
            if (themerex_substr($text, $i, 3) == '<a ') {
                if (($pos = themerex_strpos($text, '</span></a>', $pos)) !== false) {
                    $pos += 11;
                    $start = themerex_substr($text, $i - 4, 4) == '<p> ' ? $i - 4 : (themerex_substr($text, $i - 3, 3) == '<p>' ? $i - 3 : $i);
                    $end = themerex_substr($text, $pos, 4) == '</p>' ? $pos + 4 : $pos;
                    $rez = themerex_substr($text, 0, $start) . $tag_start . themerex_substr($text, $i, $pos - $i) . $tag_end . themerex_substr($text, $end);
                    break;
                }
            }
            $i--;
        }
    }
    return $rez;
}
示例#7
0
						<div class="isotopeFiltr"></div>
					<?php 
            }
            ?>
					<section class="masonry grid portfolioNOspacing <?php 
            echo get_custom_option('show_filters') == 'yes' ? 'isotope' : 'isotopeNOanim';
            ?>
">
						<?php 
        }
    }
}
while (have_posts()) {
    the_post();
    $post_number++;
    $post_args = array('layout' => in_array(themerex_substr($blog_style, 0, 7), array('classic', 'masonry', 'portfol')) ? themerex_substr($blog_style, 0, 7) : themerex_substr($blog_style, 0, 7), 'number' => $post_number, 'add_view_more' => false, 'posts_on_page' => $per_page, 'thumb_size' => $blog_style, 'thumb_crop' => themerex_strpos($blog_style, 'masonry') === false, 'strip_teaser' => false, 'parent_cat_id' => $parent_cat_id, 'sidebar' => !in_array($show_sidebar_main, array('none', 'fullwidth')), 'filters' => get_custom_option('show_filters') == 'yes' ? get_custom_option('filter_taxonomy') : '', 'hover' => '', 'hover_dir' => '');
    $post_data = getPostData($post_args);
    showPostLayout($post_args, $post_data);
    if (get_custom_option('show_filters') == 'yes') {
        if (get_custom_option('filter_taxonomy') == 'tags') {
            // Use tags as filter items
            if (count($post_data['post_tags_list']) > 0) {
                foreach ($post_data['post_tags_list'] as $tag) {
                    $flt_ids[$tag->term_id] = $tag->name;
                }
            }
        }
    }
}
if (!$post_number) {
    if (is_search()) {
示例#8
0
文件: footer.php 项目: ccasad/cscwp
							<?php 
    }
    ?>
						</div>
						<div class="copy_socials socPage">
							<ul>
							<?php 
    $socials = get_theme_option('social_icons');
    foreach ($socials as $s) {
        if (empty($s['url'])) {
            continue;
        }
        $sn = basename($s['icon']);
        $sn = themerex_substr($sn, 0, themerex_strrpos($sn, '.'));
        if (($pos = themerex_strrpos($sn, '_')) !== false) {
            $sn = themerex_substr($sn, 0, $pos);
        }
        $soc = themerex_get_socials_url(basename($s['icon']));
        //$s['icon'];
        ?>
								<li><a class="social_icons social_<?php 
        echo $sn;
        ?>
" style="background-image: url(<?php 
        echo $soc;
        ?>
);" target="_blank" href="<?php 
        echo $s['url'];
        ?>
"><span style="background-image: url(<?php 
        echo $soc;
示例#9
0
function sc_graph($atts, $content = null)
{
    if (in_shortcode_blogger()) {
        return '';
    }
    extract(shortcode_atts(array("id" => "", "labels" => "Label1, Label2, Label3", "type" => "Curve", "style" => "", "top" => "", "bottom" => "", "left" => "", "right" => "", "width" => ""), $atts));
    themerex_enqueue_script('diagram-chart', get_template_directory_uri() . '/js/diagram/chart.min.js', array(), null, true);
    themerex_enqueue_script('diagram-raphael', get_template_directory_uri() . '/js/diagram/diagram.raphael.js', array(), null, true);
    themerex_enqueue_script('graph', get_template_directory_uri() . '/js/diagram/Graph.js', array('jquery'), null, true);
    $ed_l = $left !== 'auto' ? themerex_substr($left, -1) == '%' ? '%' : 'px' : '';
    $ed_r = $right !== 'auto' ? themerex_substr($right, -1) == '%' ? '%' : 'px' : '';
    $s = ($top !== '' ? 'margin-top:' . $top . 'px;' : '') . ($bottom !== '' ? 'margin-bottom:' . $bottom . 'px;' : '') . ($left !== '' ? 'margin-left:' . $left . $ed_l . ';' : '') . ($right !== '' ? 'margin-right:' . $right . $ed_r . ';' : '') . ($width !== '' ? 'width:' . $width . 'px;' : '');
    $content = do_shortcode($content);
    if ($type == 'line') {
        $type = 'Line';
    }
    return '<div class="tw-chart-graph tw-animate tw-redraw with-list-desc" data-zero="false" data-labels="' . $labels . '"' . 'data-type="' . $type . '" data-item-height="" data-animation-delay="0" data-animation-offset="90%" style="' . $s . '">' . '<ul class="data" style="display: none;">' . $content . '</ul>' . '<canvas></canvas>' . '</div>';
}
function prepareThemeCustomStyles()
{
    // Custom font
    $fonts = getThemeFontsList(false);
    $font = get_custom_option('theme_font');
    $body_bg = get_custom_option('bg_color');
    $theme_color = get_custom_option('theme_color');
    if (isset($fonts[$font])) {
        addThemeCustomStyle("\n\t\t\tbody, button, input, select, textarea {\n\t\t\t\tfont-family: '" . $font . "', " . $fonts[$font]['family'] . ";\n\t\t\t}\n\t\t\tbody {\n\t\t\t\tbackground: " . $body_bg . "\n\t\t\t}\n\t\t");
    }
    // Custom menu
    if (get_custom_option('menu_colored') == 'yes') {
        $menu_name = 'mainmenu';
        if (($locations = get_nav_menu_locations()) && isset($locations[$menu_name])) {
            $menu = wp_get_nav_menu_object($locations[$menu_name]);
            if (is_object($menu) && $menu) {
                $menu_items = wp_get_nav_menu_items($menu->term_id);
                $menu_styles = '';
                $menu_slider = get_custom_option('menu_slider') == 'yes';
                if (count($menu_items) > 0) {
                    foreach ($menu_items as $k => $item) {
                        //				if ($item->menu_item_parent==0) {
                        $cur_accent_color = '';
                        if ($item->type == 'taxonomy' && $item->object == 'category') {
                            $cur_accent_color = get_category_inherited_property($item->object_id, 'theme_accent_color');
                        }
                        if ((empty($cur_accent_color) || is_inherit_option($cur_accent_color)) && isset($item->classes[0]) && !empty($item->classes[0])) {
                            $cur_accent_color = (themerex_substr($item->classes[0], 0, 1) != '#' ? '#' : '') . $item->classes[0];
                        }
                        if (!empty($cur_accent_color) && !is_inherit_option($cur_accent_color)) {
                            $menu_styles .= ($item->menu_item_parent == 0 ? "#header_middle_inner #mainmenu li.menu-item-{$item->ID}.current-menu-item > a," : '') . "\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} > a:hover,\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.sfHover > a {\n\t\t\t\t\t\t\t\t\t\tbackground-color: {$cur_accent_color} !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} ul {\n\t\t\t\t\t\t\t\t\t\tbackground-color: {$cur_accent_color} !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t";
                        }
                        if ($menu_slider && $item->menu_item_parent == 0) {
                            $menu_styles .= "\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over:not(.current-menu-item) > a:hover,\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over.sfHover > a {\n\t\t\t\t\t\t\t\t\t\tbackground-color: transparent !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t";
                        }
                        //				}
                    }
                }
                if (!empty($menu_styles)) {
                    addThemeCustomStyle($menu_styles);
                }
            }
        }
    }
    // Main menu height
    $menu_height = (int) get_custom_option('menu_height');
    if ($menu_height > 20) {
        addThemeCustomStyle("\n\t\t\t#mainmenu > li > a {\n\t\t\t\theight: {$menu_height}px !important;\n\t\t\t\tline-height: {$menu_height}px !important;\n\t\t\t}\n\t\t\t#mainmenu > li ul {\n\t\t\t\ttop: {$menu_height}px !important;\n\t\t\t}\n\t\t\t#header_middle {\n\t\t\t\tmin-height: {$menu_height}px !important;\n\t\t\t}\n\t\t");
    }
    // Submenu width
    $menu_width = (int) get_custom_option('menu_width');
    if ($menu_width > 50) {
        addThemeCustomStyle("\n\t\t\t#mainmenu > li ul {\n\t\t\t\twidth: {$menu_width}px;\n\t\t\t}\n\t\t\t#mainmenu > li ul li ul {\n\t\t\t\tleft: " . ($menu_width + 1) . "px;\n\t\t\t}\n\t\t\t#mainmenu > li:nth-child(n+6) ul li ul {\n\t\t\t\tleft: -" . ($menu_width + 1) . "px;\n\t\t\t}\n\t\t");
    }
    if (!empty($theme_color)) {
        addThemeCustomStyle('
			#sidebar_main .popular_and_commented_tabs .tab_content:not(.style_post_format) .post_item .post_title a:hover, 
			.wp-calendar thead th.prevMonth a:hover,
			.wp-calendar thead th.nextMonth a:hover,
			.wp-calendar tbody td.dayWithPost a:hover,
			.widget_twitter .theme_text a,
			.top_news_section .top_news_term a:hover,
			a:hover,
			.trex_accent_color,
			.post_info .post_title a:hover,
			.link_text_wrap a,
			.sc_quote_icon,
			article.format-link > .icon,
			blockquote.sc_quote,
			article.format-aside > .icon,
			article.format-chat > .icon,
			article.format-status > .icon,
			#nav_pages ul li:hover a,
			#nav_pages ul li:hover span,
			#nav_pages ul li.pager_current span,
			#nav_pages .pager_prev a:hover,
			#nav_pages .pager_next a:hover,
			.isotopeFiltr ul li a:hover,
			section.author .user_links ul li span:hover,
			.comment_content .review .label i,
			.popularFiltr ul li.ui-state-active a span,
			.prev_next_posts .prev_post_icon,
			.prev_next_posts .next_post_icon,
			.prev_next_posts .prev_post_link a:hover,
			.prev_next_posts .next_post_link a:hover,
			.link_pages a:hover,
			.itemscope .post_tags a:hover,
			.article_services section.comments li.comment .comment_header .comment_reply a,
			.swpRightPos .sc_tabs .tabsMenuHead li.ui-tabs-active a,
			.swpRightPos .sc_tabs .tabsMenuHead li a:hover,
			.swpRightPos .addBookmark:hover i,
			.swpRightPos .listBookmarks li:hover a,
			#panelmenu li a:hover,
			.popular_and_commented_tabs ul.tabs li a:hover,
			.popular_and_commented_tabs .tab_content .post_item a:hover,
			.popular_and_commented_tabs .tab_content .post_item i.format-icon.hover:before,
			.footerWidget .popular_and_commented_tabs .tab_content h5.post_title a:hover,
			#sidebar_main .widget ul li a:hover,
			.sc_accordion.sc_accordion_style_1 .sc_accordion_item h4.sc_accordion_title i.icon,
			.sc_dropcaps .sc_dropcap,
			.sc_tooltip_parent,
			.sc_skills.sc_skills_type_counter .sc_skills_item_progress,
			.sc_title_icon,
			.sc_title_bg.sc_title_without_bg,
			.sc_icon,
			.sc_tabs ul.sc_tabs_titles li a .icon,
			.slider_wrap .sc_slider_swiper + .flex-control-nav ul li.current .post_icon,
			.sc_testimonials .flex-direction-nav li a,
			.sc_testimonials.sc_testimonials_style_2 .flex-direction-nav li a:hover,
			.sc_blogger .sc_blogger_item .sc_blogger_title a:hover,
			.sc_blogger.style_list .sc_blogger_item > .icon,
			.sc_blogger.style_carousel .sc_blogger_item .post_links a:hover,
			.sc_blogger.style_carousel .prev_slide:hover,
			.sc_blogger.style_carousel .next_slide:hover,
			.sc_review_panel .sc_review_title,
			.sc_team .sc_team_item .sc_team_item_position,
			.sc_list.sc_list_style_ol li .sc_list_num,
			.sc_list.sc_list_style_ol_filled li .sc_list_num,
			.sc_list.sc_list_style_iconed li:before {
				color: ' . $theme_color . ';
			}
			#nav_pages .pager_prev a:hover,
			#nav_pages .pager_next a:hover,
			.isotopeFiltr ul li.active a,
			.pagination_viewmore .view_more_button:hover,
			.popular_and_commented_tabs ul.tabs li.ui-tabs-active a,
			.link_pages a:hover,
			.popular_and_commented_tabs ul.tabs li a:hover,
			.wp-calendar thead th.prevMonth a:hover,
			.wp-calendar thead th.nextMonth a:hover,
			.wp-calendar tbody td.dayWithPost,
			.sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap,
			.sc_dropcaps.sc_dropcaps_style_2 .sc_dropcap,
			.sc_dropcaps .sc_dropcap,
			.sc_tooltip_parent,
			.sc_blogger .sc_blogger_block_link:hover,
			.sc_blogger.style_carousel .prev_slide:hover,
			input[type="submit"]:hover,
			.sc_blogger.style_carousel .next_slide:hover {
				border-color: ' . $theme_color . ';
			}
			article.format-aside > .article_wrap,
			.isotopeFiltr ul li.active a,
			section.author .user_links span.tooltip,
			.vote_criterias li a:hover:before,
			.vote_criterias li a:active:before,
			.link_pages .pages_popup .popup_inner,
			.popular_and_commented_tabs ul.tabs li.ui-tabs-active a,
			#sidebar_main .widget.widget_recent_entries ul li a:before,
			.widget.widget_flickr .flickr_images a,
			.widget_contact_social .tooltip,
			.sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap,
			.sc_dropcaps.sc_dropcaps_style_2 .sc_dropcap,
			.sc_skills.sc_skills_type_bar .sc_skills_item .sc_skills_item_progress,
			.sc_skills.sc_skills_type_bar .sc_skills_item .sc_skills_item_progress .progress_inner,
			.sc_slider_swiper .progress,
			.sc_testimonials .flex-direction-nav li a:hover,
			.sc_blogger_item .thumb a,
			.sc_blogger_item .thumb a .hover_plus,
			.sc_blogger.style_accordion .sc_blogger_item .sc_blogger_title a:hover,
			.sc_blogger.style_date .sc_blogger_item .post_date_info .month,
			.sc_blogger.style_carousel .sc_blogger_item .overlay_mask,
			.sc_blogger.style_carousel .swiper_scrollbar .swiper-scrollbar-drag,
			.sc_button,
			.sc_blogger .sc_blogger_block_link:hover,
			.sc_list.sc_list_style_ul li:before,
			input[type="submit"]:hover,
			a:hover .sc_title_icon,
			.sc_list.sc_list_style_ol_filled li .sc_list_num {
				background: ' . $theme_color . ';
			}
		');
    }
    // Custom css from theme options
    $css = get_custom_option('custom_css');
    $section1_bg = get_custom_option('section_1_bg');
    $section2_bg = get_custom_option('section_2_bg');
    $section1_font = get_custom_option('section_1_font');
    $section2_font = get_custom_option('section_2_font');
    $section2_top_margin = get_custom_option('section2_margin_top');
    $section2_bottom_margin = get_custom_option('section2_margin_bottom');
    $css .= !empty($section1_font) ? '.section_2 { color: ' . $section2_font . '}' : '';
    $css .= !empty($section1_font) ? '.section_1,#topmenu li a, header .section_1 .login_loguout_link { color: ' . $section1_font . '}' : '';
    $css .= !empty($section1_bg) ? 'header .section_1 { background: ' . $section1_bg . '}' : '';
    $sect2_style = '.section_2 {';
    $sect2_style .= !empty($section2_bg) ? ' background: ' . $section2_bg . ';' : '';
    $sect2_style .= !empty($section2_top_margin) ? ' padding-top: ' . $section2_top_margin . 'px; ' : '';
    $sect2_style .= !empty($section2_bottom_margin) ? ' padding-bottom: ' . $section2_bottom_margin . 'px; ' : '';
    $sect2_style .= '}';
    $css .= !empty($sect2_style) ? $sect2_style : '';
    $constructId = getTemplatePageId('under-construction');
    if (!empty($constructId) && get_the_ID() == $constructId) {
        $construct_thumb = wp_get_attachment_url(get_post_thumbnail_id($constructId));
        $css .= !empty($construct_thumb) ? '#page { background-image: url( ' . $construct_thumb . ' ) }' : '';
    }
    if (!empty($css)) {
        addThemeCustomStyle($css);
    }
    return getThemeCustomStyles();
}
            }
        }
    }
    ?>
		<span class="post_format theme_accent_bg <?php 
    echo $post_icon;
    ?>
"<?php 
    echo themerex_substr($post_accent_color, 0, 1) == '#' ? ' style="background-color: ' . $post_accent_color . '"' : '';
    ?>
></span>
		<?php 
    if (get_custom_option('puzzles_style') == 'heavy' && $post_accent_category != '') {
        ?>
			<span class="post_category theme_accent_bg"<?php 
        echo themerex_substr($post_accent_color, 0, 1) == '#' ? ' style="background-color: ' . $post_accent_color . '"' : '';
        ?>
><?php 
        echo $post_accent_category;
        ?>
</span>
		<?php 
    }
    ?>
		<?php 
    if (!$post_protected) {
        if ($post_audio) {
            // If post have audio - show it
            echo $post_audio;
        }
    }
    //get_the_content() not used, because it trim content up to <!-- more --> in each case!
    $post_content_prepared = do_shortcode($post_content_full);
} else {
    // ----------------- New way to get title, excerpt and content -----------------------
    $post_title = get_the_title();
    global $more;
    $old_more = $more;
    $more = -1;
    $post_content_full = get_the_content();
    $post_content_prepared = do_shortcode($post_content_full);
    $more = $old_more;
    $post_content = get_the_content('<span class="readmore">' . __('Read more', 'themerex') . '</span>');
    $post_excerpt = has_excerpt() || $post_protected ? get_the_excerpt() : '';
    if (empty($post_excerpt)) {
        if (($more_pos = themerex_strpos($post_content_full, '<span id="more-')) !== false) {
            $post_excerpt = themerex_substr($post_content_full, 0, $more_pos);
        } else {
            $post_excerpt = in_array($post_format, array('quote', 'link')) ? $post_content : get_the_excerpt();
        }
    }
    $post_excerpt = $post_descr = str_replace('[&hellip;]', '', force_balance_tags($post_excerpt));
}
// Substitute WP [gallery] shortcode
if (get_custom_option('substitute_gallery') == 'yes') {
    $post_excerpt = substituteGallery($post_excerpt, $post_id, $thumb_size[$blog_style]['w'], $thumb_size[$blog_style]['h']);
    $post_descr = substituteGallery($post_descr, $post_id, $thumb_size[$blog_style]['w'], $thumb_size[$blog_style]['h']);
    $post_content = substituteGallery($post_content, $post_id, $thumb_size[$blog_style]['w'], $thumb_size[$blog_style]['h'], 'none', true);
}
$post_title = apply_filters('the_title', $post_title);
$post_descr = apply_filters(in_array($post_format, array('quote', 'link')) ? 'the_content' : 'the_excerpt', $post_descr);
$post_excerpt = apply_filters('the_excerpt', $post_excerpt);
<?php

global $THEMEREX_usermenu, $THEMEREX_usermenu_show;
if (empty($THEMEREX_usermenu) || !$THEMEREX_usermenu_show) {
    ?>
	<ul id="usermenu" class="usermenu_list">
    <?php 
} else {
    $menu = themerex_substr($THEMEREX_usermenu, 0, themerex_strlen($THEMEREX_usermenu) - 5);
    $pos = themerex_strpos($menu, '<ul');
    if ($pos !== false) {
        $menu = themerex_substr($menu, 0, $pos + 3) . ' class="usermenu_list"' . themerex_substr($menu, $pos + 3);
    }
    echo str_replace('class=""', '', $menu);
}
?>

<?php 
if (is_woocommerce_page() && get_custom_option('show_currency') == 'yes') {
    ?>
	<li class="usermenu_currency">
		<a href="#">$</a>
		<ul>
			<li><a href="#"><b>&#36;</b> <?php 
    _e('Dollar', 'themerex');
    ?>
</a></li>
			<li><a href="#"><b>&euro;</b> <?php 
    _e('Euro', 'themerex');
    ?>
</a></li>
示例#14
0
function sc_title($atts, $content = null)
{
    extract(shortcode_atts(array("id" => "", "type" => "1", "style" => "regular", "icon" => "", "bubble_color" => "", "weight" => "", "top" => "", "bottom" => "", "left" => "", "right" => ""), $atts));
    $s = ($top !== '' ? 'margin-top:' . $top . 'px;' : '') . ($bottom !== '' ? 'margin-bottom:' . $bottom . 'px;' : '') . ($left !== '' ? 'margin-left:' . $left . 'px;' : '') . ($right !== '' ? 'margin-right:' . $right . 'px;' : '') . ($weight ? 'font-weight:' . $weight . ';' : '');
    $type = min(6, max(1, $type));
    $icon_file = $icon != '' && file_exists(get_template_directory() . '/images/icons/' . $icon . '.png');
    return '<h' . $type . ($id ? ' id="' . $id . '"' : '') . ($style == 'underline' ? ' class="sc_title_underline"' : (themerex_strpos($style, 'bubble') !== false ? ' class="sc_title_bubble sc_title_' . $style . '"' : (themerex_strpos($style, 'icon') !== false ? ' class="sc_title_icon sc_title_' . $style . '"' : ''))) . ($s != '' ? ' style="' . $s . '"' : '') . '>' . (themerex_substr($style, 0, 6) == 'bubble' ? '<span class="sc_title_bubble_icon ' . ($icon != '' && !$icon_file ? ' icon-' . $icon : '') . '"' . ($bubble_color != '' ? ' style="background-color:' . $bubble_color . '"' : '') . '>' . ($icon_file ? '<img src="' . get_template_directory_uri() . '/images/icons/' . $icon . '.png" />' : '') . '</span>' : (themerex_substr($style, 0, 4) == 'icon' ? '<img src="' . get_template_directory_uri() . '/images/icons/' . $icon . '.png" />' . ($style == 'icon_top' ? '<br />' : '') : '')) . do_shortcode($content) . '</h' . $type . '>';
}
<?php

$post_title_tag = $opt['style'] == 'list' ? 'li' : 'h5';
$reviewsBlock = '';
$title = '<' . esc_attr($post_title_tag) . ' class="sc_blogger_title sc_title' . (in_array($opt['style'], array('accordion_1', 'accordion_2')) ? ' sc_accordion_title' : '') . '">' . ((!isset($opt['links']) || $opt['links']) && !in_array($opt['style'], array('accordion_1', 'accordion_2')) ? '<a href="' . esc_url($post_data['post_link']) . '">' : '') . (themerex_substr($opt['style'], 0, 6) == 'bubble' ? '<span class="sc_title_bubble_icon ' . ($post_data['post_icon'] != '' ? ' ' . esc_attr($post_data['post_icon']) : '') . '"' . ($post_data['bubble_color'] != '' ? ' style="background-color:' . esc_attr($post_data['bubble_color']) . '"' : '') . '></span>' : '') . (in_array($opt['style'], array('accordion_1', 'accordion_2')) ? '<span class="sc_accordion_icon"></span>' : '') . esc_html($post_data['post_title']) . ((!isset($opt['links']) || $opt['links']) && !in_array($opt['style'], array('accordion_1', 'accordion_2')) ? '</a>' : '') . '</' . esc_attr($post_title_tag) . '>' . (in_array($opt['style'], array('accordion_1', 'accordion_2', 'list')) ? '' : $reviewsBlock);
if ($opt['style'] == 'list') {
    echo balanceTags($title);
} else {
    $thumb = $post_data['post_thumb'] && themerex_strpos($opt['style'], 'image') !== false ? '<div class="thumb hoverIncrease">' . ($post_data['post_link'] != '' ? balanceTags($post_data['post_thumb']) . '<a href="' . esc_url($post_data['post_link']) . '"><span class="hoverIcon"></span></a>' : balanceTags($post_data['post_thumb'])) . '<span class="hoverShadow"></span></div>' : '';
    $info = sc_param_is_on($opt['info']) ? '<div class="sc_blogger_info">' . (themerex_strpos($opt['style'], 'image') !== false || themerex_strpos($opt['style'], 'accordion') !== false ? '<div class="sc_blogger_more sc_button sc_button_style_global sc_button_size_medium squareButton global medium"><a title="" href="' . esc_url($post_data['post_link']) . '">' . ($opt['readmore'] ? esc_html($opt['readmore']) : __('More', 'themerex')) . '</a></div><div class="sc_blogger_author">' . __('Posted by', 'themerex') : __('by', 'themerex')) . ' <a href="' . esc_url($post_data['post_author_url']) . '" class="post_author">' . esc_html($post_data['post_author']) . '</a>' . ($opt['counters'] != 'none' ? ' <span class="separator">|</span> ' . ($opt['orderby'] == 'comments' || $opt['counters'] == 'comments' ? __('Comments', 'themerex') : __('Views', 'themerex')) . ' <span class="comments_number">' . ($opt['orderby'] == 'comments' || $opt['counters'] == 'comments' ? esc_html($post_data['post_comments']) : esc_html($post_data['post_views'])) . '</span>' : '') . (themerex_strpos($opt['style'], 'image') !== false || themerex_strpos($opt['style'], 'accordion') !== false ? '</div>' : '') . '</div>' : '';
    if ($opt['dir'] == 'horizontal' && $opt['style'] != 'date') {
        ?>
		<div class="columns1_<?php 
        echo esc_attr($opt['posts_visible']);
        ?>
 column_item_<?php 
        echo esc_attr($opt['number']);
        echo ($opt['number'] % 2 == 1 ? ' odd' : ' even') . ($opt['number'] == 1 ? ' first' : '') . ($opt['number'] == $opt['posts_on_page'] ? ' columns_last' : '') . (sc_param_is_on($opt['scroll']) ? ' sc_scroll_slide swiper-slide' : '');
        ?>
">

		<?php 
    }
    ?>
<article class="sc_blogger_item<?php 
    echo (in_array($opt['style'], array('accordion_1', 'accordion_2')) ? ' sc_accordion_item' : '') . ($opt['number'] == $opt['posts_on_page'] && !sc_param_is_on($opt['loadmore']) ? ' sc_blogger_item_last' : '') . (sc_param_is_on($opt['scroll']) && ($opt['dir'] == 'vertical' || $opt['style'] == 'date') ? ' sc_scroll_slide swiper-slide' : '');
    ?>
"<?php 
    echo $opt['dir'] == 'horizontal' && $opt['style'] == 'date' ? ' style="width:' . 100 / $opt['posts_on_page'] . '%"' : '';
    ?>
>
示例#16
0
 function replace_uploads($str)
 {
     if (is_array($str)) {
         foreach ($str as $k => $v) {
             $str[$k] = $this->replace_uploads($v);
         }
     } else {
         if (is_string($str)) {
             while (($pos = themerex_strpos($str, "/{$this->options['uploads_folder']}/")) !== false) {
                 $pos0 = $pos;
                 while ($pos0) {
                     if (themerex_substr($str, $pos0, 5) == 'http:') {
                         break;
                     }
                     $pos0--;
                 }
                 $str = ($pos0 > 0 ? themerex_substr($str, 0, $pos0) : '') . $this->uploads_url . themerex_substr($str, $pos + themerex_strlen($this->options['uploads_folder']) + 1);
             }
         }
     }
     return $str;
 }
示例#17
0
 function themerex_callback_view_more_posts()
 {
     global $_REQUEST, $post, $wp_query;
     if (!wp_verify_nonce($_REQUEST['nonce'], 'ajax_nonce')) {
         die;
     }
     $response = array('error' => '', 'data' => '', 'no_more_data' => 0);
     $page = $_REQUEST['page'];
     $args = unserialize(stripslashes($_REQUEST['data']));
     $vars = unserialize(stripslashes($_REQUEST['vars']));
     if ($page > 0 && is_array($args) && is_array($vars)) {
         extract($vars);
         $args['page'] = $page;
         $args['paged'] = $page;
         $args['ignore_sticky_posts'] = 1;
         if (!isset($wp_query)) {
             $wp_query = new WP_Query($args);
         } else {
             query_posts($args);
         }
         $per_page = count($wp_query->posts);
         $response['no_more_data'] = $page >= $wp_query->max_num_pages;
         //$per_page < $ppp;
         $post_number = 0;
         $accent_color = '';
         $response['data'] = '';
         $flt_ids = array();
         while (have_posts()) {
             the_post();
             $post_number++;
             $post_args = array('layout' => in_array(themerex_substr($vars['blog_style'], 0, 7), array('classic', 'masonry', 'portfol')) ? themerex_substr($vars['blog_style'], 0, 7) : $vars['blog_style'], 'number' => $post_number, 'add_view_more' => false, 'posts_on_page' => $per_page, 'thumb_size' => $vars['blog_style'], 'thumb_crop' => themerex_strpos($vars['blog_style'], 'masonry') === false, 'strip_teaser' => false, 'parent_cat_id' => $vars['parent_cat_id'], 'sidebar' => !in_array($vars['show_sidebar_main'], array('none', 'fullwidth')), 'filters' => $vars['filters'], 'hover' => $vars['hover'], 'show' => false);
             $post_data = getPostData($post_args);
             $response['data'] .= showPostLayout($post_args, $post_data);
             if ($vars['filters'] == 'tags') {
                 if (count($post_data['post_tags_list']) > 0) {
                     foreach ($post_data['post_tags_list'] as $tag) {
                         $flt_ids[$tag->term_id] = $tag->name;
                     }
                 }
             }
         }
         $response['filters'] = $flt_ids;
     } else {
         $response['error'] = __('Wrong query arguments', 'themerex');
     }
     echo json_encode($response);
     die;
 }
示例#18
0
 function getThemesList($prepend_inherit = false)
 {
     $list = array();
     if ($prepend_inherit) {
         $list['inherit'] = __("Inherit", 'themerex');
     }
     $dir = get_template_directory() . "/css/themes";
     if (is_dir($dir)) {
         $hdir = @opendir($dir);
         if ($hdir) {
             while (($file = readdir($hdir)) !== false) {
                 $pi = pathinfo($dir . '/' . $file);
                 if (substr($file, 0, 1) == '.' || is_dir($dir . '/' . $file) || $pi['extension'] != 'css') {
                     continue;
                 }
                 $key = themerex_substr($file, 0, themerex_strrpos($file, '.'));
                 $list[$key] = themerex_strtoproper(str_replace('_', ' ', $key));
             }
             @closedir($hdir);
         }
     }
     return $list;
 }
示例#19
0
                            ?>
><?php 
                            echo $recent['post_accent_category'];
                            ?>
</span>
									<?php 
                        }
                    } else {
                        if ($show_content_block) {
                            ?>
											<div class="post_content_light">
												<?php 
                            if ($recent['post_accent_category'] != '') {
                                ?>
													<span class="post_category theme_accent_bg"<?php 
                                echo themerex_substr($recent['post_accent_color'], 0, 1) == '#' ? ' style="background-color: ' . $recent['post_accent_color'] . '"' : '';
                                ?>
><?php 
                                echo $recent['post_accent_category'];
                                ?>
</span><br>
												<?php 
                            }
                            ?>
												<h2 class="post_subtitle theme_puzzles"<?php 
                            echo $recent['post_hover_bg'] != '' && $recent['post_hover_bg'] != 'default' ? ' style="background-color:' . $recent['post_hover_bg'] . ';"' : '';
                            ?>
><a href="<?php 
                            echo $recent['post_link'];
                            ?>
"><?php 
示例#20
0
function themerex_media_save_compat($post = null, $attachment_data = null)
{
    if (!empty($post['ID']) && ($id = intval($post['ID'])) > 0) {
        $folders = array();
        $from_media_library = !empty($_REQUEST['tax_input']['media_folder']) && is_array($_REQUEST['tax_input']['media_folder']);
        // From AJAX query
        if (!$from_media_library) {
            foreach ($_REQUEST as $k => $v) {
                if (themerex_substr($k, 0, 12) == 'media_folder') {
                    $folders[] = $v;
                }
            }
        } else {
            if (count($folders) == 0) {
                if (!empty($_REQUEST['tax_input']['media_folder']) && is_array($_REQUEST['tax_input']['media_folder'])) {
                    foreach ($_REQUEST['tax_input']['media_folder'] as $k => $v) {
                        if ((int) $v > 0) {
                            $folders[] = $v;
                        }
                    }
                }
            }
        }
        if (count($folders) > 0) {
            foreach ($folders as $k => $v) {
                if ((int) $v > 0) {
                    $term = get_term_by('id', $v, 'media_folder');
                    $folders[$k] = $term->slug;
                }
            }
        } else {
            $folders = null;
        }
        // Save folders list only from AJAX
        if (!$from_media_library) {
            wp_set_object_terms($id, $folders, 'media_folder', false);
        }
    }
    return $post;
}
<?php

$show_title = get_custom_option('show_post_title', null, $post_data['post_id']) == 'yes' && (get_custom_option('show_post_title_on_quotes') == 'yes' || !in_array($post_data['post_format'], array('aside', 'chat', 'status', 'link', 'quote')));
$columns = max(1, min(4, (int) themerex_substr($opt['style'], -1)));
if ($columns == 1) {
    ?>
	<article class="isotopeElement divider <?php 
    echo 'post_format_' . $post_data['post_format'] . ' post' . $opt['post_class'] . ($opt['number'] % 2 == 0 ? ' even' : ' odd') . ($opt['number'] == 0 ? ' first' : '') . ($opt['number'] == $opt['posts_on_page'] ? ' last' : '') . ($opt['add_view_more'] ? ' viewmore' : '') . (get_custom_option('show_filters') == 'yes' ? ' flt_' . join(' flt_', get_custom_option('filter_taxonomy') == 'categories' ? $post_data['post_categories_ids'] : $post_data['post_tags_ids']) : '');
    ?>
">
		<?php 
    if ($post_data['post_thumb']) {
        ?>
		<div class="thumb hoverIncrease" data-image="<?php 
        echo $post_data['post_attachment'];
        ?>
" data-title="<?php 
        echo esc_attr($post_data['post_title']);
        ?>
"><?php 
        echo $post_data['post_thumb'];
        ?>
</div>
		<?php 
    } else {
        if ($post_data['post_gallery']) {
            echo $post_data['post_gallery'];
        } else {
            if ($post_data['post_video']) {
                echo getVideoFrame($post_data['post_video'], $post_data['post_thumb'], true);
            }
function prepareThemeCustomStyles()
{
    // Custom fonts
    if (get_custom_option('typography_custom') == 'yes') {
        $s = '';
        $fonts = getThemeFontsList(false);
        $fname = get_custom_option('typography_p_font');
        if (isset($fonts[$fname])) {
            $fstyle = explode(',', get_custom_option('typography_p_style'));
            $fname2 = ($pos = themerex_strpos($fname, ' (')) !== false ? themerex_substr($fname, 0, $pos) : $fname;
            $i = in_array('i', $fstyle);
            $u = in_array('u', $fstyle);
            $c = get_custom_option('typography_p_color');
            $s .= "\n\t\t\t\tbody, button, input, select, textarea {\n\t\t\t\t\tfont-family: '" . $fname2 . "'" . (isset($fonts[$fname]['family']) ? ", " . $fonts[$fname]['family'] : '') . ";\n\t\t\t\t}\n\t\t\t\tbody {\n\t\t\t\t\tfont-size: " . get_custom_option('typography_p_size') . "px;\n\t\t\t\t\tfont-weight: " . get_custom_option('typography_p_weight') . ";\n\t\t\t\t\tline-height: " . get_custom_option('typography_p_lineheight') . "px;\n\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t" . ($i ? "font-style: italic;" : '') . "\n\t\t\t\t\t" . ($u ? "text-decoration: underline;" : '') . "\n\t\t\t\t}\n\t\t\t";
        }
        for ($h = 1; $h <= 6; $h++) {
            $fname = get_custom_option('typography_h' . $h . '_font');
            if (isset($fonts[$fname])) {
                $fstyle = explode(',', get_custom_option('typography_h' . $h . '_style'));
                $fname2 = ($pos = themerex_strpos($fname, ' (')) !== false ? themerex_substr($fname, 0, $pos) : $fname;
                $i = in_array('i', $fstyle);
                $u = in_array('u', $fstyle);
                $c = get_custom_option('typography_h' . $h . '_color');
                $s .= "\n\t\t\t\t\th" . $h . ", .h" . $h . " {\n\t\t\t\t\t\tfont-family: '" . $fname2 . "'" . (isset($fonts[$fname]['family']) ? ", " . $fonts[$fname]['family'] : '') . ";\n\t\t\t\t\t\tfont-size: " . get_custom_option('typography_h' . $h . '_size') . "px;\n\t\t\t\t\t\tfont-weight: " . get_custom_option('typography_h' . $h . '_weight') . ";\n\t\t\t\t\t\tline-height: " . get_custom_option('typography_h' . $h . '_lineheight') . "px;\n\t\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t\t" . ($i ? "font-style: italic;" : '') . "\n\t\t\t\t\t\t" . ($u ? "text-decoration: underline;" : '') . "\n\t\t\t\t\t}\n\t\t\t\t\th" . $h . " a, .h" . $h . " a {\n\t\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t}\n\t\t\t\t";
            }
        }
        if (!empty($s)) {
            addThemeCustomStyle($s);
        }
    }
    // Submenu width
    $menu_width = (int) get_theme_option('menu_width');
    if ($menu_width > 50) {
        addThemeCustomStyle("\n\t\t\t.topWrap .topMenuStyleFon > ul > li ul,\n\t\t\t.topWrap .topMenuStyleLine > ul > li ul {\n\t\t\t\twidth: {$menu_width}px;\n\t\t\t}\n\t\t\t.topWrap .topMenuStyleFon > ul > li ul li ul {\n\t\t\t\tleft: " . ($menu_width + 10) . "px;\n\t\t\t}\n\t\t\t.menu_right .topWrap .topMenuStyleFon ul.submenu_left {\n\t\t\t\tleft: -" . ($menu_width + 10) . "px !important;\n\t\t\t}\n\n\t\t\t.topWrap .topMenuStyleLine > ul > li ul li ul {\n\t\t\t\tleft: " . ($menu_width + 2) . "px;\n\t\t\t}\n\t\t\t.menu_right .topWrap .topMenuStyleLine ul.submenu_left {\n\t\t\t\tleft: -" . ($menu_width + 4) . "px !important;\n\t\t\t}\n\t\t\tul#mainmenu .menu-panel ul.columns > li ul {\n\t\t\t\tmax-width: " . $menu_width . "px;\n\t\t\t}\n\n\t\t");
    }
    // Logo height
    $logo_height = (int) get_custom_option('logo_height');
    $logo_offset = (int) get_custom_option('logo_offset');
    if ($logo_height > 10) {
        if (empty($logo_offset)) {
            $logo_offset = max(20, round((100 - $logo_height) / 2));
        }
        $add = max(0, round(($logo_offset * 2 + $logo_height - 100) / 2));
        addThemeCustomStyle("\n\t\t\theader.noFixMenu .topWrap .logo {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu .topWrap .logo img {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu .topWrap .logo .logo_text {\n\t\t\t\tline-height: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .openRightMenu,\n\t\t\theader.noFixMenu.menu_right .topWrap .search {\n\t\t\t\tmargin-top: " . (33 + $add) . "px;\n\t\t\t\tmargin-bottom: " . (37 + $add) . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul > li,\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleFon > ul > li {\n\t\t\t\tpadding-top: " . (30 + $add) . "px;\n\t\t\t\tpadding-bottom: " . (30 + $add) . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleFon > ul#mainmenu > li > .menu-panel,\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleFon > ul > li > ul {\n\t\t\t\ttop: " . (67 + $add) . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul#mainmenu > li > .menu-panel,\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul > li > ul {\n\t\t\t\ttop: " . (100 + $add) . "px;\n\t\t\t}\n\t\t");
    }
    // Logo top offset
    if ($logo_offset > 0) {
        addThemeCustomStyle("\n\t\t\theader.noFixMenu .topWrap .logo {\n\t\t\t\tpadding: " . $logo_offset . "px 0 0 0;\n\t\t\t}\n\t\t");
    }
    $logo_height = (int) get_theme_option('logo_image_footer_height');
    if ($logo_height > 10) {
        addThemeCustomStyle("\n\t\t\tfooter .logo img {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t");
    }
    // Main Slider height
    $slider_height = (int) get_custom_option('slider_height');
    if ($slider_height > 10) {
        addThemeCustomStyle("\n\t\t\t.sliderHomeBullets {\n\t\t\t\theight: " . $slider_height . "px;\n\t\t\t}\n\t\t");
    }
    // Custom css from theme options
    $css = get_custom_option('custom_css');
    if (!empty($css)) {
        addThemeCustomStyle($css);
    }
    $custom_style = '';
    $customizer = get_theme_option('show_theme_customizer') == 'yes';
    // Theme color from customizer
    $clr = '';
    if ($customizer) {
        $clr = getValueGPC('theme_color', '');
    }
    if (empty($clr)) {
        $clr = get_custom_option('theme_color');
    }
    if (!empty($clr)) {
        $rgb = hex2rgb($clr);
        $custom_style .= '
a:hover,
.theme_accent,
.topTabsWrap .speedBar a:hover,
.topWrap .topMenuStyleFon > ul li a:hover,
.topWrap .topMenuStyleFon > ul > li.sfHover > a,
.topWrap .topMenuStyleFon > ul > li > a.sf-with-ul:hover,
.topWrap .topMenuStyleFon > ul > li ul a.sf-with-ul:after,
.topWrap .topMenuStyleLine > ul > li ul li a:hover,
.topMenuStyleFon ul#mainmenu .menu-panel ul.columns > li > a,
.topMenuStyleFon ul#mainmenu .menu-panel ul.columns > li a:hover,
.topMenuStyleFon ul#mainmenu .menu-panel ul.columns > li ul li a:hover,
.topMenuStyleFon ul#mainmenu .menu-panel ul.thumb_title > li > a,
.topMenuStyleFon ul#mainmenu .menu-panel ul.thumb_title > li > a:hover,
.infoPost a:hover, 
.tabsButton ul li a:hover,
.widgetWrap  ul  li:before,
.popularFiltr ul li a:hover,
.isotopeFiltr ul li a:hover,
.widget_popular_posts article h3:before,
.widgetTabs .widget_popular_posts article .post_info .post_date a:hover,
.sidebar .widget_popular_posts article .post_info .post_date a:hover,
.sidebar .widget_recent_posts article .post_info .post_date a:hover,
.main .widgetWrap a:hover,
.main .widgetWrap a:hover span,
.widgetWrap a:hover span,
.roundButton:hover a,
input[type="submit"]:hover,
input[type="button"]:hover,
.squareButton > a:hover,
.squareButton.border > a,
.roundButton.border > a,
.nav_pages_parts > a:hover,
.nav_comments > a:hover,
.comments_list a.comment-edit-link:hover,
.widget_area ul.tabs > li.squareButtonlite.ui-state-active > a,
.wp-calendar tbody td a,
.wp-calendar tbody td.today a:hover,
blockquote cite,
blockquote cite a,
.sc_quote_title,
.sc_quote_title a,
.postLink a,
.masonry article .masonryInfo a:hover,
.masonry article .masonryInfo span.infoTags a:hover,
.relatedPostWrap article .relatedInfo a:hover,
.relatedPostWrap article .relatedInfo span.infoTags a:hover,
.infoPost span.infoTags a:hover,
.page404 p a,
.page404 .searchAnimation.sFocus .searchIcon,
.sc_team .sc_team_item .sc_team_item_position,
.copyWrap a,
.comments .commBody li.commItem .replyWrap .posted a:hover,
.comments .commBody li.commItem h4 a:hover,
.ratingItem span:before,
.reviewBlock .totalRating,
.widget_area .contactInfo .fContact:before,
.widget_area .widgetWrap a:hover,
.widget_area .widgetWrap a:hover span,
.widget_area .widgetWrap ul > li > a:hover, 
.widget_area .widgetWrap ul > li > a:hover span,
.footerStyleLight .widget_area article .post_title:before,
.footerStyleLight .widget_area article .post_info a:hover,
.footerStyleLight .widget_area article .post_info .post_date a:hover,
.sc_list_style_arrows li:before,
.sc_list_style_arrows li a:hover,
.sc_list_style_iconed li a:hover,
.sc_accordion.sc_accordion_style_1 .sc_accordion_item .sc_accordion_title,
.sc_accordion.sc_accordion_style_1 .sc_accordion_item .sc_accordion_title:before,
.sc_accordion.sc_accordion_style_2 .sc_accordion_item.sc_active .sc_accordion_title,
.sc_accordion.sc_accordion_style_2 .sc_accordion_item.sc_active .sc_accordion_title:before,
.sc_accordion.sc_accordion_style_3 .sc_accordion_item.sc_active .sc_accordion_title,
.sc_toggles.sc_toggles_style_1 .sc_toggles_item .sc_toggles_title,
.sc_toggles.sc_toggles_style_1 .sc_toggles_item .sc_toggles_title:before,
.sc_toggles.sc_toggles_style_2 .sc_toggles_item.sc_active .sc_toggles_title,
.sc_toggles.sc_toggles_style_2 .sc_toggles_item.sc_active .sc_toggles_title:before,
.sc_toggles.sc_toggles_style_3 .sc_toggles_item.sc_active .sc_toggles_title,
.sc_tabs .sc_tabs_titles li a:hover,
.sc_dropcaps.sc_dropcaps_style_3 .sc_dropcap,
.sc_dropcaps.sc_dropcaps_style_4 .sc_dropcap,
.sc_dropcaps.sc_dropcaps_style_5 .sc_dropcap,
.sc_dropcaps.sc_dropcaps_style_6 .sc_dropcap,
.sc_highlight.sc_highlight_style_2,
.sc_price_item .sc_price_money,
.sc_price_item .sc_price_penny,
.sc_pricing_table .sc_pricing_columns ul li .sc_icon,
.sc_tooltip_parent,
.sc_title_icon:before,
.sc_scroll_controls .flex-direction-nav a:hover:before,
.sc_testimonials_style_1 .flex-direction-nav a:hover:before,
.sc_testimonials_style_3 .flex-direction-nav a:hover:before,
.sc_testimonials_style_3 .flex-direction-nav a:active:before,
.pagination .pageLibrary > li.libPage > .pageFocusBlock .flex-direction-nav a:hover:before,
.topWrap .usermenu_area ul.usermenu_list li.usermenu_currency > a:hover,
.topWrap .usermenu_area ul.usermenu_list li.usermenu_currency > a,
.topWrap .usermenu_area ul.usermenu_list li.usermenu_currency.sfHover > a,
.topWrap .usermenu_area ul.usermenu_list li ul li a:hover,
.topWrap .usermenu_area ul.usermenu_list li.usermenu_cart .widget_area ul li a:hover,
.sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_currency > a:hover,
.sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_currency > a,
.sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_currency.sfHover > a,
.sidemenu_wrap .usermenu_area ul.usermenu_list li ul li a:hover,
.sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_cart .widget_area ul li a:hover,
.sc_blogger a:hover,
.sc_blogger.style_date .load_more:before,
.sc_blogger.style_date .sc_blogger_item .sc_blogger_date .day_month,
.sc_blogger.style_date .sc_blogger_item .sc_blogger_info .comments_number,
.sc_blogger.style_accordion .sc_blogger_info .comments_number,
.widgetTabs .widgetTop ul > li:not(.tabs):before, 
.widgetTabs .widgetTop ul > li:not(.tabs) > a:hover, 
.widgetTabs .widgetTop ul > li:not(.tabs) > a:hover span,
.widgetTabs .widgetTop.widget_popular_posts article .post_title:before,
.swpRightPos .tabsMenuBody a:hover,
.swpRightPos .tabsMenuBody a:hover:before,
.openRightMenu:hover:before,
.topWrap .search:not(.searchOpen):hover:before,
.user-popUp .formItems.loginFormBody .remember .forgotPwd,
.user-popUp .formItems.loginFormBody .loginProblem,
.user-popUp .formItems.registerFormBody .i-agree a,
.sc_slider_pagination_area .flex-control-nav.manual .slide_info .slide_title,
#toc .toc_item.current .toc_icon,
#toc .toc_item:hover .toc_icon
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce div.product span.price, .woocommerce div.product p.price, .woocommerce #content div.product span.price, .woocommerce #content div.product p.price, .woocommerce-page div.product span.price, .woocommerce-page div.product p.price, .woocommerce-page #content div.product span.price, .woocommerce-page #content div.product p.price,.woocommerce ul.products li.product .price,.woocommerce-page ul.products li.product .price,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce-page #content input.button.alt:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce #content input.button:hover, .woocommerce-page a.button:hover, .woocommerce-page button.button:hover, .woocommerce-page input.button:hover, .woocommerce-page #respond input#submit:hover, .woocommerce-page #content input.button:hover,
.woocommerce .quantity input[type="button"]:hover, .woocommerce #content input[type="button"]:hover, .woocommerce-page .quantity input[type="button"]:hover, .woocommerce-page #content .quantity input[type="button"]:hover,
.woocommerce ul.cart_list li > .amount, .woocommerce ul.product_list_widget li > .amount, .woocommerce-page ul.cart_list li > .amount, .woocommerce-page ul.product_list_widget li > .amount,
.woocommerce ul.cart_list li span .amount, .woocommerce ul.product_list_widget li span .amount, .woocommerce-page ul.cart_list li span .amount, .woocommerce-page ul.product_list_widget li span .amount,
.woocommerce ul.cart_list li ins .amount, .woocommerce ul.product_list_widget li ins .amount, .woocommerce-page ul.cart_list li ins .amount, .woocommerce-page ul.product_list_widget li ins .amount,
.woocommerce.widget_shopping_cart .total .amount, .woocommerce .widget_shopping_cart .total .amount, .woocommerce-page.widget_shopping_cart .total .amount, .woocommerce-page .widget_shopping_cart .total .amount,
.woocommerce a:hover h3, .woocommerce-page a:hover h3,
.woocommerce .cart-collaterals .order-total strong, .woocommerce-page .cart-collaterals .order-total strong,
.woocommerce .checkout #order_review .order-total .amount, .woocommerce-page .checkout #order_review .order-total .amount,
.woocommerce .star-rating, .woocommerce-page .star-rating, .woocommerce .star-rating:before, .woocommerce-page .star-rating:before,
.widget_area .widgetWrap ul > li .star-rating span, .woocommerce #review_form #respond .stars a, .woocommerce-page #review_form #respond .stars a
') . '
{ color:' . $clr . '; }

.topWrap .topMenuStyleLine > ul > li ul li a:hover,
.footerStyleDark .widget_area a.button:hover,
.flip-clock-wrapper ul li a div div.inn,
.footerStyleDark .widget_area .squareButton > a
{ color:' . $clr . ' !important; }

.theme_accent_bgc,
.topWrap,
.sidemenu_wrap .menuTranform,
.sc_video_player:active .sc_video_play_button:after,
.mejs-controls .mejs-button button:active,
.mejs-container .mejs-controls .mejs-time-rail .mejs-time-current,
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current,
input[type="submit"]:active,
input[type="button"]:active,
.squareButton.active > span,
.squareButton.active > a,
.squareButton.ui-state-active > a,
.roundButton > a:active,
.squareButton > a:active,
.squareButton.global > a,
.squareButton.dark > a:active,
.squareButton.border > a:hover,
.roundButton.border:hover > a,
.nav_pages_parts > span.page_num,
.nav_comments > span.current,
ul > li.likeActive:active > a,
.sc_table.sc_table_style_1 table tr:first-child th,
.sc_table.sc_table_style_1 table tr:first-child td,
.masonry article .status,
.portfolio .isotopeElement .folioShowBlock:before,
.post .postStatus,
.sc_team .sc_team_item .sc_team_item_avatar:after,
.itemPageFull .itemDescriptionWrap .toggleButton:active,
.footerWrap .footerWidget .sc_video_player:active .sc_video_play_button:after,
.topWrap .topMenuStyleLine > ul > li ul,
.topMenuStyleLine > ul .menu-panel,
.sidemenu_wrap .sidemenu_button,
.userHeaderSection.global,
.sliderLogo .elastislide-wrapper nav span:active:before,
.sc_skills_bar .sc_skills_item .sc_skills_count,
.sc_skills_counter .sc_skills_item.sc_skills_style_3 .sc_skills_count,
.sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_count,
.sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_info,
.sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap,
.sc_dropcaps.sc_dropcaps_style_2 .sc_dropcap,
.sc_highlight.sc_highlight_style_1,
.sc_pricing_table .sc_pricing_columns .sc_pricing_title,
.sc_pricing_table .sc_pricing_columns:hover ul li.sc_pricing_title,
.sc_tooltip_parent .sc_tooltip,
.sc_tooltip_parent .sc_tooltip:before,
.sc_title_bg:before,
.sc_accordion.sc_accordion_style_3 .sc_accordion_item .sc_accordion_title,
.sc_toggles.sc_toggles_style_3 .sc_toggles_item .sc_toggles_title,
.sc_scroll_controls .flex-direction-nav a:active,
.sc_testimonials_style_1 .flex-direction-nav a:active,
.sc_testimonials_style_3 .sc_testimonials_items,
.sc_testimonials_style_3 .flex-direction-nav li,
.sc_testimonials_style_3 .flex-direction-nav a,
.pagination .pageLibrary > li.libPage > .pageFocusBlock .flex-direction-nav a:active,
.sc_popup_light:before,
.user-popUp ul.loginHeadTab li.ui-tabs-active:before,
.sc_banner:before,
.global_bg,
.widgetWrap .tagcloud a:hover,
.widgetWrap .tagcloud a:active,
.sc_scroll_bar .swiper-scrollbar-drag:before,
.widgetTabs .widgetTop .tagcloud a:hover,
.widgetTabs .widgetTop .tagcloud a:active,
#custom_options .co_options #co_bg_images_list a.current,
#custom_options .co_options #co_bg_pattern_list a.current,
.fullScreenSlider.globalColor .sliderHomeBullets .rsContent:before,
.fullScreenSlider .sliderHomeBullets .rsContent .slide-3 .order p span,
ul.sc_list_style_disk li:before,
.sc_slider_pagination_area .flex-control-nav.manual .slide_date,
.sc_tabs.sc_tabs_style_2 .sc_tabs_titles li.ui-state-active a
.sc_contact_form_custom .bubble label:hover,
.sc_contact_form_custom .bubble label.selected
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce .woocommerce-message:before, .woocommerce-page .woocommerce-message:before,.woocommerce .widget_price_filter .ui-slider .ui-slider-range,.woocommerce-page .widget_price_filter .ui-slider .ui-slider-range
') . '
' . (!class_exists('TribeEvents') ? '' : ',
.tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"], .tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"] > a, #tribe_events_filters_wrapper input[type="submit"], .tribe-events-button, #tribe-events .tribe-events-button, .tribe-events-button.tribe-inactive, #tribe-events .tribe-events-button:hover, .tribe-events-button:hover, .tribe-events-button.tribe-active:hover
') . '
{ background-color:' . $clr . '; }

.sc_table.sc_table_style_1 table tr:first-child th,
.sc_table.sc_table_style_1 table tr:first-child td {
	border-top-color: ' . $clr . ';
}
.sc_table.sc_table_style_1 table tr:first-child th:first-child,
.sc_table.sc_table_style_1 table tr:first-child td:first-child {
	border-left-color: ' . $clr . ';
}
.sc_table.sc_table_style_1 table tr:first-child th:last-child,
.sc_table.sc_table_style_1 table tr:first-child td:last-child {
	border-right-color: ' . $clr . ';
}


' . (!function_exists('is_woocommerce') ? '' : '
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle, .woocommerce-page .widget_price_filter .ui-slider .ui-slider-handle
{ background:' . $clr . '; }
') . '

' . (!class_exists('TribeEvents') ? '' : ',
#tribe-bar-form .tribe-bar-submit input[type="submit"]
{ background:' . $clr . '; }
') . '



.top_panel_above .fullScreenSlider .topWrap,
.top_panel_above .fullScreenSlider .topWrap .topMenuStyleLine > ul > li ul,
.top_panel_above .fullScreenSlider .topWrap .topMenuStyleLine > ul > li .menu-panel
{ background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.8); }

.sc_slider_flex .sc_slider_info,
.sc_slider_chop .sc_slider_info,
.sc_slider_swiper .sc_slider_info,
.sc_slider_flex .flex-direction-nav li,
.sc_slider_chop .flex-direction-nav li,
.sc_slider_swiper .flex-direction-nav li 
{ background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.8) !important; }

.theme_accent_border,
.postSharing > ul > li > a:active,
.postSharing > ul > li > span:active
.mejs-controls .mejs-button button:active,
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current,
.squareButton.active > span,
.squareButton.active > a,
.roundButton > a:active,
.squareButton > a:active,
.squareButton.ui-state-active > a,
.squareButton.global > a,
.squareButton.dark > a:active,
.squareButton.border > a,
.roundButton.border > a,
.nav_pages_parts > span.page_num,
.nav_comments > span.current,
.wp-calendar thead tr + tr th,
.sc_skills_bar .sc_skills_item .sc_skills_count,
.itemPageFull .itemDescriptionWrap .toggleButton:active,
.footerWidget .sc_video_player:active .sc_video_play_button:after,
.topWrap .topMenuStyleLine > ul > li ul,
.topMenuStyleLine > ul#mainmenu ul.menu-panel,
.sc_scroll_controls .flex-direction-nav a:active,
.sc_testimonials_style_1 .flex-direction-nav a:active,
.pagination .flex-direction-nav a:active,
.sliderLogo .elastislide-wrapper nav span:active:before,
.sc_dropcaps.sc_dropcaps_style_4 .sc_dropcap,
.sc_dropcaps.sc_dropcaps_style_5 .sc_dropcap,
.sc_dropcaps.sc_dropcaps_style_6 .sc_dropcap,
.sc_accordion.sc_accordion_style_3 .sc_accordion_item,
.sc_toggles.sc_toggles_style_3 .sc_toggles_item,
.sc_tooltip_parent,
pre.code,
.widgetWrap .tagcloud a:hover,
.widgetWrap .tagcloud a:active,
.topWrap .openRightMenu:hover,
.topWrap .search:not(.searchOpen):hover,
#toc .toc_item.current,
#toc .toc_item:hover
{ border-color:' . $clr . '; }

' . (!function_exists('is_woocommerce') ? '' : '
.woocommerce .woocommerce-message, .woocommerce-page .woocommerce-message,
.woocommerce a.button.alt:active, .woocommerce button.button.alt:active, .woocommerce input.button.alt:active, .woocommerce #respond input#submit.alt:active, .woocommerce #content input.button.alt:active, .woocommerce-page a.button.alt:active, .woocommerce-page button.button.alt:active, .woocommerce-page input.button.alt:active, .woocommerce-page #respond input#submit.alt:active, .woocommerce-page #content input.button.alt:active,
.woocommerce a.button:active, .woocommerce button.button:active, .woocommerce input.button:active, .woocommerce #respond input#submit:active, .woocommerce #content input.button:active, .woocommerce-page a.button:active, .woocommerce-page button.button:active, .woocommerce-page input.button:active, .woocommerce-page #respond input#submit:active, .woocommerce-page #content input.button:active
{ border-top-color:' . $clr . '; }
') . '

.theme_accent_bg,
.ih-item.circle.effect1.colored .info,
.ih-item.circle.effect2.colored .info,
.ih-item.circle.effect3.colored .info,
.ih-item.circle.effect4.colored .info,
.ih-item.circle.effect5.colored .info .info-back,
.ih-item.circle.effect6.colored .info,
.ih-item.circle.effect7.colored .info,
.ih-item.circle.effect8.colored .info,
.ih-item.circle.effect9.colored .info,
.ih-item.circle.effect10.colored .info,
.ih-item.circle.effect11.colored .info,
.ih-item.circle.effect12.colored .info,
.ih-item.circle.effect13.colored .info,
.ih-item.circle.effect14.colored .info,
.ih-item.circle.effect15.colored .info,
.ih-item.circle.effect16.colored .info,
.ih-item.circle.effect18.colored .info .info-back,
.ih-item.circle.effect19.colored .info,
.ih-item.circle.effect20.colored .info .info-back,
.ih-item.square.effect1.colored .info,
.ih-item.square.effect2.colored .info,
.ih-item.square.effect3.colored .info,
.ih-item.square.effect4.colored .mask1,
.ih-item.square.effect4.colored .mask2,
.ih-item.square.effect5.colored .info,
.ih-item.square.effect6.colored .info,
.ih-item.square.effect7.colored .info,
.ih-item.square.effect8.colored .info,
.ih-item.square.effect9.colored .info .info-back,
.ih-item.square.effect10.colored .info,
.ih-item.square.effect11.colored .info,
.ih-item.square.effect12.colored .info,
.ih-item.square.effect13.colored .info,
.ih-item.square.effect14.colored .info,
.ih-item.square.effect15.colored .info { background:' . $clr . '; }

.ih-item.circle.effect1.colored .info,
.ih-item.circle.effect2.colored .info,
.ih-item.circle.effect5.colored .info .info-back,
.ih-item.circle.effect19.colored .info,
.ih-item.circle.effect20.colored .info .info-back,
.ih-item.square.effect4.colored .mask1,
.ih-item.square.effect4.colored .mask2,
.ih-item.square.effect6.colored .info,
.ih-item.square.effect7.colored .info,
.ih-item.square.effect12.colored .info,
.ih-item.square.effect13.colored .info,
.sc_image_shape_round:hover figcaption,
.post .sc_image_shape_round:hover figcaption { background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.6);}

.ih-item.circle.effect17.colored a:hover .img:before {
	box-shadow: inset 0 0 0 110px ' . $clr . ', inset 0 0 0 16px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.1);
	box-shadow: inset 0 0 0 110px rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.6), inset 0 0 0 16px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ih-item.circle.effect1 .spinner { border-right-color: ' . $clr . '; border-bottom-color: ' . $clr . '; }

.mejs-container, .mejs-embed, .mejs-embed body, .mejs-container .mejs-controls { background:' . $clr . ' !important; }
.mejs-controls .mejs-volume-button .mejs-volume-slider { rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; }

::selection { background-color:' . $clr . ';}
::-moz-selection { background-color:' . $clr . ';}
';
        $custom_style = apply_filters('theme_skin_set_theme_color', $custom_style, $clr);
    }
    // Top panel background
    $clr2 = '';
    if ($customizer) {
        $clr2 = getValueGPC('menu_color', '');
    }
    if (empty($clr2)) {
        $clr2 = get_custom_option('menu_color');
    }
    if (!empty($clr2)) {
        $clr = $clr2;
        $rgb = hex2rgb($clr);
        $custom_style .= '
			.topWrap,
			.topWrap .topMenuStyleLine > ul > li ul,
			.topMenuStyleLine > ul .menu-panel,
			.usermenu_area 
			{ background-color: ' . $clr . '; }
			.top_panel_above .fullScreenSlider .topWrap,
			.top_panel_above .fullScreenSlider .topWrap .topMenuStyleLine > ul > li ul,
			.top_panel_above .fullScreenSlider .topWrap .topMenuStyleLine > ul > li .menu-panel
			{ background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.8); }
			.topWrap .topMenuStyleLine > ul > li ul,
			.topMenuStyleLine > ul#mainmenu ul.menu-panel
			{ border-color: ' . $clr . '; }
		';
        $custom_style = apply_filters('theme_skin_set_menu_bgcolor', $custom_style, $clr, $rgb);
    }
    // Top panel fore color
    $fore_clr = get_custom_option('menu_fore_color');
    if (!empty($clr) || !empty($fore_clr)) {
        if (empty($fore_clr) && !empty($clr)) {
            $hsb = hex2hsb($clr);
            if ($hsb['b'] > 90 && ($hsb['h'] >= 45 && $hsb['h'] <= 185 || $hsb['s'] < 20)) {
                $clr = '#272727';
                $clr01 = 'rgba(39,39,39,0.1)';
                $clr02 = 'rgba(39,39,39,0.2)';
                $clr04 = 'rgba(39,39,39,0.4)';
                $clr05 = 'rgba(39,39,39,0.5)';
                $clr07 = 'rgba(39,39,39,0.7)';
            } else {
                $clr = '#ffffff';
                $clr01 = 'rgba(255,255,255,0.1)';
                $clr02 = 'rgba(255,255,255,0.2)';
                $clr04 = 'rgba(255,255,255,0.4)';
                $clr05 = 'rgba(255,255,255,0.5)';
                $clr07 = 'rgba(255,255,255,0.7)';
            }
        } else {
            $rgb = hex2rgb($fore_clr);
            $clr = $fore_clr;
            $clr01 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.1)';
            $clr02 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.2)';
            $clr04 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.4)';
            $clr05 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.5)';
            $clr07 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7)';
        }
        $custom_style .= '
			.logo, .logo_text,.logo a,.topWrap .topMenuStyleLine > ul > li > a,.topWrap .topMenuStyleLine > ul > li ul li a,.topMenuStyleLine ul#mainmenu .menu-panel .item_placeholder .item_title,.topMenuStyleLine ul#mainmenu .menu-panel .item_placeholder .item_title a,.topMenuStyleLine ul#mainmenu .menu-panel.thumb .item_placeholder .item_title,.topMenuStyleLine ul#mainmenu .menu-panel.thumb .item_placeholder .item_title a,.topMenuStyleLine ul#mainmenu .menu-panel .item_placeholder .item_info > * > span,.topMenuStyleLine ul#mainmenu .menu-panel .item_placeholder .item_info > * > em,.topMenuStyleLine ul#mainmenu .menu-panel ul.columns > li a,.topWrap .topMenuStyleFon > ul > li > a,.top_panel_above .fullScreenSlider .topWrap .topMenuStyleLine > ul > li a,.topMenuStyleLine ul#mainmenu > li ul li a .menu_icon
			{ color: ' . $clr . ';	}
			.topMenuStyleLine ul#mainmenu .menu-panel ul.columns > li > a,.topMenuStyleLine ul#mainmenu .menu-panel ul.thumb_title > li > a,.topMenuStyleLine ul#mainmenu .menu-panel ul.columns > li > a:hover,.topMenuStyleLine ul#mainmenu .menu-panel ul.thumb_title > li > a:hover
			{ color: ' . $clr . ' !important;	}
			.topWrap .topMenuStyleLine > ul > li:after 
			{ background:' . $clr . '; }
			.topWrap .search:before,.topWrap .search .searchForm .searchSubmit .icoSearch:before,.openRightMenu:before 
			{ color: ' . $clr04 . '; }
			.topWrap .usermenu_area,.topWrap .search .searchForm .searchField
			{ color: ' . $clr05 . '; }
			.topWrap .usermenu_area a,
			.menu_item_description,
			.logo .logo_slogan
			{ color: ' . $clr07 . '; }
			.topWrap .usermenu_area a:hover,.topWrap .usermenu_area ul.usermenu_list > li.sfHover > a			
			{ color: ' . $clr . '; }
			.topWrap .search, .openRightMenu
			{ border-color: ' . $clr04 . '; }
			.topMenuStyleLine ul#mainmenu .menu-panel ul.columns > li + li
			{ border-color: ' . $clr02 . '; }
			.openResponsiveMenu 
			{ border-top-color: ' . $clr02 . '; color: ' . $clr . '; }
			.responsive_menu .menuTopWrap > ul > li
			{ border-bottom-color: ' . $clr01 . '; }
		';
        $custom_style = apply_filters('theme_skin_set_menu_color', $custom_style, $clr);
    }
    // User menu area background
    $clr2 = '';
    if ($customizer) {
        $clr2 = getValueGPC('user_menu_color', '');
    }
    if (empty($clr2)) {
        $clr2 = get_custom_option('user_menu_color');
    }
    $fore_clr = get_custom_option('user_menu_fore_color');
    if (!empty($clr2) || !empty($fore_clr)) {
        if (!empty($clr2)) {
            $clr = $clr2;
            $custom_style .= '
				.usermenu_area 
				{ background-color: ' . $clr . '; }
			';
            $custom_style = apply_filters('theme_skin_set_user_menu_bgcolor', $custom_style, $clr);
        }
        // User menu color
        if (empty($fore_clr)) {
            $hsb = hex2hsb($clr);
            if ($hsb['b'] > 90 && ($hsb['h'] >= 45 && $hsb['h'] <= 185 || $hsb['s'] < 20)) {
                $clr = '#272727';
                $clr01 = 'rgba(39,39,30,0.1)';
                $clr05 = 'rgba(39,39,30,0.5)';
                $clr07 = 'rgba(39,39,30,0.7)';
            } else {
                $clr = '#ffffff';
                $clr01 = 'rgba(255,255,255,0.1)';
                $clr05 = 'rgba(255,255,255,0.5)';
                $clr07 = 'rgba(255,255,255,0.7)';
            }
        } else {
            $rgb = hex2rgb($fore_clr);
            $clr = $fore_clr;
            $clr01 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.1)';
            $clr05 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.5)';
            $clr07 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7)';
        }
        $custom_style .= '
			.topWrap .usermenu_area
			{ color: ' . $clr05 . '; }
			.topWrap .usermenu_area a
			{ color: ' . $clr07 . '; }
			.topWrap .usermenu_area a:hover,.topWrap .usermenu_area ul.usermenu_list > li.sfHover > a			
			{ color: ' . $clr . '; }
		';
        $custom_style = apply_filters('theme_skin_set_user_menu_color', $custom_style, $clr);
    }
    addThemeCustomStyle(apply_filters('theme_skin_add_styles_inline', $custom_style));
    return getThemeCustomStyles();
}
示例#23
0
function get_option_name($fullname)
{
    global $THEMEREX_shortname;
    return themerex_substr($fullname, 0, themerex_strlen($THEMEREX_shortname) + 1) == $THEMEREX_shortname . '_' ? themerex_substr($fullname, themerex_strlen($THEMEREX_shortname) + 1) : $fullname;
}
示例#24
0
function prepareThemeCustomStyles()
{
    // Custom font
    $fonts = getThemeFontsList(false);
    $theme_font = get_custom_option('theme_font');
    $header_font = get_custom_option('header_font');
    $theme_color = get_custom_option('theme_color');
    $theme_accent_color = get_custom_option('theme_accent_color');
    $background_color = get_custom_option('body_bg_color');
    $logo_widht = get_custom_option('logo_block_width');
    //theme fonts
    if (isset($fonts[$theme_font])) {
        addThemeCustomStyle('
			body, button, input, select, textarea { font-family: \'' . $theme_font . '\', ' . $fonts[$theme_font]['family'] . '; }');
    }
    // heading fonts
    if (isset($fonts[$header_font])) {
        addThemeCustomStyle((get_theme_option('show_theme_customizer') == 'yes' ? '.custom_options .co_label, .custom_options .co_header span, ' : '') . 'h1, h2, h3, h4, h5, h6,
			.h1,.h2,.h3,.h4,.h5,.h6,
			#header,
			.logoHeader, .subTitle,
			.widget_calendar table caption,
			.sc_button,
			.widget_calendar,
			.widget_search .searchFormWrap .searchSubmit,
			.sc_video_frame .sc_video_frame_info_wrap .sc_video_frame_info .sc_video_frame_player_title,
			.widget_popular_posts .ui-tabs-nav li a,
			.format-quote .sc_quote,
			.sc_tabs ul.sc_tabs_titles li a,
			.sc_testimonials_item_quote,
			.sc_testimonials_item_user,
			.sc_price_item,
			.sc_pricing_table .sc_pricing_item ul li.sc_pricing_title,
			.sc_skills_arc .sc_skills_legend li,
			.sc_skills_counter,
			.sc_countdown_flip .flip-clock-wrapper ul,
			.sc_countdown_round .countdown-amount{ font-family: \'' . $header_font . '\',\'' . $theme_font . '\', ' . $fonts[$header_font]['family'] . '; }');
    }
    //Custom heading H1-H6
    $hCounter = 1;
    while ($hCounter <= 6) {
        $heading_array = array();
        $heading_array[] = 'letter-spacing:' . (get_custom_option('header_font_spacing_h' . $hCounter) != '' ? get_custom_option('header_font_spacing_h' . $hCounter) : 0) . 'px;';
        $heading_array[] = 'font-size:' . get_custom_option('header_font_size_h' . $hCounter) . 'px;';
        $heading_array[] = get_custom_option('header_font_uppercase_h' . $hCounter) == 'yes' ? 'text-transform: uppercase;' : 'text-transform: capitalize;';
        $heading_array[] = 'font-style:' . get_custom_option('header_font_style_h' . $hCounter) . ';';
        $heading_array[] = 'font-weight:' . get_custom_option('header_font_weight_h' . $hCounter) . ';';
        $heading_array[] = 'line-height:' . round(get_custom_option('header_font_size_h' . $hCounter) * 1.2) . 'px;';
        $heading_array[] = 'margin: 0 0 ' . round(get_custom_option('header_font_size_h' . $hCounter) / 2) . 'px 0;';
        $extra_h2 = $hCounter == 2 ? ', .sc_video_frame .sc_video_frame_info_wrap .sc_video_frame_info .sc_video_frame_player_title' : '';
        addThemeCustomStyle('h' . $hCounter . $extra_h2 . '{ ' . (!empty($heading_array) ? join(' ', $heading_array) : '') . ' }');
        $hCounter++;
    }
    //Custom logo style
    if (get_custom_option('logo_type') == 'logoImage') {
        //images style
        addThemeCustomStyle('
			.wrap.logoImageStyle .logoHeader{ width:' . $logo_widht . 'px; }
			.wrap.logoImageStyle .logo_bg_size{ border-width: 45px ' . $logo_widht / 2 . 'px 0 ' . $logo_widht / 2 . 'px; }
			.menu-logo{ width:' . $logo_widht . 'px; }');
    } else {
        //logo text style
        $style_logo_array = array();
        $style_logo_array[] = 'font-family:"' . get_custom_option('logo_font') . '";';
        $style_logo_array[] = 'font-style:' . get_custom_option('logo_font_style') . ';';
        $style_logo_array[] = 'font-weight:' . get_custom_option('logo_font_weight') . ';';
        $style_logo_array[] = 'font-size:' . get_custom_option('logo_font_size') . 'px;';
        $style_logo_array[] = 'line-height:' . get_custom_option('logo_font_size') . 'px;';
        addThemeCustomStyle('
			.wrap.logoTextStyle .logoHeader{ width:' . $logo_widht . 'px; ' . (!empty($style_logo_array) ? join(' ', $style_logo_array) : '') . ' }
			.wrap.logoTextStyle .logo_bg_size{ border-width: 45px ' . $logo_widht / 2 . 'px 0 ' . $logo_widht / 2 . 'px; } 
			.menu-logo{ width:' . $logo_widht . 'px; }
			.wrapTopMenu .topMenu .logo a{' . (!empty($style_logo_array) ? join(' ', $style_logo_array) : '') . '}');
    }
    //background custom style
    if (get_custom_option('body_style') == 'boxed') {
        $style_custom_array = array();
        get_custom_option('bg_color') != '' ? $style_custom_array[] = get_custom_option('bg_color') : '';
        if (get_custom_option('bg_custom_image') != '') {
            $style_custom_array[] = 'url(' . get_custom_option('bg_custom_image') . ')';
            $style_custom_array[] = get_custom_option('bg_custom_image_position_x');
            $style_custom_array[] = get_custom_option('bg_custom_image_position_y');
            $style_custom_array[] = get_custom_option('bg_custom_image_repeat');
            $style_custom_array[] = get_custom_option('bg_custom_image_attachment');
        }
        addThemeCustomStyle('
			.wrap{ background-color: ' . (!empty($style_custom_array) ? join(' ', $style_custom_array) : '') . ';}');
        addThemeCustomStyle('
		 	.bodyStyleBoxed .wrapBox{background-color: ' . get_custom_option('body_bg_color') . ';}');
    }
    if ($theme_color == '') {
        $theme_color = '#5ea281';
    }
    if ($theme_accent_color == '') {
        $theme_accent_color = '#a7d692';
    }
    //theme color
    if ($theme_color != '') {
        addThemeCustomStyle('
		/*color*/
		a, h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
		.h1 a:hover,.h2 a:hover,.h3 a:hover,.h4 a:hover,.h5 a:hover,.h6 a:hover,
		.logoHeader a, .subTitle, 
		#header .rightTop a,
		.menuStyle2 .wrapTopMenu .topMenu > ul > li > ul li.sfHover > a,
		.menuStyle2 .wrapTopMenu .topMenu > ul > li > ul li a:hover,
		.menuStyle2 .wrapTopMenu .topMenu > ul > li > ul li.menu-item-has-children:after,
		.widget_twitter ul > li:before,
		.widget_twitter ul > li a,
		.widget_rss ul li a,
		.widget_trex_post .ui-tabs-nav li a,
		.nav_pages ul li a:hover,
		.postFormatIcon:before,
		.comments .commentModeration .icon,
		.sc_button.sc_button_skin_dark.sc_button_style_line:hover,
		.sc_button.sc_button_skin_global.sc_button_style_line,
		.sc_quote, blockquote,
		.sc_toggl.sc_toggl_style_1 .sc_toggl_item .sc_toggl_title:hover,
		.sc_toggl.sc_toggl_style_2 .sc_toggl_item .sc_toggl_title:hover,
		.sc_dropcaps.sc_dropcaps_style_3 .sc_dropcap,
		.sc_highlight.sc_highlight_style_2 ,
		.sc_tabs.sc_tabs_style_2 ul li a,
		.sc_tabs.sc_tabs_style_1 ul li.ui-tabs-active a,
		.sc_testimonials .sc_testimonials_item_author .sc_testimonials_item_user,
		ul.sc_list.sc_list_style_iconed li:before,
		ul.sc_list.sc_list_style_iconed.sc_list_marked_yes li,
		ul.sc_list.sc_list_style_iconed li.sc_list_marked_yes ,
		.sc_button.sc_button_skin_global.sc_button_style_line,
		.sc_quote, blockquote,
		.sc_dropcaps.sc_dropcaps_style_3 .sc_dropcap,
		.sc_team .sc_team_item:hover .sc_team_item_title,
		.sc_team .sc_team_item:hover .sc_team_item_position,
		.sc_countdown.sc_countdown_round .sc_countdown_counter .countdown-section .countdown-amount,
		.sc_countdown .flip-clock-wrapper ul li a div div.inn,
		.isotopeWrap .fullItemWrap .fullItemClosed:hover,
		.postInfo .postReview .revBlock .ratingValue,
		.reviewBlock .reviewTab .revTotalWrap .revTotal .revRating,
		.reviewBlock .reviewTab .revWrap .revBlock .ratingValue,
		.sc_countdown.sc_countdown_round .sc_countdown_counter .countdown-section:after,
		.isotopeWrap .isotopeItem .isotopeContent .isotopeTitle a:hover,
		.sc_toggl.sc_toggl_style_4.sc_toggl_icon_show .sc_toggl_item .sc_toggl_title:before,
		.sc_toggl.sc_toggl_style_4 .sc_toggl_item.sc_active .sc_toggl_title,
		.sc_table.sc_table_style_1 table tbody tr td.first,
		.sc_table.sc_table_style_1 table thead tr th.first,.sc_skills_counter .sc_skills_item.sc_skills_style_1 .sc_skills_count,
                .sc_skills_counter .sc_skills_item.sc_skills_style_2 .sc_skills_count,
		.sc_quote.sc_quote_style2 .icon-quote, blockquote.sc_quote_style2 .icon-quote,
		.author .authorInfo .authorTitle a, 
		.comments .commentInfo .commAuthor a,
		.comments .commentInfo .commReply a,
		.comments .commentInfo .commAuthor,
		.sc_slider_swiper .slides li .sc_slider_info a:hover,
		.sc_testimonials .sc_testimonials_item_author .sc_testimonials_item_user,
		.sc_testimonials.sc_testimonials_style_2 .sc_slider_swiper.sc_slider_controls .slider-control-nav li a:before,
		ul.sc_list.sc_list_style_iconed li:before,
		ul.sc_list.sc_list_style_iconed.sc_list_marked_yes li,
		ul.sc_list.sc_list_style_iconed li.sc_list_marked_yes,
		.sc_chat .sc_quote_title,
		.sc_aside_title,
		.post.type-post.format-link a p,
		.sc_button.sc_button_skin_dark.sc_button_style_line:hover,
		.sc_button.sc_button_skin_global.sc_button_style_line,
		.sc_quote, blockquote,
		.sc_quote .sc_quote_title, blockquote .sc_quote_title,
		.sc_toggl.sc_toggl_style_1 .sc_toggl_item .sc_toggl_title:hover,
		.sc_toggl.sc_toggl_style_1 .sc_toggl_item .sc_toggl_title:hover a,
		.sc_toggl.sc_toggl_style_2 .sc_toggl_item .sc_toggl_title:hover,
		.sc_toggl.sc_toggl_style_4 .sc_toggl_item .sc_toggl_title:hover,
		.sc_toggl.sc_toggl_style_4 .sc_toggl_item .sc_toggl_title:hover a,
		.sc_dropcaps.sc_dropcaps_style_3 .sc_dropcap,
		.sc_countdown.sc_countdown_round .sc_countdown_counter .countdown-section .countdown-amount,
		.sc_highlight.sc_highlight_style_2,
		.sc_highlight.sc_highlight_style_2 a,
		.sc_pricing_table:not(.sc_pricing_table_blue).sc_pricing_table_style_1 .sc_pricing_price,
		.sc_pricing_table:not(.sc_pricing_table_blue).sc_pricing_table_style_2 .sc_pricing_price,
		.sc_pricing_table:not(.sc_pricing_table_blue).sc_pricing_table_style_3  .sc_button.sc_button_skin_global,
		.sc_tabs.sc_tabs_style_2 ul li a,
		.logoHeader a,
		.subTitle,
		.wrapTopMenu .topMenu > ul > li > a:hover,
		.hideMenuDisplay .usermenuArea > ul > li > a,
		.menuStyle1 #header ul > li > ul li.sfHover > a,
		.menuStyle1 #header ul > li > ul li a:hover,
		.menuStyle2 #header ul > li > ul li.sfHover > a,
		.menuStyle2 #header ul > li > ul li a:hover,
		.widgetWrap ul > li,
		.widget_twitter ul > li:before,
		.widget_twitter ul > li a,
		.widget_rss ul li a,
		.widget_trex_post .ui-tabs-nav li a,
		.revItem .revBlock .ratingValue,
		.reviewBlock .reviewTab .revWrap .revBlock .ratingValue,
		.reviewBlock .reviewTab .revTotalWrap .revTotal .revRating,
		.nav_pages ul li a:hover,
		.hoverUnderline a:hover,
		.postFormatIcon:before,
		.page404 .title404,
		.comments .commentModeration .icon,
		.isotopeWrap .isotopeItem .isotopeContent .isotopeTitle a:hover,
		.isotopeWrap .fullItemWrap .fullItemClosed:hover,
		.isotopeWrap .fullItemWrap .isotopeNav:hover,
		.sc_pricing_table.sc_pricing_table_style_1 .sc_pricing_item ul li.sc_pricing_title,
		.sc_pricing_table.sc_pricing_table_style_1 .sc_pricing_item ul li.sc_pricing_price,
		.sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul li.sc_pricing_price,
		li.sc_list_item.sc_list_marked_yes,
		.isotopeWrap .isotopeItem .isotopeContent .isotopeCats a:hover,
		.sc_contact_info .sc_contact_info_name,
		.woocommerce .star-rating:before, .woocommerce .star-rating:before,
		.woocommerce .star-rating span, .woocommerce .star-rating span,
		.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta strong ,
		table.shop_table.cart th, .wrapTopMenu .topMenu div > ul > li > a:hover,
		.sideBarWide .sc_button.sc_button_skin_dark.sc_button_style_bg:hover,
		.sideBarWide .postSharing .postSpan .revInfo:hover, .sc_required, q,
		.widget_trex_post .post_item .post_wrapper .post_title a:hover ,
		.widgetWrap ul > li a:hover,
		.sideBar a:hover{ color: ' . $theme_color . '; }
		
		.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color: ' . $theme_color . ' !important; }

		input[type="search"]::-webkit-search-cancel-button {color: ' . $theme_color . ';}
		
		/*border*/
		.isotopeWrap .isotopeItem .isotopeRating{ border-color: ' . $theme_color . ' transparent;}
		.woocommerce ul.products li.product a:hover img {border-bottom: 2px solid ' . $theme_color . ' !important;}

		.nav_pages ul li a:hover,
		.wrapTopMenu .topMenu > ul > li > ul,
		.menuStyle1 .wrapTopMenu .topMenu > ul > li > ul > li ul,
		.menuStyle2 .wrapTopMenu .topMenu > ul > li > ul > li ul,
		.widget_trex_post .ui-tabs-nav li a,
		.sc_button.sc_button_skin_dark.sc_button_style_line:hover,
		.sc_button.sc_button_skin_global.sc_button_style_line,
		.sc_tooltip,
		.sc_tooltip .sc_tooltip_item,
		.sc_tabs.sc_tabs_style_2 ul li a,
		.sc_tabs.sc_tabs_style_2 ul li + li a,
		.sc_tabs.sc_tabs_style_2 .sc_tabs_array,
		.sc_banner:before,
		.sc_button.sc_button_skin_global.sc_button_style_line,
		.sc_banner:before,
		.sc_button.sc_button_skin_dark.sc_button_style_line:hover,
		.sc_button.sc_button_skin_global.sc_button_style_line,
		.sc_tabs.sc_tabs_style_2 ul li a,
		.sc_tabs.sc_tabs_style_2 ul li + li a,
		.sc_tabs.sc_tabs_style_2 .sc_tabs_array,,
		.wrapTopMenu .topMenu > ul > li > ul,
		.usermenuArea > ul > li > ul,
		.menuStyle2 #header ul > li > ul > li ul,
		.widget_calendar table tbody td#today span,
		.widget_trex_post .ui-tabs-nav li a,
		.nav_pages ul li a:hover, .sc_tabs.sc_tabs_style_2 ul.sc_tabs_titles li.ui-tabs-active a{ border-color: ' . $theme_color . '; }

		.sc_tooltip .sc_tooltip_item:before,
		.logoStyleBG .logoHeader .logo_bg_size,
		.isotopeWrap .isotopeItem .isotopeRating:after,
		.sc_slider_swiper .sc_slider_info .sc_slider_reviews_short:after,
		.sc_tooltip .sc_tooltip_item:before,
		.logoStyleBG .logoHeader .logo_bg_size { border-color: ' . $theme_color . ' transparent transparent transparent; }

		.widget_recent_reviews .post_item .post_wrapper .post_info .post_review:after{ border-color: transparent transparent transparent ' . $theme_color . '; }
		.buttonScrollUp { border-color: transparent transparent ' . $theme_color . ' transparent; }
		.sc_testimonials.sc_testimonials_style_1 .sc_testimonials_item_author_show .sc_testimonials_item_quote:after { border-left-color: ' . $theme_color . '; }

		.widget_calendar table tbody td#today { outline: 1px solid ' . $theme_color . '; }
		.sc_testimonials.sc_testimonials_style_1 .sc_testimonials_item_author_show .sc_testimonials_item_quote:after{  border-left-color: ' . $theme_color . '; }
		.sc_pricing_table.sc_pricing_table_style_1 .sc_pricing_item ul li.sc_pricing_title,
		.sc_tooltip{border-bottom-color: ' . $theme_color . ';}
		.postInfo .stickyPost:after{ border-color: transparent transparent transparent ' . $theme_color . '; }


		/*background*/
		#header .openTopMenu,
		.menuStyle1 .wrapTopMenu .topMenu > ul > li > ul > li ul,
		.menuStyle2 .wrapTopMenu .topMenu > ul > li > ul li a:before,
		.widget_calendar table tbody td a:before,
		.widget_calendar table tbody td a:hover, 
		.widget_tag_cloud a:hover,
		.widget_trex_post .ui-tabs-nav li.ui-state-active a,
		.nav_pages ul li span,
		.sc_button.sc_button_skin_global.sc_button_style_bg,
		.sc_video_frame.sc_video_active:before,
		.sc_toggl.sc_toggl_style_2.sc_toggl_icon_show .sc_toggl_item .sc_toggl_title:after,
		.sc_toggl.sc_toggl_style_3 .sc_toggl_item .sc_toggl_title ,
		.sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap,
		.sc_tooltip .sc_tooltip_item,
		.sc_table.sc_table_style_2 table thead tr th,
		.sc_pricing_table.sc_pricing_table_style_2 .sc_pricing_item ul li.sc_pricing_title,
		.sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul li.sc_pricing_title,
		.sc_scroll .sc_scroll_bar .swiper-scrollbar-drag,
		.sc_skills_bar .sc_skills_item .sc_skills_count ,
		.sc_skills_bar.sc_skills_vertical .sc_skills_item .sc_skills_count ,
		.sc_icon.sc_icon_box,
		.sc_icon.sc_icon_box_circle,
		.sc_icon.sc_icon_box_square,
		.sc_slider.sc_slider_dark .slider-pagination-nav span.swiper-active-switch ,
		.sc_slider.sc_slider_light .slider-pagination-nav span.swiper-active-switch,
		.sc_testimonials.sc_testimonials_style_1 .sc_testimonials_item_quote,
		.sc_testimonials.sc_testimonials_style_2 .sc_testimonials_title:after,
		.sc_testimonials.sc_testimonials_style_2 .sc_slider_swiper.sc_slider_pagination .slider-pagination-nav span.swiper-active-switch,
		.sc_button.sc_button_skin_global.sc_button_style_bg,
		.sc_video_frame.sc_video_active:before,
		.sc_loader_show:before,
		.sc_toggl.sc_toggl_style_2.sc_toggl_icon_show .sc_toggl_item .sc_toggl_title:after ,
		.sc_toggl.sc_toggl_style_3 .sc_toggl_item .sc_toggl_title ,
		.sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap,
		.postInfo .postReview .revBlock.revStyle100 .ratingValue,
		.reviewBlock .reviewTab .revWrap .revBlock.revStyle100 .ratingValue,
		.post-password-required .post-password-form input[type="submit"]:hover,
		.sc_button.sc_button_skin_dark.sc_button_style_bg:hover, 
		.sc_button.sc_button_skin_global.sc_button_style_bg,
		.sc_skills_counter .sc_skills_item.sc_skills_style_3 .sc_skills_count,
		.sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_count,
		.isotopeFiltr ul li.active a,
		.sc_slider.sc_slider_dark .slider-pagination-nav span.swiper-active-switch,
		.sc_slider.sc_slider_light .slider-pagination-nav span.swiper-active-switch,
		.sc_slider_swiper .sc_slider_info .sc_slider_reviews_short span.rInfo,
		.sc_testimonials.sc_testimonials_style_1 .sc_testimonials_item_quote,
		.sc_testimonials.sc_testimonials_style_2 .sc_testimonials_title:after,
		.sc_testimonials.sc_testimonials_style_2 .sc_slider_swiper.sc_slider_pagination .slider-pagination-nav span.swiper-active-switch,
		.sc_video_frame.sc_video_active:before,
		.sc_button.sc_button_skin_global.sc_button_style_bg,
		.sc_button.sc_button_style_regular:hover,
		.sc_toggl.sc_toggl_style_2.sc_toggl_icon_show .sc_toggl_item .sc_toggl_title:after,
		.sc_toggl.sc_toggl_style_3 .sc_toggl_item .sc_toggl_title,
		.sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap,
		.sc_tooltip .sc_tooltip_item,
		.sc_table.sc_table_style_2 table thead tr th,
		.sc_pricing_table.sc_pricing_table_style_2 .sc_pricing_item ul li.sc_pricing_title,
		.sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul,
		.sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul li.sc_pricing_title,
		.sc_pricing_table.sc_pricing_table_style_2 .sc_pricing_item ul,
		.sc_scroll .sc_scroll_bar .swiper-scrollbar-drag,
		.sc_skills_bar .sc_skills_item .sc_skills_count,
		.sc_skills_bar.sc_skills_vertical .sc_skills_item .sc_skills_count,
		.sc_icon.sc_icon_box,
		.sc_icon.sc_icon_box_square,
		.sc_icon.sc_icon_box_circle,
		.sc_tabs.sc_tabs_style_2 ul.sc_tabs_titles li.ui-tabs-active a,
		#header .openTopMenu,
		.openMobileMenu,
		.hideMenuDisplay .usermenuArea > ul > li > a:before,
		.menuStyle2 #header ul > li > ul li a:before,
		.widget_calendar table tbody td a:before,
		.widget_calendar table tbody td a:hover,
		.widget_tag_cloud a:hover,
		.widget_recent_reviews .post_item .post_wrapper .post_info .post_review,
		.widget_trex_post .ui-tabs-nav li.ui-state-active a,
		.postInfo .stickyPost .postSticky,
		.revItem .revBlock.revStyle100 .ratingValue,
		.reviewBlock .reviewTab .revWrap .revBlock.revStyle100 .ratingValue,
		.nav_pages ul li span,
		.subCategory,
		.sc_highlight.sc_highlight_style_1,
		.sc_tooltip .sc_tooltip_item,
		.widget_search .searchFormWrap .searchSubmit input,
		#header .usermenuArea ul.usermenuList .usermenuCart .widget_area p.buttons a:hover{ background-color: ' . $theme_color . '; }

		.woocommerce ul.products li.product a.button:hover,
		.woocommerce div.product form.cart .button:hover,
		.woocommerce input.button:hover{ background-color: ' . $theme_color . ' !important;} 

		.sc_button.sc_button_style_regular:hover, .woocommerce #review_form #respond .form-submit input:hover{ background-color: ' . $theme_color . ' !important; }

		::selection { color: #fff; background-color:' . $theme_color . ';}
		::-moz-selection { color: #fff; background-color:' . $theme_color . ';}');
    }
    //theme accent color
    if ($theme_accent_color != '') {
        addThemeCustomStyle('
		.sc_pricing_table.sc_pricing_table_style_1 .sc_pricing_item ul,
		.sc_pricing_table.sc_pricing_table_style_1 .sc_pricing_item ul li.sc_pricing_title,
		.sc_pricing_table.sc_pricing_table_style_2  .sc_button.sc_button_skin_global.sc_button_style_bg ,
		.sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul,
		.sc_skills_bar .sc_skills_item ,
		.sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_info,
		.sc_tabs.sc_tabs_style_3 ul.sc_tabs_titles li,
		.sc_testimonials.sc_testimonials_style_2 .sc_slider_swiper.sc_slider_pagination .slider-pagination-nav span,
		footer.footer_style_green .widget_tag_cloud a,
		.widget_tag_cloud a,
		.isotopeFiltr ul li a ,
		.themeDark .isotopeFiltr ul li.active a,
		.isotopeFiltr ul li a:hover{ background-color: ' . $theme_accent_color . ';}

		.woocommerce ul.products li.product a.button,
		.woocommerce div.product form.cart .button,
		.woocommerce #content .quantity .plus:hover, 
		.woocommerce #content .quantity .minus:hover,
		.woocommerce input.button  { background-color: ' . $theme_accent_color . ' !important; background: ' . $theme_accent_color . ' !important;}

		.sc_pricing_table.sc_pricing_table_style_2 .sc_pricing_item ul li.sc_pricing_title,
		.sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul li.sc_pricing_title{border-bottom-color: ' . $theme_accent_color . ';}

		.sc_team .sc_team_item .sc_team_item_border,
		.woocommerce .quantity input.qty, 
		.woocommerce #content .quantity input.qty, 
		.woocommerce .quantity input.qty, 
		.woocommerce #content .quantity input.qty,
		.woocommerce #content .quantity .plus, 
		.woocommerce #content .quantity .minus,
		.woocommerce .quantity .plus, 
		.woocommerce .quantity .minus{border-color: ' . $theme_accent_color . ';}

		.sc_team .sc_team_item .sc_team_item_socials ul li a:hover span,
		footer.footer_style_green .widgetWrap ul > li a,
		.sc_icons_widget .sc_icons_item{ color: ' . $theme_accent_color . '; }

		.woocommerce #content div.product div.images a {border: 2px solid ' . $theme_accent_color . ' !important;}
		');
    }
    if ($background_color != '') {
        addThemeCustomStyle('
			
			body{ background-color: ' . $background_color . '; }
			.rsUni, .rsUni .rsOverflow, .rsUni .rsSlide, .rsUni .rsVideoFrameHolder, .rsUni .rsThumbs{ background-color: ' . $background_color . ' !important; }
			.woocommerce #content div.product .woocommerce-tabs ul.tabs li.active{border-bottom: 1px solid ' . $background_color . '; }
		');
    }
    // Custom menu
    if (get_theme_option('menu_colored') == 'yes') {
        $menu_name = 'mainmenu';
        if (($locations = get_nav_menu_locations()) && isset($locations[$menu_name])) {
            $menu = wp_get_nav_menu_object($locations[$menu_name]);
            if (is_object($menu) && $menu) {
                $menu_items = wp_get_nav_menu_items($menu->term_id);
                $menu_styles = '';
                $menu_slider = get_theme_option('menu_slider') == 'yes';
                if (count($menu_items) > 0) {
                    foreach ($menu_items as $k => $item) {
                        //				if ($item->menu_item_parent==0) {
                        $cur_accent_color = '';
                        if ($item->type == 'taxonomy' && $item->object == 'category') {
                            $cur_accent_color = get_category_inherited_property($item->object_id, 'theme_accent_color');
                        }
                        if ((empty($cur_accent_color) || is_inherit_option($cur_accent_color)) && isset($item->classes[0]) && !empty($item->classes[0])) {
                            $cur_accent_color = (themerex_substr($item->classes[0], 0, 1) != '#' ? '#' : '') . $item->classes[0];
                        }
                        if (!empty($cur_accent_color) && !is_inherit_option($cur_accent_color)) {
                            $menu_styles .= ($item->menu_item_parent == 0 ? "#header_middle_inner #mainmenu li.menu-item-{$item->ID}.current-menu-item > a," : '') . "\r\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} > a:hover,\r\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.sfHover > a { background-color: {$cur_accent_color} !important; }\r\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} ul { background-color: {$cur_accent_color} !important; } ";
                        }
                        if ($menu_slider && $item->menu_item_parent == 0) {
                            $menu_styles .= "\r\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over:not(.current-menu-item) > a:hover,\r\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over.sfHover > a { background-color: transparent !important; } ";
                        }
                        //				}
                    }
                }
                if (!empty($menu_styles)) {
                    addThemeCustomStyle($menu_styles);
                }
            }
        }
    }
    //main menu responsive width
    //
    $menu_responsive = get_theme_option('responsive_menu_width') . 'px';
    addThemeCustomStyle("\r\n\t\t@media (min-width: {$menu_responsive}) { \r\n\t\t\t.logo_center .logoHeader, .logo_center #mainmenu{display: none;}\r\n\t\t}\r\n\r\n\t\t@media (max-width: {$menu_responsive}) { \r\n\t\t\t.openMobileMenu{ display: block; }\r\n\t\t\t.menuStyleFixed #header.fixedTopMenuShow .menuFixedWrap{ position: static !important; }\r\n\t\t\t.wrapTopMenu .topMenu { width: 100%;  }\r\n\t\t\t.wrapTopMenu .topMenu > ul{ display: none;  clear:both; }\r\n\t\t\t.wrapTopMenu .topMenu > ul li{ display: block; clear:both;  border-top: 1px solid #ddd; padding: 10px 0; text-align: center !important;}\r\n\t\t\t.wrapTopMenu .topMenu > ul li a{ }\r\n\t\t\t.wrapTopMenu .topMenu > ul li ul{ position: static !important; width:auto !important; margin:0 !important; border: none !important; text-align:center; background-color: transparent !important; }\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > ul:before{ display:none;}\r\n\t\t\t.openTopMenu{ display: none; }\r\n\t\t\t.wrapTopMenu .topMenu > ul > li.sfHover > a:before,\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > a{ line-height: 30px !important;  opacity:1 !important; height: auto !important; }\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > a:hover:before{ left:10px; right:10px; }\r\n\t\t\t.hideMenuDisplay .wrapTopMenu{ min-height: 45px !important; height: auto !important;}\r\n\t\t\t.hideMenuDisplay .usermenuArea > ul li a{ color: #fff !important; }\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > ul:after{content: none;}\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > ul li:last-child {padding-bottom: 0 !important; }\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > ul li.menu-item-has-children {padding: 10px 0; }\r\n\t\t\t.menuStyle1 #header ul > li > ul > li ul:before, .menuStyle1 #header ul > li > ul > li ul:after, .menuStyle1 #header ul > li > ul li.menu-item-has-children:after{display: none;}\r\n\t\t\t.logo_center .topMenu .newMenu, .logo_center .topMenu .logo {display: none !important;}\r\n\t\t\t.wrap.logoImageStyle .logoHeader {padding-top: 20px;}\r\n\t\t}\r\n\t");
    // Main menu height
    $menu_height = (int) get_theme_option('menu_height');
    if ($menu_height > 20) {
        addThemeCustomStyle("\r\n\t\t\t#mainmenu > li > a { height: {$menu_height}px !important; line-height: {$menu_height}px !important; }\r\n\t\t\t#mainmenu > li ul { top: {$menu_height}px !important; }\r\n\t\t\t#header_middle { min-height: {$menu_height}px !important; } ");
    }
    // Submenu width
    $menu_width = (int) get_custom_option('menu_width');
    if ($menu_width > 50) {
        addThemeCustomStyle('
			.wrapTopMenu .topMenu > ul > li > ul { width: ' . $menu_width . 'px; margin: 0 0 0 -' . ($menu_width + 30) / 2 . 'px; }
			#mainmenu > li:nth-child(n+6) ul li ul { left: -' . $menu_width . 'px; } ');
    }
    // Custom css from theme options
    $css = get_theme_option('custom_css');
    if (!empty($css)) {
        addThemeCustomStyle($css);
    }
    return getThemeCustomStyles();
}
function prepareThemeCustomStyles()
{
    // Custom fonts
    if (get_custom_option('typography_custom') == 'yes') {
        $s = '';
        $fonts = getThemeFontsList(false);
        $fname = get_custom_option('typography_p_font');
        if (isset($fonts[$fname])) {
            $fstyle = explode(',', get_custom_option('typography_p_style'));
            $fname2 = ($pos = themerex_strpos($fname, ' (')) !== false ? themerex_substr($fname, 0, $pos) : $fname;
            $i = in_array('i', $fstyle);
            $u = in_array('u', $fstyle);
            $c = get_custom_option('typography_p_color');
            $s .= "\n\t\t\t\tbody, button, input, select, textarea {\n\t\t\t\t\tfont-family: '" . $fname2 . "'" . (isset($fonts[$fname]['family']) ? ", " . $fonts[$fname]['family'] : '') . ";\n\t\t\t\t}\n\t\t\t\tbody {\n\t\t\t\t\tfont-size: " . get_custom_option('typography_p_size') . "px;\n\t\t\t\t\tfont-weight: " . get_custom_option('typography_p_weight') . ";\n\t\t\t\t\tline-height: " . get_custom_option('typography_p_lineheight') . "px;\n\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t" . ($i ? "font-style: italic;" : '') . "\n\t\t\t\t\t" . ($u ? "text-decoration: underline;" : '') . "\n\t\t\t\t}\n\t\t\t";
        }
        for ($h = 1; $h <= 6; $h++) {
            $fname = get_custom_option('typography_h' . $h . '_font');
            if (isset($fonts[$fname])) {
                $fstyle = explode(',', get_custom_option('typography_h' . $h . '_style'));
                $fname2 = ($pos = themerex_strpos($fname, ' (')) !== false ? themerex_substr($fname, 0, $pos) : $fname;
                $i = in_array('i', $fstyle);
                $u = in_array('u', $fstyle);
                $c = get_custom_option('typography_h' . $h . '_color');
                $s .= "\n\t\t\t\t\th" . $h . ", .h" . $h . " {\n\t\t\t\t\t\tfont-family: '" . $fname2 . "'" . (isset($fonts[$fname]['family']) ? ", " . $fonts[$fname]['family'] : '') . ";\n\t\t\t\t\t\tfont-size: " . get_custom_option('typography_h' . $h . '_size') . "px;\n\t\t\t\t\t\tfont-weight: " . get_custom_option('typography_h' . $h . '_weight') . ";\n\t\t\t\t\t\tline-height: " . get_custom_option('typography_h' . $h . '_lineheight') . "px;\n\t\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t\t" . ($i ? "font-style: italic;" : '') . "\n\t\t\t\t\t\t" . ($u ? "text-decoration: underline;" : '') . "\n\t\t\t\t\t}\n\t\t\t\t\th" . $h . " a, .h" . $h . " a {\n\t\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t}\n\t\t\t\t";
            }
        }
        if (!empty($s)) {
            addThemeCustomStyle($s);
        }
    }
    // Submenu width
    $menu_width = (int) get_theme_option('menu_width');
    if ($menu_width > 50) {
        addThemeCustomStyle("\n\t\t\t.topWrap .topMenuStyleLine > ul > li ul {\n\t\t\t\twidth: {$menu_width}px;\n\t\t\t}\n\t\t\t.topWrap .topMenuStyleLine > ul > li ul li ul {\n\t\t\t\tleft: " . ($menu_width + 31) . "px;\n\t\t\t}\n\t\t\t.menu_right .topWrap .topMenuStyleLine ul.submenu_left {\n\t\t\t\tleft: -" . ($menu_width + 91) . "px !important;\n\t\t\t}\n\t\t\tul#mainmenu .menu-panel ul.columns > li ul {\n\t\t\t\tmax-width: " . $menu_width . "px;\n\t\t\t}\n\n\t\t");
    }
    // Logo height
    $logo_height = (int) get_custom_option('logo_height');
    $logo_offset = (int) get_custom_option('logo_offset');
    if ($logo_height > 10) {
        if (empty($logo_offset)) {
            $logo_offset = max(20, round((100 - $logo_height) / 2));
        }
        $add = max(0, round(($logo_offset * 2 + $logo_height - 100) / 2));
        addThemeCustomStyle("\n\t\t\theader.noFixMenu .topWrap .logo {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu .topWrap .logo img {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu .topWrap .logo .logo_text {\n\t\t\t\tline-height: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .openRightMenu,\n\t\t\theader.noFixMenu.menu_right .topWrap .search {\n\t\t\t\tmargin-top: " . (33 + $add) . "px;\n\t\t\t\tmargin-bottom: " . (37 + $add) . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul > li {\n\t\t\t\tpadding-top: " . (30 + $add) . "px;\n\t\t\t\tpadding-bottom: " . (30 + $add) . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul#mainmenu > li > .menu-panel,\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul > li > ul {\n\t\t\t\ttop: " . (100 + $add) . "px;\n\t\t\t}\n\t\t");
    }
    // Logo top offset
    if ($logo_offset > 0) {
        addThemeCustomStyle("\n\t\t\theader.noFixMenu .topWrap .logo {\n\t\t\t\tpadding: " . $logo_offset . "px 0 0 0;\n\t\t\t}\n\t\t");
    }
    $logo_height = (int) get_theme_option('logo_image_footer_height');
    if ($logo_height > 10) {
        addThemeCustomStyle("\n\t\t\tfooter .logo img {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t");
    }
    // Main Slider height
    $slider_height = (int) get_custom_option('slider_height');
    if ($slider_height > 10) {
        addThemeCustomStyle("\n\t\t\t.sliderHomeBullets {\n\t\t\t\theight: " . $slider_height . "px;\n\t\t\t}\n\t\t");
    }
    // Bg custom image
    global $bg_custom_image_style;
    if ($bg_custom_image_style != '' && get_custom_option('bg_custom_image_style') != '') {
        addThemeCustomStyle("\n\t\t\t.sc_quote_style_1,\n\t\t\t.audio_container,\n\t\t\t.topTabsWrap,\n\t\t\t.relatedPostWrap article .wrap.no_thumb,\n\t\t\t.postAside,\n\t\t\t.postStatus,\n\t\t\t.postLink,\n\t\t\t.portfolioWrap .isotopePadding,\n\t\t\t.userFooterSection.global,\n\t\t\t.sc_testimonials_style {\n\t\t\t\tbackground-image:url(" . $bg_custom_image_style . ");\n\t\t\t}\n\t\t\t.sc_testimonials_style {\n\t\t\t\tbackground-size: 100% auto;\n\t\t\t}\n\t\t");
    }
    // Bg custom image in header
    global $bg_custom_image_style_header;
    if ($bg_custom_image_style_header != '') {
        addThemeCustomStyle("\n\t\t\t.userHeaderSection.global {\n\t\t\t\tbackground-image:url(" . $bg_custom_image_style_header . ");\n\t\t\t}\n\t\t");
    } else {
        if ($bg_custom_image_style != '' && get_custom_option('bg_custom_image_style') != '') {
            addThemeCustomStyle("\n\t\t\t.userHeaderSection.global {\n\t\t\t\tbackground-image:url(" . $bg_custom_image_style . ");\n\t\t\t}\n\t\t");
        }
    }
    // Custom css from theme options
    $css = get_custom_option('custom_css');
    if (!empty($css)) {
        addThemeCustomStyle($css);
    }
    $custom_style = '';
    $customizer = get_theme_option('show_theme_customizer') == 'yes';
    // Theme color from customizer
    $clr = '';
    if ($customizer) {
        $clr = getValueGPC('theme_color', '');
    }
    if (empty($clr)) {
        $clr = get_custom_option('theme_color');
    }
    if (!empty($clr)) {
        $rgb = hex2rgb($clr);
        $custom_style .= '
a:hover,
.theme_accent,
.theme_accent:before,
.topTabsWrap .speedBar a:hover,
.topWrap .topMenuStyleLine > ul > li ul li a:hover,
.topWrap .topMenuStyleLine .current-menu-item > a,
.topWrap .topMenuStyleLine .current-menu-ancestor > a,
.topWrap .topMenuStyleLine > ul li a:hover,
.topWrap .topMenuStyleLine > ul li.sfHover > a,
.infoPost a:hover,
.tabsButton ul li a:hover,
.popularFiltr ul li a:hover,
.isotopeFiltr ul li a:hover,
.widget_popular_posts article h3:before,
.widgetTabs .widget_popular_posts article .post_info .post_date a:hover,
.sidebar .widget_popular_posts article .post_info .post_date a:hover,
.sidebar .widget_recent_posts article .post_info .post_date a:hover,
.main .widgetWrap a:hover,
.main .widgetWrap a:hover span,
.widgetWrap a:hover span,
.roundButton:hover a,
input[type="submit"]:hover,
input[type="button"]:hover,
.squareButton > a:hover,
.nav_pages_parts > a:hover,
.nav_comments > a:hover,
.comments_list a.comment-edit-link:hover,
.wp-calendar tbody td.today a:hover,
blockquote.sc_quote_title a:hover,
blockquote.sc_quote_style_1 a:hover,
blockquote.sc_quote_style_2 a:hover,
.postLink a,
.masonry article .masonryInfo a:hover,
.masonry article .masonryInfo span.infoTags a:hover,
.relatedPostWrap article .relatedInfo a:hover,
.relatedPostWrap article .relatedInfo span.infoTags a:hover,
.infoPost span.infoTags a:hover,
.page404 p a,
.page404 .searchAnimation.sFocus .searchIcon,
.copyWrap a,
.comments .commBody li.commItem .replyWrap .posted a:hover,
.comments .commBody li.commItem h4 a:hover,
.ratingItem span:before,
.reviewBlock .totalRating,
.widget_area .contactInfo .fContact:before,
.footerStyleLight .widget_area article .post_title:before,
.footerStyleLight .widget_area article .post_info a:hover,
.footerStyleLight .widget_area article .post_info .post_date a:hover,
.sc_list_style_arrows li:before,
.sc_list_style_arrows li a:hover,
.sc_list_style_iconed li a:hover,
.sc_accordion.sc_accordion_style_2 .sc_accordion_item.sc_active .sc_accordion_title,
.sc_accordion.sc_accordion_style_2 .sc_accordion_item.sc_active .sc_accordion_title:before,
.sc_toggles.sc_toggles_style_2 .sc_toggles_item.sc_active .sc_toggles_title,
.sc_toggles.sc_toggles_style_2 .sc_toggles_item.sc_active .sc_toggles_title:before,
.sc_tabs .sc_tabs_titles li a:hover,
.sc_highlight.sc_highlight_style_2,
.sc_price_item .sc_price_money,
.sc_price_item .sc_price_penny,
.sc_pricing_table .sc_pricing_columns ul li .sc_icon,
.sc_title_icon,
.sc_scroll_controls .flex-direction-nav a:hover:before,
.sc_testimonials_style_1 .flex-direction-nav a:hover:before,
.sc_testimonials_style_3 .flex-direction-nav a:hover:before,
.sc_testimonials_style_3 .flex-direction-nav a:active:before,
.pagination .pageLibrary > li.libPage > .pageFocusBlock .flex-direction-nav a:hover:before,
.topWrap .usermenu_area ul.usermenu_list li.usermenu_currency > a:hover,
.topWrap .usermenu_area ul.usermenu_list li.usermenu_currency.sfHover > a,
.topWrap .usermenu_area ul.usermenu_list li ul li a:hover,
.topWrap .usermenu_area ul.usermenu_list li.usermenu_cart .widget_area ul li a:hover,
.topWrap .usermenu_area a:hover,
.topWrap .usermenu_area .sfHover a,
.sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_currency > a:hover,
.sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_currency.sfHover > a,
.sidemenu_wrap .usermenu_area ul.usermenu_list li ul li a:hover,
.sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_cart .widget_area ul li a:hover,
.sc_blogger a:hover,
.sc_blogger.style_date .load_more:before,
.sc_blogger.style_accordion .sc_blogger_info .comments_number,
.widgetTabs .widgetTop ul > li:not(.tabs):before,
.widgetTabs .widgetTop ul > li:not(.tabs) > a:hover,
.widgetTabs .widgetTop ul > li:not(.tabs) > a:hover span,
.widgetTabs .widgetTop.widget_popular_posts article .post_title:before,
.swpRightPos .tabsMenuBody a:hover,
.swpRightPos .tabsMenuBody a:hover:before,
.swpRightPos .panelmenu_area .current-menu-item > a,
.swpRightPos .panelmenu_area .current-menu-ancestor > a,
.swpRightPos .panelmenu_area > ul li a:hover,
.swpRightPos .panelmenu_area > ul li.sfHover > a,
.swpRightPos .panelmenu_area .current-menu-item.dropMenu:before,
.swpRightPos .panelmenu_area .current-menu-ancestor.dropMenu:before,
.swpRightPos .panelmenu_area li.liHover.dropMenu:before,
.topWrap .search:not(.searchOpen):hover:before,
.topWrap .search .searchSubmit:hover .icoSearch:before,
.user-popUp .formItems.loginFormBody .remember .forgotPwd,
.user-popUp .formItems.loginFormBody .loginProblem,
.user-popUp .formItems.registerFormBody .i-agree a,
.sc_slider_pagination_area .flex-control-nav.manual .slide_info .slide_title,
#toc .toc_item.current .toc_icon,
#toc .toc_item:hover .toc_icon,
.openResponsiveMenu:hover,
.openResponsiveMenu:hover:before,
.sidebarStyleLight .widgetWrap ul li.liHover:before,
.sidebarStyleLight .widgetWrap  a:hover,
.sidebarStyleLight .widgetWrap  a:active,
.sidebarStyleLight.widget_area .widgetWrap a:hover span,
.sidebarStyleLight.widget_area .widgetWrap a:hover,
.sidebarStyleLight.widget_area .widgetWrap ul > li > a:hover,
.sidebarStyleLight.widget_area .widgetWrap ul > li > a:hover span,
.sidebarStyleLight.widget_area ul.tabs > li.ui-state-active > a,
.sidebarStyleLight .widgetWrap .tagcloud a:hover,
.sidebarStyleLight .widgetWrap .tagcloud a:active,
.sidebarStyleLight.widget_area a:hover,
.sidebarStyleLight.widget_area a:hover span,
.sidebarStyleLight.widget_area .ui-state-active a,
.sidebarStyleLight.widget_area .widgetWrap ul li a:hover,
.sidebarStyleLight.widget_area .widget_twitter ul li:before,
.sidebarStyleLight .wp-calendar tfoot th a:before,
.sidebarStyleLight.widget_area table.wp-calendar tfoot a:hover,
.sidebarStyleLight.widget_area article span:before,
.sidebarStyleLight.widget_area .widgetWrap ul > li.dropMenu:hover:before,
.sidebarStyleLight.widget_area .widgetWrap ul > li.dropMenu.dropOpen:before,
.sc_pricing_light .sc_pricing_columns:hover ul.columnsAnimate .sc_pricing_title,
.sc_pricing_light .sc_pricing_columns:hover ul.columnsAnimate .sc_pricing_data > span,
.sc_pricing_light .sc_pricing_columns.active ul.columnsAnimate .sc_pricing_title,
.sc_pricing_light .sc_pricing_columns.active ul.columnsAnimate .sc_pricing_data > span,
.postSharing > ul > li> a:before,
.post .tagsWrap .post_cats a:hover,
.post .tagsWrap .post_tags a:hover,
.post_text_area .tagsWrap .post_cats a:hover,
.post_text_area .tagsWrap .post_tags a:hover,
.infoPost > span:before,
.infoPost > span a:before,
.comments .commBody li.commItem .replyWrap a:hover,
.relatedPostWrap .no_indent_style article .wrap a:hover,
.postLink a:hover,
.portfolBlock ul li a:hover,
.swpRightPos .searchBlock .searchSubmit:hover:before,
.twitBlock .sc_slider .swiper-slide a:hover,
.twitBlockWrap .twitterAuthor a:hover,
.relatedPostWrap.sc_blogger article .relatedInfo a:hover,
.sc_blogger.style_date .sc_blogger_item .sc_blogger_info a:hover,
ul#mainmenu .menu-panel.thumb_title > li > ul > li > ul li a:before,
.footerContentWrap .googlemap_button:after
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce ul.products li.product .added_to_cart,
.woocommerce-page ul.products li.product .added_to_cart,
.woocommerce .woocommerce-breadcrumb a:hover,
.woocommerce-page .woocommerce-breadcrumb a:hover,
.topWrap .sidebar_cart .widget_shopping_cart_content .buttons .button:hover,
.topWrap .sidebar_cart ul.cart_list li > a:hover,
.woocommerce .star-rating span:before,
.woocommerce-page .star-rating span:before,
.woocommerce a.reset_variations,
.woocommerce-page a.reset_variations,
.shipping-calculator-button:hover
') . '
{ color:' . $clr . '; }

.roundButton.border_1:hover > a,
.squareButton.border_1 > a:hover,
.squareButton.border_1 > a:active,
.topWrap .topMenuStyleLine > ul > li ul li a:hover,
.flip-clock-wrapper ul li a div div.inn
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce .woocommerce-info a:after,
.woocommerce-page .woocommerce-info a:after,
.woocommerce .woocommerce-info a,
.woocommerce-page .woocommerce-info a,
.woocommerce p.stars a:hover.star-1:after,
.woocommerce p.stars a:hover.star-1.active:after,
.woocommerce-page p.stars a:hover.star-1:after,
.woocommerce-page p.stars a.star-1.active:after,
.woocommerce p.stars a:hover.star-2:after,
.woocommerce p.stars a.star-2.active:after,
.woocommerce-page p.stars a:hover.star-2:after,
.woocommerce-page p.stars a.star-2.active:after,
.woocommerce p.stars a:hover.star-3:after,
.woocommerce p.stars a.star-3.active:after,
.woocommerce-page p.stars a:hover.star-3:after,
.woocommerce-page p.stars a.star-3.active:after,
.woocommerce p.stars a:hover.star-4:after,
.woocommerce p.stars a.star-4.active:after,
.woocommerce-page p.stars a:hover.star-4:after,
.woocommerce-page p.stars a.star-4.active:after,
.woocommerce p.stars a.star-5:hover:after,
.woocommerce p.stars a.star-5.active:after,
.woocommerce-page p.stars a:hover.star-5:after,
.woocommerce-page p.stars a.star-5.active:after,
.woocommerce .widget_shopping_cart .cart_list li a.remove:hover,
.woocommerce.widget_shopping_cart .cart_list li a.remove:hover
') . '
{ color:' . $clr . ' !important; }

.theme_accent_bgc,
.theme_accent_bgc:before,
.sc_video_player:active .sc_video_play_button:after,
input[type="submit"]:active,
input[type="button"]:active,
.squareButton.active > span,
.squareButton.active > a,
.squareButton.ui-state-active > a,
.roundButton > a:active,
.squareButton > a:active,
.squareButton.global > a,
.nav_pages_parts > span.page_num,
.nav_comments > span.current,
ul > li.likeActive:active > a,
.masonry article .status,
.portfolio .isotopeElement .folioShowBlock:before,
.post .postStatus,
.itemPageFull .itemDescriptionWrap .toggleButton:active,
.footerWrap .footerWidget .sc_video_player:active .sc_video_play_button:after,
.topMenuStyleLine > ul .menu-panel,
.sliderLogo .elastislide-wrapper nav span:active:before,
.sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap,
.sc_highlight.sc_highlight_style_1,
.sc_title_bg,
.sc_testimonials_style_1 .flex-direction-nav a:active,
.sc_testimonials_style_3 .sc_testimonials_items,
.sc_testimonials_style_3 .flex-direction-nav li,
.sc_testimonials_style_3 .flex-direction-nav a,
.pagination .pageLibrary > li.libPage > .pageFocusBlock .flex-direction-nav a:active,
.sc_popup_light:before,
.global_bg,
.widgetTabs .widgetTop .tagcloud a:hover,
.widgetTabs .widgetTop .tagcloud a:active,
.fullScreenSlider.globalColor .sliderHomeBullets .rsContent:before,
.fullScreenSlider .sliderHomeBullets .rsContent .slide-3 .order p span,
ul.sc_list_style_disk li:before,
.sc_slider_pagination_area .flex-control-nav.manual .slide_date,
.sc_contact_form_custom .bubble label:hover,
.sc_contact_form_custom .bubble label.selected,
.topWrap .cart a.cart_button,
.sidebarStyleLight .widget_socials .socPage ul li a:hover,
.sidebarStyleLight.widget_area .instagram-pics li a:after,
.sidebarStyleLight.widget_area .flickr_images .flickr_badge_image a:after,
.sidebarStyleLight .wp-calendar tbody td a:hover,
.sidebarStyleLight .wp-calendar tbody td a:hover,
.sidebarStyleLight .wp-calendar tbody td.today > span,
.sidebarStyleLight .wp-calendar tbody td.today a,
.footerStyleLight .contactFooter .contactShare ul li a:hover,
.footerContentWrap .googlemap_button,
.page404 .titleError > span,
.isotopeFiltr ul a .data_count,
.isotopeFiltr ul a .data_count:before
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce #review_form #respond .form-submit input,
.woocommerce-page #review_form #respond .form-submit input,
.woocommerce table.cart a.remove:hover,
.woocommerce #content table.cart a.remove:hover,
.woocommerce-page table.cart a.remove:hover,
.woocommerce-page #content table.cart a.remove:hover,
.topWrap .sidebar_cart .widget_shopping_cart_content .buttons .button.checkout
') . '
' . (!class_exists('TribeEvents') ? '' : ',
.tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"], .tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"] > a, #tribe_events_filters_wrapper input[type="submit"], .tribe-events-button, #tribe-events .tribe-events-button, .tribe-events-button.tribe-inactive, #tribe-events .tribe-events-button:hover, .tribe-events-button:hover, .tribe-events-button.tribe-active:hover
') . '
{ background-color:' . $clr . '; }

.sc_pricing_light .sc_pricing_columns:hover ul.columnsAnimate .sc_button > a,
.sc_pricing_light .sc_pricing_columns.active ul.columnsAnimate .sc_button > a
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order,
.woocommerce .woocommerce-message a.button,
.woocommerce .woocommerce-error a.button,
.woocommerce .woocommerce-info a.button,
.woocommerce-page .woocommerce-message a.button,
.woocommerce-page .woocommerce-error a.button,
.woocommerce-page .woocommerce-info a.button
') . '
{ background-color: ' . $clr . ' !important; }

.theme_accent_border,
.squareButton.border_1 > a:hover,
.squareButton.border_1 > a:active,
.sidebarStyleLight .widgetWrap .tagcloud a:hover,
.sidebarStyleLight .widgetWrap .tagcloud a:active,
.sidebarStyleLight.widget_area .tabs_area ul.tabs > li > a:hover,
.sidebarStyleLight.widget_area .tagcloud a:hover,
.sidebarStyleLight.widget_area .tagcloud a:active,
.sidebarStyleLight.widget_area ul.tabs > li.ui-state-active > a,
.sidebarStyleLight.widget_area .wp-calendar tbody a:hover,
.sc_pricing_light .sc_pricing_columns:hover ul.columnsAnimate,
.sc_pricing_light .sc_pricing_columns.active ul.columnsAnimate,
#toc .toc_item.current,
#toc .toc_item:hover,
.topWrap .search:not(.searchOpen):hover,
.upToScroll a.addBookmark:hover,
.sc_scroll_controls .flex-direction-nav a:active,
.sc_testimonials_style_1 .flex-direction-nav a:active,
.pagination .flex-direction-nav a:active
.sc_scroll_controls .flex-direction-nav a:hover,
.topWrap .sidebar_cart .widget_shopping_cart_content .buttons .button:hover,
.openResponsiveMenu:hover
{ border-color: ' . $clr . '; }

.theme_accent_bg,
.theme_accent_bg:before
{ background:' . $clr . '; }

' . (!class_exists('TribeEvents') ? '' : ',
#tribe-bar-form .tribe-bar-submit input[type="submit"]
{ background:' . $clr . '; }
') . '

.squareButton.global > a:hover,
.squareButton.global > a:active,
.topWrap .sidebar_cart .widget_shopping_cart_content .buttons .button.checkout:hover,
.topWrap .cart .cart_button:hover
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce #review_form #respond .form-submit input:hover,
.woocommerce-page #review_form #respond .form-submit input:hover,
.woocommerce #payment #place_order:hover,
.woocommerce-page #payment #place_order:hover,
.woocommerce .woocommerce-message a.button:hover,
.woocommerce .woocommerce-error a.button:hover,
.woocommerce .woocommerce-info a.button:hover,
.woocommerce-page .woocommerce-message a.button:hover,
.woocommerce-page .woocommerce-error a.button:hover,
.woocommerce-page .woocommerce-info a.button:hover
') . '
{ background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; }


::selection { background-color:' . $clr . ';}
::-moz-selection { background-color:' . $clr . ';}
';
        $custom_style = apply_filters('theme_skin_set_theme_color', $custom_style, $clr);
    }
    // Theme color 1 from customizer
    $clr = '';
    if ($customizer) {
        $clr = getValueGPC('theme_color_1', '');
    }
    if (empty($clr)) {
        $clr = get_custom_option('theme_color_1');
    }
    if (!empty($clr)) {
        $rgb = hex2rgb($clr);
        $custom_style .= '
.theme_accent_1,
.theme_accent_1:before,
.sc_pricing_dark .sc_pricing_columns:hover ul.columnsAnimate .sc_pricing_data > span,
.sc_pricing_dark .sc_pricing_columns:hover ul.columnsAnimate .sc_pricing_title,
.sc_pricing_dark .sc_pricing_columns.active ul.columnsAnimate .sc_pricing_data > span,
.sc_pricing_dark .sc_pricing_columns.active ul.columnsAnimate .sc_pricing_title,
.postLink a
{ color:' . $clr . '; }

.roundButton.border:hover > a,
.squareButton.border > a:hover,
.squareButton.border > a:active,
.revlink.border:hover,
.revlink.border:active
{ color:' . $clr . ' !important; }

.theme_accent_1_bgc,
.theme_accent_1_bgc:before,
.sc_dropcaps.sc_dropcaps_style_4 .sc_dropcap,
.squareButton.accent_1 > a,
.revlink.filled
{ background-color: ' . $clr . '; }

.sc_pricing_dark .sc_pricing_columns .sc_button > a:hover,
.sc_pricing_dark .sc_pricing_columns .sc_button > a:active,
.sc_pricing_dark .sc_pricing_columns:hover ul.columnsAnimate .sc_button > a
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce form .button,
.woocommerce-page form .button
') . '
{ background-color: ' . $clr . ' !important; }

.squareButton.border > a:hover,
.squareButton.border > a:active,
.sc_pricing_dark .sc_pricing_columns:hover ul.columnsAnimate,
.sc_pricing_dark .sc_pricing_columns.active ul.columnsAnimate,
.revlink.border:hover,
.revlink.border:active
{ border-color: ' . $clr . '; }

.theme_accent_1_bg,
.theme_accent_1_bg:before
{ background:' . $clr . '; }

.squareButton.accent_1 > a:hover,
.squareButton.accent_1 > a:active,
.revlink.filled:hover,
.revlink.filled:active
{ background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; }

' . (!function_exists('is_woocommerce') ? '' : '
.woocommerce form .button:hover,
.woocommerce-page form .button:hover
{ background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; }
') . '
';
    }
    // Theme color 2 from customizer
    $clr = '';
    if ($customizer) {
        $clr = getValueGPC('theme_color_2', '');
    }
    if (empty($clr)) {
        $clr = get_custom_option('theme_color_2');
    }
    if (!empty($clr)) {
        $rgb = hex2rgb($clr);
        $custom_style .= '
.theme_accent_2,
.theme_accent_2:before,
.sc_tooltip_parent,
.hoverIncrease .hoverIcon:hover:before,
.sc_video_player .sc_video_play_button:hover:after,
.sc_video_player:active .sc_video_play_button:hover:after,
.sc_accordion.sc_accordion_style_1 .sc_accordion_item.sc_active .sc_accordion_title,
.sc_toggles.sc_toggles_style_1 .sc_toggles_item.sc_active .sc_toggles_title,
.sc_team .sc_team_item .sc_team_item_avatar .sc_team_item_socials li a:hover,
.hoverIncrease .hoverIcon:hover:before,
.hoverIncrease .hoverLink:hover:before
{ color:' . $clr . '; }

.relatedPostWrap.sc_blogger article a.readmore_blogger:hover
{ color:' . $clr . ' !important; }

.theme_accent_2_bgc,
.theme_accent_2_bgc:before,
.sc_tooltip_parent .sc_tooltip,
.sc_tooltip_parent .sc_tooltip:before,
.sc_dropcaps.sc_dropcaps_style_3 .sc_dropcap,
.hoverIncrease .hoverShadow,
.sc_accordion.sc_accordion_style_1 .sc_accordion_item .sc_accordion_title:before,
.sc_toggles.sc_toggles_style_1 .sc_toggles_item .sc_toggles_title:before,
.squareButton.accent_2 > a,
.sc_skills_bar .sc_skills_item .sc_skills_count,
.sc_skills_counter .sc_skills_item.sc_skills_style_3 .sc_skills_count,
.sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_count,
.sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_info,
.relatedPostWrap .wrap:before,
.relatedPostWrap.sc_blogger .wrap:hover:before,
.portfolioWrap .isotopePadding:before,
#pagination .squareButton.active span,
#pagination .squareButton a:hover,
#pagination .squareButton a:active,
#viewmore_link:hover,
#viewmore_link:active,
.user-popUp .formItems .formList li .sendEnter,
.user-popUp ul.loginHeadTab li.ui-tabs-active:before,
.sc_blogger.style_date .sc_blogger_item .sc_blogger_date,
.sc_scroll_bar .swiper-scrollbar-drag:before,
.sc_blogger.sc_blogger_vertical.style_date.sc_scroll_controls ul.flex-direction-nav li a:hover
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce .widget_area aside.widgetWrap.woocommerce .button,
.woocommerce-page .widget_area aside.widgetWrap.woocommerce  .button,
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce #content nav.woocommerce-pagination ul li span.current,
.woocommerce #content nav.woocommerce-pagination ul li a:hover,
.woocommerce #content nav.woocommerce-pagination ul li a:focus,
.woocommerce-page nav.woocommerce-pagination ul li span.current,
.woocommerce-page nav.woocommerce-pagination ul li a:hover,
.woocommerce-page nav.woocommerce-pagination ul li a:focus,
.woocommerce-page #content nav.woocommerce-pagination ul li span.current,
.woocommerce-page #content nav.woocommerce-pagination ul li a:hover,
.woocommerce-page #content nav.woocommerce-pagination ul li a:focus
') . '
{ background-color: ' . $clr . '; }

.theme_accent_2_bg,
.theme_accent_2_bg:before
{ background:' . $clr . '; }

a.sc_icon.bg_icon.sc_icon_round:hover,
a.sc_icon.no_bg_icon.sc_icon_round:hover
{ background-color: ' . $clr . ' !important; }

.sc_slider_flex .sc_slider_info,
.sc_slider_swiper .sc_slider_info,
.squareButton.accent_2 > a:hover,
.squareButton.accent_2 > a:active,
.user-popUp .formItems .formList li .sendEnter:hover,
.user-popUp .formItems .formList li .sendEnter:active
{ background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; }

.postSharing > ul > li > a:active,
.postSharing > ul > li > span:active,
.roundButton > a:active,
.nav_pages_parts > span.page_num,
.nav_comments > span.current,
.itemPageFull .itemDescriptionWrap .toggleButton:active,
.footerWidget .sc_video_player:active .sc_video_play_button:after,
.sliderLogo .elastislide-wrapper nav span:active:before,
pre.code,
.sc_tooltip_parent
{ border-color: ' . $clr . '; }

blockquote.sc_quote_style_2
{ border-left-color: ' . $clr . '; }

' . (!function_exists('is_woocommerce') ? '' : '
.woocommerce .widget_price_filter .price_slider_amount .button,
.woocommerce-page .widget_price_filter .price_slider_amount .button
{ background: ' . $clr . ' !important; }
') . '

' . (!function_exists('is_woocommerce') ? '' : '
.woocommerce .widget_price_filter .price_slider_amount .button:hover,
.woocommerce-page .widget_price_filter .price_slider_amount .button:hover,
.woocommerce .widget_area aside.widgetWrap.woocommerce .button:hover,
.woocommerce-page .widget_area aside.widgetWrap.woocommerce  .button:hover
{ background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; }
') . '

.sc_image_shape_round:hover figcaption,
.post .sc_image_shape_round:hover figcaption
{ background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.6); }
';
    }
    // Theme color 3 from customizer
    $clr = '';
    if ($customizer) {
        $clr = getValueGPC('theme_color_3', '');
    }
    if (empty($clr)) {
        $clr = get_custom_option('theme_color_3');
    }
    if (!empty($clr)) {
        $rgb = hex2rgb($clr);
        $custom_style .= '
.theme_accent_3,
.theme_accent_3:before,
.widgetWrap ul li.liHover:before,
.widgetWrap  a:hover,
.widgetWrap  a:active,
.widget_area .widgetWrap ul > li > a:hover,
.widget_area .widgetWrap ul > li > a:hover span,
.sidebarStyleDark.widget_area a:hover,
.sidebarStyleDark.widget_area a:hover span,
.widget_area ul.tabs > li.ui-state-active > a,
aside.widgetWrap .tagcloud a:hover,
aside.widgetWrap .tagcloud a:active,
.sidebarStyleDark.widget_area a:hover,
.sidebarStyleDark.widget_area .ui-state-active a,
.sidebarStyleDark.widget_area .widgetWrap ul li a:hover,
.sidebarStyleDark.widget_area .widget_twitter ul li:before,
.sidebarStyleDark .wp-calendar tfoot th a:before,
.sidebarStyleDark.widget_area table.wp-calendar tfoot a:hover,
.sidebarStyleDark.widget_area .widgetWrap ul > li.dropMenu:hover:before,
.sidebarStyleDark.widget_area .widgetWrap ul > li.dropMenu.dropOpen:before,
.copyWrap .copy .copyright > a,
.widget_area article span:before,
.twitBlock .sc_slider .swiper-slide a,
.twitBlock .sc_slider .swiper-slide .twitterIco:before,
.menuSearch .searchSubmit:hover:before,
.sidemenu_wrap .sidemenu_area .current-menu-item > a,
.sidemenu_wrap .sidemenu_area .current-menu-ancestor > a,
.sidemenu_wrap .sidemenu_area > ul li a:hover,
.sidemenu_wrap .sidemenu_area > ul li.sfHover > a,
.sidemenu_wrap .sidemenu_area .current-menu-item.dropMenu:before,
.sidemenu_wrap .sidemenu_area .current-menu-ancestor.dropMenu:before,
.sidemenu_wrap .sidemenu_area li.liHover.dropMenu:before,
.twitBlock .sc_slider .swiper-slide a,
.twitBlockWrap .twitterAuthor a,
.sidebarStyleDark.widget_area .widgetWrap a:hover,
.sidebarStyleDark.widget_area .widgetWrap .post_info a:hover
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce ul.cart_list li > .amount, .woocommerce ul.product_list_widget li > .amount, .woocommerce-page ul.cart_list li > .amount, .woocommerce-page ul.product_list_widget li > .amount,
.woocommerce ul.cart_list li span .amount, .woocommerce ul.product_list_widget li span .amount, .woocommerce-page ul.cart_list li span .amount, .woocommerce-page ul.product_list_widget li span .amount,
.woocommerce ul.cart_list li ins .amount, .woocommerce ul.product_list_widget li ins .amount, .woocommerce-page ul.cart_list li ins .amount, .woocommerce-page ul.product_list_widget li ins .amount,
.woocommerce .sidebarStyleDark.widget_area .widget_price_filter .price_slider_amount .button:hover,
.woocommerce-page .sidebarStyleDark.widget_area .widget_price_filter .price_slider_amount .button:hover,
.woocommerce .sidebarStyleDark.widget_area.widget_area aside.widgetWrap.woocommerce .button:hover,
.woocommerce-page .sidebarStyleDark.widget_area.widget_area aside.widgetWrap.woocommerce .button:hover,
.woocommerce div.product span.price,
.woocommerce div.product p.price,
.woocommerce #content div.product span.price,
.woocommerce #content div.product p.price,
.woocommerce-page div.product span.price,
.woocommerce-page div.product p.price,
.woocommerce-page #content div.product span.price,
.woocommerce-page #content div.product p.price,
.woocommerce .sidebarStyleDark.widget_area .widget_layered_nav ul li.chosen a,
.woocommerce-page .sidebarStyleDark.widget_area .widget_layered_nav ul li.chosen a,
#sidebar_main.sidebarStyleDark .widget_layered_nav ul li.chosen a:before,
#sidebar_main.sidebarStyleDark .widget_layered_nav ul li a:hover:before,
#sidebar_main.sidebarStyleDark .widget_layered_nav_filters ul li a:hover:before,
#sidebar_main.sidebarStyleDark .widget_layered_nav_filters ul li.chosen a:before,
.woocommerce.widget_shopping_cart .total .amount,
.woocommerce .widget_shopping_cart .total .amount,
.woocommerce-page.widget_shopping_cart .total .amount,
.woocommerce-page .widget_shopping_cart .total .amount,
.woocommerce ul.products li.product .price > .amount,
.woocommerce ul.products li.product .price ins .amount,
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price
') . '
{ color:' . $clr . '; }

.sidebarStyleDark.widget_area a:hover span
{ color:' . $clr . ' !important; }

.theme_accent_3_bgc,
.theme_accent_3_bgc:before,
.sc_dropcaps.sc_dropcaps_style_2 .sc_dropcap,
.squareButton.accent_3 > a,
.copyWrap .socPage ul li a:hover,
.sidebarStyleDark .widget_socials .socPage ul li a:hover,
.widget_area .instagram-pics li a:after,
.widget_area .flickr_images .flickr_badge_image a:after,
.wp-calendar tbody td a:hover,
.footerStyleDark .contactFooter .contactShare ul li a:hover,
ul > li.share > ul.shareDrop > li > a:hover,
.author .socPage ul li a:hover,
.sc_team .sc_team_item .sc_team_item_avatar:after,
.wp-calendar tbody td a:hover,
.wp-calendar tbody td.today > span
{ background-color: ' . $clr . '; }

.theme_accent_3_bg,
.theme_accent_3_bg:before
{ background:' . $clr . '; }

.squareButton.accent_3 > a:hover,
.squareButton.accent_3 > a:active,
.squareButton.gray > a:hover,
.squareButton.gray > a:active
{ background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7);}

' . (!function_exists('is_woocommerce') ? '' : '
.woocommerce #content table.cart td.actions .button:hover,
.woocommerce table.cart td.actions .button:hover,
.woocommerce #content table.cart td.actions .button:active,
.woocommerce table.cart td.actions .button:active,
.woocommerce #content table.cart td.actions .button.checkout-button,
.woocommerce table.cart td.actions .button.checkout-button,
.woocommerce .shipping-calculator-form .button:hover,
.woocommerce .shipping-calculator-form .button:active,
.return-to-shop .button:hover,
.return-to-shop .button:active,
.wc-proceed-to-checkout .checkout-button,
.woocommerce div.product form.cart .button,
.woocommerce #content div.product form.cart .button,
.woocommerce-page div.product form.cart .button,
.woocommerce-page #content div.product form.cart .button
{ background-color:' . $clr . ' !important; }
') . '

' . (!function_exists('is_woocommerce') ? '' : '
.woocommerce #content table.cart td.actions .button.checkout-button:hover,
.woocommerce table.cart td.actions .button.checkout-button:hover,
.wc-proceed-to-checkout .checkout-button:hover,
.woocommerce div.product form.cart .button:hover,
.woocommerce #content div.product form.cart .button:hover,
.woocommerce-page div.product form.cart .button:hover,
.woocommerce-page #content div.product form.cart .button:hover
{ background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; }
') . '

' . (!function_exists('is_woocommerce') ? '' : '
.woocommerce ul.products li.product:hover .button,
.woocommerce-page ul.products li.product:hover .button
{ background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7); }
') . '

.widgetWrap .tagcloud a:hover,
.widgetWrap .tagcloud a:active,
.widget_area .tabs_area ul.tabs > li > a:hover,
.sidebarStyleDark.widget_area .tagcloud a:hover,
.sidebarStyleDark.widget_area .tagcloud a:active,
.widget_area ul.tabs > li.ui-state-active > a
' . (!function_exists('is_woocommerce') ? '' : ',
.woocommerce .sidebarStyleDark.widget_area .widget_price_filter .price_slider_amount .button:hover,
.woocommerce-page .sidebarStyleDark.widget_area .widget_price_filter .price_slider_amount .button:hover,
.woocommerce .sidebarStyleDark.widget_area aside.widgetWrap.woocommerce .button:hover,
.woocommerce-page .sidebarStyleDark.widget_area aside.widgetWrap.woocommerce .button:hover,
#sidebar_main.sidebarStyleDark.widget_area .widget_layered_nav ul li a:hover:before,
.woocommerce #sidebar_main .sidebarStyleDark.widget_area .widget_layered_nav ul li.chosen a:before,
.woocommerce-page #sidebar_main.sidebarStyleDark.widget_area .widget_layered_nav ul li.chosen a:before,
#sidebar_main.sidebarStyleDark .widget_layered_nav_filters ul li.chosen a:before,
#sidebar_main.sidebarStyleDark .widget_layered_nav_filters ul li a:hover:before
') . '
{ border-color: ' . $clr . '; }

.sc_table table tr:hover
{ background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.15); }
';
    }
    addThemeCustomStyle(apply_filters('theme_skin_add_styles_inline', $custom_style));
    return getThemeCustomStyles();
}
示例#26
0
function sc_skills($atts, $content = null)
{
    if (in_shortcode_blogger()) {
        return '';
    }
    extract(shortcode_atts(array("id" => "", "type" => "bar", "dir" => "", "layout" => "", "align" => "", "color" => "", "maximum" => "100", "width" => "-1", "height" => "-1", "top" => "", "bottom" => "", "left" => "", "right" => ""), $atts));
    $ed = themerex_substr($width, -1) == '%' ? '%' : 'px';
    $width = (int) str_replace('%', '', $width);
    $s = ($width >= 0 ? 'width:' . $width . $ed . ';' : '') . ($height >= 0 ? 'height:' . $height . 'px;' : '') . ($top !== '' ? 'margin-top:' . $top . 'px;' : '') . ($bottom !== '' ? 'margin-bottom:' . $bottom . 'px;' : '') . ($left !== '' ? 'margin-left:' . $left . 'px;' : '') . ($right !== '' ? 'margin-right:' . $right . 'px;' : '') . ($align != '' && $align != 'none' ? 'float:' . $align . ';' : '');
    global $THEMEREX_sc_skills_children;
    $THEMEREX_sc_skills_children = '';
    $wrapper_class = 'sc_skills sc_skills_type_' . $type;
    $content = do_shortcode($content);
    $wrapper_class .= $layout == 'columns' ? '' : '';
    $wrapper_class .= ' ' . $dir;
    foreach ($THEMEREX_sc_skills_children as $label => $value) {
        $child_count = count($THEMEREX_sc_skills_children);
        $perc_val = $value['level'] * 100 / $maximum;
        $perc_val = $perc_val > 100 ? 100 : $perc_val;
        $perc_val = $dir == 'vertical' ? $height * $perc_val / 100 : $perc_val;
        $column_width = 100 / $child_count;
        $item_color = !empty($value['color']) ? $value['color'] : $color;
        $item_color = sc_is_accent_color($item_color) ? false : $item_color;
        $value['level'] = $maximum == 100 ? $value['level'] . '%' : $value['level'];
        $content .= '<div class="sc_skills_item' . ($layout == 'columns' ? ' columns1_' . $child_count : '') . '"' . ($dir == 'vertical' ? ' style="width:' . $column_width . '%;"' : '') . '>';
        if ($type == 'bar') {
            if ($dir == 'horizontal') {
                $content .= '<div class="sc_skills_item_title">' . $label . '</div>';
                $content .= '<div class="sc_skills_item_level">' . $value['level'] . '</div>';
            }
            $content .= '<div class="sc_skills_item_progress" data-val="' . $perc_val . '" style="' . ($dir == 'vertical' ? ' height:' . $height . 'px;' : (!empty($item_color) ? 'background-color:' . $item_color . ';' : '')) . '">' . ($dir == 'horizontal' ? '<span class="sc_skills_item_progress_title">' . $label . '</span>' : '<div class="progress_inner" style="' . (!empty($item_color) ? 'background-color:' . $item_color : '') . '"></div>') . '</div>';
            if ($dir == 'vertical') {
                $content .= '<div class="sc_skills_item_level">' . $value['level'] . '</div>';
                $content .= '<div class="sc_skills_item_title">' . $label . '</div>';
            }
        } else {
            if ($type == 'circles') {
                $content .= '<div class="sc_skills_item_level" style="line-height:' . $value['width'] . 'px;" data-val="' . (int) $value['level'] . '" data-ed="' . ($maximum == 100 ? '%' : '') . '" data-step="' . number_format($value['level'] / 50, 0) . '"></div>';
                $content .= '<input type="hidden" class="knob_review" value="' . $perc_val . '" data-thickness="' . ($value['width'] > 100 ? '.09' : '.12') . '" data-readOnly=true data-width="' . $value['width'] . '" data-height="' . $value['width'] . '" data-fgColor=' . (!empty($value['color']) ? $value['color'] : $color) . '>';
                $content .= '<div class="sc_skills_item_title">' . $label . '</div>';
            } else {
                if ($type == 'counter') {
                    $content .= '<div class="sc_skills_item_progress' . (!empty($value['style']) ? ' sc_skills_item_style_' . $value['style'] : '') . '" data-val="' . (int) $value['level'] . '" data-ed="' . ($maximum == 100 ? '%' : '') . '"' . (!empty($item_color) ? ' style="color:' . $item_color . '"' : '') . ' data-step="' . number_format($value['level'] / 50, 0) . '">0</div>';
                    $content .= '<div class="sc_skills_item_title">' . $label . '</div>';
                }
            }
        }
        $content .= '</div>';
    }
    $content = $layout == 'columns' ? '<div class="columnsWrap">' . $content . '</div>' : $content;
    $content = $dir == 'vertical' ? '<div class="sc_skills_item_wrap">' . $content . '</div>' : $content;
    if (!empty($content)) {
        $output = '<div class="' . $wrapper_class . '" data-type="' . $type . '" data-dir="' . $dir . '"' . ($dir == 'vertical' ? ' style="height:' . $height . 'px"' : '') . '>' . $content . '</div>';
    }
    return $output;
}
示例#27
0
function getSelectorPropertyFromCSS($css, $selector, $prop)
{
    $rez = '';
    if (!file_exists($css)) {
        return $rez;
    }
    $file = file($css);
    foreach ($file as $row) {
        if (($pos = themerex_strpos($row, $selector)) === false) {
            continue;
        }
        if (($pos2 = themerex_strpos($row, $prop . ':', $pos)) !== false && ($pos3 = themerex_strpos($row, ';', $pos2)) !== false && $pos2 < $pos3) {
            $rez = trim(chop(themerex_substr($row, $pos2 + themerex_strlen($prop) + 1, $pos3 - $pos2 - themerex_strlen($prop) - 1)));
            break;
        }
    }
    return $rez;
}
示例#28
0
function prepareThemeCustomStyles()
{
    // Custom font
    $fonts = getThemeFontsList(false);
    $font = get_custom_option('theme_font');
    if (isset($fonts[$font])) {
        addThemeCustomStyle("\n\t\t\tbody, button, input, select, textarea {\n\t\t\t\tfont-family: '" . $font . "', " . $fonts[$font]['family'] . ";\n\t\t\t}\n\t\t");
    }
    $font = get_custom_option('logo_font');
    if (isset($fonts[$font])) {
        addThemeCustomStyle("\n\t\t\t.logo_text .logo_title {\n\t\t\t\tfont-family: '" . $font . "', " . $fonts[$font]['family'] . ";\n\t\t\t}\n\t\t");
    }
    // Custom menu
    if (get_theme_option('menu_colored') == 'yes') {
        $menu_name = 'mainmenu';
        if (($locations = get_nav_menu_locations()) && isset($locations[$menu_name])) {
            $menu = wp_get_nav_menu_object($locations[$menu_name]);
            if (is_object($menu) && $menu) {
                $menu_items = wp_get_nav_menu_items($menu->term_id);
                $menu_styles = '';
                $menu_slider = get_theme_option('menu_slider') == 'yes';
                if (count($menu_items) > 0) {
                    foreach ($menu_items as $k => $item) {
                        //				if ($item->menu_item_parent==0) {
                        $cur_accent_color = '';
                        if ($item->type == 'taxonomy' && $item->object == 'category') {
                            $cur_accent_color = getCategoryInheritedProperty($item->object_id, 'theme_accent_color');
                        }
                        if ((empty($cur_accent_color) || $cur_accent_color == 'default') && isset($item->classes[0]) && !empty($item->classes[0])) {
                            $cur_accent_color = (themerex_substr($item->classes[0], 0, 1) != '#' ? '#' : '') . $item->classes[0];
                        }
                        if (!empty($cur_accent_color) && $cur_accent_color != 'default') {
                            $menu_styles .= ($item->menu_item_parent == 0 ? "#header_middle_inner #mainmenu li.menu-item-{$item->ID}.current-menu-item > a," : '') . "\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} > a:hover,\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.sfHover > a {\n\t\t\t\t\t\t\t\t\t\tbackground-color: {$cur_accent_color} !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} ul {\n\t\t\t\t\t\t\t\t\t\tbackground-color: {$cur_accent_color} !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t";
                        }
                        if ($menu_slider && $item->menu_item_parent == 0) {
                            $menu_styles .= "\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over:not(.current-menu-item) > a:hover,\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over.sfHover > a {\n\t\t\t\t\t\t\t\t\t\tbackground-color: transparent !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t";
                        }
                        //				}
                    }
                }
                if (!empty($menu_styles)) {
                    addThemeCustomStyle($menu_styles);
                }
            }
        }
    }
    // Main menu height
    $menu_height = (int) get_theme_option('menu_height');
    if ($menu_height > 20) {
        addThemeCustomStyle("\n\t\t\t#mainmenu > li > a {\n\t\t\t\theight: {$menu_height}px !important;\n\t\t\t\tline-height: {$menu_height}px !important;\n\t\t\t}\n\t\t\t#mainmenu > li ul {\n\t\t\t\ttop: {$menu_height}px !important;\n\t\t\t}\n\t\t\t#header_middle {\n\t\t\t\tmin-height: {$menu_height}px !important;\n\t\t\t}\n\t\t");
    }
    // Submenu width
    $menu_width = (int) get_theme_option('menu_width');
    if ($menu_width > 50) {
        addThemeCustomStyle("\n\t\t\t#mainmenu > li ul {\n\t\t\t\twidth: {$menu_width}px;\n\t\t\t}\n\t\t\t#mainmenu > li ul li ul {\n\t\t\t\tleft: " . ($menu_width + 1) . "px;\n\t\t\t}\n\t\t\t#mainmenu > li:nth-child(n+6) ul li ul {\n\t\t\t\tleft: -" . ($menu_width + 1) . "px;\n\t\t\t}\n\t\t");
    }
    // Custom css from theme options
    $css = get_custom_option('custom_css');
    if (!empty($css)) {
        addThemeCustomStyle($css);
    }
    return getThemeCustomStyles();
}
        echo $post_data['post_title'];
        ?>
</a></h4><?php 
    } else {
        ?>
<h4><?php 
        echo $post_data['post_title'];
        ?>
</h4><?php 
    }
    echo $reviewsBlock;
}
if (!in_array($post_data['post_format'], array('quote', 'link', 'chat'))) {
    $post_data['post_excerpt'] = getShortString($post_data['post_excerpt'], isset($opt['descr']) ? $opt['descr'] : get_custom_option('post_excerpt_maxlength_masonry'));
}
echo themerex_substr($post_data['post_excerpt'], 0, 2) != '<p' ? '<p>' . $post_data['post_excerpt'] . '</p>' : $post_data['post_excerpt'];
?>

	<?php 
if (!isset($opt['info']) || $opt['info']) {
    ?>
		<div class="relatedInfo">
			<?php 
    _e('Posted ', 'themerex');
    ?>
			<a href="<?php 
    echo $post_data['post_link'];
    ?>
" class="post_date"><?php 
    echo $post_data['post_date'];
    ?>
示例#30
0
function sc_video($atts, $content = null)
{
    if (in_shortcode_blogger()) {
        return '';
    }
    extract(shortcode_atts(array("id" => "", "class" => "", "url" => '', "src" => '', "image" => '', "title" => 'off', "ratio" => '16:9', "autoplay" => 'off', "width" => '100%', "height" => '295', "top" => "", "bottom" => "", "left" => "", "right" => ""), $atts));
    if ($src == '' && $url == '' && isset($atts[0])) {
        $src = $atts[0];
    }
    $ed = themerex_substr($width, -1);
    $s = getStyleString($top, $right, $bottom, $left, $width, $height != '' ? $height + (sc_param_is_on($title) ? 21 : 0) : '');
    $url = $src != '' ? $src : $url;
    if ($image != '' && sc_param_is_off($image)) {
        $image = '';
    } else {
        if (sc_param_is_on($autoplay) && is_single()) {
            $image = '';
        } else {
            if ($image > 0) {
                $attach = wp_get_attachment_image_src($image, 'full');
                if (isset($attach[0]) && $attach[0] != '') {
                    $image = $attach[0];
                }
            }
            $image = getResizedImageURL(empty($image) ? get_the_ID() : $image, $ed != '%' ? $width : null, $height);
            if (empty($image)) {
                $image = getVideoCoverImage($url);
            }
        }
    }
    $url = getVideoPlayerURL($src != '' ? $src : $url);
    $ratio = empty($ratio) ? "16:9" : str_replace(array('/', '\\', '-'), ':', $ratio);
    $video = '<video' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_video' . (!empty($class) ? ' ' . $class : '') . '"' . ' src="' . $url . '"' . ' width="' . $width . '" height="' . $height . '"' . ' data-width="' . $width . '" data-height="' . $height . '"' . ' data-ratio="' . esc_attr($ratio) . '"' . ($image ? ' data-image="' . esc_attr($image) . '"' : '') . ' data-title="' . $title . '"' . ($s != '' ? ' style="' . $s . '"' : '') . ($image && get_theme_option('substitute_video') == 'yes' || sc_param_is_on($autoplay) && is_single() ? ' autoplay="autoplay"' : '') . ' controls="controls"' . '>' . '</video>';
    if (get_custom_option('substitute_video') == 'no') {
        $video = getVideoFrame($video, $image, sc_param_is_on($title), $s);
    }
    if (get_theme_option('use_mediaelement') == 'yes') {
        themerex_enqueue_script('wp-mediaelement');
    }
    return $video;
}