function check() { if (preg_verify($_POST)) { $params = create_tab_params(); if (!empty($_POST['nb1'])) { $params['n'] = $_POST['nb1']; } if (!empty($_POST['nb2'])) { $params['k'] = $_POST['nb2']; } if (!empty($_POST['w'])) { $params['w'] = $_POST['w'] / 4; } if (!empty($_POST['h'])) { $params['h'] = $_POST['h'] / 4; } if ($_POST['degrade'] == "option2") { $params['degrade'] = 1; } if ($_POST['color'] != null) { $rgb = HexToRGB($_POST['color']); $params['r'] = $rgb['r']; $params['g'] = $rgb['g']; $params['b'] = $rgb['b']; } return mandel($params); } else { header('Location: ../index.php?error'); } }
function TablaColor($Nombre, $Hex) { $RGB = HexToRGB($Hex); $HSL = HexToHSL($Hex); echo ' <tr> <td style="padding:0px 20px 0px 5px">' . $Nombre . '</td> <td style="padding:0px 20px;"><pre>' . $Hex . '</pre></td> <td style="padding:0px 20px;"><pre>' . $RGB . '</pre></td> <td style="padding:0px 20px;"><pre>' . $HSL . '</pre></td> <td style="padding:0px 20px; background-color:' . $Nombre . '"></td> </tr>'; }
$hex = preg_replace("/#/", "", $hex); $color = array(); if (strlen($hex) == 3) { $color['r'] = hexdec(substr($hex, 0, 1) . $r); $color['g'] = hexdec(substr($hex, 1, 1) . $g); $color['b'] = hexdec(substr($hex, 2, 1) . $b); } else { if (strlen($hex) == 6) { $color['r'] = hexdec(substr($hex, 0, 2)); $color['g'] = hexdec(substr($hex, 2, 2)); $color['b'] = hexdec(substr($hex, 4, 2)); } } return $color; } $RBG_array = HexToRGB($hex_value); $red = $RBG_array[r]; $green = $RBG_array[g]; $blue = $RBG_array[b]; // Set the image $img = imagecreatetruecolor(10, 10); // 10 x 10 px imagesavealpha($img, true); // Fill the image with transparent color $color = imagecolorallocatealpha($img, $red, $green, $blue, 50); // 50 is the opacity imagefill($img, 0, 0, $color); // Return the image imagepng($img); // Destroy image imagedestroy($img);
$shadowone = $getone[3] ? 1 : 0; $fonttwo = $gettwo[0] ? sprintf($path['FONT'], $gettwo[0]) : sprintf($path['FONT'], "roman"); $sizetwo = $gettwo[1] ? $gettwo[1] : 10; $colortwo = $gettwo[2] ? HexToRGB($gettwo[2]) : $defaultcolor; $shadowtwo = $gettwo[3] ? 1 : 0; $epicbg = $_GET['epic'] ? sprintf($path['EPICBORDER'], $_GET['epic']) : false; $statdisplay = array(); $statdisplay[0] = $getstat[2] ? $getstat[2] : false; $statdisplay[1] = $getstat[3] ? $getstat[3] : false; $statdisplay[2] = $getstat[4] ? $getstat[4] : false; $statdisplay[3] = $getstat[5] ? $getstat[5] : false; $statdisplay[4] = $getstat[6] ? $getstat[6] : false; $statcolor = $getstat[1] ? HexToRGB($getstat[1]) : $defaultcolor; $statbg = $getstat[0] ? sprintf($path['STATBORDER'], $getstat[0]) : false; $background = $getbackground[1] ? sprintf($path['BACKGROUND'], $getbackground[1]) : false; $bgcolor = $getbackground[0] ? HexToRGB($getbackground[0]) : $defaultcolor; $screen = $getbackground[2] ? sprintf($path['SCREEN'], $getbackground[2]) : false; $border = $_GET['border'] ? sprintf($path['BORDER'], $_GET['border']) : false; //starting points of text $line_start_x = 15; $line_start_y = 12; //stats constants, starting points, etc $stat_start_x = 16; $stat_start_y = 70; $stat_step_x = 97; $stat_width = 80; $stat_height = 18; $stat_text_y = 2; $stat_text_x = 8; //epic constants $epic_x = 420;
?> ; line-height: <?php echo esc_attr($smof_data['nav_height']); ?> ; } .cshero-menu-dropdown > ul > li { padding-right: <?php echo esc_attr($smof_data['nav_padding']); ?> ; } .sticky-header{ background: <?php echo HexToRGB($smof_data['header_sticky_bg_color'], $smof_data['header_sticky_opacity'] / 100); ?> ; } .sticky-header .cshero-menu-dropdown > ul > li{ padding-right: <?php echo esc_attr($smof_data['header_sticky_nav_padding']); ?> ; } .sticky-header .cshero-logo > a,.sticky-header .cshero-menu-dropdown > ul > li > a { display: block; line-height: <?php echo esc_attr($smof_data['header_sticky_height']); ?> ;
function get_as_rgba($hex = '#000000', $opacity = 1) { $rgb = HexToRGB($hex); $rgba = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',' . $opacity . ')'; return $rgba; }
} <?php $pp_gallery_cover_bg_color = get_option('pp_gallery_cover_bg_color'); if (!empty($pp_gallery_cover_bg_color)) { ?> .grid_cover_wrapper .mask { background: <?php echo $pp_gallery_cover_bg_color; ?> ; } <?php } $ori_pp_gallery_cover_bg_color = $pp_gallery_cover_bg_color; $pp_gallery_cover_bg_color = HexToRGB($pp_gallery_cover_bg_color); $pp_gallery_cover_opacity_color = get_option('pp_gallery_cover_opacity_color'); $pp_gallery_cover_opacity_color = $pp_gallery_cover_opacity_color / 100; ?> .grid_cover_wrapper .mask { background: <?php echo $ori_pp_gallery_cover_bg_color; ?> ; background: rgb(<?php echo $pp_gallery_cover_bg_color['r']; ?> , <?php echo $pp_gallery_cover_bg_color['g']; ?>
.csbody .picker--focused .picker__day--selected { background: <?php echo esc_attr($smof_data['primary_color']); ?> !important; } .csbody .picker__day--highlighted { border-color: <?php echo esc_attr($smof_data['primary_color']); ?> ; } .csbody .picker__day--infocus:hover, .csbody .picker__day--outfocus:hover { background: <?php echo HexToRGB($smof_data['primary_color'], 0.8); ?> !important; } </style> <!--End Preset -->
$breite = 100 / 12 * $i; $breite = round($breite, 4); $output_css .= '.masonry-span' . $i . '{ width: ' . $breite . '% !important; }'; } // masonry tablet $output_css .= '@media (max-width: 767px) {'; $output_css .= '.masonry-span1, .masonry-span2, .masonry-span3, .masonry-span4, .masonry-span5, .masonry-span6, .masonry-span7, .masonry-span8, .masonry-span9, .masonry-span10, .masonry-span11, .masonry-span12 { width: 100% !important; }'; $output_css .= '}'; #---------------------------------------------------------------------------# # lightbox fadein # #---------------------------------------------------------------------------# if (get_field('lightbox_overlay_bg_color', 'options')) { $rgba = HexToRGB(get_field('lightbox_overlay_bg_color', 'options')); $overlay_opacity = get_field('lightbox_overlay_opacity', 'options'); } else { $rgba = HexToRGB('#ffffff'); $overlay_opacity = '0.98'; } $output_css .= '.lightbox-overlay { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',' . $overlay_opacity . '); -webkit-animation: fadein 0.35s; -moz-animation: fadein 0.35s; -ms-animation: fadein 0.35s; -o-animation: fadein 0.35s; animation: fadein 0.35s; }'; $output_css .= '@keyframes fadein { from { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',0); } to { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',' . $overlay_opacity . '); } }'; $output_css .= '@-moz-keyframes fadein { from { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',0); } to { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',' . $overlay_opacity . '); } }'; $output_css .= '@-webkit-keyframes fadein { from { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',0); } to { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',' . $overlay_opacity . '); } }'; $output_css .= '@-ms-keyframes fadein { from { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',0); } to { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',' . $overlay_opacity . '); } }'; $output_css .= '@-o-keyframes fadein { from { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',0); } to { background-color: rgba(' . $rgba['r'] . ',' . $rgba['g'] . ',' . $rgba['b'] . ',' . $overlay_opacity . '); } }'; #---------------------------------------------------------------------------# # Custom CSS # #---------------------------------------------------------------------------# if (get_field('skinoptions_custom_css', 'options')) { $output_css .= get_field('skinoptions_custom_css', 'options'); } if (get_field('pb_custom_css')) {
function lambda_custom_css() { global $lambda_meta_data, $slider_meta_data; $theme_path = get_template_directory_uri(); $theme_options = get_option('option_tree'); $finalcss = '<style type="text/css">'; #----------------------------------------------------------------- # needed variables #----------------------------------------------------------------- $color_scheme = $theme_options['themecolor']; //Get needed meta variables if (is_home()) { $homeid = get_option('page_for_posts'); $pagemetadata = get_post_meta($homeid, $lambda_meta_data->get_the_id(), TRUE); $slidermetadata = get_post_meta($homeid, $slider_meta_data->get_the_id(), TRUE); } else { $pagemetadata = $lambda_meta_data->the_meta(); $slidermetadata = $slider_meta_data->the_meta(); } #----------------------------------------------------------------- # Sitelayout #----------------------------------------------------------------- if ($theme_options['sitelayout'] != 'boxed' && $theme_options['responsive'] == 'off') { $finalcss .= '@media only screen and (max-width: 959px) { #wrap { width:990px !important; } } @media only screen and (min-width: 960px) { #wrap { width:100% !important; } }'; } if ($theme_options['sitelayout'] == 'boxed' && $theme_options['responsive'] == 'on') { $finalcss .= '.boxed { max-width:100%; }'; } if ($theme_options['responsive'] == 'on') { $finalcss .= 'body { overflow-x: hidden; }'; } #----------------------------------------------------------------- # Sidebar Alignement #----------------------------------------------------------------- $page_settings = isset($pagemetadata['sidebar_align']) ? $pagemetadata['sidebar_align'] : ''; $sidebar_position = !empty($page_settings) ? $page_settings : $theme_options['sidebar_alignement']; $content_position = $sidebar_position == "right" ? "left" : "right"; $sidebar_margin = $sidebar_position == "right" ? "left" : "right"; $sidebar_second_margin = $sidebar_position == "both" ? "left" : "right"; $finalcss .= "\n\t#wrap #content {float: {$content_position};}\n\t#wrap #sidebar {float: {$sidebar_position};}\n\t#wrap #sidebar .widget-container {margin-{$sidebar_margin}: 20px;margin-{$sidebar_position}: 0px;}\n\t\n\t/* second sidebar enhancement */\t\n\t#wrap #sidebar_second {float:{$content_position};}\n\t#wrap #sidebar_second .widget-container {margin-{$sidebar_second_margin}: 20px;margin-{$content_position}: 0px;}"; #----------------------------------------------------------------- # Custom Background #----------------------------------------------------------------- if (isset($theme_options['sitelayout']) && $theme_options['sitelayout'] == 'boxed') { if ($theme_options['background_type'] == 'default_backgroundcolor') { $finalcss .= 'body { background: ' . $theme_options['default_backgroundcolor'] . ' !important; }'; } elseif ($theme_options['background_type'] == 'default_backgroundpattern') { $finalcss .= 'body { background: #FFF url(' . $theme_path . '/images/pattern/' . $theme_options['default_backgroundpattern']['background-image'] . ') repeat; }'; } elseif ($theme_options['background_type'] == 'default_backgroundtexture') { $finalcss .= 'body { background: #FFF url(' . $theme_path . '/images/bg-textured/' . $theme_options['default_backgroundtexture']['background-image'] . ') repeat-x; }'; } elseif ($theme_options['background_type'] == 'default_backgroundimage') { $finalcss .= ' body { background: #FFF url(' . $theme_options['default_backgroundimage'] . '); background-attachment: scroll; background-repeat: no-repeat; background-position: center top; }'; } } #----------------------------------------------------------------- # Custom Wrap #----------------------------------------------------------------- if (isset($theme_options['wrap_background_type']) && $theme_options['wrap_background_type'] == 'wrap_default_backgroundcolor') { $finalcss .= '#vtabs > div, .home-title span, .home-title-link, .carousel-navi, #service-loader, body > #wrap { background: ' . $theme_options['wrap_default_backgroundcolor'] . ' !important; }'; } elseif ($theme_options['wrap_background_type'] == 'wrap_default_backgroundpattern') { $finalcss .= '#vtabs > div, .home-title span, .home-title-link, .carousel-navi, #service-loader, body > #wrap { background: #FFF url(' . $theme_path . '/images/pattern/' . $theme_options['wrap_default_backgroundpattern']['background-image'] . ') repeat; }'; } elseif ($theme_options['wrap_background_type'] == 'wrap_default_backgroundtexture') { $finalcss .= '#vtabs > div, .home-title span, .home-title-link, .carousel-navi, #service-loader, body > #wrap { background: #FFF url(' . $theme_path . '/images/bg-textured/' . $theme_options['wrap_default_backgroundtexture']['background-image'] . ') repeat; }'; } elseif ($theme_options['wrap_background_type'] == 'wrap_default_backgroundimage') { $finalcss .= '#vtabs > div, .home-title span, .home-title-link, .carousel-navi, #service-loader, body > #wrap { background: #FFF url(' . $theme_options['wrap_default_backgroundimage'] . '); background-attachment: scroll; background-repeat: no-repeat; background-position: center top; }'; } #----------------------------------------------------------------- # Custom Footer #----------------------------------------------------------------- if (isset($theme_options['footer_background_type']) && $theme_options['footer_background_type'] == 'footer_default_backgroundpattern') { $finalcss .= '#footer-wrap { background: url(' . $theme_path . '/images/pattern/' . $theme_options['footer_default_backgroundpattern']['background-image'] . '); }'; } #----------------------------------------------------------------- # Custom Featured Header #----------------------------------------------------------------- $backgroundtype = isset($theme_options['slider_background_type']) ? $theme_options['slider_background_type'] : ''; $backgroundpattern = isset($theme_options['slider_default_backgroundpattern']) ? $theme_options['slider_default_backgroundpattern']['background-image'] : ''; $backgroundimage = isset($theme_options['slider_default_backgroundimage']) ? $theme_options['slider_default_backgroundimage'] : ''; //overwrite default values coming from meta panel if necessary $backgroundtype = isset($slidermetadata['slider_background_type']) ? $slidermetadata['slider_background_type'] : $backgroundtype; $backgroundpattern = isset($slidermetadata['slider_default_backgroundpattern']) ? $slidermetadata['slider_default_backgroundpattern'] : $backgroundpattern; $backgroundimage['background-color'] = isset($slidermetadata['slider_default_backgroundcolor']) ? $slidermetadata['slider_default_backgroundcolor'] : $backgroundimage['background-color']; if (isset($slidermetadata['slider_default_background_image'])) { $backgroundimage['background-image'] = isset($slidermetadata['slider_default_background_image']) ? $slidermetadata['slider_default_background_image'] : $backgroundimage['background-image']; $backgroundimage['background-repeat'] = isset($slidermetadata['slider_default_background_repeat']) ? $slidermetadata['slider_default_background_repeat'] : $backgroundimage['background-repeat']; $backgroundimage['background-position'] = isset($slidermetadata['slider_default_background_position']) ? $slidermetadata['slider_default_background_position'] : $backgroundimage['background-position']; $backgroundimage['background-attachment'] = isset($slidermetadata['slider_default_background_attachment']) ? $slidermetadata['slider_default_background_attachment'] : $backgroundimage['background-attachment']; } if ($backgroundtype == 'slider_default_backgroundpattern') { $finalcss .= '#lambda-featured-header-wrap { background: url(' . $theme_path . '/images/pattern/' . $backgroundpattern . ') repeat; }'; } elseif ($backgroundtype == 'slider_default_backgroundimage') { $finalcss .= '#lambda-featured-header-wrap { background:' . $backgroundimage['background-color'] . ' url(' . $backgroundimage['background-image'] . ') ' . $backgroundimage['background-repeat'] . ' ' . $backgroundimage['background-position'] . ' ' . $backgroundimage['background-attachment'] . '; }'; } #----------------------------------------------------------------- # Declare CSS Font Stacks for reuse #----------------------------------------------------------------- $websafefonts = array('arial' => 'Arial, Helvetica, sans-serif', 'georgia' => 'Georgia, serif', 'helvetica' => '"HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif', 'tahoma' => 'Tahoma, Geneva, sans-serif', 'times' => '"Times New Roman", Times, serif', 'trebuchet' => '"Trebuchet MS", Helvetica, sans-serif', 'verdana' => 'Verdana, Geneva, sans-serif', 'impact' => 'Impact, Charcoal, sans-serif', 'palatino' => '"Palatino Linotype", "Book Antiqua", Palatino, serif', 'century' => 'Century Gothic, sans-serif', 'lucida' => '"Lucida Sans Unicode", "Lucida Grande", sans-serif', 'luciaconsole' => '"Lucida Console", Monaco, monospace', 'arialblack' => '"Arial Black", Gadget, sans-serif', 'arialnarrow' => '"Arial Narrow", sans-serif', 'copperplate' => 'Copperplate / Copperplate Gothic Light, sans-serif', 'gillsans' => 'Gill Sans / Gill Sans MT, sans-serif', 'courier' => '"Courier New", Courier, monospace'); #----------------------------------------------------------------- # Add Custom Font to font stack #----------------------------------------------------------------- if (isset($theme_options['custom_font']) && is_array($theme_options['custom_font'])) { foreach ($theme_options['custom_font'] as $key => $value) { $websafefonts[strtolower($value['title'])] = '"' . $value['title'] . '"'; } } #----------------------------------------------------------------- # Color Helper Functions #----------------------------------------------------------------- function HexToRGB($hex) { $hex = ereg_replace("#", "", $hex); $color = array(); if (strlen($hex) == 3) { $color['r'] = hexdec(substr($hex, 0, 1) . $r); $color['g'] = hexdec(substr($hex, 1, 1) . $g); $color['b'] = hexdec(substr($hex, 2, 1) . $b); } else { if (strlen($hex) == 6) { $color['r'] = hexdec(substr($hex, 0, 2)); $color['g'] = hexdec(substr($hex, 2, 2)); $color['b'] = hexdec(substr($hex, 4, 2)); } } $color = implode(',', $color); return $color; } function RGBToHex($r, $g, $b) { $hex = "#"; $hex .= str_pad(dechex($r), 2, "0", STR_PAD_LEFT); $hex .= str_pad(dechex($g), 2, "0", STR_PAD_LEFT); $hex .= str_pad(dechex($b), 2, "0", STR_PAD_LEFT); return $hex; } #----------------------------------------------------------------- # Load Cutom Font Face #----------------------------------------------------------------- if (isset($theme_options['custom_font']) && is_array($theme_options['custom_font'])) { foreach ($theme_options['custom_font'] as $key => $value) { $finalcss .= "@font-face {"; if (isset($value['title']) && !empty($value['title'])) { $finalcss .= "\t\t" . "font-family: '" . $value['title'] . "';"; } if (isset($value['embedded-opentype']) && !empty($value['embedded-opentype'])) { $finalcss .= "\t\t" . "src: url('" . $value['embedded-opentype'] . "');"; $finalcss .= "\t\t" . "src: url('" . $value['embedded-opentype'] . "?#iefix') format('embedded-opentype'),"; } if (isset($value['woff']) && !empty($value['woff'])) { $finalcss .= "\t\t" . "url('" . $value['woff'] . "') format('woff'),"; } if (isset($value['truetype']) && !empty($value['truetype'])) { $finalcss .= "\t\t" . "url('" . $value['truetype'] . "') format('truetype'),"; } if (isset($value['svg']) && !empty($value['svg'])) { $finalcss .= "\t\t" . "url('" . $value['svg'] . "') format('svg');"; } $finalcss .= "}"; } } #----------------------------------------------------------------- # Body Typography #----------------------------------------------------------------- if (isset($theme_options['bodyfont']) && !empty($theme_options['bodyfont'])) { $finalcss .= 'body {'; $finalcss .= 'color:' . $theme_options['bodyfont']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['bodyfont']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['bodyfont']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['bodyfont']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['bodyfont']['font-style'] . ';'; $finalcss .= '}'; //single elements which needs body font color $finalcss .= '.portfolio-info span {'; $finalcss .= 'color:' . $theme_options['bodyfont']['font-color'] . ';'; $finalcss .= '}'; } #----------------------------------------------------------------- # Headlines #----------------------------------------------------------------- $fontface = $theme_options['headline_font_face_type'] == 'headline_font_face_google' ? polish_font_name($theme_options['headline_font_face_google']['font-family']) : $websafefonts[$theme_options['headline_font_face_websafe']['font-family']]; $finalcss .= 'h1 { font-family: ' . $fontface . '; font-size: ' . $theme_options['h1_font_size']['0'] . $theme_options['h1_font_size']['1'] . '; }'; $finalcss .= 'h2 { font-family: ' . $fontface . '; font-size: ' . $theme_options['h2_font_size']['0'] . $theme_options['h2_font_size']['1'] . '; }'; $finalcss .= 'h3 { font-family: ' . $fontface . '; font-size: ' . $theme_options['h3_font_size']['0'] . $theme_options['h3_font_size']['1'] . '; }'; $finalcss .= 'h4 { font-family: ' . $fontface . '; font-size: ' . $theme_options['h4_font_size']['0'] . $theme_options['h4_font_size']['1'] . '; }'; $finalcss .= 'h5 { font-family: ' . $fontface . '; font-size: ' . $theme_options['h5_font_size']['0'] . $theme_options['h5_font_size']['1'] . '; }'; $finalcss .= 'h6 { font-family: ' . $fontface . '; font-size: ' . $theme_options['h6_font_size']['0'] . $theme_options['h6_font_size']['1'] . '; }'; $finalcss .= 'h1, h2, h3, h4, h5, h6 { color: ' . $theme_options['headline_font_color'] . '; }'; if ($theme_options['headline_font_face_type'] == 'headline_font_face_websafe') { $finalcss .= ' h1, h2, h3, h4, h5, h6 { font-weight: ' . $theme_options['headline_font_face_websafe']['font-weight'] . '; font-style: ' . $theme_options['headline_font_face_websafe']['font-style'] . '; }'; } $finalcss .= 'span.client-title strong { font-family: ' . $fontface . '; }'; #----------------------------------------------------------------- # Misc Headlines #----------------------------------------------------------------- if (isset($theme_options['toggle_headline']) && !empty($theme_options['toggle_headline'])) { $finalcss .= 'h3.trigger, p.trigger, ul.tabs li {'; $finalcss .= 'font-size:' . $theme_options['toggle_headline']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['toggle_headline']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['toggle_headline']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['toggle_headline']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['toggle_headline']['font-transform'] . ';'; $finalcss .= '}'; $finalcss .= 'h3.trigger a, p.trigger a, ul.tabs li a {'; $finalcss .= 'color:' . $theme_options['toggle_headline']['font-color'] . ';'; $finalcss .= '}'; } if (isset($theme_options['member_name']) && !empty($theme_options['member_name'])) { $finalcss .= '.member-name {'; $finalcss .= 'color:' . $theme_options['member_name']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['member_name']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['member_name']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['member_name']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['member_name']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['member_name']['font-transform'] . ';'; $finalcss .= '}'; } if (isset($theme_options['archive_title']) && !empty($theme_options['archive_title'])) { $finalcss .= '.archiv-title {'; $finalcss .= 'color:' . $theme_options['archive_title']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['archive_title']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['archive_title']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['archive_title']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['archive_title']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['archive_title']['font-transform'] . ';'; $finalcss .= '}'; } if (isset($theme_options['servicecol_headline']) && !empty($theme_options['servicecol_headline'])) { $finalcss .= 'article.service h3 {'; $finalcss .= 'font-size:' . $theme_options['servicecol_headline']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['servicecol_headline']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['servicecol_headline']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['servicecol_headline']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['servicecol_headline']['font-transform'] . ';'; $finalcss .= '}'; } if (isset($theme_options['servicebox_headline']) && !empty($theme_options['servicebox_headline'])) { $finalcss .= 'article.service-box h3 {'; $finalcss .= 'font-size:' . $theme_options['servicebox_headline']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['servicebox_headline']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['servicebox_headline']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['servicebox_headline']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['servicebox_headline']['font-transform'] . ';'; $finalcss .= '}'; } if (isset($theme_options['service_tabs']) && !empty($theme_options['service_tabs'])) { $finalcss .= '#vmenu ul li h3 {'; $finalcss .= 'color:' . $theme_options['service_tabs']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['service_tabs']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['service_tabs']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['service_tabs']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['service_tabs']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['service_tabs']['font-transform'] . ';'; $finalcss .= '}'; } #----------------------------------------------------------------- # Page Title & Teaser #----------------------------------------------------------------- if (isset($theme_options['page_title']) && !empty($theme_options['page_title'])) { $finalcss .= '#page-title, .featured-header-title {'; $finalcss .= 'color:' . $theme_options['page_title']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['page_title']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['page_title']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['page_title']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['page_title']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['page_title']['font-transform'] . ';'; $finalcss .= '}'; } if (isset($theme_options['home_title']) && !empty($theme_options['home_title'])) { $finalcss .= '.home-title, .portfolio-info .home-title span {'; $finalcss .= 'color:' . $theme_options['home_title']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['home_title']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['home_title']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['home_title']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['home_title']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['home_title']['font-transform'] . ';'; $finalcss .= '}'; } if (isset($theme_options['page_teaser']) && !empty($theme_options['page_teaser'])) { $finalcss .= 'p.teaser-text {'; $finalcss .= 'color:' . $theme_options['page_teaser']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['page_teaser']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['page_teaser']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['page_teaser']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['page_teaser']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['page_teaser']['font-transform'] . ';'; $finalcss .= '}'; } #----------------------------------------------------------------- # Logo #----------------------------------------------------------------- if (isset($theme_options['logo_font']) && !empty($theme_options['logo_font'])) { $finalcss .= '#logo h1, #logo h1 a {'; $finalcss .= 'color:' . $theme_options['logo_font']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['logo_font']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['logo_font']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['logo_font']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['logo_font']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['logo_font']['font-transform'] . ';'; $finalcss .= '}'; } #----------------------------------------------------------------- # Widget Titles #----------------------------------------------------------------- if (isset($theme_options['sidebar_widget_title']) && !empty($theme_options['sidebar_widget_title'])) { $finalcss .= '#sidebar .widget-title, #reply-title, .comments-title, h3.author-name, #sidebar_second .widget-title, .widget-sidebar .widget-title, .lambda-header-widget .widget-title {'; $finalcss .= 'color:' . $theme_options['sidebar_widget_title']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['sidebar_widget_title']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['sidebar_widget_title']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['sidebar_widget_title']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['sidebar_widget_title']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['sidebar_widget_title']['font-transform'] . ';'; $finalcss .= '}'; $finalcss .= '.widget-title a { '; $finalcss .= 'color:' . $theme_options['sidebar_widget_title']['font-color'] . ';'; $finalcss .= '}'; } if (isset($theme_options['footer_widget_title']) && !empty($theme_options['footer_widget_title'])) { $finalcss .= '#footer .widget-title {'; $finalcss .= 'color:' . $theme_options['footer_widget_title']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['footer_widget_title']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['footer_widget_title']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['footer_widget_title']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['footer_widget_title']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['footer_widget_title']['font-transform'] . ';'; $finalcss .= '}'; } #----------------------------------------------------------------- # Blog Styling #----------------------------------------------------------------- if (isset($theme_options['blog_titles']) && !empty($theme_options['blog_titles'])) { $finalcss .= '.entry-title { '; $finalcss .= 'color:' . $theme_options['blog_titles']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['blog_titles']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['blog_titles']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['blog_titles']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['blog_titles']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['blog_titles']['font-transform'] . ';'; $finalcss .= '}'; $finalcss .= '.entry-title a { '; $finalcss .= 'color:' . $theme_options['blog_titles']['font-color'] . ';'; $finalcss .= '}'; } if (isset($theme_options['blog_titles_home']) && !empty($theme_options['blog_titles_home'])) { $finalcss .= '.recent-post .entry-title { '; $finalcss .= 'color:' . $theme_options['blog_titles_home']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['blog_titles_home']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['blog_titles_home']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['blog_titles_home']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['blog_titles_home']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['blog_titles_home']['font-transform'] . ';'; $finalcss .= '}'; } if (isset($theme_options['blog_titles']) && !empty($theme_options['blog_titles'])) { $finalcss .= '.link-post-title { '; $finalcss .= 'font-size:' . $theme_options['blog_titles']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['blog_titles']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['blog_titles']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['blog_titles']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['blog_titles']['font-transform'] . ';'; $finalcss .= '}'; $finalcss .= '.link-post-title a { '; $finalcss .= 'color:' . $theme_options['blog_titles']['font-color'] . ';'; $finalcss .= '}'; } if (isset($theme_options['blog_meta']) && !empty($theme_options['blog_meta'])) { $finalcss .= '.entry-meta, .entry-meta-single-post { '; $finalcss .= 'color:' . $theme_options['blog_meta']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['blog_meta']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['blog_meta']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['blog_meta']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['blog_meta']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['blog_meta']['font-transform'] . ';'; $finalcss .= '}'; $finalcss .= '.entry-meta-single-post a, .entry-meta a { '; $finalcss .= 'color:' . $theme_options['blog_meta']['font-color'] . ';'; $finalcss .= '}'; } #----------------------------------------------------------------- # Revolution Slider Caption #---------------------------------------------------------------- $finalcss .= ' .caption.themecolor_background { background-color: ' . $color_scheme . ' ; } .caption.themecolor_normal { color: ' . $color_scheme . '; } .themecolor-background { background: ' . $color_scheme . '; -moz-border-radius: 2px; border-radius: 2px; padding: 5px 10px; } .themebutton.button { background: ' . $color_scheme . '; color:#FFFFFF; } .themebutton2:hover { background: ' . $color_scheme . '; }'; #----------------------------------------------------------------- # Navigation Customisation #----------------------------------------------------------------- //Navigation Level 1 if (isset($theme_options['navigation_font']) && !empty($theme_options['navigation_font'])) { $finalcss .= '#navigation ul li a {'; $finalcss .= 'color:' . $theme_options['navigation_font']['font-color'] . ';'; $finalcss .= 'font-size:' . $theme_options['navigation_font']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['navigation_font']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['navigation_font']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['navigation_font']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['navigation_font']['font-transform'] . ';'; $finalcss .= '}'; } //Navigation Level 2 Link Style if (isset($theme_options['drop_down_font_color']) && !empty($theme_options['drop_down_font_color'])) { $finalcss .= '#navigation ul.sub-menu li a {'; $finalcss .= 'color:' . $theme_options['drop_down_font_color']['font-color'] . ' !important;'; $finalcss .= 'font-size:' . $theme_options['drop_down_font_color']['font-size'] . ';'; $finalcss .= 'font-family:' . $websafefonts[$theme_options['drop_down_font_color']['font-family']] . ';'; $finalcss .= 'font-weight:' . $theme_options['drop_down_font_color']['font-weight'] . ';'; $finalcss .= 'font-style:' . $theme_options['drop_down_font_color']['font-style'] . ';'; $finalcss .= 'text-transform:' . $theme_options['drop_down_font_color']['font-transform'] . ';'; $finalcss .= '}'; } $finalcss .= ' #navigation ul a:hover { background: ' . $theme_options['main_navigation_dropdown_active_state'] . '; color: ' . $color_scheme . ' !important; } #navigation ul li:hover { background: ' . $theme_options['main_navigation_dropdown_active_state'] . '; } #navigation ul.sub-menu li:hover, #navigation ul.sub-menu a:hover { background: none !important; } #navigation ul li:hover a { color: ' . $color_scheme . '; border-top:1px solid ' . $color_scheme . '; } #navigation ul li ul li:hover a{ color: ' . $theme_options['drop_down_font_color_hover'] . ' !important; } #navigation ul.sub-menu .current-menu-ancestor a { color: ' . $theme_options['drop_down_font_color_hover'] . ' !important; } #navigation ul.sub-menu .current-menu-ancestor ul a { color: ' . $theme_options['drop_down_font_color']['font-color'] . ' !important; } #navigation ul.sub-menu .current-menu-ancestor ul a:hover { color: ' . $theme_options['drop_down_font_color_hover'] . ' !important; } #navigation ul.sub-menu .current-menu-ancestor ul li.active > a { color: ' . $theme_options['drop_down_font_color_hover'] . ' !important; } #navigation ul li ul li:hover ul li a { color: ' . $theme_options['drop_down_font_color']['font-color'] . ' !important; } #navigation ul.sub-menu a:hover { color: ' . $theme_options['drop_down_font_color_hover'] . ' !important; } #navigation ul > li.active > a { background: ' . $color_scheme . ' !important; color: ' . $theme_options['navigation_active'] . ' !important; } #navigation ul > li ul li ul li.active > a, #navigation ul > li ul li.active > a { color: ' . $theme_options['drop_down_font_color_hover'] . ' !important; background: none !important; } #navigation ul.sub-menu { background-color: rgb(' . HexToRGB($color_scheme) . '); background-color: rgba(' . HexToRGB($color_scheme) . ',0.9); } #navigation ul li ul li:hover a.sf-with-ul:after, .sub-menu .sf-with-ul:after { left: 100%; margin-left:-10px; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } #navigation ul li ul li:hover a.sf-with-ul:after, .sub-menu .sf-with-ul:after { border-left-color: ' . $theme_options['drop_down_font_color']['font-color'] . '; border-width: 5px; top: 50%; margin-top: -5px; }'; #----------------------------------------------------------------- # Color Variations #----------------------------------------------------------------- $finalcss .= ' a, .widget-sidebar a:hover, #sidebar_second a:hover, #sidebar a:hover, ul.archive li a:hover, p.search-title span, p.tag-title span, #logo h1 a:hover, .entry-content a, .portfolio-info a, ul.archive, .widget_categories li, .widget_links li, .widget_nav_menu li, .widget_pages li, .widget_meta li, .widget_archive li, .lambda_widget_portfolio li, .widget_recent_comments li, .widget_recent_entries li, .entry-title a:hover, #teaser-content a, .themecolor, .tag-links a:hover, ul.page-numbers li span.current, ul.filter_portfolio a:hover, ul.filter_portfolio a.selected, #vmenu li.selected:hover h3, #vmenu li.selected h3, #mobile-menu li a, ul.tabs li a:hover, .testimonial-name span, #footer a:hover, .entry-meta a:hover, .mm-trigger.active, .mm-trigger:hover, .entry-meta-single-post a:hover { color: ' . $color_scheme . '; } h3.trigger.active a, p.trigger.active a, h3.trigger:hover a , p.trigger:hover a { color: ' . $color_scheme . ' !important; } .portfolio-title-below-wrap a, .tag_links a, .cta-button, .nevada-caption.dark .excerpt:hover, .nevada-caption.white .excerpt:hover, .quote, .link-post-title a, .entry-attachment .entry-caption, .gallery-caption, .lambda-pricingtable.featured .lambda-pricingtable-top, .testimonial-company, .tagcloud a, .lambda_widget_portfolio li:before, .widget_links li:before, .widget_nav_menu li:before, .widget_pages li:before, .widget_meta li:before, .widget_categories li:before, .widget_archive li:before, .widget_recent_entries li:before, .widget_recent_comments li:before, ul.archive li:before, .lambda-pricingtable.featured .lambda-table-button, ul.tabs li a.active { background: ' . $color_scheme . '; } .lambda-table-button:hover { background: ' . $color_scheme . ' !important; } .searchlens:hover { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/search-icon.png); background-repeat: no-repeat; background-position: center center; } .member-info, .camera_wrap .camera_pag .camera_pag_ul li:hover > span, .camera_wrap .camera_pag .camera_pag_ul li.cameracurrent > span, .camera_bar_cont span, .lambda-dropcap2, .lambda-highlight1, .flex-control-nav li a:hover, .flex-control-nav li a.active, .edit-link a:hover, .permalink-hover:hover, #slider-nav a#slider-next:hover, #slider-nav a#slider-prev:hover, .post-slider-nav a.slider-prev:hover, .post-slider-nav a.slider-next:hover, #slider-bullets a.activeSlide, #slider-bullets a:hover, #wp-calendar td#today, .pformat, .lambda_widget_video .lambda-video, input[type="submit"], input[type="reset"], input[type="button"] { background-color: ' . $color_scheme . '; } .camera_commands, .camera_prev, .camera_next, .flex-direction-nav a, .lambda-featured-header-caption { background-color: rgb(' . HexToRGB($color_scheme) . '); background-color:rgba(' . HexToRGB($color_scheme) . ',0.9); } .tp-caption.nebraska-style, .tp-rightarrow.large, .tp-leftarrow.large { background-color: rgb(' . HexToRGB($color_scheme) . ') !important; background-color:rgba(' . HexToRGB($color_scheme) . ',0.9) !important; } .tp-leftarrow:hover, .tp-rightarrow:hover { background-color: rgb(85,85,85) !important; background-color: rgba(85,85,85,0.9) !important; -webkit-transition:.2s all linear; -moz-transition:.2s all linear; -o-transition:.2s all linear; -ms-transition:.2s all linear; transition:.2s all linear; } ::-moz-selection { color: #FFFFFF !important; background: ' . $color_scheme . '; } ::selection { color: #FFFFFF !important; background:' . $color_scheme . '; } ul.lambda-sociallinks li a.twitter { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/twitter.png); } ul.lambda-sociallinks li a.facebook { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/facebook.png); } ul.lambda-sociallinks li a.googleplus { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/google_plus.png); } ul.lambda-sociallinks li a.delicious { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/delicious.png); } ul.lambda-sociallinks li a.grooveshark { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/grooveshark.png); } ul.lambda-sociallinks li a.flickr { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/flickr.png); } ul.lambda-sociallinks li a.instagram { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/instagram.png); } ul.lambda-sociallinks li a.picasa { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/picasa.png); } ul.lambda-sociallinks li a.fivehundredpx { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/500px.png); } ul.lambda-sociallinks li a.youtube { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/youtube.png); } ul.lambda-sociallinks li a.vimeo { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/vimeo.png); } ul.lambda-sociallinks li a.dribbble { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/dribbble.png); } ul.lambda-sociallinks li a.digg { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/digg.png); } ul.lambda-sociallinks li a.pinterest { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/pinterest.png); } ul.lambda-sociallinks li a.behance { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/behance.png); } ul.lambda-sociallinks li a.deviantart { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/deviantart.png); } ul.lambda-sociallinks li a.dropbox { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/dropbox.png); } ul.lambda-sociallinks li a.forrst { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/forrst.png); } ul.lambda-sociallinks li a.lastfm { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/lastfm.png); } ul.lambda-sociallinks li a.aim { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/aim.png); } ul.lambda-sociallinks li a.soundcloud { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/soundcloud.png); } ul.lambda-sociallinks li a.foursquare { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/foursquare.png); } ul.lambda-sociallinks li a.github { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/github_alt.png); } ul.lambda-sociallinks li a.linkedin { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/linkedin.png); } ul.lambda-sociallinks li a.xing { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/xing.png); } ul.lambda-sociallinks li a.wordpress { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/wordpress.png); } ul.lambda-sociallinks li a.tumblr { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/tumblr.png); } ul.lambda-sociallinks li a.rss { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/feed.png); } ul.lambda-sociallinks li a.yahoo { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/yahoo.png); } ul.lambda-sociallinks li a.steam { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/steam.png); } ul.lambda-sociallinks li a.email { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/email.png); } ul.lambda-sociallinks li a.link { background: ' . $color_scheme . ' url(' . $theme_path . '/images/icons/social/link.png); } .hover-overlay { background-color: rgb(' . HexToRGB($theme_options['hover_color_rgb']) . '); background-color:rgba(' . HexToRGB($theme_options['hover_color_rgb']) . ',' . $theme_options['hover_opacity'] . '); }'; if (isset($theme_options['responsive']) && $theme_options['responsive'] == 'on') { $finalcss .= ' @media only screen and (min-width: 768px) and (max-width: 959px) { .nav-wrap { background: ' . $color_scheme . ' ; }} @media only screen and (max-width: 767px) { .nav-wrap { background: ' . $color_scheme . ' ; }} @media only screen and (min-width: 480px) and (max-width: 767px) { .nav-wrap { background: ' . $color_scheme . ' ; }}'; } #----------------------------------------------------------------- # Custom CSS out of Theme Options Panel #----------------------------------------------------------------- $finalcss .= stripslashes($theme_options['custom_css']); $finalcss .= '</style>'; #----------------------------------------------------------------- # Output minified CSS #----------------------------------------------------------------- echo lambda_regx_removal($finalcss); }
function cshero_generetor_header_setting() { global $smof_data, $post; $header_setings = new stdClass(); $header_setings->body_class = 'csbody'; $header_setings->header_fixed = '0'; $header_setings->top_padding = ''; $header_setings->styles = ''; $style = array(); if (is_page() && get_post_meta($post->ID, 'cs_header_setting', true) == 'custom') { $header_setings->header_fixed = get_post_meta($post->ID, 'cs_header_fixed_top', true); if (get_post_meta($post->ID, 'cs_header_bg_color', true)) { $style[] = 'background-color:' . HexToRGB(get_post_meta($post->ID, 'cs_header_bg_color', true), get_post_meta($post->ID, 'cs_header_bg_opacity', true)) . ';'; } if (get_post_meta($post->ID, 'cs_header_bg_parallax', true) == 'yes') { $style[] = 'border-bottom: 1px solid rgba(255, 255, 255, 0.2);'; } if ($header_setings->header_fixed == '1') { $header_setings->body_class = 'csbody body_header_fixed'; } else { $header_setings->body_class = 'csbody body_header_normal'; } } else { $header_setings->header_fixed = $smof_data['header_fixed_top']; if ($smof_data['header_bg_color']) { $style[] = 'background-color:' . HexToRGB($smof_data['header_bg_color'], $smof_data['header_transparent'] / 100) . ';'; } if ($smof_data['header_border_bottom'] == '1') { $style[] = 'border-bottom: 1px solid rgba(255, 255, 255, 0.2);'; } if ($header_setings->header_fixed == '1') { $header_setings->body_class = 'csbody body_header_fixed'; } else { $header_setings->body_class = 'csbody body_header_normal'; } } if ($smof_data["header_margin"]) { $style[] = 'margin:' . esc_attr($smof_data["header_margin"]) . ';'; } if ($smof_data["header_padding"]) { $style[] = 'padding:' . esc_attr($smof_data["header_padding"]) . ';'; } $header_setings->styles = cshero_build_style($style); /* Top Padding */ if ($smof_data["header_top_padding"]) { $header_setings->top_padding = cshero_build_style(array('padding:' . $smof_data["header_top_padding"] . ';')); } return $header_setings; }
} else { // get thumbnail $thumbnail = wp_get_attachment_image_src(get_field('thumbnail_image'), 'full'); #---------------------------------------------------------------------------# # Hover # #---------------------------------------------------------------------------# $hover_background = ''; $hover_h3 = ''; $hover_h3_span = ''; if (get_field('custom_hover') !== 'enabled') { $thumb_options = 'options'; } else { $thumb_options = ''; } if (get_field('hover_bg_color', $thumb_options)) { $rgba = HexToRGB(get_field('hover_bg_color', $thumb_options)); $hover_background .= 'background-color: rgb(' . $rgba['r'] . ', ' . $rgba['g'] . ', ' . $rgba['b'] . ') !important; background-color: rgba(' . $rgba['r'] . ', ' . $rgba['g'] . ', ' . $rgba['b'] . ', ' . get_field('hover_bg_opacity', $thumb_options) . ') !important;'; } if (get_field('hover_bg_image', $thumb_options)) { $hover_h3 .= 'display: none;'; $hover_background .= 'background-image: url(' . get_field('hover_bg_image', $thumb_options) . '); background-repeat: no-repeat; background-position: center center; !important;'; } if (get_field('hover_bg_scale', $thumb_options) === 'cover') { $hover_background .= 'background-size: cover !important;'; } if (get_field('hover_title_color', $thumb_options)) { $hover_h3 .= 'color: ' . get_field('hover_title_color', $thumb_options) . ' !important;'; } if (get_field('hover_category_color', $thumb_options)) { $hover_h3_span .= 'color: ' . get_field('hover_category_color', $thumb_options) . ' !important;'; }
function rt_custom_styling() { global $post, $google_font_replace; echo '<style type="text/css">'; # # Custom Primary Colors # $rttheme_primary_color = get_option(THEMESLUG . '_primary_color'); if ($rttheme_primary_color) { $css_for_rttheme_primary_color = ' /*color*/ #logo h1,#logo h1 a, .head_text h1,.head_text h2,.head_text h3,.head_text h4,.head_text h5,.head_text h6, .content a, .sidebar a, #footer .box.footer.widget a, .tweet_time a, .box .tweet_text a, .box .tweet_text a:hover, .widget_nav_menu ul li a:hover, .widget_categories ul li a:hover, .widget_meta ul li a:hover, .widget_recent_entries ul li a:hover, .widget_pages ul li a:hover, .widget_rss ul li a:hover,.widget_recent_comments ul li a:hover, .banner .featured_text a, .content h1 a:hover,.content h2 a:hover,.content h3 a:hover,.content h4 a:hover,.content h5 a:hover,.content h6 a:hover, .rt-toggle ol li.open .toggle-head, ul.tabs a.current, ul.tabs a.current:hover, ul.tabs a:hover, ul.tabs li.current a, a.read_more, a.read_more:hover,a.more-link,a.more-link:hover, .portfolio_sortables ul li.active a, body .tp-caption a { color:' . $rttheme_primary_color . '; } /*link hovers */ #logo h1 a:hover, .box .tweet_text a:hover, h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover,h5 a:hover,h6 a:hover, .box .tweet_text a:hover, ul.tabs a.current:hover, ul.tabs a:hover, a.read_more:hover,a.more-link:hover { color:' . $rttheme_primary_color . '; opacity:0.8; filter:alpha(opacity=80); } /*background-color*/ .icon-holder, .head_text .arrow, .box:hover > .image-border-bottom, #navigation ul, #navigation_bar > ul > li.current_page_item > a, #navigation_bar > ul > li.current_page_parent > a, #navigation_bar > ul > li.current-menu-ancestor > a , #navigation_bar > ul > li > a:hover, #navigation_bar > ul > li:hover > a, .flex-caption .desc-background, .flex-direction-nav li, .flex-direction-nav li a, .flex-control-nav li a, body .search-bar form input.searchsubmit, .paging li a:hover,.paging li a:hover, .paging li.active a, .post-navigations a, a.banner_button, a.banner_button:hover, .social_tip, .icon-overlay .icon, .blog_list .date , .rt-toggle ol li .toggle-number, .mobile-date, body span.onsale, .theme-default .nivo-directionNav a , .theme-default .nivo-caption .desc-background, .theme-default .nivo-directionNav a, body .tp-leftarrow.round, body .tp-rightarrow.round, body .tp-leftarrow.default, body .tp-rightarrow.default, body .tp-caption.r-theme-blue, body .tp-button.auto_color_button, body .tp-button.auto_color_button:hover, body .purchase.auto_color_button, body .purchase.auto_color_button:hover { background-color:' . $rttheme_primary_color . '; } ::selection{ background-color:' . $rttheme_primary_color . '; } ::-moz-selection{ background-color:' . $rttheme_primary_color . '; } /*border-color*/ .logo-holder, ul.tabs a.current, ul.tabs a.current:hover, ul.tabs a:hover, ul.tabs li.current a , blockquote p, blockquote.alignleft p, blockquote.alignright p{ border-color:' . $rttheme_primary_color . '; } '; echo trim(str_replace("\n", "", str_replace("\t", "", $css_for_rttheme_primary_color))); } # # Background Image # $background_image = ""; $randomized_banckground_images = ""; $background_position = ""; $background_attachment = ""; $background_repeat = ""; $background_color = ""; $full_width_background = ""; $background_overlay_image = ""; // meta values for current post if (!is_archive() && !is_search() && !is_404() && $post) { $background_image = get_post_meta($post->ID, THEMESLUG . "_background_image_url", true); $randomized_banckground_images = trim(get_post_meta($post->ID, THEMESLUG . "_background_image_urls", true)); $background_position = get_post_meta($post->ID, THEMESLUG . "_background_position", true); $background_attachment = get_post_meta($post->ID, THEMESLUG . "_background_attachment", true); $background_repeat = get_post_meta($post->ID, THEMESLUG . "_background_repeat", true); $background_color = get_post_meta($post->ID, THEMESLUG . "_background_color", true); $full_width_background = get_post_meta($post->ID, THEMESLUG . "_full_width_background", true); } // WooCommerce if (class_exists('Woocommerce')) { $woo_page_id = ""; $woo_page_id = is_product_category() || is_shop() ? woocommerce_get_page_id('shop') : $woo_page_id; if ($woo_page_id) { $background_image = get_post_meta($woo_page_id, THEMESLUG . "_background_image_url", true); $randomized_banckground_images = trim(get_post_meta($post->ID, THEMESLUG . "_background_image_urls", true)); $background_position = get_post_meta($woo_page_id, THEMESLUG . "_background_position", true); $background_attachment = get_post_meta($woo_page_id, THEMESLUG . "_background_attachment", true); $background_repeat = get_post_meta($woo_page_id, THEMESLUG . "_background_repeat", true); $background_color = get_post_meta($woo_page_id, THEMESLUG . "_background_color", true); $full_width_background = get_post_meta($woo_page_id, THEMESLUG . "_full_width_background", true); } } // default values if (!$background_image && !$randomized_banckground_images && !$background_color) { $background_image = get_option(THEMESLUG . '_background_image_url'); $randomized_banckground_images = trim(get_option(THEMESLUG . '_background_image_urls')); $background_position = get_option(THEMESLUG . '_background_position'); $background_attachment = get_option(THEMESLUG . '_background_attachment'); $background_repeat = get_option(THEMESLUG . '_background_repeat'); $full_width_background = get_option(THEMESLUG . '_full_width_background'); } if (!$background_color) { $background_color = get_option(THEMESLUG . '_background_color'); } //Randomized Backgrounds if ($randomized_banckground_images) { $random_background = trim(preg_replace("/(^[\r\n]*|[\r\n]+)[\\s\t]*[\r\n]+/", "\n", $randomized_banckground_images)); $images = explode("\n", $random_background); $random_number = rand(0, count($images) - 1); $background_image = $images[$random_number]; } if (!$full_width_background && ($background_image || $randomized_banckground_images || $background_color)) { echo 'body {'; if ($background_image) { echo 'background-image:url(' . $background_image . ');'; } if ($background_position && $background_image) { echo 'background-position: top ' . $background_position . ';'; } if ($background_attachment && $background_image) { echo 'background-attachment:' . $background_attachment . ';'; } if ($background_repeat && $background_image) { echo 'background-repeat:' . $background_repeat . ';'; } echo '}'; } if ($background_color) { echo 'body {background-color:' . $background_color . ';}'; } if ($full_width_background && $background_image || $background_color && !$background_image) { echo 'body {background-image:none;}'; } # # Background Overlay Image # // meta values for current post if (!is_archive() && !is_search() && !is_404() && $post) { $background_overlay_image = get_post_meta($post->ID, THEMESLUG . "_background_overlay_image_url", true); $enable_background_overlay = get_post_meta($post->ID, THEMESLUG . "_rt_hidden", true) ? get_post_meta($post->ID, THEMESLUG . "_enable_background_overlay", true) : "checked"; } else { $enable_background_overlay = "checked"; } // WooCommerce if (class_exists('Woocommerce')) { $woo_page_id = ""; $woo_page_id = is_product_category() || is_shop() ? woocommerce_get_page_id('shop') : $woo_page_id; if ($woo_page_id) { $background_overlay_image = get_post_meta($woo_page_id, THEMESLUG . "_background_overlay_image_url", true); $enable_background_overlay = get_post_meta($woo_page_id, THEMESLUG . "_rt_hidden", true) ? get_post_meta($woo_page_id, THEMESLUG . "_enable_background_overlay", true) : "checked"; } } // default values if (!$background_overlay_image) { $background_overlay_image = get_option(THEMESLUG . '_background_overlay_image_url'); } if ($enable_background_overlay) { $enable_background_overlay = get_option(THEMESLUG . '_enable_background_overlay'); } if ($enable_background_overlay && $background_overlay_image) { echo '#container {background:url(' . $background_overlay_image . ') no-repeat center top;}'; } if (!$enable_background_overlay) { echo '#container {'; echo 'background:none;'; echo '}'; } # # Custom Menu Font Color # $rttheme_menu_font_color = get_option(THEMESLUG . '_menu_font_color'); // menu item color $rttheme_menu_font_color_hover = get_option(THEMESLUG . '_menu_font_color_hover'); // menu item hover color $rttheme_menu_sub_font_color = get_option(THEMESLUG . '_menu_font_sub_color'); // menu item color $rttheme_menu_sub_font_color_hover = get_option(THEMESLUG . '_menu_font_color_sub_hover'); // menu item hover color if ($rttheme_menu_font_color) { // menu item color echo '#navigation_bar > ul > li > a{color:' . $rttheme_menu_font_color . ';}'; } if ($rttheme_menu_font_color_hover) { // menu active item color echo '#navigation_bar > ul > li.current_page_item > a, #navigation_bar > ul > li.current-menu-ancestor > a , #navigation_bar > ul > li > a:hover, #navigation_bar > ul > li:hover > a{color:' . $rttheme_menu_font_color_hover . ';}'; } if ($rttheme_menu_sub_font_color) { // menu item color echo '#navigation_bar ul ul li a{color:' . $rttheme_menu_sub_font_color . ' !important;}'; } if ($rttheme_menu_sub_font_color_hover) { // menu active item color echo '#navigation_bar ul li li a:hover,#navigation_bar li.hasSubMenu:hover > a {color:' . $rttheme_menu_sub_font_color_hover . ' !important;}'; } # # Custom Menu Background Color # $rttheme_menu_background_color = get_option(THEMESLUG . '_menu_background_color'); // menu item background color $rttheme_menu_sub_background_color = get_option(THEMESLUG . '_menu_sub_background_color'); // menu item background color if ($rttheme_menu_background_color) { // menu item background color echo '#navigation_bar > ul > li.current_page_item > a, #navigation_bar > ul > li.current-menu-ancestor > a , #navigation_bar > ul > li > a:hover, #navigation_bar > ul > li:hover > a{background-color:' . $rttheme_menu_background_color . ';}'; } if ($rttheme_menu_sub_background_color) { // menu item sub background color echo '#navigation ul{background-color:' . $rttheme_menu_sub_background_color . ';}'; } # # Custom Body Font Color # $rttheme_body_font_color = get_option('rttheme_body_font_color'); if ($rttheme_body_font_color) { echo 'body,.banner .featured_text, blockquote.testimonial p, blockquote.testimonial p span.author {color:' . $rttheme_body_font_color . ';text-shadow:none;}'; } # # Custom Link Colors # $rttheme_link_color = get_option(THEMESLUG . '_link_color'); $rttheme_link_color_hover = get_option(THEMESLUG . '_link_color_hover'); if ($rttheme_link_color) { echo '.content a, .sidebar a, #footer .box.footer.widget a,.tweet_time a, .box .tweet_text a, .banner .featured_text a, a.read_more,a.more-link{color:' . $rttheme_link_color . ';}'; } if ($rttheme_link_color_hover) { echo '.content a:hover, .sidebar a:hover, #footer .box.footer.widget a:hover,.tweet_time a:hover, .box .tweet_text a:hover, .banner .featured_text a:hover, a.read_more:hover,a.more-link:hover {color:' . $rttheme_link_color_hover . ';text-shadow:none;}'; } # # Custom Heading Font Color # $rttheme_heading_font_color = get_option('rttheme_heading_font_color'); if ($rttheme_heading_font_color) { echo 'h1,h2,h3,h4,h5,h6, .content h1 a, .content h2 a, .content h3 a, .content h4 a, .content h5 a, .content h6 a {color:' . $rttheme_heading_font_color . ';}'; } # # Custom Footer Font Color # $rttheme_footer_font_color = get_option('rttheme_footer_font_color'); if ($rttheme_footer_font_color) { echo '#footer {color:' . $rttheme_footer_font_color . ';}'; } # # Custom Footer Link Color # $rttheme_footer_link_color = get_option('rttheme_footer_link_color'); if ($rttheme_footer_link_color) { echo 'ul.footer_links a,ul.footer_links {color:' . $rttheme_footer_link_color . ';}'; echo 'ul.footer_links li {border-color:' . $rttheme_footer_link_color . ';}'; } # # Custom Footer Link Color:hover # $rttheme_footer_link_hover_color = get_option('rttheme_footer_link_hover_color'); if ($rttheme_footer_link_hover_color) { echo 'ul.footer_links a:hover {color:' . $rttheme_footer_link_hover_color . ';}'; } # # Custom Breadcrumnb Menu Font Color # $rttheme_breadcrumb_font_color = get_option('rttheme_breadcrumb_font_color'); if ($rttheme_breadcrumb_font_color) { echo '.breadcrumb {color:' . $rttheme_breadcrumb_font_color . ';}'; } # # Custom Breadcrumnb Menu Link Color # $rttheme_breadcrumb_link_color = get_option('rttheme_breadcrumb_link_color'); if ($rttheme_breadcrumb_link_color) { echo '.breadcrumb a {color:' . $rttheme_breadcrumb_link_color . ';}'; } # # Custom Breadcrumnb Menu Link Color:hover # $rttheme_breadcrumb_link_hover_color = get_option('rttheme_breadcrumb_link_hover_color'); if ($rttheme_breadcrumb_link_hover_color) { echo '.breadcrumb a:hover {color:' . $rttheme_breadcrumb_link_hover_color . ';}'; } # # Custom Menu Font Size # $rttheme_menu_font_size = get_option(THEMESLUG . '_menu_font_size'); if ($rttheme_menu_font_size) { echo '#navigation_bar > ul > li > a {font-size:' . $rttheme_menu_font_size . 'px;}'; } # # Custom Banner Font Size # $rttheme_banner_font_size = get_option(THEMESLUG . '_banner_font_size'); if ($rttheme_banner_font_size) { echo '.banner p {font-size:' . $rttheme_banner_font_size . 'px;}'; } # # Widget Headings Font Size # $rttheme_widget_heading_font_size = get_option(THEMESLUG . '_widget_heading_font_size'); if ($rttheme_widget_heading_font_size) { echo '.template_builder h3, .widget .title h3, .sidebar .title h3 {font-size:' . $rttheme_widget_heading_font_size . 'px !important;}'; } # # Custom Heading Sizes # for ($i = 1; $i <= 6; $i++) { $this_heading = get_option('rttheme_h' . $i . '_font_size'); if ($this_heading) { echo 'h' . $i . '{ font-size:' . $this_heading . 'px;line-height:140%; }'; } } # # Custom Body Font Size # $rttheme_body_font_size = get_option('rttheme_body_font_size'); if ($rttheme_body_font_size) { echo 'body {font-size:' . $rttheme_body_font_size . 'px;line-height:160%;}'; } # # Custom Body Font Family # $rttheme_body_font_family = get_option('rttheme_body_font_family'); if ($rttheme_body_font_family) { echo 'body {font-family:' . $rttheme_body_font_family . ';}'; } echo '</style>'; # # Display CSS codes for Google Fonts that generated by theme.php # echo trim(str_replace("\r\n", "", str_replace("\t", "", $google_font_replace))); # # Custom Footer Background # $rttheme_footer_background_color = get_option('rttheme_footer_background_color'); $rttheme_footer_opacity = get_option('rttheme_footer_opacity'); if ($rttheme_footer_background_color) { $footerRGB = HexToRGB($rttheme_footer_background_color); $rttheme_footer_opacity_modern_browsers = $rttheme_footer_opacity || $rttheme_footer_opacity == "0" ? intval($rttheme_footer_opacity) / 100 : "0.3"; if (is_array($footerRGB)) { echo '<style type="text/css">'; echo '#footer {background-color: rgba(' . $footerRGB["r"] . ',' . $footerRGB["g"] . ',' . $footerRGB["b"] . ', ' . $rttheme_footer_opacity_modern_browsers . ');}'; echo '</style>'; # # internet explorer ;( - IE 8 and before versions are not supports rgba colors and Microsoft.gradient technique acts weird, # these codes trying to serve closer results with a modern browser for IE 8- # if ($rttheme_footer_opacity || $rttheme_footer_opacity == 0) { if ($rttheme_footer_opacity == "0") { $rttheme_footer_opacity_ie = "00"; } elseif (intval($rttheme_footer_opacity) > 85) { $rttheme_footer_opacity_ie = "1"; } elseif (intval($rttheme_footer_opacity) > 59 && intval($rttheme_footer_opacity) < 85) { $rttheme_footer_opacity_ie = "99"; } elseif (intval($rttheme_footer_opacity) > 10 && intval($rttheme_footer_opacity) < 59) { $rttheme_footer_opacity_ie = $rttheme_footer_opacity + 15; } elseif (intval($rttheme_footer_opacity) < 10 && intval($rttheme_footer_opacity) > 0) { $rttheme_footer_opacity_ie = "0" . $rttheme_footer_opacity; } else { $rttheme_footer_opacity_ie = $rttheme_footer_opacity; } } else { $rttheme_footer_opacity_ie = 30; } echo ' <!--[if lt IE 9]> <style type="text/css"> #footer { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#' . $rttheme_footer_opacity_ie . '' . trim(str_replace('#', '', $rttheme_footer_background_color)) . ',endColorstr=#' . $rttheme_footer_opacity_ie . '' . trim(str_replace('#', '', $rttheme_footer_background_color)) . '); zoom: 1; } </style> <![endif]--> '; } } # # Custom CSS Codes # $rttheme_custom_css = get_option('rttheme_custom_css'); if ($rttheme_custom_css) { echo '<style type="text/css">' . $rttheme_custom_css . '</style>'; } }
footer#footer .inner{background:<?php echo $footer_bg_color; ?> ;} footer#footer #copyright{background:<?php echo $footer_copyright_bg; ?> ;} <?php } ?> <?php $new_color = colourBrightness($base_color, 0.6); $new = HexToRGB($new_color); $new_color2 = colourBrightness($base_color, 0.03); ?> </style> <?php $font = themeple_get_option('font_page'); ?> <?php $font_head = themeple_get_option('font_headings'); ?>
function ppb_content_half_bg_func($atts, $content) { //extract short code attr extract(shortcode_atts(array('size' => 'one', 'slug' => '', 'title' => '', 'subtitle' => '', 'background' => '', 'background_parallax' => '', 'background_position' => '', 'padding' => 30, 'bgcolor' => '#ffffff', 'opacity' => 100, 'fontcolor' => '', 'align' => '', 'custom_css' => ''), $atts)); if (empty($bgcolor)) { $bgcolor = '#ffffff'; } $sec_id = ''; if (!empty($slug)) { $sec_id = 'id="' . esc_attr($slug) . '"'; } $return_html = '<div ' . $sec_id . ' class="' . esc_attr($size) . ' withsmallpadding ppb_content_half_bg '; if (!empty($background)) { $return_html .= 'withbg '; $custom_css .= 'background-image:url(' . esc_url($background) . ');'; } if (!empty($background_parallax)) { $return_html .= 'parallax '; } if (!empty($background_position)) { $custom_css .= 'background-position: center ' . esc_attr($background_position) . ';'; } $return_html .= '"'; $custom_css .= 'padding:' . esc_attr($padding) . 'px 0 ' . esc_attr($padding) . 'px 0;'; if (!empty($custom_css)) { $return_html .= ' style="' . esc_attr(urldecode($custom_css)) . '" '; } if (!empty($background_parallax)) { $return_html .= ' data-stellar-background-ratio="0.5" '; } $return_html .= '><div class="standard_wrapper"><div class="page_content_wrapper"><div class="inner">'; if (!empty($content)) { $custom_bgcolor_css = ''; if (!empty($bgcolor)) { $ori_bgcolor = $bgcolor; $opacity = $opacity / 100; $bgcolor = HexToRGB($bgcolor); $custom_bgcolor_css .= 'background:' . $ori_bgcolor . ';'; $custom_bgcolor_css .= 'background:rgb(' . $bgcolor['r'] . ',' . $bgcolor['g'] . ',' . $bgcolor['b'] . ',' . $opacity . ');'; $custom_bgcolor_css .= 'background:rgba(' . $bgcolor['r'] . ',' . $bgcolor['g'] . ',' . $bgcolor['b'] . ',' . $opacity . ');'; } $custom_css_fontcolor = ''; if (!empty($fontcolor)) { $custom_css_fontcolor .= 'color:' . esc_attr($fontcolor) . ';'; } if ($align == 'left') { $return_html .= '<div class="one_half_bg" style="' . esc_attr($custom_bgcolor_css . $custom_css_fontcolor) . '">'; } else { $return_html .= '<div class="one_half_bg floatright" style="' . esc_attr($custom_bgcolor_css . $custom_css_fontcolor) . '">'; } //Add title and content if (!empty($title)) { $return_html .= '<h2 class="ppb_title" style="' . esc_attr($custom_css_fontcolor) . '">' . urldecode(tg_get_first_title_word($title)) . '</h2>'; } if (!empty($subtitle)) { $return_html .= '<div class="ppb_subtitle" style="' . esc_attr($custom_css_fontcolor) . '">' . urldecode($subtitle) . '</div>'; } if (!empty($title) or !empty($subtitle)) { $return_html .= '<div class="page_header_sep left" '; if (!empty($fontcolor)) { $return_html .= 'style="border-color:' . $fontcolor . '"'; } $return_html .= '></div>'; } if (!empty($content)) { $return_html .= do_shortcode(tg_apply_content($content)); } $return_html .= '</div>'; } $return_html .= '</div></div></div></div>'; return $return_html; }
echo str_replace("%20", " ", str_replace(":300", " ", str_replace(":200", " ", str_replace(":400", " ", $pmc_data['heading_font']['face'])))); ?> !important;} .image-gallery, .gallery-item { border: 2px dashed <?php echo $pmc_data['mainColor']; ?> ;} .blogpostcategory .posted-date p, .singledefult .posted-date p{font-family: <?php echo str_replace("%20", " ", str_replace(":300", " ", str_replace(":200", " ", str_replace(":400", " ", $pmc_data['body_font']['face'])))); ?> , "Helvetica Neue", Arial, Helvetica, Verdana, sans-serif !important;text-shadow:0 1px 0 <?php echo HexToRGB($pmc_data['ShadowColorFont'], $pmc_data['ShadowOpacittyColorFont']); ?> ;} .pagecontent h1, .pagecontent p, .team .role, .pagecontentContent #breadcrumb {text-shadow:0 1px 0 <?php echo HexToRGB($pmc_data['ShadowColorFont'], $pmc_data['ShadowOpacittyColorFont']); ?> ;} /* *********************** -------------------------------------- ------------Widget---------- -----------------------------------*/ .wttitle a {color:<?php echo $pmc_data['heading_font_h4']['color']; ?> ;} .widgett a:hover, .widget_nav_menu ul li a:hover{color:<?php echo $pmc_data['mainColor']; ?>
.tour_sale { color: <?php echo $pp_tour_sale_font; ?> ; } <?php } ?> <?php $pp_tour_hover_bg = get_option('pp_tour_hover_bg'); $ori_pp_tour_hover_bg = $pp_tour_hover_bg; if (!empty($pp_tour_hover_bg)) { $pp_tour_hover_bg = HexToRGB($pp_tour_hover_bg); ?> .one_third.gallery3:hover div.thumb_content { background: <?php echo $ori_pp_tour_hover_bg; ?> ; background: rgb(<?php echo $pp_tour_hover_bg['r']; ?> , <?php echo $pp_tour_hover_bg['g']; ?> , <?php echo $pp_tour_hover_bg['b'];