version 2.10 released

This commit is contained in:
magepeopleteam 2018-08-10 16:12:04 +00:00
parent 123299c773
commit 3af7f04031
5 changed files with 35 additions and 20 deletions

View File

@ -5,16 +5,10 @@ function mep_event_admin_scripts() {
$user_api = mep_get_option( 'google-map-api', 'general_setting_sec', '');
wp_enqueue_script('jquery-ui-datepicker');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-timepicker-addon',plugin_dir_url( __DIR__ ).'js/jquery-ui-timepicker-addon.js',array('jquery','jquery-ui-core'),1,true);
wp_enqueue_script('jquery-ui-timepicker-addon',plugin_dir_url( __DIR__ ).'js/jquery-ui-sliderAccess.js',array('jquery','jquery-ui-core','jquery-ui-timepicker-addon'),1,true);
wp_enqueue_style('jquery-ui-timepicker-addon',plugin_dir_url( __DIR__ ).'css/jquery-ui-timepicker-addon.css',array());
wp_enqueue_style('mep-admin-style',plugin_dir_url( __DIR__ ).'css/admin_style.css',array());
wp_enqueue_style('mep-jquery-ui-style',plugin_dir_url( __DIR__ ).'css/jquery-ui.css',array());
wp_enqueue_script('gmap-scripts',plugin_dir_url( __DIR__ ).'js/mkb-admin.js',array('jquery','jquery-ui-core'),1,true);
@ -26,6 +20,25 @@ if($user_api){
}
function add_admin_scripts( $hook ) {
global $post;
if ( $hook == 'post-new.php' || $hook == 'post.php' ) {
if ( 'mep_events' === $post->post_type ) {
wp_enqueue_script('jquery-ui-timepicker-addon',plugin_dir_url( __DIR__ ).'js/jquery-ui-timepicker-addon.js',array('jquery','jquery-ui-core'),1,true);
wp_enqueue_script('jquery-ui-timepicker-addon',plugin_dir_url( __DIR__ ).'js/jquery-ui-sliderAccess.js',array('jquery','jquery-ui-core','jquery-ui-timepicker-addon'),1,true);
wp_enqueue_style('jquery-ui-timepicker-addon',plugin_dir_url( __DIR__ ).'css/jquery-ui-timepicker-addon.css',array());
wp_enqueue_style('mep-jquery-ui-style',plugin_dir_url( __DIR__ ).'css/jquery-ui.css',array());
wp_enqueue_script('gmap-scripts',plugin_dir_url( __DIR__ ).'js/mkb-admin.js',array('jquery','jquery-ui-core'),1,true);
}
}
}
add_action( 'admin_enqueue_scripts', 'add_admin_scripts', 10, 1 );
// Enqueue Scripts for frontend
@ -56,8 +69,8 @@ function mep_event_custom_enqueue_scripts() {
// Datepicker code for admin dashboard load in footer section
add_action('admin_footer','mep_admin_footer_script',10,99);
function mep_admin_footer_script(){
global $pagenow, $typenow;
if ($typenow=='mep_events') {
global $post;
if ( 'mep_events' === $post->post_type ) {
?>
<script type="text/javascript">
jQuery(document).ready(function($){

View File

@ -251,6 +251,12 @@ if($pagination=='yes'){
</div>
</div>
<script>
jQuery(document).ready( function() {
var containerEl = document.querySelector('.mep_event_list_sec');
var mixer = mixitup(containerEl);
});
</script>
<?php
$content = ob_get_clean();
return $content;

View File

@ -1,7 +0,0 @@
jQuery(document).ready( function() {
var containerEl = document.querySelector('.mep_event_list_sec');
var mixer = mixitup(containerEl);
});

View File

@ -164,3 +164,6 @@ You can display the event list on any page by using the ShortCode. Just use this
= 2.0.9 =
*Update Release,Quantity Box issue Fixed & Datepcker missing Next and Previuos button fixed 6 Aug 2018*
= 2.1.0 =
*Update Release, jQuery Conflict fixed with DiVi theme. 8 Aug 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.9
* Version: 2.1.0
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
*/