version 3.0.7 released
This commit is contained in:
parent
bda891138d
commit
9cc4a2add8
|
@ -268,7 +268,7 @@ ul#mep_add_calender_links li a {display: block;margin-top: 10px;width: 100%;padd
|
|||
.mep-related-events-sec .mep_event_grid_item:last-child{margin: 0;}
|
||||
.mep-related-events-sec .mep_list_thumb img{height: 186px;}
|
||||
.mep-ev-start-date {position: absolute;top: 10px;left: 10px;background: #ffbe30;text-align: center;width: 50px;color: #fff;font-size: 18px;line-height: 1.8;border-radius: 6px;}
|
||||
.mep-day {font-weight: bold;color: #3a3a3a;}
|
||||
.mep-day {font-weight: bold;}
|
||||
/*********List style*****************/
|
||||
.mep_event_list .mep_event_list_sec,
|
||||
.mep_event_list div,
|
||||
|
@ -301,7 +301,9 @@ h3.mep_list_date {font-size: 16px; font-style: italic;font-weight: bold;color: #
|
|||
-webkit-box-shadow: 0 0 6px 1px #d9d9d9;box-shadow: 0 0 6px 1px #d9d9d9;
|
||||
}
|
||||
.mage_grid_box{margin: 0 0 20px 0;}
|
||||
.mage_grid_box .mep_event_grid_item:last-child{margin: 0;}
|
||||
.mage_grid_box .blank_div{margin: 0 20px 0 0;}
|
||||
.mage_grid_box .mep_event_grid_item:last-child,
|
||||
.mage_grid_box .blank_div:last-child{margin: 0;}
|
||||
.mep_event_grid_item .mep_list_event_details,
|
||||
.mep_event_grid_item .mep_list_thumb{width: 100%}
|
||||
.mep_event_grid_item .mep_list_thumb img{height: 160px;}
|
||||
|
@ -311,6 +313,7 @@ h3.mep_list_date {font-size: 16px; font-style: italic;font-weight: bold;color: #
|
|||
.mep_event_grid_item .mep_list_event_details{padding: 0 10px 20px 0;}
|
||||
/********Category filter***********/
|
||||
.mep_cat-details div.mep_event_list_item{}
|
||||
button.single_add_to_cart_button.button.alt.btn-mep-event-cart { cursor: pointer; }
|
||||
/******Responsive*******/
|
||||
@media only screen and (max-width: 1199px) {
|
||||
/********Default Theme***********/
|
||||
|
@ -436,4 +439,4 @@ h3.mep_list_date {font-size: 16px; font-style: italic;font-weight: bold;color: #
|
|||
div.bristol_center_box{display: block;border: 1px solid #ddd;}
|
||||
.bristol .mep-default-sidrbar-calender-btn{margin: 0;padding: 20px 0;border-top: 1px solid #ddd;}
|
||||
.bristol ul#mep_add_calender_links{width: 200px;}
|
||||
}
|
||||
}
|
|
@ -80,10 +80,6 @@ class MAGE_Events_Setting_Controls {
|
|||
'iframe' => 'Iframe'
|
||||
)
|
||||
),
|
||||
|
||||
|
||||
|
||||
|
||||
array(
|
||||
'name' => 'google-map-api',
|
||||
'label' => __( 'Google Map API Key', 'mage-eventpress' ),
|
||||
|
@ -100,7 +96,6 @@ class MAGE_Events_Setting_Controls {
|
|||
'default' => 'no',
|
||||
'options' => event_template_name()
|
||||
),
|
||||
|
||||
array(
|
||||
'name' => 'mep_event_price_show',
|
||||
'label' => __( 'Show Event Price in List?', 'mage-eventpress' ),
|
||||
|
@ -111,7 +106,14 @@ class MAGE_Events_Setting_Controls {
|
|||
'yes' => 'Yes',
|
||||
'no' => 'No'
|
||||
)
|
||||
),
|
||||
),
|
||||
// array(
|
||||
// 'name' => 'mep_event_slug',
|
||||
// 'label' => __( 'Event Slug', 'mage-eventpress' ),
|
||||
// 'desc' => __( 'Please enter your own slug, If you want to change event from the URL. By default slug is: events. Please remember after change this slug you need to re save your permalink settings or you will get 404 not found page in the event details page.', 'mage-eventpress' ),
|
||||
// 'type' => 'text',
|
||||
// 'default' => 'events'
|
||||
// ),
|
||||
array(
|
||||
'name' => 'event-price-label',
|
||||
'label' => __( 'Event Price Label', 'mage-eventpress' ),
|
||||
|
|
|
@ -3,6 +3,10 @@ if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
|
|||
|
||||
// Create MKB CPT
|
||||
function mep_cpt() {
|
||||
// mep_event_slug
|
||||
|
||||
// $event_slug = mep_get_option( 'mep_event_slug', 'general_setting_sec', 'events' );
|
||||
|
||||
|
||||
$labels = array(
|
||||
'name' => __( 'Events','mage-eventpress' ),
|
||||
|
|
|
@ -344,6 +344,13 @@ function mep_event_list($atts, $content = null)
|
|||
<!-- <p>--><?php //echo count($args_search_qqq);?><!--</p>-->
|
||||
<?php
|
||||
if ($flex_column > 0 && $style == 'grid' && ($mage_div_count % 3 == 2 || $total_post-1 == $mage_div_count)) {
|
||||
if($total_post - $mage_div_count+1 < 3 && $total_post - $mage_div_count+1 >0){
|
||||
$blank_div = $total_post - $mage_div_count +1 ;
|
||||
while ($blank_div > 0){
|
||||
echo '<div class="blank_div"></div>';
|
||||
$blank_div--;
|
||||
}
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
$mage_div_count++;
|
||||
|
@ -880,4 +887,4 @@ function mep_event_onepage_list($atts, $content = null)
|
|||
<?php
|
||||
$content = ob_get_clean();
|
||||
return $content;
|
||||
}
|
||||
}
|
|
@ -48,6 +48,23 @@ add_action('admin_init','mep_get_all_order_data_and_create_attendee');
|
|||
function mep_get_all_order_data_and_create_attendee(){
|
||||
|
||||
|
||||
if ( get_option( 'mep_hidden_product_thumbnail_update_02' ) != 'completed' ) {
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'mep_events',
|
||||
'posts_per_page' => -1
|
||||
);
|
||||
|
||||
$qr = new WP_Query($args);
|
||||
foreach($qr->posts as $result){
|
||||
$post_id = $result->ID;
|
||||
$product_id = get_post_meta($post_id,'link_wc_product',true) ? get_post_meta($post_id,'link_wc_product',true) : $post_id;
|
||||
set_post_thumbnail( $product_id, get_post_thumbnail_id($post_id) );
|
||||
}
|
||||
update_option( 'mep_hidden_product_thumbnail_update_02', 'completed' );
|
||||
}
|
||||
|
||||
|
||||
if ( get_option( 'mep_event_default_date_update_2020' ) != 'completed' ) {
|
||||
|
||||
$args = array(
|
||||
|
|
10
readme.txt
10
readme.txt
|
@ -469,4 +469,12 @@ A. you can create support ticket here with problem details with possible screens
|
|||
==> Code Improved
|
||||
==> Design Issue Fixed
|
||||
==> Template Missing issue fixed
|
||||
22 Jan 2020*
|
||||
22 Jan 2020*
|
||||
|
||||
|
||||
*= 3.0.7 =
|
||||
* Update Release:
|
||||
==> Design Issue Fixed
|
||||
==> Event Image is Cart not Showing issue fixed
|
||||
==> Event List Last item broken issue fixed
|
||||
23 Jan 2020*
|
|
@ -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: 3.0.6
|
||||
* Version: 3.0.7
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
@ -2231,7 +2231,8 @@ function mep_wc_link_product_on_save($post_id){
|
|||
}
|
||||
|
||||
$product_id = get_post_meta($post_id,'link_wc_product',true) ? get_post_meta($post_id,'link_wc_product',true) : $post_id;
|
||||
|
||||
set_post_thumbnail( $product_id, get_post_thumbnail_id($post_id) );
|
||||
|
||||
// Update post
|
||||
$my_post = array(
|
||||
'ID' => $product_id,
|
||||
|
@ -2406,6 +2407,28 @@ function mep_set_email_content_type(){
|
|||
}
|
||||
add_filter( 'wp_mail_content_type','mep_set_email_content_type' );
|
||||
|
||||
|
||||
add_filter('woocommerce_cart_item_price', 'mep_avada_mini_cart_price_fixed', 100, 3);
|
||||
function mep_avada_mini_cart_price_fixed($price,$cart_item,$r){
|
||||
$price = wc_price($cart_item['line_total']);
|
||||
return $price;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// add_action('admin_init','mep_flush_permalink_after_slug_change',100);
|
||||
// function mep_flush_permalink_after_slug_change(){
|
||||
|
||||
// if(isset($_POST['general_setting_sec']) && is_array($_POST['general_setting_sec'])){
|
||||
|
||||
// flush_rewrite_rules();
|
||||
// // die();
|
||||
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
}else{
|
||||
function mep_admin_notice_wc_not_active() {
|
||||
$class = 'notice notice-error';
|
||||
|
@ -2415,4 +2438,4 @@ function mep_admin_notice_wc_not_active() {
|
|||
);
|
||||
}
|
||||
add_action( 'admin_notices', 'mep_admin_notice_wc_not_active' );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue