This commit is contained in:
magepeopleteam 2021-03-15 12:01:19 +00:00
parent 8688b18c91
commit e65e5db95f
6 changed files with 36 additions and 8 deletions

View File

@ -1032,4 +1032,5 @@ div.item_hover_effect a:hover{color:#346B80;background-color:#fff;border:1px sol
div.three_column,
div.four_column{width:100%;margin: 0 0 15px 0;}
div.column_style{min-width: calc(100% - 14px) !important;}
}
}
.mep-default-sidrbar-meta i{margin: 0 7px 0 0;}

View File

@ -112,18 +112,19 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
$time_status = get_post_meta($eid, 'mep_disable_ticket_time', true) ? get_post_meta($eid, 'mep_disable_ticket_time', true) : 'no';
$start_time = get_post_meta($eid,'event_start_time',true);
echo "<ul class='event-custom-price'>";
if($recurring == 'everyday' && $time_status == 'no'){
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0 && sizeof($user_info) == 0) {
foreach ($ticket_type_arr as $_event_recurring_date) {
if($hide_date_status == 'no'){
?>
<li><?php _e("$event_label Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'],'date-text'); ?></li>
<li><?php _e("$event_label Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'].' '.$start_time,'date-time-text'); ?></li>
<?php
}
}
@ -259,6 +260,7 @@ function mep_add_custom_fields_text_to_order_items($item, $cart_item_key, $value
{
$eid = array_key_exists('event_id', $values) ? $values['event_id'] : 0; //$values['event_id'];
$start_time = get_post_meta($eid,'event_start_time',true);
$location_text = mep_get_option('mep_location_text', 'label_setting_sec', __('Location', 'mage-eventpress')) ? mep_get_option('mep_location_text', 'label_setting_sec', __('Location', 'mage-eventpress')) : 'Location';
$date_text = mep_get_option('mep_event_date_text', 'label_setting_sec', __('Date', 'mage-eventpress')) ? mep_get_option('mep_event_date_text', 'label_setting_sec', __('Date', 'mage-eventpress')) : 'Date';
if (get_post_type($eid) == 'mep_events') {
@ -277,7 +279,7 @@ function mep_add_custom_fields_text_to_order_items($item, $cart_item_key, $value
if($recurring == 'everyday' && $time_status == 'no'){
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0) {
foreach ($ticket_type_arr as $_event_recurring_date) {
$item->add_meta_data($date_text, get_mep_datetime($_event_recurring_date['event_date'], 'date-text'));
$item->add_meta_data($date_text, get_mep_datetime($_event_recurring_date['event_date'].' '.$start_time, 'date-time-text'));
}
}
}elseif ($recurring == 'yes') {

View File

@ -3681,4 +3681,21 @@ function mep_default_sidebar_reg() {
'after_title' => '</h3>',
) );
}
add_action( 'widgets_init', 'mep_default_sidebar_reg' );
add_action( 'widgets_init', 'mep_default_sidebar_reg' );
//********************Share button*************//
add_action('mep_after_social_share_list','mep_custom_share_btn',10,1);
function mep_custom_share_btn($event_id){
?>
<li>
<a href="https://api.whatsapp.com/send?text=<?php echo get_the_title($event_id).' '; ?><?php echo get_the_permalink($event_id); ?>" target="_blank">
<i class="fab fa-whatsapp"></i>
</a>
</li>
<li>
<a href="mailto:?subject=I wanted you to see this site&amp;body=<?php echo get_the_title($event_id).' '; ?><?php echo get_the_permalink($event_id); ?>" title="Share by Email">
<i class="fa fa-envelope"></i>
</a>
</li>
<?php
}

View File

@ -256,6 +256,7 @@ function mep_expire_event_list($atts, $content = null)
"timeline-mode" => "vertical",
'sort' => 'ASC'
);
$params = shortcode_atts($defaults, $atts);
$cat = $params['cat'];
$org = $params['org'];

View File

@ -11,7 +11,7 @@ WC tested up to: 5.0
Requires PHP: 7.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
WooCommerce Event Manager is a Event Plugin for WordPress which is based on WooCommerce.
== Description ==
@ -718,4 +718,11 @@ Hook added
= 3.4.6=
* Update Release:
Total Price 0 issue fixed
02 March 2021*
02 March 2021*
= 3.4.8=
* Update Release:
New Social Icon added
Bug Fixed
Hook Added
15 March 2021*

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: 3.4.7
* Version: 3.4.8
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
* Text Domain: mage-eventpress