style file replaced
This commit is contained in:
parent
759f59c90e
commit
d025ccdfb8
|
@ -1521,7 +1521,7 @@ p#mep_btn_notice {
|
|||
@media only screen and (min-width: 480px) and (max-width: 767px) {
|
||||
.mep-events-wrapper {
|
||||
margin: auto 5px;
|
||||
}
|
||||
}
|
||||
.mep_event_grid_item {
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -1592,7 +1592,7 @@ p#mep_btn_notice {
|
|||
@media only screen and (min-width: 320px) and (max-width: 479px) {
|
||||
.mep-events-wrapper {
|
||||
margin: auto 5px;
|
||||
}
|
||||
}
|
||||
.mep_event_grid_item {
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -1707,7 +1707,7 @@ p#mep_btn_notice {
|
|||
@media (max-width: 319px) {
|
||||
.mep-events-wrapper {
|
||||
margin: auto 5px;
|
||||
}
|
||||
}
|
||||
.mep_event_grid_item {
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -1774,4 +1774,52 @@ p#mep_btn_notice {
|
|||
width: 100%;
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
/******Added By Sumon*****/
|
||||
body, button, input, select, textarea{
|
||||
font-size: 14px;
|
||||
}
|
||||
.mep-default-sidebar h3{margin: 1px 0 10px 0;font-size: 18px;}
|
||||
.mep-default-feature-image img{width: 100%;}
|
||||
.mep-default-feature-date-location{
|
||||
display: -webkit-flex;display: flex;
|
||||
-webkit-justify-content: space-between;justify-content: space-between;
|
||||
}
|
||||
.mep-default-feature-date,
|
||||
.mep-default-feature-location,
|
||||
.mep-default-feature-time{margin: 0;width: 32%;}
|
||||
.mep-default-feature-cart-sec .extra-qty-box{min-width: 100px;}
|
||||
.mep-default-feature-cart-sec input.extra-qty-box{width: 100px !important;}
|
||||
.mep-default-feature-cart-sec table{table-layout: fixed;}
|
||||
button[disabled="disabled"]{opacity: 0.2;cursor: no-drop;}
|
||||
.mep-default-sidrbar-price-seat{padding:20px 15px;}
|
||||
.mep-default-sidrbar-price-seat h5{margin: 0;}
|
||||
.mep-default-sidrbar-price-seat .df-price{padding: 0;}
|
||||
.mep-default-sidrbar-meta{display: -webkit-flex;display: flex;align-items: center;}
|
||||
.mep-default-sidrbar-meta p{padding: 0 0 0 20px;margin: 0;float: inherit;}
|
||||
.calender-url #mep_add_calender_button,
|
||||
.mep-default-feature-cart-sec button.single_add_to_cart_button.button.alt.btn-mep-event-cart {
|
||||
padding: 15px;line-height: 1;
|
||||
display: -webkit-flex;display: flex;
|
||||
-webkit-justify-content: center;justify-content: center;
|
||||
}
|
||||
.mep-default-sidrbar-events-schedule{padding: 0 15px;}
|
||||
.mep-default-sidrbar-events-schedule ul li{line-height: 2;font-size: 14px;}
|
||||
p#mep_btn_notice{width: auto;}
|
||||
.mep-default-feature-date,
|
||||
.mep-default-feature-time,
|
||||
.mep-default-feature-location{
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
}
|
||||
.mep-default-sidrbar-address ul li{
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
padding-left: 20px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.mep-default-sidrbar-address ul li span{padding: 0 0 0 7px;}
|
||||
.mep-default-sidrbar-address ul li i,
|
||||
.mep-default-sidrbar-events-schedule ul li i{font-size: 14px;padding: 3px 0 0 0;}
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
<?php
|
||||
<?php
|
||||
// Enqueue Scripts for admin dashboard
|
||||
add_action('admin_enqueue_scripts', 'mep_event_admin_scripts');
|
||||
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-core');
|
||||
|
||||
|
||||
wp_enqueue_style('mep-admin-style',plugin_dir_url( __DIR__ ).'css/admin_style.css',array());
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if($user_api){
|
||||
wp_enqueue_script('gmap-libs','https://maps.googleapis.com/maps/api/js?key='.$user_api.'&libraries=places&callback=initMap',array('jquery','gmap-scripts'),1,true);
|
||||
|
@ -25,9 +25,9 @@ function add_admin_scripts( $hook ) {
|
|||
global $post;
|
||||
|
||||
if ( $hook == 'post-new.php' || $hook == 'post.php' ) {
|
||||
if ( 'mep_events' === $post->post_type ) {
|
||||
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_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_script('mep_datepicker',plugin_dir_url( __DIR__ ).'js/mep_datepicker.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());
|
||||
|
@ -44,22 +44,22 @@ add_action( 'admin_enqueue_scripts', 'add_admin_scripts', 10, 1 );
|
|||
|
||||
|
||||
// Enqueue Scripts for frontend
|
||||
add_action('wp_enqueue_scripts', 'mep_event_enqueue_scripts');
|
||||
add_action('wp_enqueue_scripts', 'mep_event_enqueue_scripts',90);
|
||||
function mep_event_enqueue_scripts() {
|
||||
wp_enqueue_script('jquery');
|
||||
wp_enqueue_script('jquery');
|
||||
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-event-style',plugin_dir_url( __DIR__ ).'css/style.css',array());
|
||||
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('mep-calendar-min-style',plugin_dir_url( __DIR__ ).'css/calendar.min.css',array());
|
||||
wp_enqueue_style('mep-calendar-min-style',plugin_dir_url( __DIR__ ).'css/calendar.min.css',array());
|
||||
wp_enqueue_script('mep-moment-js',plugin_dir_url( __DIR__ ).'js/moment.js',array(),1,true);
|
||||
wp_enqueue_script('mep-calendar-scripts',plugin_dir_url( __DIR__ ).'js/calendar.min.js',array('jquery','mep-moment-js'),1,false);
|
||||
wp_enqueue_script('mep-mixitup-min-js',plugin_dir_url( __DIR__ ).'js/mixitup.min.js',array(),1,true);
|
||||
wp_enqueue_script('mep-event-custom-scripts',plugin_dir_url( __DIR__ ).'js/mkb-scripts.js',array(),1,true);
|
||||
wp_enqueue_script('mep-calendar-scripts',plugin_dir_url( __DIR__ ).'js/calendar.min.js',array('jquery','mep-moment-js'),1,false);
|
||||
wp_enqueue_script('mep-mixitup-min-js',plugin_dir_url( __DIR__ ).'js/mixitup.min.js',array(),1,true);
|
||||
wp_enqueue_script('mep-event-custom-scripts',plugin_dir_url( __DIR__ ).'js/mkb-scripts.js',array(),1,true);
|
||||
}
|
||||
|
||||
// Enqueue Scripts for frontend
|
||||
add_action('at_footer', 'mep_event_custom_enqueue_scripts');
|
||||
function mep_event_custom_enqueue_scripts() {
|
||||
wp_enqueue_script('jquery-barcode',plugin_dir_url( __DIR__ ).'js/jquery-barcode.min.js',array('jquery'),1,true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php
|
||||
add_action('mep_event_date','mep_ev_datetime');
|
||||
function mep_ev_datetime(){
|
||||
global $event_meta;
|
||||
|
@ -50,7 +50,7 @@ function mep_ev_datetime(){
|
|||
<p><?php echo get_mep_datetime($start_datetime,'date-text').' '.get_mep_datetime($start_datetime,'time'); ?> - <?php if($start_date != $end_date){ echo get_mep_datetime($end_datetime,'date-text') .' - '; } echo get_mep_datetime($end_datetime,'time'); ?></p><br>
|
||||
<?php foreach ($more_date as $_more_date) {
|
||||
?>
|
||||
|
||||
|
||||
<p><?php echo get_mep_datetime($_more_date['event_more_start_date'],'date-text').' '.get_mep_datetime($_more_date['event_more_start_time'],'time'); ?> - <?php if($_more_date['event_more_start_date'] != $_more_date['event_more_end_date']){ echo get_mep_datetime($_more_date['event_more_end_date'],'date-text') .' - '; } echo get_mep_datetime($_more_date['event_more_end_time'],'time'); ?></p><br>
|
||||
<?php
|
||||
}
|
||||
|
@ -71,22 +71,22 @@ add_action('mep_event_date_default_theme','mep_date_in_default_theme');
|
|||
|
||||
function mep_date_in_default_theme(){
|
||||
global $event_meta;
|
||||
|
||||
|
||||
$start_datetime = $event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0];
|
||||
$start_date = $event_meta['event_start_date'][0];
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$end_datetime = $event_meta['event_end_date'][0].' '.$event_meta['event_end_time'][0];
|
||||
|
||||
|
||||
$end_date = $event_meta['event_end_date'][0];
|
||||
$end_time = $event_meta['event_end_time'][0];
|
||||
|
||||
|
||||
// echo date('H:i A',strtotime($end_datetime));
|
||||
|
||||
|
||||
$recurring = get_post_meta(get_the_id(), 'mep_enable_recurring', true) ? get_post_meta(get_the_id(), 'mep_enable_recurring', true) : 'no';
|
||||
$mep_show_upcoming_event = get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) ? get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) : 'no';
|
||||
$cn = 1;
|
||||
|
||||
|
||||
if ( array_key_exists( 'mep_event_more_date', $event_meta ) ) {
|
||||
$more_date = unserialize( $event_meta['mep_event_more_date'][0] );
|
||||
} else {
|
||||
|
@ -96,12 +96,12 @@ $mep_show_upcoming_event = get_post_meta(get_the_id(), 'mep_show_upcoming_event'
|
|||
<h3><i class="fa fa-calendar"></i> <?php _e( 'Event Schedule Details', 'mage-eventpress' ); ?></h3>
|
||||
<?php
|
||||
echo '<ul>';
|
||||
|
||||
|
||||
if($recurring == 'yes'){
|
||||
|
||||
if(strtotime(current_time('Y-m-d H:i')) < strtotime($start_datetime)){
|
||||
?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($start_datetime,'date-text'); ?> <i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($start_datetime,'time'); ?> - <?php if($start_date != $end_date){ echo get_mep_datetime($end_datetime,'date-text') .' - '; } echo get_mep_datetime($end_datetime,'time'); ?></li>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($start_datetime,'date-text'); ?> <br><i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($start_datetime,'time'); ?> - <?php if($start_date != $end_date){ echo get_mep_datetime($end_datetime,'date-text') .' - '; } echo get_mep_datetime($end_datetime,'time'); ?></li>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ if($recurring == 'yes'){
|
|||
}
|
||||
if($cn == $cnt){
|
||||
?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'].' '.$_more_date['event_more_start_time'],'date-text'); ?> <i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'].' '.$_more_date['event_more_start_time'],'time'); ?> - <?php if($_more_date['event_more_start_date'] != $_more_date['event_more_end_date']){ echo get_mep_datetime($_more_date['event_more_end_date'].' '.$_more_date['event_more_end_time'],'date-text') .' - '; } echo get_mep_datetime($_more_date['event_more_end_date'].' '.$_more_date['event_more_end_time'],'time'); ?></li>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'].' '.$_more_date['event_more_start_time'],'date-text'); ?> <br><i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'].' '.$_more_date['event_more_start_time'],'time'); ?> - <?php if($_more_date['event_more_start_date'] != $_more_date['event_more_end_date']){ echo get_mep_datetime($_more_date['event_more_end_date'].' '.$_more_date['event_more_end_time'],'date-text') .' - '; } echo get_mep_datetime($_more_date['event_more_end_date'].' '.$_more_date['event_more_end_time'],'time'); ?></li>
|
||||
<?php
|
||||
$cn++;
|
||||
}
|
||||
|
@ -123,21 +123,22 @@ if($recurring == 'yes'){
|
|||
}else{
|
||||
if(is_array($more_date) && sizeof($more_date) > 0){
|
||||
?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($start_datetime,'date-text'); ?> <i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($start_datetime,'time'); ?> - <?php if($start_date != $end_date){ echo get_mep_datetime($end_datetime,'date-text') .' - '; } echo get_mep_datetime($end_datetime,'time'); ?></li>
|
||||
<li><i class="fa fa-calendar"></i> Start : <?php echo get_mep_datetime($start_datetime,'time'); ?> - <?php echo get_mep_datetime($start_datetime,'date-text'); ?><br>
|
||||
<i class="fa fa-calendar"></i> End : <?php if($start_date != $end_date){ echo get_mep_datetime($end_datetime,'time') .' - '; } echo get_mep_datetime($end_datetime,'date-text'); ?></li>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
foreach ($more_date as $_more_date) {
|
||||
?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'].' '.$_more_date['event_more_start_time'],'date-text'); ?> <i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'].' '.$_more_date['event_more_start_time'],'time'); ?> - <?php if($_more_date['event_more_start_date'] != $_more_date['event_more_end_date']){ echo get_mep_datetime($_more_date['event_more_end_date'].' '.$_more_date['event_more_end_time'],'date-text') .' - '; } echo get_mep_datetime($_more_date['event_more_end_date'].' '.$_more_date['event_more_end_time'],'time'); ?></li>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'].' '.$_more_date['event_more_start_time'],'date-text'); ?> <br><i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'].' '.$_more_date['event_more_start_time'],'time'); ?> - <?php if($_more_date['event_more_start_date'] != $_more_date['event_more_end_date']){ echo get_mep_datetime($_more_date['event_more_end_date'].' '.$_more_date['event_more_end_time'],'date-text') .' - '; } echo get_mep_datetime($_more_date['event_more_end_date'].' '.$_more_date['event_more_end_time'],'time'); ?></li>
|
||||
<?php
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($start_date,'date-text'); ?> <i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($start_datetime,'time'); ?> - <?php if($start_date != $end_date){ echo get_mep_datetime($end_date,'date-text') .' - '; } echo get_mep_datetime($end_datetime,'time'); ?></li>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($start_date,'date-text'); ?> <br><i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($start_datetime,'time'); ?> - <?php if($start_date != $end_date){ echo get_mep_datetime($end_date,'date-text') .' - '; } echo get_mep_datetime($end_datetime,'time'); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -160,13 +161,13 @@ if($recurring == 'yes'){
|
|||
|
||||
add_action('mep_event_date_only','mep_ev_date');
|
||||
function mep_ev_date(){
|
||||
global $event_meta;
|
||||
global $event_meta;
|
||||
$start_datetime = $event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0];
|
||||
$start_date = $event_meta['event_start_date'][0];
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$end_datetime = $event_meta['event_end_date'][0].' '.$event_meta['event_end_time'][0];
|
||||
|
||||
|
||||
$end_date = $event_meta['event_end_date'][0];
|
||||
$end_time = $event_meta['event_end_time'][0];
|
||||
$cn = 1;
|
||||
|
@ -180,7 +181,7 @@ if($recurring == 'yes'){
|
|||
foreach($event_more_dates as $md){
|
||||
$more_date[] = $md['event_more_start_date'].' '.$md['event_more_start_time'];
|
||||
}
|
||||
|
||||
|
||||
foreach($more_date as $ev_date){
|
||||
if(strtotime(current_time('Y-m-d H:i:s')) < strtotime($ev_date)){
|
||||
if($mep_show_upcoming_event == 'yes'){
|
||||
|
@ -206,28 +207,28 @@ foreach($more_date as $ev_date){
|
|||
|
||||
add_action('mep_event_time_only','mep_ev_time');
|
||||
function mep_ev_time(){
|
||||
global $event_meta;
|
||||
global $event_meta;
|
||||
$start_datetime = $event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0];
|
||||
$start_date = $event_meta['event_start_date'][0];
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$end_datetime = $event_meta['event_end_date'][0].' '.$event_meta['event_end_time'][0];
|
||||
|
||||
|
||||
$end_date = $event_meta['event_end_date'][0];
|
||||
$end_time = $event_meta['event_end_time'][0];
|
||||
|
||||
|
||||
$cn = 1;
|
||||
$more_date =array($event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0]);
|
||||
$recurring = get_post_meta(get_the_id(), 'mep_enable_recurring', true) ? get_post_meta(get_the_id(), 'mep_enable_recurring', true) : 'no';
|
||||
$mep_show_upcoming_event = get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) ? get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) : 'no';
|
||||
|
||||
|
||||
|
||||
|
||||
if($recurring == 'yes'){
|
||||
$event_more_dates = get_post_meta(get_the_id(),'mep_event_more_date',true);
|
||||
foreach($event_more_dates as $md){
|
||||
$more_date[] = $md['event_more_start_date'].' '.$md['event_more_start_time'];
|
||||
}
|
||||
|
||||
|
||||
foreach($more_date as $ev_date){
|
||||
if(strtotime(current_time('Y-m-d H:i:s')) < strtotime($ev_date)){
|
||||
if($mep_show_upcoming_event == 'yes'){
|
||||
|
@ -254,25 +255,25 @@ function mep_ev_time(){
|
|||
function mep_ev_time_ticket($event_meta){
|
||||
$start_datetime = $event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0];
|
||||
$start_date = $event_meta['event_start_date'][0];
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$end_datetime = $event_meta['event_end_date'][0].' '.$event_meta['event_end_time'][0];
|
||||
|
||||
|
||||
$end_date = $event_meta['event_end_date'][0];
|
||||
$end_time = $event_meta['event_end_time'][0];
|
||||
|
||||
mep_get_only_time($start_datetime);
|
||||
$end_time = $event_meta['event_end_time'][0];
|
||||
|
||||
mep_get_only_time($start_datetime);
|
||||
}
|
||||
|
||||
function mep_ev_date_ticket($event_meta){
|
||||
$start_datetime = $event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0];
|
||||
$start_date = $event_meta['event_start_date'][0];
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$end_datetime = $event_meta['event_end_date'][0].' '.$event_meta['event_end_time'][0];
|
||||
|
||||
|
||||
$end_date = $_more_date['event_end_date'][0];
|
||||
$end_time = $event_meta['event_end_time'][0];
|
||||
//echo date_i18n('d M Y', strtotime($start_datetime));
|
||||
$end_time = $event_meta['event_end_time'][0];
|
||||
//echo date_i18n('d M Y', strtotime($start_datetime));
|
||||
echo get_mep_datetime($start_datetime,'date-text');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php
|
||||
|
||||
add_action('mep_event_extra_service','mep_ev_extra_serv');
|
||||
|
||||
|
@ -9,13 +9,13 @@ $count=1;
|
|||
|
||||
$mep_events_extra_prices = get_post_meta($post->ID, 'mep_events_extra_prices', true);
|
||||
if ( $mep_events_extra_prices ){
|
||||
echo "<h3 class='ex-sec-title'>".mep_get_label($pid,'mep_event_extra_service_text','Extra Service:')."</h3>";
|
||||
echo "<h3 class='ex-sec-title'>".mep_get_label($pid,'mep_event_extra_service_text','Extra Service:')."</h3>";
|
||||
?>
|
||||
<table>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="left"><?php _e('Name','mage-eventpress'); ?></td>
|
||||
<td><?php _e('Quantity','mage-eventpress'); ?></td>
|
||||
<td><?php _e('Price','mage-eventpress'); ?></td>
|
||||
<td align="center"><?php _e('Quantity','mage-eventpress'); ?></td>
|
||||
<td align="center"><?php _e('Price','mage-eventpress'); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($mep_events_extra_prices as $field) {
|
||||
|
@ -29,22 +29,22 @@ foreach ($mep_events_extra_prices as $field) {
|
|||
<td align="Left"><?php echo $field['option_name']; ?>
|
||||
<div class="xtra-item-left"><?php echo $ext_left; ?> <?php _e('Left','mage-eventpress'); ?></div>
|
||||
</td>
|
||||
<td>
|
||||
<td align="center">
|
||||
|
||||
|
||||
<?php
|
||||
<?php
|
||||
if($ext_left>0){
|
||||
if($qty_type=='dropdown'){ ?>
|
||||
<select name="option_qty[]" id="eventpxtp_<?php //echo $count; ?>" class='extra-qty-box'>
|
||||
<?php for ($i = 0; $i <= $ext_left; $i++) { ?>
|
||||
<option value="<?php echo $i; ?>"><?php echo $i; ?> <?php echo $field['option_name']; ?></option>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php }else{ ?>
|
||||
<?php }else{ ?>
|
||||
<input id="eventpx" <?php //if($ext_left<=0){ echo "disabled"; } ?> size="4" pattern="[0-9]*" inputmode="numeric" type="number" class='extra-qty-box' name='option_qty[]' data-price='<?php echo $field['option_price']; ?>' value='0' min="0" max="<?php echo $ext_left; ?>">
|
||||
<?php } }else{ echo mep_get_option('mep_not_available_text', 'label_setting_sec') ? mep_get_option('mep_not_available_text', 'label_setting_sec') : _e('Not Available','mage-eventpress'); } ?>
|
||||
</td>
|
||||
<td><?php echo wc_price($field['option_price']); if($ext_left>0){ ?>
|
||||
<td align="center"><?php echo wc_price($field['option_price']); if($ext_left>0){ ?>
|
||||
<p style="display: none;" class="price_jq"><?php echo $field['option_price']; ?></p>
|
||||
<input type="hidden" name='option_name[]' value='<?php echo $field['option_name']; ?>'>
|
||||
<input type="hidden" name='option_price[]' value='<?php echo $field['option_price']; ?>'>
|
||||
|
@ -60,4 +60,4 @@ $count++;
|
|||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue