• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP hex2rgba函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中hex2rgba函数的典型用法代码示例。如果您正苦于以下问题:PHP hex2rgba函数的具体用法?PHP hex2rgba怎么用?PHP hex2rgba使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了hex2rgba函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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>
//.........这里部分代码省略.........
开发者ID:Cveg2112,项目名称:Pops,代码行数:101,代码来源:output.php


示例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 {
开发者ID:raffe90,项目名称:larapress,代码行数:31,代码来源:style-one.php


示例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'));
}
开发者ID:Eluminae,项目名称:PTUT-plugin-scientifique-WordPress,代码行数:101,代码来源:functions.php


示例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);
?>
开发者ID:adrienlementheour,项目名称:AliceRouat,代码行数:31,代码来源:header-main.php


示例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 
开发者ID:roeeyossef,项目名称:wp_git_comopser,代码行数:30,代码来源:style-colors.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 
}
开发者ID:mehmet4980,项目名称:tvplayer,代码行数:28,代码来源:style-colors.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; }
开发者ID:pacster,项目名称:Neo-Leon,代码行数:31,代码来源:color-or.php


示例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;
开发者ID:JPodz,项目名称:harlequinnejuice,代码行数:21,代码来源:vc_pie.php


示例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 
开发者ID:eduarhp,项目名称:NuFronteer,代码行数:31,代码来源:header.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 
}
开发者ID:Bobyo,项目名称:hero,代码行数:48,代码来源:theme-customizer.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];
        ?>
开发者ID:surgemedia,项目名称:Snippet-Library,代码行数:31,代码来源:work-obj.php


示例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;
开发者ID:jrald1291,项目名称:atu,代码行数:31,代码来源:single-vendor.php


示例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 
开发者ID:evdant,项目名称:firstwp,代码行数:31,代码来源:header.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);
    ?>
;
        }
//.........这里部分代码省略.........
开发者ID:publicmediaplatform,项目名称:pmp-megaphone,代码行数:101,代码来源:customizer.php


示例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;
 }
开发者ID:Almalerik,项目名称:lounge-act-2,代码行数:72,代码来源:lounge-act.php


示例16: get_theme_mod

?>
" title="<?php 
echo get_theme_mod('hero2_buttontext', 'Learn More');
?>
"><?php 
echo get_theme_mod('hero2_buttontext', 'Learn More');
?>
</a>
          </div>
        </div>
        <div class="width50" style="background-image: url(<?php 
echo get_theme_mod('hero3_bgimg', 'https://unsplash.it/800/600/');
?>
);">
          <div class="fill" style="background-color:<?php 
echo hex2rgba(get_theme_mod('hero3_bgtint', '#FCA62F'));
?>
">
            <h2><?php 
echo get_theme_mod('hero3_title', 'No title has been saved yet.');
?>
</h2>
            <hr />
            <p><?php 
echo get_theme_mod('hero3_description', 'Default description. Please update in the Customize Theme dashboard.');
?>
</p>
            <a href="<?php 
echo get_theme_mod('hero3_link', '#');
?>
" title="<?php 
开发者ID:jordanmaslyn,项目名称:colab,代码行数:31,代码来源:index.php


示例17: IGV_get_option

<?php

// Get theme color
$theme_color = IGV_get_option('_igv_theme_color');
$theme_mid_color = hex2rgba($theme_color, '0.3');
$theme_pattern = IGV_get_option('_igv_theme_pattern');
$soft_white = 'rgb(253, 253, 253)';
?>
<style>
.theme-bg {
  background-color: <?php 
echo $theme_color;
?>
;
}

.theme-grad-bg {
  background: rgb(253, 253, 253);
  background: -moz-linear-gradient(top, <?php 
echo $soft_white;
?>
 0%, <?php 
echo $theme_color;
?>
 100%);
  background: -webkit-linear-gradient(top, <?php 
echo $soft_white;
?>
 0%,<?php 
echo $theme_color;
?>
开发者ID:interglobalvision,项目名称:8106-tv,代码行数:31,代码来源:theme-style.php


示例18: rgba

        background:<?php 
    echo $main_color_1;
    ?>
;
    }
    .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce #content input.button, .woocommerce-page a.button, 	    
    .woocommerce-page button.button, .woocommerce-page input.button, .woocommerce-page #respond input#submit, .woocommerce-page #content input.button, .woocommerce a.button.alt, 
    .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page a.button.alt,
    .woocommerce-page button.button.alt, .woocommerce-page input.button.alt, .woocommerce-page #respond input#submit.alt, .woocommerce-page #content input.button.alt, 
    .woocommerce #review_form #respond .form-submit input, .woocommerce-page #review_form #respond .form-submit input{background:<?php 
    echo $main_color_1;
    ?>
;}
    .thumbnail-overlay {
    	background: rgba(<?php 
    echo hex2rgba($main_color_1, 80);
    ?>
);
    }
    
    .event-default-red ,
    .container.cal-event-list .event-btt:hover,
    #calendar-options .right-options ul li ul li:hover, #calendar-options .right-options ul li ul li:hover a,
    #stm-list-calendar .panel-group .panel .panel-heading .panel-title a.collapsed:hover { background:<?php 
    echo $main_color_1;
    ?>
 !important;}
    
    .cal-day-weekend span[data-cal-date],
    #cal-slide-content a.event-item:hover, .cal-slide-content a.event-item:hover,
    .container.cal-event-list .owl-controls .owl-prev:hover i:before, 
开发者ID:hamednourhani,项目名称:naiau.ir,代码行数:31,代码来源:custom.css.php


示例19: the_field

if (trim(get_field('website'), ' ') != "") {
    ?>
	<div class="widget widget-aside">
		<a href="<?php 
    the_field('website');
    ?>
" 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(get_field('color'));
?>
">

			<span class="icon icon-tel"></span>

			<p>Any questions?</p>

			<p>Call US Now</p>
			
			<p>
				<?php 
if (trim(get_field('phone'), ' ') != "") {
    ?>
					<a href="tel:<?php 
    the_field('phone');
开发者ID:jrald1291,项目名称:atu,代码行数:31,代码来源:sidebar.php


示例20: generate_customizer_css


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP hex2str函数代码示例发布时间:2022-05-15
下一篇:
PHP hex2rgb函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap