本文整理汇总了PHP中wc_hex_lighter函数的典型用法代码示例。如果您正苦于以下问题:PHP wc_hex_lighter函数的具体用法?PHP wc_hex_lighter怎么用?PHP wc_hex_lighter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wc_hex_lighter函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_option
*/
if (!defined('ABSPATH')) {
exit;
}
// Exit if accessed directly
// Load colours
$bg = get_option('woocommerce_email_background_color');
$body = get_option('woocommerce_email_body_background_color');
$base = get_option('woocommerce_email_base_color');
$base_text = wc_light_or_dark($base, '#202020', '#ffffff');
$text = get_option('woocommerce_email_text_color');
$bg_darker_10 = wc_hex_darker($bg, 10);
$body_darker_10 = wc_hex_darker($body, 10);
$base_lighter_20 = wc_hex_lighter($base, 20);
$base_lighter_40 = wc_hex_lighter($base, 40);
$text_lighter_20 = wc_hex_lighter($text, 20);
// !important; is a gmail hack to prevent styles being stripped if it doesn't like something.
?>
#wrapper {
background-color: <?php
echo esc_attr($bg);
?>
;
margin: 0;
padding: 70px 0 70px 0;
-webkit-text-size-adjust: none !important;
width: 100%;
}
#template_container {
box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
开发者ID:coderkevin,项目名称:woocommerce,代码行数:31,代码来源:email-styles.php
示例2: get_option
<?php
/**
* Email Footer
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.3.0
*/
if (!defined('ABSPATH')) {
exit;
// Exit if accessed directly
}
// Load colours
$base = get_option('woocommerce_email_base_color');
$base_lighter_40 = wc_hex_lighter($base, 40);
// For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline.
$template_footer = "\n\tborder-top:0;\n\t-webkit-border-radius:6px;\n";
$credit = "\n\tborder:0;\n\tcolor: {$base_lighter_40};\n\tfont-family: Arial;\n\tfont-size:12px;\n\tline-height:125%;\n\ttext-align:center;\n";
?>
</div>
</td>
</tr>
</table>
<!-- End Content -->
</td>
</tr>
</table>
<!-- End Body -->
</td>
</tr>
开发者ID:EvanHerman,项目名称:woocommerce-preview-emails,代码行数:31,代码来源:email-footer.php
示例3: test_wc_hex_lighter
/**
* Test wc_hex_lighter().
*
* @since 2.2
*/
public function test_wc_hex_lighter()
{
$this->assertEquals('#4d8ec4', wc_hex_lighter('005dab'));
$this->assertEquals('#4d8ec4', wc_hex_lighter('#005dab'));
$this->assertEquals('#0c3a3b', wc_hex_lighter('0a3839', 1));
}
开发者ID:jimlove7273,项目名称:woocommerce,代码行数:11,代码来源:functions.php
示例4: woocommerce_hex_lighter
/**
* @deprecated
*/
function woocommerce_hex_lighter($color, $factor = 30)
{
return wc_hex_lighter($color, $factor);
}
开发者ID:nayemDevs,项目名称:woocommerce,代码行数:7,代码来源:wc-deprecated-functions.php
示例5: get_option
//red";
$order_items_table_outer_border_radius = $order_items_table_outer_border_style != 'none' ? get_option("ec_deluxe_all_order_item_table_radius") : '0';
//3px
$order_items_table_inner_border_width = 1;
//px
$order_items_table_inner_border_style = get_option("ec_deluxe_all_border_style");
//"dotted";
$order_items_table_inner_border_color = get_option("ec_deluxe_all_border_color");
//"#d4d4d4";
$order_items_table_header_bg_color = "none";
$order_items_table_td_padding = 9;
//px
//Footer Styling
$footer_bg_color = $top_nav_bg_color;
// get_option( "ec_deluxe_all_footer_color" ); // "#F9F9F5";
$footer_text_color = wc_light_or_dark($footer_bg_color, wc_hex_darker($footer_bg_color, 60), wc_hex_lighter($footer_bg_color, 60));
$footer_border_bottom_color = wc_hex_darker($footer_bg_color, 5);
$footer_a_color = "#3C3C3C";
$footer_a_decoration = "none";
$footer_a_style = "none";
/* Style
---------------------------------------- */
ob_start();
?>
<style>
/* Main Styles
---------------------------------------- */
body { margin: 0; padding: 0; font-family: Arial, sans-serif; line-height: <?php
echo $body_line_height;
?>
开发者ID:seoduda,项目名称:Patua,代码行数:31,代码来源:email-header-deluxe.php
注:本文中的wc_hex_lighter函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论