file update
This commit is contained in:
parent
455a7676cd
commit
3a096d9789
|
@ -50,6 +50,8 @@
|
|||
.mep-events-wrapper ul,
|
||||
.mep-related-events-sec ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.mep-events-wrapper .mage_text_center {
|
||||
|
@ -1050,7 +1052,15 @@ h3.mep_list_date {
|
|||
padding: 10px 0 0 0;
|
||||
}
|
||||
|
||||
.mep-list-footer ul {}
|
||||
.list_with_filter_section.mep_event_list {
|
||||
max-width: 1270px;
|
||||
}
|
||||
|
||||
.mep-list-footer ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.mep-list-footer ul li {
|
||||
margin: 7px 0 0 0;
|
||||
|
|
|
@ -214,16 +214,6 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
|||
'type' => 'text',
|
||||
'default' => ''
|
||||
),
|
||||
// array(
|
||||
// 'name' => 'mep_event_time_format',
|
||||
// 'label' => __('Event Time Format', 'mage-eventpress'),
|
||||
// 'desc' => __('Please select what format time you want to display in the event front-end.', 'mage-eventpress'),
|
||||
// 'type' => 'select',
|
||||
// 'default' => 'wtss',
|
||||
// 'options' => array(
|
||||
// 'wtss' => 'WordPress TimeStamp Settings'
|
||||
// )
|
||||
// ),
|
||||
array(
|
||||
'name' => 'mep_event_expire_on_datetimes',
|
||||
'label' => __('When will the event expire', 'mage-eventpress'),
|
||||
|
@ -353,17 +343,7 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
|||
'no' => 'No'
|
||||
)
|
||||
),
|
||||
// array(
|
||||
// 'name' => 'mep_allow_multiple_add_cart_event',
|
||||
// 'label' => __('Allow multiple Add to Cart of a Single event?', 'mage-eventpress'),
|
||||
// 'desc' => __('By Default adding to the cart of a single event is disabled. If you want to enable it select Yes', 'mage-eventpress'),
|
||||
// 'type' => 'select',
|
||||
// 'default' => 'no',
|
||||
// 'options' => array(
|
||||
// 'yes' => 'Yes',
|
||||
// 'no' => 'No'
|
||||
// )
|
||||
// ),
|
||||
|
||||
|
||||
array(
|
||||
'name' => 'mep_show_hidden_wc_product',
|
||||
|
@ -406,7 +386,24 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
|||
'24' => '24',
|
||||
'25' => '25'
|
||||
)
|
||||
),
|
||||
|
||||
array(
|
||||
'name' => 'mep_show_event_sidebar',
|
||||
'label' => __('Show Event Sidebar Widgets?', 'mage-eventpress'),
|
||||
'desc' => __('If you enable this then a Widget area will be registred and you can add any widgets from the Widget Menu. By default its disabled', 'mage-eventpress'),
|
||||
'type' => 'select',
|
||||
'default' => 'disable',
|
||||
'options' => array(
|
||||
'enable' => 'Enable',
|
||||
'disable' => 'Disable'
|
||||
)
|
||||
),
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
)
|
||||
),
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -171,7 +171,7 @@ function mep_fw_meta_boxs()
|
|||
|
||||
|
||||
$events_dd_boxs = array(
|
||||
'page_nav' => __('Event Daywise Details', 'mage-eventpress'),
|
||||
'page_nav' => __('Event Timeline Details', 'mage-eventpress'),
|
||||
'priority' => 10,
|
||||
'sections' => array(
|
||||
'section_2' => array(
|
||||
|
@ -180,11 +180,11 @@ function mep_fw_meta_boxs()
|
|||
'options' => array(
|
||||
array(
|
||||
'id' => 'mep_event_day',
|
||||
'title' => __('Daywise Details', 'mage-eventpress'),
|
||||
'title' => __('Timeline Details', 'mage-eventpress'),
|
||||
'details' => __('', 'mage-eventpress'),
|
||||
'collapsible' => true,
|
||||
'type' => 'repeatable',
|
||||
'btn_text' => __('Add New Days','mage-eventpress'),
|
||||
'btn_text' => __('Add New Timeline','mage-eventpress'),
|
||||
'title_field' => 'mep_day_title',
|
||||
'fields' => array(
|
||||
array(
|
||||
|
@ -209,7 +209,7 @@ function mep_fw_meta_boxs()
|
|||
);
|
||||
$events_dd_meta_args = array(
|
||||
'meta_box_id' => 'mep_event_dd_meta_boxes',
|
||||
'meta_box_title' => '<i class="fas fa-newspaper"></i>'.__('Daywise Details', 'mage-eventpress'),
|
||||
'meta_box_title' => '<i class="fas fa-newspaper"></i>'.__('Timeline Details', 'mage-eventpress'),
|
||||
'screen' => array('mep_events'),
|
||||
'context' => 'normal',
|
||||
'priority' => 'high',
|
||||
|
|
|
@ -24,6 +24,7 @@ if (!class_exists('EDD_SL_Plugin_Updater')) {
|
|||
require_once(dirname(__DIR__) . "/inc/mep_enque.php");
|
||||
require_once(dirname(__DIR__) . "/inc/mep_user_custom_style.php");
|
||||
require_once(dirname(__DIR__) . "/inc/mep_tax_meta.php");
|
||||
require_once(dirname(__DIR__) . "/inc/mep_dummy_import.php");
|
||||
|
||||
require_once(dirname(__DIR__) . "/inc/mep_functions.php");
|
||||
require_once(dirname(__DIR__) . "/inc/mep_query.php");
|
||||
|
|
|
@ -6,6 +6,59 @@ if (!defined('ABSPATH')) {
|
|||
appsero_init_tracker_mage_eventpress();
|
||||
|
||||
|
||||
|
||||
// add_action('init','mep_test');
|
||||
// function mep_test(){
|
||||
// $t = mep_get_page_by_slug('shopXX');
|
||||
|
||||
// if($t){
|
||||
// echo 123;
|
||||
// print_r($t);
|
||||
// }
|
||||
|
||||
|
||||
// die();
|
||||
// }
|
||||
|
||||
|
||||
|
||||
function mep_get_page_by_slug( $page_slug, $output = OBJECT, $post_type = 'page' ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( is_array( $post_type ) ) {
|
||||
$post_type = esc_sql( $post_type );
|
||||
$post_type_in_string = "'" . implode( "','", $post_type ) . "'";
|
||||
$sql = $wpdb->prepare( "
|
||||
SELECT ID
|
||||
FROM $wpdb->posts
|
||||
WHERE post_name = %s
|
||||
AND post_type IN ($post_type_in_string)
|
||||
", $page_slug );
|
||||
} else {
|
||||
$sql = $wpdb->prepare( "
|
||||
SELECT ID
|
||||
FROM $wpdb->posts
|
||||
WHERE post_name = %s
|
||||
AND post_type = %s
|
||||
", $page_slug, $post_type );
|
||||
}
|
||||
|
||||
$page = $wpdb->get_var( $sql );
|
||||
|
||||
if ( $page )
|
||||
return get_post( $page, $output );
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function mep_add_event_into_feed_request($qv) {
|
||||
if (isset($qv['feed']) && !isset($qv['post_type']))
|
||||
$qv['post_type'] = array('mep_events');
|
||||
|
@ -4481,6 +4534,9 @@ function mep_get_event_add_cart_sec($post_id) {
|
|||
|
||||
if (!function_exists('mep_default_sidebar_reg')) {
|
||||
function mep_default_sidebar_reg() {
|
||||
$check_sidebar_status = mep_get_option('mep_show_event_sidebar', 'general_setting_sec','disable');
|
||||
|
||||
if($check_sidebar_status == 'enable'){
|
||||
register_sidebar(array(
|
||||
'name' => __('Event Manager For Woocommerce Sidebar', 'mage-eventpress'),
|
||||
'id' => 'mep_default_sidebar',
|
||||
|
@ -4491,11 +4547,12 @@ function mep_default_sidebar_reg() {
|
|||
'after_title' => '</h3>',
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
add_action('widgets_init', 'mep_default_sidebar_reg');
|
||||
|
||||
|
||||
|
||||
function mep_html_chr($string){
|
||||
$find = ['&','#038;'];
|
||||
$replace = ['and',''];
|
||||
|
|
|
@ -42,7 +42,7 @@ if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
|||
$total_quantity = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
||||
$ticket_details = isset($field['option_details_t']) ? $field['option_details_t'] : '';
|
||||
$sale_start_datetime = apply_filters('mep_sale_start_datetime',date('Y-m-d H:i',strtotime(get_the_date('Y-m-d H:i:s',$post_id))),$post_id, $field);
|
||||
$sale_end_datetime = isset($field['option_sale_end_date_t']) ? date('Y-m-d H:i',strtotime($field['option_sale_end_date_t'])) : date('Y-m-d H:i',strtotime($event_expire_date));
|
||||
$sale_end_datetime = isset($field['option_sale_end_date_t']) && !empty($field['option_sale_end_date_t']) ? date('Y-m-d H:i',strtotime($field['option_sale_end_date_t'])) : date('Y-m-d H:i',strtotime($event_expire_date));
|
||||
$default_qty = isset($field['option_default_qty_t']) && $field['option_default_qty_t'] > 0 ? $field['option_default_qty_t'] : 0;
|
||||
$total_resv_quantity = isset($field['option_rsv_t']) ? $field['option_rsv_t'] : 0;
|
||||
$event_date = get_post_meta($post_id, 'event_start_date', true) . ' ' . get_post_meta($post_id, 'event_start_time', true);
|
||||
|
|
|
@ -121,8 +121,10 @@ $event_organizer_icon = mep_get_option('mep_event_organizer_icon', 'icon_s
|
|||
<div class="mep-default-sidrbar-calender-btn">
|
||||
<?php do_action('mep_event_add_calender',get_the_id()); ?>
|
||||
</div>
|
||||
<?php }
|
||||
<?php }
|
||||
|
||||
dynamic_sidebar('mep_default_sidebar');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue