some functions modified

This commit is contained in:
magepeopleteam 2020-04-10 20:08:35 +00:00
parent 7ef7c96cda
commit 492f2000e9
6 changed files with 28 additions and 14 deletions

View File

@ -235,7 +235,7 @@ function mep_get_page_by_slug($slug) {
return false;
}
add_action('admin_init','mep_page_create');
//add_action('admin_init','mep_page_create');
// Cretae pages on plugin activation
function mep_page_create() {

View File

@ -31,7 +31,20 @@ function mep_event_calender(){
jQuery(document).ready(function () {
const myEvents = [
<?php
$loop = mep_event_query('all',-1);
// $loop = mep_event_query('all',-1);
$args = array(
'post_type' => array('mep_events'),
'posts_per_page' => -1,
'order' => 'ASC',
'orderby' => 'meta_value',
'meta_key' => 'event_start_datetime'
);
$loop = new WP_Query($args);
$i = 1;
$count = $loop->post_count - 1;
while ($loop->have_posts()) {

View File

@ -48,8 +48,8 @@ function mep_get_event_reg_btn(){
$newformat = empty($event_more_dates) ? $newformat : date('Y-m-d H:i:s',strtotime($more_date));
}
$default_timezone_val = get_option('timezone_string') ? get_option('timezone_string') : 'UTC';
date_default_timezone_set($default_timezone_val);
// $default_timezone_val = get_option('timezone_string') ? get_option('timezone_string') : 'UTC';
// date_default_timezone_set($default_timezone_val);
$datetime1 = new DateTime($newformat);
$datetime2 = new DateTime($current);

View File

@ -95,8 +95,8 @@ ob_start();
<?php if(sizeof($event_multidate) > 0){ echo get_mep_datetime($event_meta['event_start_datetime'][0],'date-text'); } ?>
<?php echo mep_get_option('mep_time_text', 'label_setting_sec') ? mep_get_option('mep_time_text', 'label_setting_sec') : _e('Time:', 'mage-eventpress'); ?>
</h5>
<h6><?php mep_get_only_time($event_meta['event_start_time'][0]);
if ($hide_only_end_time_list == 'no') { ?> - <?php mep_get_only_time($event_meta['event_end_time'][0]);
<h6><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'time');
if ($hide_only_end_time_list == 'no') { ?> - <?php echo get_mep_datetime($event_meta['event_end_datetime'][0],'time');
} ?></h6>
</div>
</li>

View File

@ -4,7 +4,7 @@ Tags: event, woocomerce events manager, events manager, Wordpress Events plugin,
Requires at least: 5.3
Stable tag: trunk
Version: 2.1.3
Tested up to: 5.4
Tested up to: 5.3
Requires PHP: 7.0
WC requires at least: 3.0
WC tested up to: 4.0
@ -141,7 +141,7 @@ To Show the Event Only Title Style. example 👉[Title Style Demo](https://demo.
`
**Event Carousal:**
To Show the Event Carousal. example 👉[Event Carousal Demo](https://demo.vaincode.com/mage-event/event-carousal/)👈:
To Show the Event Carousal. example 👉[Title Style Demo](https://demo.vaincode.com/mage-event/event-carousal/)👈:
`
[event-list style='grid' pagination='carousal' carousal-dots='yes' carousal-nav='yes' column=3]
@ -177,7 +177,7 @@ By default there is no pagination with the event list but if you want to show pa
`
**Filter By City:**
Filter Event by City. example 👉[Event by City Demo](https://demo.vaincode.com/mage-event/event-list-filter-by-city/)👈:
Filter Event by City. example 👉[Title Style Demo](https://demo.vaincode.com/mage-event/event-list-filter-by-city/)👈:
`
[event-list style='grid' city='Dhaka' column=3 show=8]
@ -185,7 +185,7 @@ Filter Event by City. example 👉[Event by City Demo](https://demo.vaincode.com
`
**Filter By Country:**
Filter Event by Country.example 👉[Event by Country Demo](https://demo.vaincode.com/mage-event/event-list-filter-by-country/)👈:
Filter Event by Country.example 👉[Title Style Demo](https://demo.vaincode.com/mage-event/event-list-filter-by-country/)👈:
`
[event-list style='grid' country='India' column=3 show=8]
@ -491,7 +491,7 @@ Pagination Styling issue fixed
24 March 2020*
= 3.2.2 =
= 3.2.3 =
* Update Release:
Some Bug Fixed
Code Improved
@ -502,5 +502,6 @@ Now Tou can easily filter event by city [event-list city='Dhaka'] or country [ev
Added Event Carousal in Event list shortcode.[event-list pagination='carousal' carousal-dots='yes' carousal-nav='yes']
Multidate List in Event List shortcode, you can turn off/on from event settings page
Fixed Grid style broken issue
09 April 2020*
Date Timezone Wrong name Display issue fixed
Calendar No Event Display Issue Fixed
11 April 2020*

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