本文整理汇总了PHP中hex2rgba函数的典型用法代码示例。如果您正苦于以下问题:PHP hex2rgba函数的具体用法?PHP hex2rgba怎么用?PHP hex2rgba使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了hex2rgba函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_pops
function get_pops()
{
global $post;
$options = get_option('pops_options');
$targettingOptions = get_option('pops_secondary_options');
$ipOptions = get_option('pops_tertiary_options');
$exitOptions = get_option('pops_quaternary_options');
$publish = $options['pops_text_publish_popup'];
$targettingPublish = $targettingOptions['pops_text_publish_popup'];
$ipPublish = $ipOptions['pops_text_publish_popup'];
$exitPublish = $exitOptions['pops_text_publish_popup'];
$pageTarget = $options['pops_targetting_pages'];
$targettingPageTarget = $targettingOptions['pops_targetting_pages'];
$ipPageTarget = $ipOptions['pops_targetting_pages'];
$targettingLocation = $targettingOptions['pops_targetting_location'];
$targettingIp = $ipOptions['pops_targetting_ip'];
$headers = apache_request_headers();
$rawAkamaiHeaders = explode(",", $headers['X-Akamai-Edgescape']);
foreach ($rawAkamaiHeaders as $headerLine) {
$keypair = explode("=", $headerLine);
$headerArray[$keypair[0]] = $keypair[1];
}
$currentRegion = $headerArray['region_code'];
$currentIP = $headers['True-Client-IP'];
if ($targettingPublish == 'published' && (is_page(icl_object_id($targettingPageTarget, 'page')) || $targettingPageTarget == 'all') && $targettingLocation == $currentRegion) {
$options = get_option('pops_secondary_options');
$image = $options['pops_image'];
$content = $options['pops_text_content'];
$button1Text = $options['pops_text_button1_text'];
$button1Link = $options['pops_text_button1_link'];
$button2Text = $options['pops_text_button2_text'];
$button2Link = $options['pops_text_button2_link'];
$length = $options['pops_targetting_cookie_length'];
$button1Color = $options['pops_text_button1_color'];
$button2Color = $options['pops_text_button2_color'];
$bghex = $options['pops_text_content_bg'];
$bgrgba = hex2rgba($bghex, 0.6);
$popup .= ' <div class="black-drop"></div>
<div class="pops">
<button title="Close (Esc)" type="button" class="pops-close">×</button>
<img src="' . $image . '">
<div class="content">
<div style="background-color:' . $bgrgba . ';" class="info-box">' . __($content, 'popup') . '
<div class="button-box">';
if (!empty($button1Text)) {
$popup .= '<a style="background-color:' . $button1Color . ';" href="' . __($button1Link, 'popup') . '" onclick="ga(\'send\', \'event\', \'Geo Target Popup\', \'' . $button1Text . '\', \'' . $button1Link . '\')" target="_blank">' . __($button1Text, 'popup') . '</a>';
}
if (!empty($button2Text)) {
$popup .= '<a style="background-color:' . $button2Color . ';" href="' . __($button2Link, 'popup') . '" onclick="ga(\'send\', \'event\', \'Geo Target Popup\', \'' . $button2Text . '\', \'' . $button2Link . '\')" target="_blank">' . __($button2Text, 'popup') . '</a>';
}
$popup .= '</div>
</div>
</div>
</div>';
$popup .= '<script type="text/javascript">
if ("' . $targettingPublish . '" == "published") {
var popvisited = Cookies.get("visited");
// if (popvisited !== "") {
if (Modernizr.mq("only screen and (min-width: 800px)")) {
$(".black-drop").fadeIn();
$(".pops").fadeIn();
}
$(".black-drop, .pops-close").click(function(e) {
$(".black-drop, .pops").hide();
e.preventDefault();
});
// }
Cookies.set("visited", "yes", { expires:' . $length . ' });
}
</script>';
} elseif ($ipPublish == 'published' && (is_page(icl_object_id($ipPageTarget, 'page')) || $ipPageTarget == 'all') && $targettingIp == $currentIP) {
$options = get_option('pops_tertiary_options');
$image = $options['pops_image'];
$content = $options['pops_text_content'];
$button1Text = $options['pops_text_button1_text'];
$button1Link = $options['pops_text_button1_link'];
$button2Text = $options['pops_text_button2_text'];
$button2Link = $options['pops_text_button2_link'];
$length = $options['pops_targetting_cookie_length'];
$button1Color = $options['pops_text_button1_color'];
$button2Color = $options['pops_text_button2_color'];
$bghex = $options['pops_text_content_bg'];
$bgrgba = hex2rgba($bghex, 0.6);
$popup .= ' <div class="black-drop"></div>
<div class="pops">
<button title="Close (Esc)" type="button" class="pops-close">×</button>
<img src="' . $image . '">
<div class="content">
<div style="background-color:' . $bgrgba . ';" class="info-box">' . __($content, 'popup') . '
<div class="button-box">';
if (!empty($button1Text)) {
$popup .= '<a style="background-color:' . $button1Color . ';" href="' . __($button1Link, 'popup') . '" onclick="ga(\'send\', \'event\', \'IP Popup\', \'' . $button1Text . '\', \'' . $button1Link . '\')" target="_blank">' . __($button1Text, 'popup') . '</a>';
}
if (!empty($button2Text)) {
$popup .= '<a style="background-color:' . $button2Color . ';" href="' . __($button2Link, 'popup') . '" onclick="ga(\'send\', \'event\', \'IP Popup\', \'' . $button2Text . '\', \'' . $button2Link . '\')" target="_blank">' . __($button2Text, 'popup') . '</a>';
}
$popup .= '</div>
</div>
</div>
//.........这里部分代码省略.........
示例2: hex2rgba
/* ==============================================================================================================================
/*
/* Shortcodes Shortcodes
/*
/* ============================================================================================================================ */
/* Blockquote */
blockquote, blockquote a, blockquote a:hover {
color: #444444;
}
/* Image frames & Google maps & Icon bar */
.image_frame .image_wrapper .image_links,
.portfolio_group.masonry-hover .portfolio-item .masonry-hover-wrapper .hover-desc {
background: <?php
hex2rgba($color_one, 0.8, true);
?>
;
}
.masonry.tiles .post-item .post-desc-wrapper .post-desc .post-title:after, .masonry.tiles .post-item.no-img, .masonry.tiles .post-item.format-quote {
background: <?php
echo $color_one;
?>
;
}
.image_frame .image_wrapper .image_links a {
color: #ffffff;
}
.image_frame .image_wrapper .image_links a:hover {
示例3: tt_style_changers
//.........这里部分代码省略.........
.header-model-1.header-model-4 .menu ul>li:hover>a {
color: ' . _go('site_color') . ';
}
.header-model-1.header-model-4 .menu ul li ul li,
.header-model-1.header-model-4 .menu ul li ul li a {
background-color: ' . _go('site_color') . ';
}
.header-model-1.header-color-dark .menu ul li ul li:hover,
.header-model-1.header-color-dark .menu ul li ul li a:hover,
.header-model-1.header-model-4 .menu ul li ul li:hover,
.header-model-1.header-model-4 .menu ul li ul li a:hover {
background-color: ' . _go('site_color') . ';
}
.header-model-1.header-model-3.header-color-dark .menu ul>li:hover>a,
.header-model-1.header-model-3.header-color-dark .menu ul li ul li a:hover {
background-color: ' . _go('site_color') . ';
}
.filter-area .filter-box .filter li a.active,
.filter-area .filter-box .filter li a:hover {
background-color: ' . _go('site_color') . ';
}
.filter-area .filter-item .filter-item-details h1 a {
color: ' . _go('site_color') . ';
}
.page-numbers li .current,
.page-numbers li a:hover {
background-color: ' . _go('site_color') . ';
border-color: ' . _go('site_color') . ';
}
.our-team-c .our-team-c-member .our-team-c-member-socials.our-team-c-member-socials-male li a {
color: ' . _go('site_color') . ';
}
.skills-a .skills-a-title h1 {
color: ' . _go('site_color') . ';
}
.skills-a .skills-a-skill .skills-a-skill-cover {
background-color: ' . _go('site_color') . ';
}
.skills-b .skills-b-title h1 {
color: ' . _go('site_color') . ';
}
.our-team-b .our-team-b-member .our-team-b-member-details,
.skills-c .skills-c-skill .skills-c-skill-cover {
background-color: ' . _go('site_color') . ';
}
.our-team-b .our-team-b-member .our-team-b-member-details .our-team-b-member-details-socials li a,
.ul-type-5 li:before,
.ul-type-6 li:before,
.huge-ul-black ul li:before,
.ul-features li:before,
.our-team-b .our-team-b-title h1,
.site-title-center h3,
.event-type-1 .event .event-content .event-read,
.event-type-1 .event .event-content .event-time,
.widget a:hover,
.pricing-table .pricing-table-price,
.blog-entry .entry-header h1 a:hover,
.footer-model-1 .footer-bottom-line .footer-socials li a:hover,
.footer-model-1 .footer-bottom-line .footer-copyright a:hover {
color: ' . _go('site_color') . ';
}
.footer-model-1.footer-color-white {
border-top-color: ' . _go('site_color') . ';
}
.button-2:hover,
.filter-area .filter-item .filter-item-cover:hover .filter-item-cover-hover{
background: ' . hex2rgba(_go('site_color'), 0.8) . ';
}
.header-model-1 .menu ul li ul li{
border-bottom: 1px solid #' . darker_color(_go('site_color'), 85) . ';
border-top: 1px solid ' . hex2rgba(_go('site_color'), 0.75) . ';
}
';
}
if (_go('site_color_2')) {
$colopickers_css .= '
a:hover {
color: ' . _go('site_color_2') . ';
}
.blog-entry .entry-content .entry-details ul li.entry-details-comments a:hover i,
.blog-entry .entry-content .entry-details ul li.entry-details-comments a:hover {
color: ' . _go('site_color_2') . ';
}
.widget button,
.widget .button,
.widget input[type="button"],
.widget input[type="reset"],
.widget input[type="submit"] {
background-color: ' . _go('site_color_2') . ';
}';
}
wp_add_inline_style('tt-main-style', $colopickers_css);
//Custom Fonts Changers
wp_add_inline_style('tt-main-style', tt_text_css('main_content_text', '.content p', 'px'));
wp_add_inline_style('tt-main-style', tt_text_css('sidebar_text', '.sidebar,.sidebar li,.sidebar a,.sidebar p,.sidebar .widget-title', 'px'));
wp_add_inline_style('tt-main-style', tt_text_css('menu_text', '[class *= "header-model-"] .menu ul li a', 'px'));
//Custom Styler
wp_add_inline_style('tt-main-style', _gcustom_styler('Custom Styler'));
}
示例4: get_data
$header_sticky_bg = get_data('header_sticky_bg');
$header_sticky_bg_alpha = get_data('header_sticky_bg_alpha');
$sticky_immediate_activate = get_data('header_sticky_sticky_immediate');
$header_sticky_custom_logo = get_data('header_sticky_custom_logo');
$header_sticky_logo_image_id = get_data('header_sticky_logo_image_id');
$header_sticky_logo_width = get_data('header_sticky_logo_width');
$header_sticky_menu_skin = get_data('header_sticky_menu_skin');
if ($sticky_immediate_activate) {
$header_classes[] = 'sticky-immediate-activate';
}
if (is_numeric($header_sticky_vpadding) && $header_sticky_vpadding > 0) {
generate_custom_style('.main-header.is-sticky.sticky-active', "padding-top: {$header_sticky_vpadding}px; padding-bottom: {$header_sticky_vpadding}px;", '', true);
}
if ($header_sticky_bg) {
$hsbg_alpha = intval($header_sticky_bg_alpha);
$hsbg = hex2rgba($header_sticky_bg, $hsbg_alpha / 100);
generate_custom_style('.main-header.is-sticky.sticky-active', "background-color: {$hsbg};", '', true);
}
if ($header_sticky_custom_logo) {
$header_options['stickyUseCustomLogo'] = true;
$header_options['stickyCustomLogo'] = wp_get_attachment_image_src($header_sticky_logo_image_id, 'original');
$header_options['stickyCustomLogoWidth'] = $header_sticky_logo_width;
}
if ($header_sticky_menu_skin) {
$header_options['stickyMenuBarSkin'] = $header_sticky_menu_skin;
}
}
?>
<header class="<?php
echo implode(' ', $header_classes);
?>
示例5: mfn_opts_show
/************************ Shortcodes ************************/
/* Blockquote */
blockquote, blockquote a, blockquote a:hover {
color: <?php
mfn_opts_show('color-blockquote', '#444444');
?>
;
}
/* Image frames & Google maps & Icon bar */
.image_frame .image_wrapper .image_links,
.portfolio_group.masonry-hover .portfolio-item .masonry-hover-wrapper .hover-desc {
background: <?php
hex2rgba(mfn_opts_get('background-imageframe-link', '#2991d6'), 0.8, true);
?>
;
}
.image_frame .image_wrapper .image_links a {
color: <?php
mfn_opts_show('color-imageframe-link', '#ffffff');
?>
;
}
.image_frame .image_wrapper .image_links a:hover {
background: <?php
mfn_opts_show('color-imageframe-link', '#ffffff');
?>
;
color: <?php
示例6: and
/* ==============================================================================================================================
/*
/* Responsive Responsive
/*
/* ============================================================================================================================ */
<?php
if (mfn_opts_get('responsive')) {
?>
@media only screen and (min-width: 768px){
.header-semi #Top_bar:not(.is-sticky) {
background-color: <?php
hex2rgba(mfn_opts_get('background-top-left', '#ffffff'), 0.8, true);
?>
;
}
}
@media only screen and (max-width: 767px){
#Top_bar, #Action_bar { background: <?php
mfn_opts_show('background-top-left', '#ffffff');
?>
!important;}
}
<?php
}
示例7: get_field
<?php
$sC = get_field('bg-color');
$sCAlfa = hex2rgba($sC, 0.5);
if ($sC) {
?>
<style>
.rooms article .explanation h2 { color: <?php
echo $sC;
?>
; }
.rooms article .slider .caption,
.rooms article .slider a.rslides_nav,
.rooms article .slider a.rslides_nav:hover {background-color: <?php
echo $sC;
?>
}
.rooms article .quote wrap div:nth-child(2) {
background-color: <?php
echo $sCAlfa;
?>
;
height: 30em;
color: #FFF;
}
.expo .slider .caption .counter,
.rooms article .quote h2 { color: #FFF; }
示例8: extract
<?php
$title = $el_class = $value = $label_value = $units = '';
extract(shortcode_atts(array('title' => '', 'el_class' => '', 'value' => '50', 'units' => '', 'color' => '#27CFC3', 'label_value' => ''), $atts));
wp_enqueue_script('vc_pie');
$el_class = $this->getExtraClass($el_class);
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'vc_pie_chart wpb_content_element' . $el_class, $this->settings['base']);
$output = "\n\t" . '<div class= "' . $css_class . '" data-pie-value="' . $value . '" data-pie-label-value="' . $label_value . '" data-pie-units="' . $units . '" data-pie-color="' . htmlspecialchars(hex2rgba($color, 1)) . '">';
$output .= "\n\t\t" . '<div class="wpb_wrapper">';
$output .= "\n\t\t\t" . '<div class="vc_pie_wrapper ' . strtolower($color) . '">';
$output .= "\n\t\t\t" . '<span style="border-color: ' . htmlspecialchars(hex2rgba($color, 1)) . ';" class="vc_pie_chart_back"></span>';
$output .= "\n\t\t\t" . '<span style="color: ' . $color . ';" class="vc_pie_chart_value"></span>';
$output .= "\n\t\t\t" . '<canvas width="101" height="101"></canvas>';
$output .= "\n\t\t\t" . '</div>';
if ($title != '') {
$output .= '<h4 class="wpb_heading wpb_pie_chart_heading">' . $title . '</h4>';
}
//wpb_widget_title(array('title' => $title, 'extraclass' => 'wpb_pie_chart_heading'));
$output .= "\n\t\t" . '</div>' . $this->endBlockComment('.wpb_wrapper');
$output .= "\n\t" . '</div>' . $this->endBlockComment('.wpb_pie_chart') . "\n";
echo $output;
示例9: bloginfo
echo bloginfo('template_directory');
?>
/css/font-awesome.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<style>
<?php
$primary_bg_colour = of_get_option('primary_bg_colour');
if ($primary_bg_colour) {
$color = of_get_option('primary_bg_colour');
$opacity = of_get_option('primary_bg_opacity');
$rgb = hex2rgba($color);
$rgba = hex2rgba($color, $opacity);
echo '.navbar-header, .navbar-branding { background-color: ' . $rgba . ';}';
}
?>
</style>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- WordPress Hook -->
<?php
示例10: header_BgColor
function header_BgColor()
{
function hex2rgba($color, $opacity = false)
{
$default = 'rgb(0,0,0)';
//Return default if no color provided
if (empty($color)) {
return $default;
}
//Sanitize $color if "#" is provided
if ($color[0] == '#') {
$color = substr($color, 1);
}
//Check if color has 6 or 3 characters and get values
if (strlen($color) == 6) {
$hex = array($color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5]);
} elseif (strlen($color) == 3) {
$hex = array($color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2]);
} else {
return $default;
}
//Convert hexadec to rgb
$rgb = array_map('hexdec', $hex);
//Check if opacity is set(rgba or rgb)
if ($opacity) {
if (abs($opacity) > 1) {
$opacity = 1.0;
}
$output = 'rgba(' . implode(",", $rgb) . ',' . $opacity . ')';
} else {
$output = 'rgb(' . implode(",", $rgb) . ')';
}
//Return rgb(a) color string
return $output;
}
$color = get_theme_mod('hero_head_overlayBg');
$rgba = hex2rgba($color, 0.3);
?>
<style type="text/css">
.hero-bg {
background-color: <?php
echo $rgba;
?>
;
}
</style>
<?php
}
示例11: array
<?php
$args = array('post_type' => array('work'), 'tax_query' => array(array('taxonomy' => 'services', 'field' => 'slug', 'terms' => $work_home[$j])), 'post__in' => get_field('selected_work', $case_study_home[$j]), 'orderby' => 'post__in');
$case_query = new WP_Query($args);
if ($case_query->have_posts()) {
while ($case_query->have_posts()) {
$case_query->the_post();
$url = getFeaturedUrl(get_the_id());
$client = wp_get_post_terms(get_the_id(), 'clients', array("fields" => "all"))[0];
// $client_id = $client->term_id;
// $client_name = $client->name;
$color = hex2rgba(get_field('overlay_color'), 0.8);
?>
<article class="work-obj col-lg-4" style="background:url('<?php
echo aq_resize($url, 645, 485, true, true, true);
?>
');">
<div class="overlay" style="background-color:<?php
echo $color;
?>
">
<hgroup>
<h1><a href="<?php
echo $case_study_url . '#' . $work_home[$j];
?>
"><?php
echo $client->name;
?>
</a></h1>
<h2><?php
echo $work_home[$j];
?>
示例12: hex2rgba
<?php
if (trim($user_info->user_url, ' ') != "") {
?>
<div class="widget widget-aside">
<a href="<?php
echo $user_info->user_url;
?>
" target="_blank" class="btn btn-sm btn-block btn-secondary"><span class="fa icon-l-sm fa-globe"></span>Visit website</a>
</div>
<?php
}
?>
<div class="widget widget-aside">
<div class="call-to-action" style="background-color:<?php
echo hex2rgba($user_info->color);
?>
">
<span class="icon icon-tel"></span>
<p>Any questions?</p>
<p>Call US Now</p>
<p>
<?php
if (trim($user_info->phone, ' ') != "") {
?>
<a href="tel:<?php
echo $user_info->phone;
示例13: ot_get_option
#menu {
height: <?php
echo ot_get_option('menu_height');
?>
px;
}
#contact_us {
<?php
$hex = ot_get_option('contacts_bg_color');
?>
<?php
$c_alpha = ot_get_option('contacts_alpha');
?>
<?php
$c_rgba = hex2rgba($hex, $c_alpha);
?>
background-color: <?php
echo $c_rgba;
?>
;
}
#contact_us:before {
<?php
$c_bg_img_id = ot_get_option('contacts_bg_img');
?>
<?php
$c_bg_img_url = wp_get_attachment_image_src($c_bg_img_id, 'full')[0];
?>
background: url('<?php
示例14: pmp_megaphone_display_options
function pmp_megaphone_display_options()
{
// Colors
$accent_color_1 = get_option('accent_color_1', '#404040');
$link_color_1 = get_option('link_color_1', '#B30016');
$font_color_1 = get_option('font_color_1', '#404040');
?>
<style type="text/css">
/**
* Custom Colors
*/
/* Text Color */
body,
h1.section-title a {
color: <?php
echo $font_color_1;
?>
;
}
/* Accent as Background Color.
Making the Body Background the Accent Color keeps the footer from looking like it is floating on short pages. */
body,
#sub-footer-wrap,
.site-footer {
background-color: <?php
echo $accent_color_1;
?>
;
}
/* Generic Link Color */
a {
color: <?php
echo $link_color_1;
?>
;
}
a:hover, a:focus {
color: <?php
echo $font_color_1;
?>
;
}
/* Button and Input Color */
button,
.button,
input[type="submit"],
.single .post-navigation,
.post-edit-link,
.home .articles-row .article-header a {
background-color: <?php
echo $link_color_1;
?>
;
}
button:hover, .button:hover, input[type="submit"]:hover,
button:focus, .button:focus, input[type="submit"]:focus,
.post-edit-link:hover,
.post-edit-link:active,
.sub-menu-toggle.activated {
background-color: <?php
echo $font_color_1;
?>
;
}
/* Featured Article */
.home .articles-featured a {
background-color: <?php
echo hex2rgba($accent_color_1, 0.7);
?>
;
}
.home .articles-featured a:hover,
.home .articles-featured a:focus {
background-color: <?php
echo hex2rgba($font_color_1, 0.9);
?>
;
}
/* Articles by Category */
.home .articles-row .article-header.has-image a {
background-color: <?php
echo hex2rgba($link_color_1, 0.7);
?>
;
}
//.........这里部分代码省略.........
示例15: custom_css
/**
* This will output custom css
*/
private function custom_css()
{
$result = '';
$result .= '<!-- Lounge Act Custom CSS -->' . "\n";
$result .= '<style type="text/css" id="loungeact-custom-css">' . "\n";
// Colors Styles
$result .= $this->generate_css('a', 'color', 'color_link', '', '', false);
$result .= $this->generate_css('a:visited', 'color', 'color_link_visited', '', '', false);
$result .= $this->generate_css('a:hover, a:focus, a:active', 'color', 'color_link_hover', '', '', false);
// HEADER
// Simulate header height when fixed-top
// if ($this->get_setting ( "header_fixed_top" ) && !$this->get_setting ( "slider_fullscreen" )) {
// $result .= $this->generate_css ( ".lougeact-wrapper.loungeact-header-fixed-top", "padding-top", "header_margin_bottom", '', '', false );
// }
// logo
$result .= $this->generate_css(".lougeact-header .site-logo", "max-height", "logo_max_height", '', '', false);
// SLIDER
$result .= $this->generate_css(".loungeact-banner", "height", "slider_height", '', '', false);
$result .= $this->generate_css(".loungeact-banner .loungeact-slider-overlay", "background-color", "slide_overlay_opacity", 'rgba(0 , 0 , 0, ', ')', false);
// if ($this->get_setting ( "slider_header_inside" )) {
// $result .= '.lougeact-header {position: absolute;}';
// }
if (is_front_page() && is_home() && $this->get_setting("hide_title_in_homepage")) {
$result .= '.site-title {position: absolute;clip: rect(1px, 1px, 1px, 1px);}';
}
if ($this->get_setting("container_class") == "container") {
$result .= $this->generate_css(".loungeact-container.container", "max-width", "container_max_width", '', '', false);
}
if ($this->get_setting("header_background_color")) {
$result .= ".lougeact-header .navbar-default { background-color: rgba(" . implode(", ", hex2rgba($this->get_setting("header_background_color"), $this->get_setting("header_background_opacity"))) . ");}\n";
$result .= ".loungeact-fullscreen-banner.lougeact-scrolling .lougeact-header .navbar-default { background-color: rgba(" . implode(", ", hex2rgba($this->get_setting("header_background_color"), $this->get_setting("header_background_opacity"))) . ");}\n";
$result .= ".loungeact-header-inside-banner.lougeact-scrolling .lougeact-header .navbar-default { background-color: rgba(" . implode(", ", hex2rgba($this->get_setting("header_background_color"), $this->get_setting("header_background_opacity"))) . ");}\n";
} else {
$result .= ".lougeact-header .navbar-default { background-color: transparent;}";
$result .= ".loungeact-fullscreen-banner.lougeact-scrolling .navbar-default { background-color: transparent;}";
$result .= ".loungeact-header-inside-banner.lougeact-scrolling .navbar-default { background-color: transparent;}";
}
// SubMenu bg color
// $result .= ".lougeact-header .loungeact-navbar-mobile { background-color: rgba(" . implode ( ", ", hex2rgba ( $this->get_setting ( "header_background_color" ), 1)) . ");}\n";
if ($this->get_setting("header_background_opacity_inside_slider")) {
$result .= ".loungeact-header-inside-banner .lougeact-header .navbar-default { background-color: rgba(" . implode(", ", hex2rgba($this->get_setting("header_background_color"), $this->get_setting("header_background_opacity_inside_slider"))) . ");}\n";
$result .= ".loungeact-fullscreen-banner .lougeact-header .navbar-default { background-color: rgba(" . implode(", ", hex2rgba($this->get_setting("header_background_color"), $this->get_setting("header_background_opacity_inside_slider"))) . ");}\n";
} else {
$result .= ".loungeact-header-inside-banner .lougeact-header .navbar-default { background-color: transparent;}";
$result .= ".loungeact-fullscreen-banner .lougeact-header .navbar-default { background-color: transparent;}";
}
// Main Menu
$result .= $this->generate_css(".navbar-default .loungeact-navbar .navbar-nav > li > a", "color", "menu_font_color", '', '', false);
$result .= $this->generate_css(".navbar-default .loungeact-navbar .navbar-nav > li > a:hover", "color", "menu_font_color_hover", '', '', false);
$result .= $this->generate_css(".navbar-default .navbar-toggle .icon-bar", "background-color", "menu_font_color", '', '', false);
$result .= $this->generate_css(".navbar-default .navbar-toggle:hover .icon-bar", "background-color", "menu_font_color_hover", '', '', false);
$result .= $this->generate_css(".site-title a", "color", "site_title_color", '', '', false);
$result .= $this->generate_css(".site-description", "color", "blogdescription_color", '', '', false);
if ($this->get_setting("font_family_title")) {
$result .= ".site-title { font-family: '" . explode(":", $this->get_setting("font_family_title"))[0] . "'}\n";
}
if ($this->get_setting("font_family_default")) {
$result .= "body { font-family: '" . explode(":", $this->get_setting("font_family_default"))[0] . "'}\n";
}
if ($this->get_setting("font_family_h1")) {
$result .= "h1 { font-family: '" . explode(":", $this->get_setting("font_family_h1"))[0] . "'}\n";
}
if ($this->get_setting("font_family_h2")) {
$result .= "h2 { font-family: '" . explode(":", $this->get_setting("font_family_h2"))[0] . "'}\n";
}
$result .= '</style>' . "\n";
$result .= '<!-- /Lounge Act Custom CSS -->' . "\n";
return $result;
}