mage-eventpress/inc/mep_user_custom_style.php

89 lines
4.0 KiB
PHP
Raw Normal View History

<?php
2020-05-24 04:17:41 -04:00
if (!defined('ABSPATH')) {
die;
} // Cannot access pages directly.
2020-01-22 07:15:24 -05:00
add_action('wp_head', 'mep_user_custom_styles', 10, 999);
function mep_user_custom_styles()
{
$base_color = mep_get_option('mep_base_color', 'style_setting_sec', '#ffbe30');
$label_bg_color = mep_get_option('mep_title_bg_color', 'style_setting_sec', '#ffbe30');
$label_text_color = mep_get_option('mep_title_text_color', 'style_setting_sec', '#ffffff');
$cart_btn_bg_color = mep_get_option('mep_cart_btn_bg_color', 'style_setting_sec', '#ffbe30');
$cart_btn_txt_color = mep_get_option('mep_cart_btn_text_color', 'style_setting_sec', '#ffffff');
2020-01-22 07:15:24 -05:00
$calender_btn_bg_color = mep_get_option('mep_calender_btn_bg_color', 'style_setting_sec', '#ffbe30');
$calender_btn_txt_color = mep_get_option('mep_calender_btn_text_color', 'style_setting_sec', '#ffffff');
$faq_label_bg_color = mep_get_option('mep_faq_title_bg_color', 'style_setting_sec', '#ffbe30');
$faq_label_text_color = mep_get_option('mep_faq_title_text_color', 'style_setting_sec', '#ffffff');
2020-01-22 07:15:24 -05:00
?>
<style>
2020-10-26 07:41:46 -04:00
div.item_hover_effect a{
background-color:<?php echo $base_color; ?>;
}
div.item_hover_effect a:hover{
color:<?php echo $base_color; ?>;background-color:#fff;border:1px solid <?php echo $base_color; ?>;
}
2020-11-24 04:23:05 -05:00
ul.mp_event_more_date_list li:hover{
background-color:<?php echo $base_color; ?>;
}
2020-08-18 08:08:58 -04:00
.mep-default-sidrbar-events-schedule ul li i, .mep-ev-start-date, h3.mep_list_date i, .mep-list-footer ul li i, .df-ico i, .mep-default-sidrbar-meta i, .mep-default-sidrbar-address ul li i, .mep-default-sidrbar-social ul li a, .mep-tem3-title-sec, button.mep-cat-control, .pagination-sec a {
2020-01-22 07:15:24 -05:00
background: <?php echo $base_color; ?>;
}
.mep-default-sidrbar-events-schedule h3 i, .mep_event_list .mep_list_date, .mep-event-theme-1 .mep-social-share li a, .mep-template-2-hamza .mep-social-share li a {
color: <?php echo $base_color; ?>;
}
.mep_event_list_item:hover {
border-color: <?php echo $base_color; ?>;
}
.mep_event_list_item .mep-list-header:before, .mep_event_grid_item .mep-list-header:before {
border-color: <?php echo $base_color; ?>;
}
/*Cart sec Label Style*/
.mep-default-feature-cart-sec h3, .mep-event-theme-1 h3.ex-sec-title, .mep-tem3-mid-sec h3.ex-sec-title {
background: <?php echo $label_bg_color; ?>;
color: <?php echo $label_text_color; ?>;
}
/*FAQ Sec Style*/
.mep-default-feature-faq-sec h4, .tmep-emplate-3-faq-sec .mep-event-faq-part h4 {
background: <?php echo $faq_label_bg_color; ?>;
color: <?php echo $faq_label_text_color; ?>;
}
h3.ex-sec-title {
background: <?php echo $base_color; ?>;
}
/*Cart Button Style*/
.mep-default-feature-cart-sec button.single_add_to_cart_button.button.alt.btn-mep-event-cart, .mep-event-theme-1 .btn-mep-event-cart, .mep-template-2-hamza .btn-mep-event-cart, .mep-tem3-mid-sec .btn-mep-event-cart {
background: <?php echo $cart_btn_bg_color; ?>;
color: <?php echo $cart_btn_txt_color; ?> !important;
border-color: <?php echo $cart_btn_bg_color; ?>;
}
/*Calender Button Style*/
.mep-default-sidrbar-calender-btn a, .mep-event-theme-1 .mep-add-calender, .mep-template-2-hamza .mep-add-calender, .mep-tem3-mid-sec .mep-add-calender, #mep_add_calender_button {
background: <?php echo $calender_btn_bg_color; ?>;
color: <?php echo $calender_btn_txt_color; ?> !important;
border-color: <?php echo $calender_btn_bg_color; ?>;
}
#mep_add_calender_button,
ul#mep_add_calender_links li a{
background: <?php echo $base_color; ?>;
}
/**/
.mep_list_event_details p.read-more a{
color: <?php echo $base_color; ?>;
}
2020-07-12 06:42:13 -04:00
<?php do_action('mep_event_user_custom_styling'); ?>
2020-01-22 07:15:24 -05:00
</style>
<?php
}