styling feture added and 2.0.6 version released

This commit is contained in:
magepeopleteam 2018-07-09 08:27:18 +00:00
parent 0b55a600bb
commit df77bd6ac9
5 changed files with 151 additions and 6 deletions

View File

@ -700,9 +700,9 @@ margin: 0px 0 3px 0;
}
h3.ex-sec-title {
text-align: left;
font-size: 20px;
margin: 20px 0 -5px 0;
padding: 0!important;
font-size: 18px;
margin: 20px 0 -11px 0;
padding: 5px!important;
}
.user-info-sec .dada-info .mep-user-info-sec {
overflow: hidden;
@ -988,6 +988,21 @@ label.mep-show {
text-align: right;
padding-right: 20px;
}
.mep-tem3-mid-sec .btn-mep-event-cart, .mep-template-2-hamza .btn-mep-event-cart {
padding: 7px 0!important;
margin: 0;
}
.tmep-emplate-3-faq-sec .mep-event-faq-part h4 {
padding: 8px 5px;
font-size: 18px;
margin-bottom: 0px;
}
.equinox .week-events .slot {
margin: 0;
list-style: none;

View File

@ -42,6 +42,10 @@ class MAGE_Events_Setting_Controls {
'id' => 'email_setting_sec',
'title' => __( 'Email Settings', 'mep' )
),
array(
'id' => 'style_setting_sec',
'title' => __( 'Style Settings', 'mep' )
),
array(
'id' => 'label_setting_sec',
'title' => __( 'Label Settings', 'mep' )
@ -159,7 +163,71 @@ class MAGE_Events_Setting_Controls {
),
),
'style_setting_sec' => array(
array(
'name' => 'mep_base_color',
'label' => __( 'Base Color', 'mep' ),
'desc' => __( 'Select a Basic Color, It will chanage the icon background color, border color', 'mep' ),
'type' => 'color',
),
array(
'name' => 'mep_title_bg_color',
'label' => __( 'Label Background Color', 'mep' ),
'desc' => __( 'Select a Color Label Background', 'mep' ),
'type' => 'color',
),
array(
'name' => 'mep_title_text_color',
'label' => __( 'Label Text Color', 'mep' ),
'desc' => __( 'Select a Color Label Text', 'mep' ),
'type' => 'color',
),
array(
'name' => 'mep_cart_btn_bg_color',
'label' => __( 'Cart Button Background Color', 'mep' ),
'desc' => __( 'Select a color for Cart Button Background', 'mep' ),
'type' => 'color',
),
array(
'name' => 'mep_cart_btn_text_color',
'label' => __( 'Cart Button Text Color', 'mep' ),
'desc' => __( 'Select a color for Cart Button Text', 'mep' ),
'type' => 'color',
),
array(
'name' => 'mep_calender_btn_bg_color',
'label' => __( 'Calender Button Background Color', 'mep' ),
'desc' => __( 'Select a color for Calender Button Background', 'mep' ),
'type' => 'color',
),
array(
'name' => 'mep_calender_btn_text_color',
'label' => __( 'Calender Button Text Color', 'mep' ),
'desc' => __( 'Select a color for Calender Button Text', 'mep' ),
'type' => 'color',
),
array(
'name' => 'mep_faq_title_bg_color',
'label' => __( 'FAQ Title Background Color', 'mep' ),
'desc' => __( 'Select a color for FAQ title Background', 'mep' ),
'type' => 'color',
),
array(
'name' => 'mep_faq_title_text_color',
'label' => __( 'FAQ Title Text Color', 'mep' ),
'desc' => __( 'Select a color for FAQ Title Text', 'mep' ),
'type' => 'color',
),
)
);
@ -201,8 +269,10 @@ $settings = new MAGE_Events_Setting_Controls();
function mep_get_option( $option, $section, $default = '' ) {
$options = get_option( $section );
if ( isset( $options[$option] ) ) {
return $options[$option];
}
return $default;
}

View File

@ -0,0 +1,56 @@
<?php
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');
$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');
?>
<style>
.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{
background: <?php echo $base_color; ?>;
}
.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; ?>;
}
/*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{
background: <?php echo $calender_btn_bg_color; ?>;
color:<?php echo $calender_btn_txt_color; ?>!important;
border-color: <?php echo $calender_btn_bg_color; ?>;
}
</style>
<?php
}

View File

@ -152,4 +152,7 @@ You can display the event list on any page by using the ShortCode. Just use this
*Update Release, Minor Bug Fixs. 04 July 2018*
= 2.0.5 =
*Update Release,F.A.Q Feature added into every events. 04 July 2018*
*Update Release,F.A.Q Feature added into every events. 07 July 2018*
= 2.0.6 =
*Update Release,Styling Section added into Event Setting Section, Now users can control all type of styling issue from dashboard. 09 July 2018*

View File

@ -3,7 +3,7 @@
* Plugin Name: Woocommerce Events Manager
* Plugin URI: http://mage-people.com
* Description: A Complete Event Solution for WordPress by MagePeople..
* Version: 2.0.5
* Version: 2.0.6
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
*/
@ -21,6 +21,7 @@ require_once(dirname(__FILE__) . "/inc/mep_enque.php");
require_once(dirname(__FILE__) . "/templates/template-prts/templating.php");
require_once(dirname(__FILE__) . "/lib/PHPExcel.php");
require_once(dirname(__FILE__) . "/inc/mep_csv_export.php");
require_once(dirname(__FILE__) . "/inc/mep_user_custom_style.php");
// Class for Linking with Woocommerce with Event Pricing