import page added
This commit is contained in:
parent
fd662c569f
commit
ead1b56881
|
@ -360,7 +360,7 @@ ul#mep_event_date_sch li span {
|
||||||
display: -webkit-flex;display: flex;
|
display: -webkit-flex;display: flex;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
span.mep-more-date {-webkit-flex-wrap: wrap;flex-wrap: wrap;}
|
||||||
span.mep-more-date i {
|
span.mep-more-date i {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,7 @@ function mep_event_enqueue_scripts()
|
||||||
wp_enqueue_script('jquery-ui-core');
|
wp_enqueue_script('jquery-ui-core');
|
||||||
wp_enqueue_script('jquery-ui-accordion');
|
wp_enqueue_script('jquery-ui-accordion');
|
||||||
wp_enqueue_style('mep-jquery-ui-style', plugin_dir_url(__DIR__) . 'css/jquery-ui.css', array());
|
wp_enqueue_style('mep-jquery-ui-style', plugin_dir_url(__DIR__) . 'css/jquery-ui.css', array());
|
||||||
wp_enqueue_style('mep-event-style', plugin_dir_url(__DIR__) . 'css/style.css', array());
|
wp_enqueue_style('mep-event-style', plugin_dir_url(__DIR__) . 'css/style.css', array(),time());
|
||||||
wp_enqueue_style('filter_pagination', plugin_dir_url(__DIR__) . 'css/filter_pagination.css', array());
|
wp_enqueue_style('filter_pagination', plugin_dir_url(__DIR__) . 'css/filter_pagination.css', array());
|
||||||
wp_enqueue_style('mep-event-timeline-min-style', plugin_dir_url(__DIR__) . 'css/timeline.min.css', array('mep-event-style'));
|
wp_enqueue_style('mep-event-timeline-min-style', plugin_dir_url(__DIR__) . 'css/timeline.min.css', array('mep-event-style'));
|
||||||
wp_enqueue_style('font-awesome-css-cdn', "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css", null, 1);
|
wp_enqueue_style('font-awesome-css-cdn', "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css", null, 1);
|
||||||
|
|
|
@ -416,8 +416,8 @@ class MP_Event_All_Info_In_One
|
||||||
<?php do_action('mep_pricing_table_head_after_price_col'); ?>
|
<?php do_action('mep_pricing_table_head_after_price_col'); ?>
|
||||||
<th style="min-width: 80px;" title="<?php esc_attr_e('Available Qty', 'mage-eventpress'); ?>"><?php esc_html_e('Available', 'mage-eventpress'); ?></th>
|
<th style="min-width: 80px;" title="<?php esc_attr_e('Available Qty', 'mage-eventpress'); ?>"><?php esc_html_e('Available', 'mage-eventpress'); ?></th>
|
||||||
<th style="min-width: 80px;" title="<?php esc_attr_e('Default Qty', 'mage-eventpress'); ?>"><?php esc_html_e('Default', 'mage-eventpress'); ?></th>
|
<th style="min-width: 80px;" title="<?php esc_attr_e('Default Qty', 'mage-eventpress'); ?>"><?php esc_html_e('Default', 'mage-eventpress'); ?></th>
|
||||||
<?php $rsvqty = '<th style="min-width: 80px;" title="' . esc_attr__("Reserve Qty", "mage-eventpress") . '">' . esc_html__("Reserve", "mage-eventpress") . '</th>';
|
<th style="min-width: 80px;" title="<?php esc_attr_e('Reserve Qty', 'mage-eventpress'); ?>"><?php esc_html_e('Reserve', 'mage-eventpress'); ?></th>
|
||||||
echo apply_filters('mep_add_extra_column', mep_esc_html($rsvqty)); ?>
|
<?php do_action('mep_add_extra_column'); ?>
|
||||||
<th style="min-width: 150px;" title="<?php esc_attr_e('Sale End Date', 'mage-eventpress'); ?>"><?php esc_html_e('Sale End Date', 'mage-eventpress'); ?></th>
|
<th style="min-width: 150px;" title="<?php esc_attr_e('Sale End Date', 'mage-eventpress'); ?>"><?php esc_html_e('Sale End Date', 'mage-eventpress'); ?></th>
|
||||||
<th style="min-width: 120px;" title="<?php esc_attr_e('Sale End Time', 'mage-eventpress'); ?>"><?php esc_html_e('Sale End Time', 'mage-eventpress'); ?></th>
|
<th style="min-width: 120px;" title="<?php esc_attr_e('Sale End Time', 'mage-eventpress'); ?>"><?php esc_html_e('Sale End Time', 'mage-eventpress'); ?></th>
|
||||||
<th style="min-width: 140px;" title="<?php esc_attr_e('Qty Box Type', 'mage-eventpress'); ?>"><?php esc_html_e('Qty Box', 'mage-eventpress'); ?></th>
|
<th style="min-width: 140px;" title="<?php esc_attr_e('Qty Box Type', 'mage-eventpress'); ?>"><?php esc_html_e('Qty Box', 'mage-eventpress'); ?></th>
|
||||||
|
|
|
@ -7,10 +7,14 @@ add_action('admin_enqueue_scripts', 'mep_event_welcome_enqueue_scripts', 10, 1);
|
||||||
function mep_event_welcome_enqueue_scripts()
|
function mep_event_welcome_enqueue_scripts()
|
||||||
{
|
{
|
||||||
$current_screen = get_current_screen();
|
$current_screen = get_current_screen();
|
||||||
if ( 'mep_events_page_mep_event_welcome_page' != $current_screen->base ) {
|
if ( ('mep_events_page_mep_event_welcome_page' == $current_screen->base) ) {
|
||||||
|
wp_enqueue_style('mep-welcome-style', plugin_dir_url(__DIR__) . 'inc/welcome/css/welcome.css', array());
|
||||||
|
}elseif(('mep_events_page_mep_event_import_page' == $current_screen->base)){
|
||||||
|
wp_enqueue_style('mep-welcome-style', plugin_dir_url(__DIR__) . 'inc/welcome/css/welcome.css', array());
|
||||||
|
}else{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wp_enqueue_style('mep-welcome-style', plugin_dir_url(__DIR__) . 'inc/welcome/css/welcome.css', array());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +23,7 @@ add_action('admin_menu', 'mep_event_welcome_admin_menu');
|
||||||
function mep_event_welcome_admin_menu()
|
function mep_event_welcome_admin_menu()
|
||||||
{
|
{
|
||||||
add_submenu_page('edit.php?post_type=mep_events', __('Welcome', 'mage-eventpress'), __('<span style="color:green">Welcome</span>', 'mage-eventpress'), 'manage_options', 'mep_event_welcome_page', 'mep_event_welcome_page');
|
add_submenu_page('edit.php?post_type=mep_events', __('Welcome', 'mage-eventpress'), __('<span style="color:green">Welcome</span>', 'mage-eventpress'), 'manage_options', 'mep_event_welcome_page', 'mep_event_welcome_page');
|
||||||
|
add_submenu_page('edit.php?post_type=mep_events', __('Import', 'mage-eventpress'), __('<span style="color:green">Import</span>', 'mage-eventpress'), 'manage_options', 'mep_event_import_page', 'mep_event_import_page');
|
||||||
}
|
}
|
||||||
function mep_event_welcome_page()
|
function mep_event_welcome_page()
|
||||||
{
|
{
|
||||||
|
@ -35,6 +40,7 @@ function mep_event_welcome_page()
|
||||||
|
|
||||||
<h2 class="nav-tab-wrapper mage-event-welcome-tab">
|
<h2 class="nav-tab-wrapper mage-event-welcome-tab">
|
||||||
<a href="edit.php?post_type=mep_events&page=mep_event_welcome_page&tab=welcome" class="nav-tab <?php echo esc_html($active_tab) == 'welcome' ? 'nav-tab-active' : ''; ?>">Welcome</a>
|
<a href="edit.php?post_type=mep_events&page=mep_event_welcome_page&tab=welcome" class="nav-tab <?php echo esc_html($active_tab) == 'welcome' ? 'nav-tab-active' : ''; ?>">Welcome</a>
|
||||||
|
<a href="edit.php?post_type=mep_events&page=mep_event_import_page" class="nav-tab <?php echo esc_html($active_tab) == 'kwb' ? 'nav-tab-active' : ''; ?>">Import</a>
|
||||||
<a href="edit.php?post_type=mep_events&page=mep_event_welcome_page&tab=kwb" class="nav-tab <?php echo esc_html($active_tab) == 'kwb' ? 'nav-tab-active' : ''; ?>">Support & Knowladgebase</a>
|
<a href="edit.php?post_type=mep_events&page=mep_event_welcome_page&tab=kwb" class="nav-tab <?php echo esc_html($active_tab) == 'kwb' ? 'nav-tab-active' : ''; ?>">Support & Knowladgebase</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
@ -65,3 +71,31 @@ function mep_event_welcome_page()
|
||||||
</div><!-- /.wrap -->
|
</div><!-- /.wrap -->
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mep_event_import_page(){
|
||||||
|
?>
|
||||||
|
<div class="wrap">
|
||||||
|
<?php
|
||||||
|
$active_tab = 'welcome';
|
||||||
|
if (isset($_GET['tab'])) {
|
||||||
|
$active_tab = mage_array_strip($_GET['tab']);
|
||||||
|
} // end if
|
||||||
|
?>
|
||||||
|
<h2 class="nav-tab-wrapper mage-event-welcome-tab">
|
||||||
|
<a href="edit.php?post_type=mep_events&page=mep_event_welcome_page&tab=welcome" class="nav-tab">Welcome</a>
|
||||||
|
<a href="edit.php?post_type=mep_events&page=mep_event_import_page" class="nav-tab nav-tab-active">Import</a>
|
||||||
|
<a href="edit.php?post_type=mep_events&page=mep_event_welcome_page&tab=kwb" class="nav-tab">Support & Knowladgebase</a>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="tab-content">
|
||||||
|
<?php
|
||||||
|
echo '<div class="mage-event-welcome">';
|
||||||
|
require_once(dirname(__DIR__) . "/inc/welcome/import.php");
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div><!-- /.wrap -->
|
||||||
|
<?php
|
||||||
|
}
|
|
@ -0,0 +1,111 @@
|
||||||
|
<header class="mageStyle">
|
||||||
|
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/top_bg.png" alt="banner" class="zeroRadius"/>
|
||||||
|
<div class="topBanner fullAbsolute alignCenter">
|
||||||
|
<div class="mage_container">
|
||||||
|
<div class="mage_row">
|
||||||
|
<div class="col_3 sd_2 alignCenter">
|
||||||
|
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/logo.png" alt="logo"/>
|
||||||
|
</div>
|
||||||
|
<div class="col_5 sd_6 alignCenter">
|
||||||
|
<div class="textContent">
|
||||||
|
<h3>Import Dummy Events</h3>
|
||||||
|
<h2 class="extraBold">Event Manager For Woocommerce</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col_4">
|
||||||
|
<div class="flexColumn top_icon_area">
|
||||||
|
<ul class="flexEqual">
|
||||||
|
<li></li>
|
||||||
|
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/refresh.png" alt="refresh"/></a></li>
|
||||||
|
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/rocket.png" alt="rocket"/></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="flexEqual">
|
||||||
|
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/setting.png" alt="settings"/></a></li>
|
||||||
|
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/reading.png" alt="reading"/></a></li>
|
||||||
|
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/graph.png" alt="graph"/></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="flexEqual">
|
||||||
|
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/gift.png" alt="gift"/></a></li>
|
||||||
|
<li></li>
|
||||||
|
<li></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<section class="mageStyle">
|
||||||
|
<div class="unlimited_section">
|
||||||
|
<div class="mage_container">
|
||||||
|
<div class="mage_row">
|
||||||
|
<div class="col_6 sd_12 alignCenter">
|
||||||
|
<div>
|
||||||
|
<h2>Download Dummy Event</h2>
|
||||||
|
<p>Please follow the below process to import dummy event data to your website.</p>
|
||||||
|
<div>
|
||||||
|
<div class="alignCenter content_area nowrap">
|
||||||
|
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/icon_1.png" alt="icon"/>
|
||||||
|
<div class="textContent">
|
||||||
|
<h4>Download Dummy XML File</h4>
|
||||||
|
<p>Please downlaod this <a href="http://event.mage-people.com/sample-events.xml" target="_blank">Dummy Events XML File</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="alignCenter content_area nowrap">
|
||||||
|
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/icon_2.png" alt="icon"/>
|
||||||
|
<div class="textContent">
|
||||||
|
<h4>Import File </h4>
|
||||||
|
<p>After Download the XML file, <br/>
|
||||||
|
Go to: </br/></br/>
|
||||||
|
<b>Tools -> Import </b>
|
||||||
|
<br/></br/>
|
||||||
|
In the bottom of this page there is a WordPress import option. If you have already enabled this you can see Run Import, if not click on the Install Now link. After that click on Run Importer and select the XML file you downlaod earlier.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="alignCenter content_area nowrap">
|
||||||
|
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/icon_3.png" alt="icon"/>
|
||||||
|
<div class="textContent">
|
||||||
|
<h4>Finish Import Process</h4>
|
||||||
|
<p>Now select the user of your website to assign the new events from the dropdown, and tick on the Download Attachemnt tick box & Run the Process. After a few minute you will see the Success message. All Done! Have Fun.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="http://event.mage-people.com/sample-events.xml" target="_blank" class="buttonOutline allCenter_radius_transition customButton">Download Dummy Events XML File</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col_6 sd_12">
|
||||||
|
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/ullimited_img.png" alt="unlimited"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="widget">
|
||||||
|
<div class="mage_container">
|
||||||
|
<div class="mage_row">
|
||||||
|
<div class="col_12">
|
||||||
|
<div class="justifyCenter">
|
||||||
|
<span class="preDash postDash customButton allCenter">Watch The Video Toutorial</span>
|
||||||
|
</div>
|
||||||
|
<div class="justifyBetween">
|
||||||
|
<iframe style="width: 100%;height:600px" src="https://www.youtube.com/embed/9N907w_HxyU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="getPro">
|
||||||
|
<div class="mage_container">
|
||||||
|
<div class="mage_row">
|
||||||
|
<div class="col_12">
|
||||||
|
<h2 class="textCenter">Get Pro and Others Available Addon to get all these exciting features</h2>
|
||||||
|
<div class="justifyCenter">
|
||||||
|
<a href="https://mage-people.com/product/mage-woo-event-booking-manager-pro/" target="_blank" class="prePostDash customButton allCenter">Buy Now</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<style>
|
||||||
|
.widget h3 {font-size: 18px;}
|
||||||
|
</style>
|
|
@ -43,11 +43,26 @@ if (!class_exists('AddMetaBox')) {
|
||||||
|
|
||||||
|
|
||||||
public function save_post($post_id)
|
public function save_post($post_id)
|
||||||
{
|
{
|
||||||
|
|
||||||
$get_option_name = $this->get_option_name();
|
$get_option_name = $this->get_option_name();
|
||||||
$post_id = $this->get_post_id();
|
$post_id = $this->get_post_id();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ( !isset($_POST['mep_fw_nonce']) || !wp_verify_nonce($_POST['mep_fw_nonce'], 'mep_fw_nonce') ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!current_user_can('edit_post', $post_id)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!empty($get_option_name)) :
|
if (!empty($get_option_name)) :
|
||||||
$option_value = serialize(stripslashes_deep(mage_array_strip($_POST[$get_option_name])));
|
$option_value = serialize(stripslashes_deep(mage_array_strip($_POST[$get_option_name])));
|
||||||
update_post_meta($post_id, $get_option_name, $option_value);
|
update_post_meta($post_id, $get_option_name, $option_value);
|
||||||
|
@ -173,6 +188,7 @@ if (!class_exists('AddMetaBox')) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="form-wrapper <?php echo esc_attr($form_wrapper_position); ?>">
|
<div class="form-wrapper <?php echo esc_attr($form_wrapper_position); ?>">
|
||||||
|
<?php wp_nonce_field('mep_fw_nonce', 'mep_fw_nonce'); ?>
|
||||||
<div class="form-section">
|
<div class="form-section">
|
||||||
<?php
|
<?php
|
||||||
$current_page = 1;
|
$current_page = 1;
|
||||||
|
|
|
@ -304,6 +304,8 @@ https://www.youtube.com/watch?v=F9wnlUjXa6I
|
||||||
[Bus Booking Manager](https://wordpress.org/plugins/bus-booking-manager/)
|
[Bus Booking Manager](https://wordpress.org/plugins/bus-booking-manager/)
|
||||||
[Bus Ticket Booking with Seat Reservation](https://wordpress.org/plugins/bus-ticket-booking-with-seat-reservation/)
|
[Bus Ticket Booking with Seat Reservation](https://wordpress.org/plugins/bus-ticket-booking-with-seat-reservation/)
|
||||||
[Tour & Travel Manager For Woocommerce](https://wordpress.org/plugins/tour-booking-manager/)
|
[Tour & Travel Manager For Woocommerce](https://wordpress.org/plugins/tour-booking-manager/)
|
||||||
|
[Advanced – Deposit & Partial Payment for WooCommerce
|
||||||
|
](https://wordpress.org/plugins/advanced-partial-payment-or-deposit-for-woocommerce/)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue