function setelement($element, $skin, $inherited_elements, $z) { $get_skin_data = maybe_unserialize(get_option('skin_data_' . $skin)); $layersettings = $elementsettings = $menu_inherit_element = $css = $heading_color_settings = $h1_color_settings = $h1_tag_settings = $h2_color_settings = $h2_tag_settings = $h3_color_settings = $h4_color_settings = $h5_color_settings = $h6_color_settings = $font_color_settings = $class = $linkhover_color_settings = $heading_tag_settings = $elemhover_bgcolor_settings = $elem_extras_2 = $link_color_settings = $elem_bgcolor_settings = $elem_extras_1 = $shaded_settings = $shaded_font_settings = $menu_pseudo = ''; // reset // FONT SIZE if (isset($get_skin_data['skin_id_' . $element . '_font_size' . $z])) { $font_size = stripslashes($get_skin_data['skin_id_' . $element . '_font_size' . $z]); } else { $font_size = ''; } if ($font_size != '') { $elementsettings .= ' font-size:' . $font_size . 'px;'; } // LETTER SPACING $font_spacing = isset($get_skin_data['skin_id_' . $element . '_font_spacing' . $z]) ? stripslashes($get_skin_data['skin_id_' . $element . '_font_spacing' . $z]) : ''; if ($font_spacing != '') { $elementsettings .= ' letter-spacing:' . $font_spacing . '; '; } // FONT if (isset($get_skin_data['skin_id_' . $element . '_font' . $z])) { $font = stripslashes($get_skin_data['skin_id_' . $element . '_font' . $z]); } else { $font = ''; } if ($font != '') { $elementsettings .= ' font-family:' . $font . ';'; } // HEADING FONT if (isset($get_skin_data['skin_id_' . $element . '_heading_font' . $z])) { $heading_font = stripslashes($get_skin_data['skin_id_' . $element . '_heading_font' . $z]); } else { $heading_font = ''; } if ($heading_font != '' && of_get_option("nv_font_type") != "enable") { $heading_tag_settings = ' font-family:' . $heading_font . ';'; } // HEADING LETTER SPACING $header_font_spacing = isset($get_skin_data['skin_id_' . $element . '_heading_font_spacing' . $z]) ? stripslashes($get_skin_data['skin_id_' . $element . '_heading_font_spacing' . $z]) : ''; if ($header_font_spacing != '') { $heading_tag_settings .= ' letter-spacing:' . $header_font_spacing . '; '; } // HEADING SIZE if (isset($get_skin_data['skin_id_' . $element . '_heading_size' . $z])) { $heading_size = stripslashes($get_skin_data['skin_id_' . $element . '_heading_size' . $z]); } else { $heading_size = ''; } // H1 FONT if (isset($get_skin_data['skin_id_' . $element . '_h1_font' . $z])) { $h1_font = stripslashes($get_skin_data['skin_id_' . $element . '_h1_font' . $z]); } else { $h1_font = ''; } if ($h1_font != '' && of_get_option("nv_font_type") != "enable") { $h1_tag_settings = ' font-family:' . $h1_font . ';'; } // H2 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h2_font' . $z])) { $h2_font = stripslashes($get_skin_data['skin_id_' . $element . '_h2_font' . $z]); } else { $h2_font = ''; } if ($h2_font != '' && of_get_option("nv_font_type") != "enable") { $h2_tag_settings = ' font-family:' . $h2_font . ';'; } // FONT COLOR if (isset($get_skin_data['skin_id_' . $element . '_font_color' . $z])) { $font_color = $get_skin_data['skin_id_' . $element . '_font_color' . $z]; } else { $font_color = ''; } if ($font_color != '') { $font_color_settings = ' color:#' . str_replace('#', '', $font_color) . ';'; $elementsettings .= ' color:#' . str_replace('#', '', $font_color) . ';'; } // LINK COLOR if (isset($get_skin_data['skin_id_' . $element . '_link_color' . $z])) { $link_color = $get_skin_data['skin_id_' . $element . '_link_color' . $z]; } else { $link_color = ''; } if ($link_color != '') { $link_color_settings = ' color:#' . str_replace('#', '', $link_color) . ';'; $elem_bgcolor_settings = ' background-color:#' . str_replace('#', '', $link_color) . ';'; // set background color for various elements $elem_bordercolor_settings = ' border-color:#' . str_replace('#', '', $link_color) . ';'; // set background color for various elements $elem_extras_1 = ' border-bottom: 1px dashed #' . str_replace('#', '', $link_color) . ';'; // set border color for various elements } // LINK HOVER COLOR if (isset($get_skin_data['skin_id_' . $element . '_linkhover_color' . $z])) { $linkhover_color = $get_skin_data['skin_id_' . $element . '_linkhover_color' . $z]; } else { $linkhover_color = ''; } if ($linkhover_color != '') { $linkhover_color_settings = ' color:#' . str_replace('#', '', $linkhover_color) . ';'; $elemhover_bgcolor_settings = ' background-color:#' . str_replace('#', '', $linkhover_color) . ';'; } // H1 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h1_color' . $z])) { $h1_color = $get_skin_data['skin_id_' . $element . '_h1_color' . $z]; } if (!empty($h1_color)) { $h1_color_settings = ' color:#' . str_replace('#', '', $h1_color) . ';'; } if (!empty($heading_size)) { $hsize = 42 + $heading_size; $h1_color_settings .= ' font-size:' . $hsize . 'px;'; } // H2 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h2_color' . $z])) { $h2_color = $get_skin_data['skin_id_' . $element . '_h2_color' . $z]; } if (!empty($h2_color)) { $h2_color_settings = ' color:#' . str_replace('#', '', $h2_color) . ';'; } if (!empty($heading_size)) { $hsize = 31 + $heading_size; $h2_color_settings .= ' font-size:' . $hsize . 'px;'; } // H3 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h3_color' . $z])) { $h3_color = $get_skin_data['skin_id_' . $element . '_h3_color' . $z]; } if (!empty($h3_color)) { $h3_color_settings = ' color:#' . str_replace('#', '', $h3_color) . ';'; } if (!empty($heading_size)) { $hsize = 24 + $heading_size; $h3_color_settings .= ' font-size:' . $hsize . 'px;'; } // H4 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h4_color' . $z])) { $h4_color = $get_skin_data['skin_id_' . $element . '_h4_color' . $z]; } if (!empty($h4_color)) { $h4_color_settings = ' color:#' . str_replace('#', '', $h4_color) . ';'; } if (!empty($heading_size)) { $hsize = 17 + $heading_size; $h4_color_settings .= ' font-size:' . $hsize . 'px;'; } // H5 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h5_color' . $z])) { $h5_color = $get_skin_data['skin_id_' . $element . '_h5_color' . $z]; } if (!empty($h5_color)) { $h5_color_settings = ' color:#' . str_replace('#', '', $h5_color) . ';'; } if (!empty($heading_size)) { //$hsize = 14 + $heading_size; $hsize = 15; $h5_color_settings .= ' font-size:' . $hsize . 'px;'; } // H6 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h6_color' . $z])) { $h6_color = $get_skin_data['skin_id_' . $element . '_h6_color' . $z]; } if (!empty($h6_color)) { $h6_color_settings = ' color:#' . str_replace('#', '', $h6_color) . ';'; } if (!empty($heading_size)) { //$hsize = 12 + $heading_size; $hsize = 13; $h6_color_settings .= ' font-size:' . $hsize . 'px;'; } // Shaded Color Settings $shaded_color = isset($get_skin_data['skin_id_' . $element . '_shaded_color' . $z]) ? str_replace('#', '', $get_skin_data['skin_id_' . $element . '_shaded_color' . $z]) : ''; $shaded_border = isset($get_skin_data['skin_id_' . $element . '_shaded_border_color' . $z]) ? $get_skin_data['skin_id_' . $element . '_shaded_border_color' . $z] : ''; $outer_border = isset($get_skin_data['skin_id_' . $element . '_border_color' . $z]) ? $get_skin_data['skin_id_' . $element . '_border_color' . $z] : ''; // Shaded Background Color if (!empty($shaded_color)) { $shaded_background_color = ' background-color: #' . str_replace('#', '', $shaded_color) . ';'; // Border using Shaded Background Color $shaded_background_color_border = ' border-color: #' . str_replace('#', '', $shaded_color) . ';'; } // Shaded Border Color if (!empty($shaded_border)) { $shaded_border_color = ' border-color:#' . str_replace('#', '', $shaded_border) . ';'; } // Outer Border Color if (!empty($outer_border)) { $outer_border_color = ' border-color:#' . str_replace('#', '', $outer_border) . ';'; } // Element Color Settings $element_color = isset($get_skin_data['skin_id_' . $element . '_element_color' . $z]) ? str_replace('#', '', $get_skin_data['skin_id_' . $element . '_element_color' . $z]) : ''; // Shaded Element Color if (!empty($element_color)) { $shaded_element_color = ' color: #' . str_replace('#', '', $element_color) . ';'; } // Frame Background $color_pri = isset($get_skin_data['skin_id_layer_' . $element . '_color' . $z]) ? str_replace('#', '', $get_skin_data['skin_id_layer_' . $element . '_color' . $z]) : ''; $color_sec = $color_pri; if (!empty($color_pri)) { $rgb_color_pri = nv_html2rgb($color_pri); $rgb_color_sec = nv_html2rgb($color_sec); // Primary Opacity $opacity_pri = isset($get_skin_data['skin_id_layer_' . $element . '_opac' . $z]) ? $get_skin_data['skin_id_layer_' . $element . '_opac' . $z] : 100; // Set Footer Opacity if ($element == 'footer') { $opacity_pri = '100'; } // Secondary Opacity $opacity_sec = $opacity_pri; if ($opacity_pri == '100') { $opacity_pri = '1'; } elseif ($opacity_pri == '.') { $opacity_pri = '0'; } elseif ($opacity_pri < '10') { $opacity_pri = '0.1' . $opacity_pri; } else { $opacity_pri = '0.' . $opacity_pri; } if ($opacity_sec == '100') { $opacity_sec = '1'; } elseif ($opacity_sec == '.') { $opacity_sec = '0'; } elseif ($opacity_sec < '10') { $opacity_sec = '0.1' . $opacity_sec; } else { $opacity_sec = '0.' . $opacity_sec; } $ie_opacity_pri = $opacity_pri * 255; $ie_opacity_pri = dechex($ie_opacity_pri); $ie_opacity_sec = $opacity_sec * 255; $ie_opacity_sec = dechex($ie_opacity_sec); if ($ie_opacity_pri == '0') { $ie_opacity_pri = '00'; } if ($ie_opacity_sec == '0') { $ie_opacity_sec = '00'; } if ($element == 'menu' || $element == 'header') { $header_bgcolor = ' background-color: rgb( ' . $rgb_color_pri . ' ); background-color: rgba( ' . $rgb_color_pri . ', ' . $opacity_pri . ');'; $menu_pseudo .= ' border-color: rgb( ' . $rgb_color_pri . ' ); border-color: rgba( ' . $rgb_color_pri . ', ' . $opacity_pri . ');'; } $elementsettings .= ' background-color: rgb( ' . $rgb_color_pri . ' ); background-color: rgba( ' . $rgb_color_pri . ', ' . $opacity_pri . '); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#' . $ie_opacity_pri . $color_pri . ', endColorstr=#' . $ie_opacity_sec . $color_sec . '); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#' . $ie_opacity_pri . $color_pri . ', endColorstr=#' . $ie_opacity_sec . $color_sec . ')"; zoom:1;'; } else { $elementsettings .= ' filter:none; -ms-filter:none; '; } $background_image = isset($get_skin_data['skin_id_layer_' . $element . '_image' . $z]) ? $get_skin_data['skin_id_layer_' . $element . '_image' . $z] : ''; $background_image_repeat = isset($get_skin_data['skin_id_layer_' . $element . '_image_repeat' . $z]) ? $get_skin_data['skin_id_layer_' . $element . '_image_repeat' . $z] : ''; $background_image_position = isset($get_skin_data['skin_id_layer_' . $element . '_image_position' . $z]) ? $get_skin_data['skin_id_layer_' . $element . '_image_position' . $z] : ''; $background_image_size = isset($get_skin_data['skin_id_layer_' . $element . '_image_size' . $z]) ? $get_skin_data['skin_id_layer_' . $element . '_image_size' . $z] : ''; if (!empty($background_image)) { $elementsettings .= ' background-image: url( ' . $background_image . ' ); '; if (!empty($background_image_repeat)) { $elementsettings .= ' background-repeat: ' . $background_image_repeat . '; '; } if (!empty($background_image_position)) { $elementsettings .= ' background-position: ' . $background_image_position . '; '; } if (!empty($background_image_size)) { $elementsettings .= ' background-size: ' . $background_image_size . '; '; } } // format css style number if (!empty($z)) { $z = str_replace('_', '', $z); $z = $z + 1; $z = '-' . $z; } if (!empty($elementsettings)) { $class = setcss($inherited_elements, ''); $extras = ''; $formatgallery = ''; $css_elems = '.skinset-' . $element . $z . '.nv-skin'; if ($element == 'menu') { $css .= '@media only screen and (min-width: 40.063em) {' . $class . $css_elems . ' { ' . $elementsettings . ' } }'; } else { $css .= $class . $css_elems . ' { ' . $elementsettings . ' }'; } } // header menu if (!empty($header_bgcolor) && $element == 'header') { if ($element == 'header' || $element == 'menu') { $css .= ' .horizontal-layout .skinset-menu { ' . $header_bgcolor . ' } '; } } if ($element == 'menu' || $element == 'header' && !empty($menu_pseudo)) { $css .= ' #nv-tabs ul ul.sub-menu:before, #nv-tabs ul ul.sub-menu ul:before { ' . $menu_pseudo . ' }'; } if (!empty($font_color_settings)) { $css .= ' .skinset-' . $element . $z . ' div.item-list-tabs ul li a, .skinset-' . $element . $z . ' .widget ul li.current_page_item a, .skinset-' . $element . $z . ' span.menudesc, div.post-metadata a, .skinset-' . $element . $z . ' .commentlist .comment-author a, .skinset-' . $element . $z . ' .recent-metadata a, .skinset-' . $element . $z . ' .nv-recent-posts h4 a, .skinset-' . $element . $z . ' .post-metadata a, .skinset-' . $element . $z . ' .widget.widget_pages li a, .skinset-' . $element . $z . ' .widget.widget_nav_menu li a, .skinset-' . $element . $z . ' .widget.widget_recent_entries li a, .skinset-' . $element . $z . ' div.blind_down ul li a, #item-header-content h2 a, .skinset-' . $element . $z . ' a.topic-title, .skinset-' . $element . $z . ' a.bbp-forum-title, .skinset-' . $element . $z . ' td.td-group .object-name a, .skinset-' . $element . $z . ' .caption-wrap .title.caption a, .skinset-' . $element . $z . ' .menutitle i, .skinset-' . $element . $z . ' #content span.price, .skinset-' . $element . $z . ' #content span.amount { ' . $font_color_settings . ' } '; } if (!empty($elem_bordercolor_settings)) { $class = setcss($inherited_elements, 'a'); $css .= $class . ' .skinset-' . $element . $z . ' .blockquote_line, .skinset-' . $element . $z . ' blockquote, .skinset-' . $element . $z . ' .collapse-menu-trigger-wrap.active { ' . $elem_bordercolor_settings . ' } '; } if (!empty($link_color_settings)) { $class = setcss($inherited_elements, 'a'); $css .= $class . ' .skinset-' . $element . $z . ' a, .skinset-' . $element . $z . ' .current_page_item>a, .skinset-' . $element . $z . ' .current-menu-item>a, .skinset-' . $element . $z . ' .current-menu-ancestor>a, .skinset-' . $element . $z . ' .wpb_content_element .wpb_wrapper .ui-state-active a, .skinset-' . $element . $z . ' #content div.product .stock, .skinset-' . $element . $z . ' .vc_icon_element.vc_icon_element-outer .vc_icon_element-inner.vc_icon_element-color-link_color .vc_icon_element-icon, .skinset-' . $element . $z . ' span.text_linkcolor {' . $link_color_settings . ' } '; } if (!empty($linkhover_color_settings)) { $class = setcss($inherited_elements, 'a:hover'); $css .= $class . ' .skinset-' . $element . $z . ' a:hover, .skinset-' . $element . $z . ' a:active, .skinset-' . $element . $z . ' a.waypoint_active, .skinset-' . $element . $z . ' .post-metadata a:hover, .skinset-' . $element . $z . ' .widget.widget_pages li a:hover, .skinset-' . $element . $z . ' .widget.widget_nav_menu li a:hover, .skinset-' . $element . $z . ' .widget.widget_recent_entries li a:hover, #item-header-content h2 a:hover, .skinset-' . $element . $z . ' .widget.widget_pages a, .skinset-' . $element . $z . ' .current_page_item>a, .skinset-' . $element . $z . ' .current-menu-item>a, .skinset-' . $element . $z . ' .current-menu-ancestor>a, .skinset-' . $element . $z . ' .gallery-wrap .slidernav a:hover, .skinset-' . $element . $z . ' li.dock-tab a:hover, .skinset-' . $element . $z . ' .zoomflow .controlsCon > .arrow-left:hover i, .skinset-' . $element . $z . ' .zoomflow .controlsCon > .arrow-right:hover i, .skinset-' . $element . $z . ' .control-panel li a:hover, .skinset-' . $element . $z . ' .caption-wrap .title.caption a:hover { ' . $linkhover_color_settings . ' } '; } if (!empty($heading_color_settings) || !empty($heading_tag_settings)) { $class = setcss($inherited_elements, 'h1, h1 a, h2, h2 a, h3, h3 a, h4, h4 a, h5, h5 a, h6, h6 a'); $css .= $class . '.skinset-' . $element . $z . ' h1, .skinset-' . $element . $z . ' h1 a, .skinset-' . $element . $z . ' h2, .skinset-' . $element . $z . ' h2 a, .skinset-' . $element . $z . ' h3, .skinset-' . $element . $z . ' h3 a, .skinset-' . $element . $z . ' h4, .skinset-' . $element . $z . ' h4 a, .skinset-' . $element . $z . ' h5, .skinset-' . $element . $z . ' h5 a, .skinset-' . $element . $z . ' h6, .skinset-' . $element . $z . ' h6 a { ' . $heading_color_settings . $heading_tag_settings . ' } '; } if (!empty($h1_color_settings) || !empty($h1_tag_settings)) { $class = setcss($inherited_elements, 'h1, h1 a'); $css .= $class . '.skinset-' . $element . $z . ' h1, .skinset-' . $element . $z . ' h1 a { ' . $h1_color_settings . $h1_tag_settings . ' } '; } if (!empty($h2_color_settings) || !empty($h2_tag_settings)) { $class = setcss($inherited_elements, 'h2, h2 a'); $css .= $class . '.skinset-' . $element . $z . ' h2, .skinset-' . $element . $z . ' h2 a { ' . $h2_color_settings . $h2_tag_settings . ' } '; } if (!empty($h3_color_settings)) { $class = setcss($inherited_elements, 'h3, h3 a'); $css .= $class . '.skinset-' . $element . $z . ' h3, .skinset-' . $element . $z . ' h3 a { ' . $h3_color_settings . ' } '; } if (!empty($h4_color_settings)) { $class = setcss($inherited_elements, 'h4, h4 a, h5, h5 a, h6, h6 a'); $css .= $class . '.skinset-' . $element . $z . ' h4,.skinset-' . $element . $z . ' .ui-tabs-nav li a, .skinset-' . $element . $z . ' .accordionhead a,.skinset-' . $element . $z . ' .nv-recent-posts h4 a, .skinset-' . $element . $z . ' h5, .skinset-' . $element . $z . ' h5 a, .skinset-' . $element . $z . ' h6, .skinset-' . $element . $z . ' h6 a { ' . $h4_color_settings . ' } '; } if (!empty($h5_color_settings)) { $class = setcss($inherited_elements, 'h5, h5 a'); $css .= $class . '.skinset-' . $element . $z . ' h5, .skinset-' . $element . $z . ' h5 a { ' . $h5_color_settings . ' } '; } if (!empty($h6_color_settings)) { $class = setcss($inherited_elements, 'h6, h6 a'); $css .= $class . '.skinset-' . $element . $z . ' h6, .skinset-' . $element . $z . ' h6 a { ' . $h6_color_settings . ' } '; } if (!empty($form_color_settings)) { $class = setcss($inherited_elements, 'input[type="text"], input[type="password"],input[type="file"],textarea,input'); $css .= $class . '.skinset-' . $element . $z . ' input[type="text"],.skinset-' . $element . $z . ' input[type="password"],.skinset-' . $element . $z . ' input[type="file"],.skinset-' . $element . $z . ' textarea,.skinset-' . $element . $z . ' input { ' . $form_color_settings . ' } '; } if (!empty($elem_bgcolor_settings)) { $class = setcss($inherited_elements, 'span.nvcolor,span.highlight.one,.post-metadata li.post-date, .commentlist .reply a, div.header-message'); if ($element == 'background') { $class .= ' .skinset-' . $element . $z . ' .dock-tab span.items-count,'; } $css .= $class . ' .skinset-' . $element . $z . ' span.nvcolor, .skinset-' . $element . $z . ' span.highlight.one, .skinset-' . $element . $z . ' .commentlist .reply a, .skinset-' . $element . $z . ' .post-metadata li.post-date, .skinset-' . $element . $z . ' div.header-infobar, .skinset-' . $element . $z . ' div.item-list-tabs ul li a span, .skinset-' . $element . $z . ' .widget_display_stats dd strong, .skinset-' . $element . $z . ' div.bbp-template-notice, .skinset-' . $element . $z . ' div#message.updated, .skinset-' . $element . $z . ' input[type="button"], .skinset-' . $element . $z . ' button, .skinset-' . $element . $z . ' submit, .skinset-' . $element . $z . ' input[type="submit"], .skinset-' . $element . $z . ' a.button, .skinset-' . $element . $z . ' button.button, .skinset-' . $element . $z . ' input.button, .skinset-' . $element . $z . ' #review_form #submit, .skinset-' . $element . $z . ' .action-icons i, .skinset-' . $element . $z . ' span.tooltip-icon, .skinset-' . $element . $z . ' .styledbox .icon-wrap, .skinset-' . $element . $z . ' .nv-pricing-table .icon-wrap, .skinset-' . $element . $z . ' .woocommerce-info:before, .skinset-' . $element . $z . ' span.onsale, .skinset-' . $element . $z . ' span.productprice, .skinset-' . $element . $z . ' .button-wrap .button.link_color, .skinset-' . $element . $z . ' button.vc_btn3-color-link_color, .skinset-' . $element . $z . ' a.vc_btn3-color-link_color, .skinset-' . $element . $z . ' .vc_icon_element.vc_icon_element-outer .vc_icon_element-inner.vc_icon_element-background-color-link_color.vc_icon_element-background, .skinset-' . $element . $z . ' span.fonticon.background, .skinset-' . $element . $z . ' span.dropcap, .skinset-' . $element . $z . ' .post.sticky .post-titles:before, .skinset-' . $element . $z . ' span.portfolio-link { ' . $elem_bgcolor_settings . ' } '; } if (!empty($elemhover_bgcolor_settings)) { $class = setcss($inherited_elements, '.nvcolor-wrap:hover span.nvcolor'); $css .= $class . ' .skinset-' . $element . $z . ' .nvcolor-wrap:hover span.nvcolor, .skinset-' . $element . $z . ' input[type="submit"]:hover, .skinset-' . $element . $z . ' input[type="button"]:hover, .skinset-' . $element . $z . ' a.button:hover, .skinset-' . $element . $z . ' button.button:hover, .skinset-' . $element . $z . ' .vc_btn3-color-link_color:hover { ' . $elemhover_bgcolor_settings . ' } '; } if (!empty($elem_extras_1)) { $class = setcss($inherited_elements, 'acronym, abbr'); $css .= $class . '.skinset-' . $element . $z . ' acronym, .skinset-' . $element . $z . ' abbr { ' . $elem_extras_1 . ' } '; } if (!empty($shaded_background_color)) { $class = ''; if ($element == 'main') { /*$css .=' .gallery-wrap .caption, ';*/ $css .= ' .gallery-wrap .slidernav, '; } $css .= $class . ' .skinset-' . $element . $z . ' .nv-pricing-content li.even, .skinset-' . $element . $z . ' .ui-tabs .ui-tabs-nav li, .skinset-' . $element . $z . ' .ui-accordion-header, .skinset-' . $element . $z . ' pre, .skinset-' . $element . $z . ' xmp, .skinset-' . $element . $z . ' input[type=text], .skinset-' . $element . $z . ' input[type=password], .skinset-' . $element . $z . ' input[type=file], .skinset-' . $element . $z . ' input[type=tel], .skinset-' . $element . $z . ' input[type=url], .skinset-' . $element . $z . ' input[type=email], .skinset-' . $element . $z . ' input.input-text, .skinset-' . $element . $z . ' textarea, .skinset-' . $element . $z . ' select, .skinset-' . $element . $z . ' .author-info, .skinset-' . $element . $z . ' .frame .gridimg-wrap, .skinset-' . $element . $z . ' .row.custom-row-inherit, .skinset-' . $element . $z . ' .splitter ul li.active, .skinset-' . $element . $z . ' .page_nav .page-numbers, .skinset-' . $element . $z . ' .page-numbers li, .skinset-' . $element . $z . ' .styledbox.general.shaded, .skinset-' . $element . $z . ' .wpb_content_element .wpb_tabs_nav li.ui-tabs-active, .skinset-' . $element . $z . ' .wpb_content_element .wpb_tabs_nav li:hover, .skinset-' . $element . $z . ' .wpb_content_element .wpb_accordion_wrapper .wpb_accordion_header, .skinset-' . $element . $z . ' .nv-pricing-signup, .skinset-' . $element . $z . ' div.item-list-tabs, .skinset-' . $element . $z . ' .vc_progress_bar .vc_single_bar, .skinset-' . $element . $z . ' .zoomflow .controlsCon > .arrow-left, .skinset-' . $element . $z . ' .zoomflow .controlsCon > .arrow-right, .skinset-' . $element . $z . ' li.dock-tab, .skinset-' . $element . $z . ' #lang_sel_list li, .skinset-' . $element . $z . ' .autototop a, .skinset-' . $element . $z . ' .woocommerce-message, .skinset-' . $element . $z . ' .woocommerce-error, .skinset-' . $element . $z . ' .woocommerce-info, .skinset-' . $element . $z . ' .woocommerce .payment_box, .skinset-' . $element . $z . ' .woocommerce-tabs li, .skinset-' . $element . $z . ' #reviews #comments ol.commentlist li .comment-text, .skinset-' . $element . $z . ' table.shop_table thead th, .skinset-' . $element . $z . ' .cart_totals .cart-subtotal td, .skinset-' . $element . $z . ' .cart_totals .cart-subtotal th, .skinset-' . $element . $z . ' .cart_totals .total td, .skinset-' . $element . $z . ' .cart_totals .total th, .skinset-' . $element . $z . ' .commentlist .comment-content, .skinset-' . $element . $z . ' .single_variation_wrap .single_variation, .skinset-' . $element . $z . ' .page-link span.pagination, .skinset-' . $element . $z . ' div.wp-caption, .skinset-' . $element . $z . ' .zoomflow .item.type-image .the-bg { ' . $shaded_background_color . ' } '; } if (!empty($shaded_background_color_border)) { $css .= $class . ' .skinset-' . $element . $z . ' #payment div.payment_box:after, .skinset-' . $element . $z . ' .woocommerce-tabs ul.tabs li.active:after, .skinset-' . $element . $z . ' #reviews #comments ol.commentlist li .comment-text:before, .skinset-' . $element . $z . ' .commentlist .comment-content:before, .skinset-' . $element . $z . ' .single_variation_wrap .single_variation:before, .skinset-' . $element . $z . ' .single_variation_wrap .single_variation:before { ' . $shaded_background_color_border . ' } '; } if (!empty($shaded_border_color)) { $class = setcss($inherited_elements, ''); $css .= $class . ' .skinset-' . $element . $z . ' .sub-header, .skinset-' . $element . $z . ' pre, .skinset-' . $element . $z . ' xmp, .skinset-' . $element . $z . ' input[type=text], .skinset-' . $element . $z . ' input[type=password], .skinset-' . $element . $z . ' input[type=file], .skinset-' . $element . $z . ' input[type=tel], .skinset-' . $element . $z . ' input[type=url], .skinset-' . $element . $z . ' input[type=email], .skinset-' . $element . $z . ' input.input-text, .skinset-' . $element . $z . ' textarea, .skinset-' . $element . $z . ' select, .skinset-' . $element . $z . ' #content article.hentry, .skinset-' . $element . $z . ' .frame .gridimg-wrap, .skinset-' . $element . $z . ' .styledbox.general, .skinset-' . $element . $z . ' .shop-cart .shopping-cart-wrapper, .skinset-' . $element . $z . ' .nv-pricing-container, .skinset-' . $element . $z . ' img.avatar, .skinset-' . $element . $z . ' .tagcloud a, .skinset-' . $element . $z . ' .widget ul, .skinset-' . $element . $z . ' #respond, .skinset-' . $element . $z . ' .hozbreak, .skinset-' . $element . $z . ' hr, .skinset-' . $element . $z . ' ul.dock-panel ul.dock-tab-wrapper, .skinset-' . $element . $z . ' #lang_sel_list li, .skinset-' . $element . $z . ' .commentlist .children li.comment, .skinset-' . $element . $z . ' #comments-title, .skinset-' . $element . $z . ' .commentlist > li.comment, .skinset-' . $element . $z . ' #payment ul.payment_methods, .skinset-' . $element . $z . ' table.shop_table td, .skinset-' . $element . $z . ' table.shop_table tfoot td, .skinset-' . $element . $z . ' table.shop_table, .skinset-' . $element . $z . ' table.shop_table tfoot th, .skinset-' . $element . $z . ' .cart-collaterals .cart_totals table, .skinset-' . $element . $z . ' .cart-collaterals .cart_totals tr td, .skinset-' . $element . $z . ' .cart-collaterals .cart_totals tr th, .skinset-' . $element . $z . ' .woocommerce form.login, .skinset-' . $element . $z . ' .woocommerce-page form.login, .skinset-' . $element . $z . ' form.checkout_coupon, .skinset-' . $element . $z . ' .woocommerce form.register, .skinset-' . $element . $z . ' .woocommerce-page form.register, .skinset-' . $element . $z . ' ul.product_list_widget li, .skinset-' . $element . $z . ' .post-titles ul.post-metadata-wrap, .skinset-' . $element . $z . ' .quantity input.qty, .skinset-' . $element . $z . ' .coupon #coupon_code, .skinset-' . $element . $z . ' #nv-tabs ul ul, .skinset-' . $element . $z . ' .styledbox.general.shaded, .skinset-' . $element . $z . ' li.dock-tab, .skinset-' . $element . $z . ' .autototop a, .skinset-' . $element . $z . ' .row.custom-row-inherit, .skinset-' . $element . $z . ' .splitter ul li.active, .skinset-' . $element . $z . ' .ui-accordion-header, .skinset-' . $element . $z . ' .ui-tabs .ui-tabs-nav li, .skinset-' . $element . $z . ' .vc_progress_bar .vc_single_bar, .skinset-' . $element . $z . ' .twitter-wrap, .skinset-' . $element . $z . ' table tr, .skinset-' . $element . $z . ' div.wp-caption { ' . $shaded_border_color . ' } '; } if (!empty($shaded_element_color)) { $class = setcss($inherited_elements, ''); $css .= $class . ' .skinset-' . $element . $z . ' .ui-tabs .ui-tabs-nav li a, .skinset-' . $element . $z . ' .ui-accordion-header a, .skinset-' . $element . $z . ' .ui-tabs .ui-tabs-nav li, .skinset-' . $element . $z . ' .ui-accordion-header, .skinset-' . $element . $z . ' pre, .skinset-' . $element . $z . ' xmp, .skinset-' . $element . $z . ' input[type=text], .skinset-' . $element . $z . ' input[type=password], .skinset-' . $element . $z . ' input[type=file], .skinset-' . $element . $z . ' input[type=tel], .skinset-' . $element . $z . ' input[type=url], .skinset-' . $element . $z . ' input[type=email], .skinset-' . $element . $z . ' textarea, .skinset-' . $element . $z . ' select, .skinset-' . $element . $z . ' #searchsubmit, .skinset-' . $element . $z . ' #panelsearchsubmit, .skinset-' . $element . $z . ' .author-info, .skinset-' . $element . $z . ' .frame .gridimg-wrap, .skinset-' . $element . $z . ' .splitter ul li.active, .skinset-' . $element . $z . ' .page_nav .page-numbers.current, .skinset-' . $element . $z . ' .page-numbers li, .skinset-' . $element . $z . ' .styledbox.general.shaded, .skinset-' . $element . $z . ' .nv-pricing-signup, .skinset-' . $element . $z . ' .panelcontent.heading, .skinset-' . $element . $z . ' div.item-list-tabs, .skinset-' . $element . $z . ' .tab-wrap .trigger, .skinset-' . $element . $z . ' .wrapper .intro-text, .skinset-' . $element . $z . ' .vc_progress_bar .vc_single_bar, .skinset-' . $element . $z . ' .zoomflow .controlsCon > .arrow-left, .skinset-' . $element . $z . ' .zoomflow .controlsCon > .arrow-right, .skinset-' . $element . $z . ' li.dock-tab a, .skinset-' . $element . $z . ' #lang_sel_list li, .skinset-' . $element . $z . ' .autototop a, .skinset-' . $element . $z . ' .gallery-wrap .slidernav a, .skinset-' . $element . $z . ' #reviews #comments ol.commentlist li .comment-text, .skinset-' . $element . $z . ' table.shop_table thead th, .skinset-' . $element . $z . ' .commentlist .comment-content, .skinset-' . $element . $z . ' .row.custom-row-inherit, .skinset-' . $element . $z . ' div.wp-caption { ' . $shaded_element_color . ' } '; } if (!empty($outer_border_color)) { $class = setcss($inherited_elements, ''); $css .= $class . ' .skinset-' . $element . $z . '.main-wrap, .skinset-' . $element . $z . '.slider-wrap, .skinset-' . $element . $z . '#header-bg, .skinset-' . $element . $z . ' #footer, .skinset-' . $element . $z . '.collapse-menu-trigger-wrap, .skinset-' . $element . $z . '.sub-menu { ' . $outer_border_color . ' } '; } if (!empty($shaded_font_settings)) { $class = setcss($inherited_elements, '.post-metadata'); $css .= $class . '.skinset-' . $element . $z . ' .post-metadata, .skinset-' . $element . $z . ' .post-metadata h6, .skinset-' . $element . $z . ' .post-metadata a { ' . $shaded_font_settings . ' } '; } return $css; }
function setelement($element, $skin, $inherited_elements, $z) { $get_skin_data = maybe_unserialize(get_option('skin_data_' . $skin)); $layersettings = $elementsettings = $menu_inherit_element = $css = $heading_color_settings = $h1_color_settings = $h1_tag_settings = $h2_color_settings = $h2_tag_settings = $h3_color_settings = $h4_color_settings = $h5_color_settings = $h6_color_settings = $font_color_settings = $class = $linkhover_color_settings = $heading_tag_settings = $elemhover_bgcolor_settings = $elem_extras_2 = $link_color_settings = $elem_bgcolor_settings = $elem_extras_1 = ''; // reset // FONT SIZE if (isset($get_skin_data['skin_id_' . $element . '_font_size' . $z])) { $font_size = stripslashes($get_skin_data['skin_id_' . $element . '_font_size' . $z]); } else { $font_size = ''; } if ($font_size != '') { $elementsettings .= ' font-size:' . $font_size . 'px;'; } // FONT if (isset($get_skin_data['skin_id_' . $element . '_font' . $z])) { $font = stripslashes($get_skin_data['skin_id_' . $element . '_font' . $z]); } else { $font = ''; } if ($font != '') { $elementsettings .= ' font-family:' . $font . ';'; } // HEADING FONT if (isset($get_skin_data['skin_id_' . $element . '_heading_font' . $z])) { $heading_font = stripslashes($get_skin_data['skin_id_' . $element . '_heading_font' . $z]); } else { $heading_font = ''; } if ($heading_font != '' && of_get_option("nv_font_type") != "enable") { $heading_tag_settings = ' font-family:' . $heading_font . ';'; } // HEADING SIZE if (isset($get_skin_data['skin_id_' . $element . '_heading_size' . $z])) { $heading_size = stripslashes($get_skin_data['skin_id_' . $element . '_heading_size' . $z]); } else { $heading_size = ''; } // H1 FONT if (isset($get_skin_data['skin_id_' . $element . '_h1_font' . $z])) { $h1_font = stripslashes($get_skin_data['skin_id_' . $element . '_h1_font' . $z]); } else { $h1_font = ''; } if ($h1_font != '' && of_get_option("nv_font_type") != "enable") { $h1_tag_settings = ' font-family:' . $h1_font . ';'; } // H2 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h2_font' . $z])) { $h2_font = stripslashes($get_skin_data['skin_id_' . $element . '_h2_font' . $z]); } else { $h2_font = ''; } if ($h2_font != '' && of_get_option("nv_font_type") != "enable") { $h2_tag_settings = ' font-family:' . $h2_font . ';'; } // FONT COLOR if (isset($get_skin_data['skin_id_' . $element . '_font_color' . $z])) { $font_color = $get_skin_data['skin_id_' . $element . '_font_color' . $z]; } else { $font_color = ''; } if ($font_color != '') { $font_color_settings = ' color:#' . str_replace('#', '', $font_color) . ';'; $elementsettings .= ' color:#' . str_replace('#', '', $font_color) . ';'; } // LINK COLOR if (isset($get_skin_data['skin_id_' . $element . '_link_color' . $z])) { $link_color = $get_skin_data['skin_id_' . $element . '_link_color' . $z]; } else { $link_color = ''; } if ($link_color != '') { $link_color_settings = ' color:#' . str_replace('#', '', $link_color) . ';'; $elem_bordercolor_settings = ' border-color:#' . str_replace('#', '', $link_color) . ';'; // set background color for various elements $elem_bgcolor_settings = ' background-color:#' . str_replace('#', '', $link_color) . ';'; // set background color for various elements $elem_extras_1 = ' border-bottom: 1px dashed #' . str_replace('#', '', $link_color) . ';'; // set border color for various elements } // LINK HOVER COLOR if (isset($get_skin_data['skin_id_' . $element . '_linkhover_color' . $z])) { $linkhover_color = $get_skin_data['skin_id_' . $element . '_linkhover_color' . $z]; } else { $linkhover_color = ''; } if ($linkhover_color != '') { $linkhover_color_settings = ' color:#' . str_replace('#', '', $linkhover_color) . ';'; $elemhover_bgcolor_settings = ' background-color:#' . str_replace('#', '', $linkhover_color) . ';'; } // H1 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h1_color' . $z])) { $h1_color = $get_skin_data['skin_id_' . $element . '_h1_color' . $z]; } if (!empty($h1_color)) { $h1_color_settings = ' color:#' . str_replace('#', '', $h1_color) . ';'; } if (!empty($heading_size)) { $hsize = 31 + $heading_size; $h1_color_settings .= ' font-size:' . $hsize . 'px;'; } // H2 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h2_color' . $z])) { $h2_color = $get_skin_data['skin_id_' . $element . '_h2_color' . $z]; } if (!empty($h2_color)) { $h2_color_settings = ' color:#' . str_replace('#', '', $h2_color) . ';'; } if (!empty($heading_size)) { $hsize = 25 + $heading_size; $h2_color_settings .= ' font-size:' . $hsize . 'px;'; } // H3 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h3_color' . $z])) { $h3_color = $get_skin_data['skin_id_' . $element . '_h3_color' . $z]; } if (!empty($h3_color)) { $h3_color_settings = ' color:#' . str_replace('#', '', $h3_color) . ';'; } if (!empty($heading_size)) { $hsize = 20 + $heading_size; $h3_color_settings .= ' font-size:' . $hsize . 'px;'; } // H4 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h4_color' . $z])) { $h4_color = $get_skin_data['skin_id_' . $element . '_h4_color' . $z]; } if (!empty($h4_color)) { $h4_color_settings = ' color:#' . str_replace('#', '', $h4_color) . ';'; } if (!empty($heading_size)) { $hsize = 17 + $heading_size; $h4_color_settings .= ' font-size:' . $hsize . 'px;'; } // H5 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h5_color' . $z])) { $h5_color = $get_skin_data['skin_id_' . $element . '_h5_color' . $z]; } if (!empty($h5_color)) { $h5_color_settings = ' color:#' . str_replace('#', '', $h5_color) . ';'; } if (!empty($heading_size)) { $hsize = 14 + $heading_size; $h5_color_settings .= ' font-size:' . $hsize . 'px;'; } // H6 COLOR if (isset($get_skin_data['skin_id_' . $element . '_h6_color' . $z])) { $h6_color = $get_skin_data['skin_id_' . $element . '_h6_color' . $z]; } if (!empty($h6_color)) { $h6_color_settings = ' color:#' . str_replace('#', '', $h6_color) . ';'; } if (!empty($heading_size)) { $hsize = 12 + $heading_size; $h6_color_settings .= ' font-size:' . $hsize . 'px;'; } // FLOATING FONT COLOR if (isset($get_skin_data['skin_id_floating' . $element . '_font_color' . $z])) { $floating_font_color = $get_skin_data['skin_id_floating' . $element . '_font_color' . $z]; } else { $floating_font_color = ''; } if ($floating_font_color != '') { $floating_font_color_settings = ' color:#' . str_replace('#', '', $floating_font_color) . ';'; } // Form Settings $form_color = isset($get_skin_data['skin_id_' . $element . '_form_color' . $z]) ? $get_skin_data['skin_id_' . $element . '_form_color' . $z] : ''; $form_border_color_tl = isset($get_skin_data['skin_id_' . $element . '_form_border_color_tl' . $z]) ? $get_skin_data['skin_id_' . $element . '_form_border_color_tl' . $z] : ''; $form_border_color_br = isset($get_skin_data['skin_id_' . $element . '_form_border_color_br' . $z]) ? $get_skin_data['skin_id_' . $element . '_form_border_color_br' . $z] : ''; // Form Background Color if (!empty($form_color)) { $form_color_settings = ' background-color:#' . str_replace('#', '', $form_color) . ';'; } // Form Border Top Left if (!empty($form_border_color_tl)) { $form_color_settings .= ' border-top-color:#' . str_replace('#', '', $form_border_color_tl) . '; border-left-color:#' . str_replace('#', '', $form_border_color_tl) . '; '; } // Form Border Bottom Right if (!empty($form_border_color_br)) { $form_color_settings .= ' border-bottom-color:#' . str_replace('#', '', $form_border_color_br) . '; border-right-color:#' . str_replace('#', '', $form_border_color_br) . '; '; } // Submenu Settings $submenu_color = isset($get_skin_data['skin_id_' . $element . '_panel_color' . $z]) ? $get_skin_data['skin_id_' . $element . '_panel_color' . $z] : ''; $submenu_border_color = isset($get_skin_data['skin_id_' . $element . '_panel_border_color' . $z]) ? $get_skin_data['skin_id_' . $element . '_panel_border_color' . $z] : ''; // Submenu Background Color if (!empty($submenu_color)) { $submenu_settings = ' background-color:#' . str_replace('#', '', $submenu_color) . ';'; } // Submenu Border Color if (!empty($submenu_border_color)) { $submenu_settings .= ' border-color:#' . str_replace('#', '', $submenu_border_color) . '; '; } // Border Color $border_color = isset($get_skin_data['skin_id_' . $element . '_border_color' . $z]) ? $get_skin_data['skin_id_' . $element . '_border_color' . $z] : ''; if (!empty($border_color)) { $border_color = str_replace('#', '', $border_color); $elementsettings .= ' border-color: #' . $border_color . ';'; } $color_pri = isset($get_skin_data['skin_id_' . $element . '_pri_color' . $z]) ? str_replace('#', '', $get_skin_data['skin_id_' . $element . '_pri_color' . $z]) : ''; $color_sec = isset($get_skin_data['skin_id_' . $element . '_sec_color' . $z]) ? str_replace('#', '', $get_skin_data['skin_id_' . $element . '_sec_color' . $z]) : ''; if (empty($color_sec)) { $color_sec = $color_pri; } if (!empty($color_pri)) { $rgb_color_pri = nv_html2rgb($color_pri); $rgb_color_sec = nv_html2rgb($color_sec); // Primary Opacity $opacity_pri = !empty($get_skin_data['skin_id_' . $element . '_pri_opac' . $z]) ? $get_skin_data['skin_id_' . $element . '_pri_opac' . $z] : 100; // Secondary Opacity $opacity_sec = !empty($get_skin_data['skin_id_' . $element . '_sec_opac' . $z]) ? $get_skin_data['skin_id_' . $element . '_sec_opac' . $z] : $opacity_pri; if ($opacity_pri == '100') { $opacity_pri = '1'; } elseif ($opacity_pri == '.') { $opacity_pri = '0'; } elseif ($opacity_pri < '10') { $opacity_pri = '0.1' . $opacity_pri; } else { $opacity_pri = '0.' . $opacity_pri; } if ($opacity_sec == '100') { $opacity_sec = '1'; } elseif ($opacity_sec == '.') { $opacity_sec = '0'; } elseif ($opacity_sec < '10') { $opacity_sec = '0.1' . $opacity_sec; } else { $opacity_sec = '0.' . $opacity_sec; } $ie_opacity_pri = $opacity_pri * 255; $ie_opacity_pri = dechex($ie_opacity_pri); $ie_opacity_sec = $opacity_sec * 255; $ie_opacity_sec = dechex($ie_opacity_sec); if ($ie_opacity_pri == '0') { $ie_opacity_pri = '00'; } if ($ie_opacity_sec == '0') { $ie_opacity_sec = '00'; } $elementsettings .= ' background: rgb( ' . $rgb_color_pri . ' ); background: rgba( ' . $rgb_color_pri . ', ' . $opacity_pri . '); background-color: transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#' . $ie_opacity_pri . $color_pri . ' , endColorstr=#' . $ie_opacity_sec . $color_sec . '); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#' . $ie_opacity_pri . $color_pri . ' , endColorstr=#' . $ie_opacity_sec . $color_sec . ')"; background: linear-gradient(to bottom, rgba( ' . $rgb_color_pri . ',' . $opacity_pri . '), rgba( ' . $rgb_color_sec . ',' . $opacity_sec . ') ); background: -o-linear-gradient(top,rgba(' . $rgb_color_pri . ',' . $opacity_pri . '), rgba( ' . $rgb_color_sec . ',' . $opacity_sec . ')); background: -moz-linear-gradient(100% 100% 90deg, rgba( ' . $rgb_color_sec . ',' . $opacity_sec . '), rgba( ' . $rgb_color_pri . ',' . $opacity_pri . ')); background: -webkit-gradient(linear, 0% 0%, 0% 90%, from(rgba( ' . $rgb_color_pri . ',' . $opacity_pri . ')), to(rgba( ' . $rgb_color_sec . ',' . $opacity_sec . '))); *background: transparent; zoom:1;'; } else { $elementsettings .= ' filter:none; -ms-filter:none; '; } // format css style number if (!empty($z)) { $z = str_replace('_', '', $z); $z = $z + 1; $z = '-' . $z; } if (!empty($elementsettings)) { $class = setcss($inherited_elements, ''); $extras = ''; $formatgallery = ''; $css_elems = '.skinset-' . $element . $z . '.nv-skin'; if (!isset($invertsettings)) { $invertsettings = ''; } // set hover styling for menu if ($element == 'menu ul ul' || $menu_inherit_element != '') { $css .= '#nv-tabs ul ul li:hover,#primary-wrapper #nv-tabs ul li.extended-menu ul li ul li:hover { ' . $invertsettings . '; }'; } $css .= $class . $css_elems . ' { ' . $elementsettings . ' }'; } if (!empty($font_color_settings)) { $css .= ' .skinset-' . $element . $z . ' div.item-list-tabs ul li a, .skinset-' . $element . $z . ' .widget ul li.current_page_item a, .skinset-' . $element . $z . ' span.menudesc, div.post-metadata a, .skinset-' . $element . $z . ' .commentlist .comment-author a, .skinset-' . $element . $z . ' .recent-metadata a, .skinset-' . $element . $z . ' .nv-recent-posts h4 a, .skinset-' . $element . $z . ' .post-metadata a, .skinset-' . $element . $z . ' .widget.widget_pages li a, .skinset-' . $element . $z . ' .widget.widget_nav_menu li a, .skinset-' . $element . $z . ' .widget.widget_recent_entries li a, .skinset-' . $element . $z . ' div.blind_down ul li a, .skinset-' . $element . $z . ' #item-header-content h2 a, .skinset-' . $element . $z . ' a.topic-title, .skinset-' . $element . $z . ' .bbp-topic-title a, .skinset-' . $element . $z . ' a.bbp-forum-title, .skinset-' . $element . $z . ' td.td-group .object-name a { ' . $font_color_settings . ' } '; } if (!empty($elem_bordercolor_settings)) { $css .= $class . ' .skinset-' . $element . $z . ' .woocommerce .woocommerce-error, .skinset-' . $element . $z . ' .woocommerce .woocommerce-info, .skinset-' . $element . $z . ' .woocommerce .woocommerce-message, .skinset-' . $element . $z . ' #bbpress-forums li.bbp-body .hentry.status-closed, .skinset-' . $element . $z . ' #bbpress-forums li.bbp-body .hentry.status-trash, .skinset-' . $element . $z . ' #bbpress-forums li.bbp-body .hentry.status-spam, .skinset-' . $element . $z . ' #bbpress-forums li.bbp-body .hentry.super-sticky, .skinset-' . $element . $z . ' #bbpress-forums li.bbp-body .hentry.sticky { ' . $elem_bordercolor_settings . ' } '; } if (!empty($link_color_settings)) { if ($element == 'main' || $element == 'background') { $css .= ' #header .mobilemenu-init a, #header .toppaneltrigger.mobile a, '; } $class = setcss($inherited_elements, 'a, #content span.price, #content span.amount'); $css .= $class . ' .skinset-' . $element . $z . ' a, .skinset-' . $element . $z . ' #content span.price, .skinset-' . $element . $z . ' .fonticon i.inherit, .skinset-' . $element . $z . ' #content span.amount, .skinset-' . $element . $z . ' .woocommerce .woocommerce-info:before, .skinset-' . $element . $z . ' span.text_linkcolor, #nv-tabs .skinset-' . $element . $z . ' li[class*="scrollTo_"] a {' . $link_color_settings . ' } '; } if (!empty($linkhover_color_settings)) { $class = setcss($inherited_elements, 'a:hover'); $css .= $class . ' .skinset-' . $element . $z . ' a:hover, .skinset-' . $element . $z . ' #nv-tabs .extended-menu li.scroll a:hover, .skinset-' . $element . $z . ' a.waypoint_active, .skinset-' . $element . $z . ' .post-metadata a:hover, .skinset-' . $element . $z . ' .widget.widget_pages li a:hover, .skinset-' . $element . $z . ' .widget.widget_nav_menu li a:hover, .skinset-' . $element . $z . ' .widget.widget_recent_entries li a:hover, .skinset-' . $element . $z . ' #item-header-content h2 a:hover, .skinset-' . $element . $z . ' .current_page_item>a, .skinset-' . $element . $z . ' .current-menu-item>a, .skinset-' . $element . $z . ' li.menu-item:hover > a, .skinset-' . $element . $z . ' .current-menu-ancestor>a, .skinset-' . $element . $z . ' #mobile-tabs .current_page_item>a, .skinset-' . $element . $z . ' #mobile-tabs .extended-menu .current_page_item>a, .skinset-' . $element . $z . ' .bbp-reply-content #favorite-toggle .is-favorite a, .skinset-' . $element . $z . ' .bbp-reply-content #subscription-toggle .is-subscribed a, .woocommerce.skinset-' . $element . $z . ' p.stars a.active { ' . $linkhover_color_settings . ' } '; } if (!empty($heading_color_settings) || !empty($heading_tag_settings)) { $class = setcss($inherited_elements, 'h1, h1 a, h2, h2 a, h3, h3 a, h4, h4 a, h5, h5 a, h6, h6 a'); $css .= $class . '.skinset-' . $element . $z . ' h1, .skinset-' . $element . $z . ' h1 a, .skinset-' . $element . $z . ' h2, .skinset-' . $element . $z . ' h2 a, .skinset-' . $element . $z . ' h3, .skinset-' . $element . $z . ' h3 a, .skinset-' . $element . $z . ' h4, .skinset-' . $element . $z . ' h4 a, .skinset-' . $element . $z . ' h5, .skinset-' . $element . $z . ' h5 a, .skinset-' . $element . $z . ' h6, .skinset-' . $element . $z . ' h6 a,.skinset-' . $element . $z . ' .bbp-topic-title a.bbp-topic-permalink,.skinset-' . $element . $z . ' .bbp-forum-info a.bbp-forum-title { ' . $heading_color_settings . $heading_tag_settings . ' } '; } if (!empty($h1_color_settings) || !empty($h1_tag_settings)) { $class = setcss($inherited_elements, 'h1, h1 a'); $css .= $class . '.skinset-' . $element . $z . ' h1, .skinset-' . $element . $z . ' h1 a { ' . $h1_color_settings . $h1_tag_settings . ' } '; } if (!empty($h2_color_settings) || !empty($h2_tag_settings)) { $class = setcss($inherited_elements, 'h2, h2 a'); $css .= $class . '.skinset-' . $element . $z . ' h2, .skinset-' . $element . $z . ' h2 a { ' . $h2_color_settings . $h2_tag_settings . ' } '; } if (!empty($h3_color_settings)) { $class = setcss($inherited_elements, 'h3, h3 a'); $css .= $class . '.skinset-' . $element . $z . ' h3, .skinset-' . $element . $z . ' h3 a { ' . $h3_color_settings . ' } '; } if (!empty($h4_color_settings)) { $class = setcss($inherited_elements, 'h4, h4 a,h5, h5 a,h6, h6 a'); $css .= $class . '.skinset-' . $element . $z . ' h4,.skinset-' . $element . $z . ' h5,.skinset-' . $element . $z . ' h6,.skinset-' . $element . $z . ' .ui-tabs-nav li a, .skinset-' . $element . $z . ' .accordionhead a, .skinset-' . $element . $z . ' span.price-value,.skinset-' . $element . $z . ' .nv-recent-posts h4 a { ' . $h4_color_settings . ' } '; } // Transparent Header if (!empty($floating_font_color_settings)) { $css .= ' .header-wrap.header_transparent .skinset-' . $element . $z . ' #nv-tabs > ul > li > a, .header-wrap.header_transparent .skinset-' . $element . $z . ' #nv-tabs > ul > li > .dropmenu-icon, .header-wrap.header_transparent .skinset-' . $element . $z . ' h1 a, .header-wrap.header_transparent .skinset-' . $element . $z . ' h2, .header-wrap.header_transparent .skinset-' . $element . $z . ' .headerpanel-widgets h3, .header-wrap.header_transparent .skinset-' . $element . $z . ' .headerpanel-widgets a, .header-wrap.header_transparent .skinset-' . $element . $z . ' .headerpanel-widgets .textwidget {' . $floating_font_color_settings . ' } '; } /*if( !empty($h5_color_settings) ) { $class = setcss($inherited_elements,'h5, h5 a'); $css .= $class.'.skinset-'.$element.$z.' h5, .skinset-'.$element.$z.' h5 a { '.$h5_color_settings.' } '; } if( !empty($h6_color_settings) ) { $class = setcss($inherited_elements,'h6, h6 a'); $css .= $class.'.skinset-'.$element.$z.' h6, .skinset-'.$element.$z.' h6 a { '.$h6_color_settings.' } '; }*/ if (!empty($form_color_settings)) { $class = setcss($inherited_elements, 'input[type="text"], input[type="password"],input[type="file"],textarea,input'); $css .= $class . '.skinset-' . $element . $z . ' input[type="text"],.skinset-' . $element . $z . ' input[type="password"],.skinset-' . $element . $z . ' input[type="file"],.skinset-' . $element . $z . ' textarea,.skinset-' . $element . $z . ' input { ' . $form_color_settings . ' } '; } if (!empty($submenu_settings)) { $class = setcss($inherited_elements, ''); $css .= $class . '#header #nv-tabs ul ul { ' . $submenu_settings . ' } '; } if (!empty($elem_bgcolor_settings)) { $class = setcss($inherited_elements, 'span.nvcolor,span.highlight.one,.post-metadata li.post-date, .commentlist .reply a, div.header-message'); $css .= $class . ' .skinset-' . $element . $z . ' span.nvcolor, .skinset-' . $element . $z . ' span.dropcap.two.link_color, .skinset-' . $element . $z . ' span.highlight.one, .skinset-' . $element . $z . ' .post-metadata li.post-date, .skinset-' . $element . $z . ' .commentlist .reply a, .skinset-' . $element . $z . ' div.header-infobar, .skinset-' . $element . $z . ' div.item-list-tabs ul li a span, .skinset-' . $element . $z . ' .widget_display_stats dd strong, .skinset-' . $element . $z . ' div.bbp-template-notice, .skinset-' . $element . $z . ' div#message.updated, .skinset-' . $element . $z . ' .hoverimg i, .skinset-' . $element . $z . ' .hovervid i, .skinset-' . $element . $z . ' span.activity, .skinset-' . $element . $z . ' a.button, .skinset-' . $element . $z . ' button.button, .skinset-' . $element . $z . ' .fonticon.background, .skinset-' . $element . $z . ' .button.link_color, .skinset-' . $element . $z . ' .action-icons i, .skinset-' . $element . $z . ' #respond input#submit.alt, .skinset-' . $element . $z . ' a.button.alt, .skinset-' . $element . $z . ' button.button.alt, .skinset-' . $element . $z . ' input.button.alt, .skinset-' . $element . $z . '.woocommerce span.onsale, .skinset-' . $element . $z . ' #bbpress-forums li.bbp-body .hentry.status-closed:before, .skinset-' . $element . $z . ' #bbpress-forums li.bbp-body .hentry.status-trash:before, .skinset-' . $element . $z . ' #bbpress-forums li.bbp-body .hentry.status-spam:before, .skinset-' . $element . $z . ' #bbpress-forums li.bbp-body .hentry.super-sticky:before, .skinset-' . $element . $z . ' #bbpress-forums li.bbp-body .hentry.sticky:before, .woocommerce.skinset-' . $element . $z . ' .widget_price_filter .ui-slider .ui-slider-range, .woocommerce.skinset-' . $element . $z . ' .widget_price_filter .ui-slider .ui-slider-handle, .skinset-' . $element . $z . ' input[type="submit"] { ' . $elem_bgcolor_settings . ' } '; } if (!empty($elemhover_bgcolor_settings)) { $class = setcss($inherited_elements, '.nvcolor-wrap:hover span.nvcolor'); $css .= $class . '.skinset-' . $element . $z . ' .nvcolor-wrap:hover span.nvcolor,.woocommerce.skinset-' . $element . $z . ' #respond input#submit.alt:hover, .woocommerce.skinset-' . $element . $z . ' a.button.alt:hover, .woocommerce.skinset-' . $element . $z . ' button.button.alt:hover, .woocommerce.skinset-' . $element . $z . ' input.button.alt:hover { ' . $elemhover_bgcolor_settings . ' } '; } if (!empty($elem_extras_1)) { $class = setcss($inherited_elements, 'acronym, abbr'); $css .= $class . '.skinset-' . $element . $z . ' acronym, .skinset-' . $element . $z . ' abbr { ' . $elem_extras_1 . ' } '; } return $css; }