translations settings update

This commit is contained in:
magepeopleteam 2019-04-06 10:40:08 +00:00
parent de7d2b3755
commit d188283565
9 changed files with 1308 additions and 1191 deletions

View File

@ -50,7 +50,7 @@ class MAGE_Events_Setting_Controls {
), ),
array( array(
'id' => 'label_setting_sec', 'id' => 'label_setting_sec',
'title' => __( 'Label Settings', 'mage-eventpress' ) 'title' => __( 'Translation Settings', 'mage-eventpress' )
) )
); );
@ -221,6 +221,110 @@ class MAGE_Events_Setting_Controls {
'default' => 'Share This Event' 'default' => 'Share This Event'
), ),
array(
'name' => 'mep_organized_by_text',
'label' => __( 'Organized By:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Organized By in event list page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_location_text',
'label' => __( 'Location:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Location in event list page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_time_text',
'label' => __( 'Time:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Time in event list page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_event_location_text',
'label' => __( 'Event Location:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Event Location in event list page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_event_date_text',
'label' => __( 'Event Date:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Event Date in event list page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_event_time_text',
'label' => __( 'Event Time:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Event Time in event list page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_by_text',
'label' => __( 'By:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as By in event list page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_total_seat_text',
'label' => __( 'Total Seat:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Total Seat in event list page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_register_now_text',
'label' => __( 'Register Now:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Register Now in event details page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_quantity_text',
'label' => __( 'Quantity:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Quantity in event details page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_total_text',
'label' => __( 'Total:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Total in event details page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_ticket_qty_text',
'label' => __('Ticket Qty', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as Ticket Qty in event details page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_per_ticket_price_text',
'label' => __('Per Ticket Price:', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as per Ticket price in event details page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
array(
'name' => 'mep_no_ticket_selected_text',
'label' => __('No Ticket Selected!', 'mage-eventpress' ),
'desc' => __( 'Enter the text which you want to display as No Ticket Selected in event details page.', 'mage-eventpress' ),
'type' => 'text',
'default' => ''
),
), ),
'style_setting_sec' => array( 'style_setting_sec' => array(
array( array(

View File

@ -242,21 +242,28 @@ if($style=='list'){
<li> <li>
<div class="evl-ico"><i class="fa fa-university"></i> </div> <div class="evl-ico"><i class="fa fa-university"></i> </div>
<div class="evl-cc"> <div class="evl-cc">
<h5><?php _e('Organized By:','mage-eventpress'); ?></h5> <h5>
<?php echo mep_get_option('mep_organized_by_text', 'label_setting_sec') ? mep_get_option('mep_organized_by_text', 'label_setting_sec') : _e('Organized By:','mage-eventpress'); ?>
</h5>
<h6><?php echo $author_terms[0]->name; ?></h6> <h6><?php echo $author_terms[0]->name; ?></h6>
</div> </div>
</li> </li>
<li> <li>
<div class="evl-ico"><i class="fa fa-map-marker"></i> </div> <div class="evl-ico"><i class="fa fa-map-marker"></i> </div>
<div class="evl-cc"> <div class="evl-cc">
<h5><?php _e('Location:','mage-eventpress'); ?></h5> <h5>
<?php echo mep_get_option('mep_location_text', 'label_setting_sec') ? mep_get_option('mep_location_text', 'label_setting_sec') : _e('Location:','mage-eventpress'); ?>
</h5>
<h6><?php mep_get_event_city(get_the_id()); ?></h6> <h6><?php mep_get_event_city(get_the_id()); ?></h6>
</div> </div>
</li> </li>
<li> <li>
<div class="evl-ico"><i class="fa fa-calendar"></i> </div> <div class="evl-ico"><i class="fa fa-calendar"></i> </div>
<div class="evl-cc"> <div class="evl-cc">
<h5><?php _e('Time:','mage-eventpress'); ?></h5> <h5>
<?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['mep_event_start_date'][0]); ?> - <?php mep_get_only_time($event_meta['mep_event_end_date'][0]); ?></h6> <h6><?php mep_get_only_time($event_meta['mep_event_start_date'][0]); ?> - <?php mep_get_only_time($event_meta['mep_event_end_date'][0]); ?></h6>
</div> </div>
</li> </li>
@ -484,21 +491,29 @@ if($style=='list'){
<li> <li>
<div class="evl-ico"><i class="fa fa-university"></i> </div> <div class="evl-ico"><i class="fa fa-university"></i> </div>
<div class="evl-cc"> <div class="evl-cc">
<h5><?php _e('Organized By:','mage-eventpress'); ?></h5> <h5>
<?php echo mep_get_option('mep_organized_by_text', 'label_setting_sec') ? mep_get_option('mep_organized_by_text', 'label_setting_sec') : _e('Organized By:','mage-eventpress'); ?>
</h5>
<h6><?php echo $author_terms[0]->name; ?></h6> <h6><?php echo $author_terms[0]->name; ?></h6>
</div> </div>
</li> </li>
<li> <li>
<div class="evl-ico"><i class="fa fa-map-marker"></i> </div> <div class="evl-ico"><i class="fa fa-map-marker"></i> </div>
<div class="evl-cc"> <div class="evl-cc">
<h5><?php _e('Location:','mage-eventpress'); ?></h5> <h5>
<?php echo mep_get_option('mep_location_text', 'label_setting_sec') ? mep_get_option('mep_location_text', 'label_setting_sec') : _e('Location:','mage-eventpress'); ?>
</h5>
<h6><?php echo $event_meta['mep_city'][0]; ?></h6> <h6><?php echo $event_meta['mep_city'][0]; ?></h6>
</div> </div>
</li> </li>
<li> <li>
<div class="evl-ico"><i class="fa fa-calendar"></i> </div> <div class="evl-ico"><i class="fa fa-calendar"></i> </div>
<div class="evl-cc"> <div class="evl-cc">
<h5><?php _e('Time:','mage-eventpress'); ?></h5> <h5>
<?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['mep_event_start_date'][0]); ?> - <?php mep_get_only_time($event_meta['mep_event_end_date'][0]); ?></h6> <h6><?php mep_get_only_time($event_meta['mep_event_start_date'][0]); ?> - <?php mep_get_only_time($event_meta['mep_event_end_date'][0]); ?></h6>
</div> </div>
</li> </li>

View File

@ -23,14 +23,7 @@ function mep_get_event_reg_btn(){
if($book_count){ $total_book = $book_count; }else{ $total_book = 0; } if($book_count){ $total_book = $book_count; }else{ $total_book = 0; }
if(array_key_exists('mep_rsv_seat', $event_meta)){ $simple_rsv = $event_meta['mep_rsv_seat'][0];
$simple_rsv = $event_meta['mep_rsv_seat'][0];
}else{
$simple_rsv = '';
}
if($simple_rsv){ if($simple_rsv){
$simple_rsv = $simple_rsv; $simple_rsv = $simple_rsv;
}else{ }else{
@ -79,11 +72,7 @@ elseif($seat_left<=0){
} }
else{ else{
if(array_key_exists('mep_rsv_seat', $event_meta)){ $simple_rsv = $event_meta['mep_rsv_seat'][0];
$simple_rsv = $event_meta['mep_rsv_seat'][0];
}else{
$simple_rsv = '';
}
if($simple_rsv){ if($simple_rsv){
$simple_rsv = $simple_rsv; $simple_rsv = $simple_rsv;
}else{ }else{
@ -137,7 +126,10 @@ if(array_key_exists('mep_reg_status', $event_meta)){
} }
if($reg_status!='off'){ if($reg_status!='off'){
?> ?>
<h4 class="mep-cart-table-title"> <?php _e('Register Now:','mage-eventpress'); ?></h4> <h4 class="mep-cart-table-title">
<?php echo mep_get_option('mep_register_now_text', 'label_setting_sec') ? mep_get_option('mep_register_now_text', 'label_setting_sec') : _e('Register Now:','mage-eventpress'); ?>
</h4>
<form action="" method='post'> <form action="" method='post'>
<?php <?php
do_action('mep_event_ticket_type_extra_service'); do_action('mep_event_ticket_type_extra_service');
@ -146,7 +138,7 @@ if($reg_status!='off'){
<input type='hidden' id='rowtotal' value="<?php echo get_post_meta($post_id,"_price",true); ?>"/> <input type='hidden' id='rowtotal' value="<?php echo get_post_meta($post_id,"_price",true); ?>"/>
<table> <table>
<tr> <tr>
<td align="left" class='total-col'><?php _e('Quantity:','mage-eventpress'); <td align="left" class='total-col'><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : _e('Quantity:','mage-eventpress');
$mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true); $mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true);
if($mep_event_ticket_type){ ?> if($mep_event_ticket_type){ ?>
<input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" max="<?php echo ($event_meta['mep_total_seat'][0]- $total_book); ?>" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden"> <input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" max="<?php echo ($event_meta['mep_total_seat'][0]- $total_book); ?>" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden">
@ -173,12 +165,16 @@ if($event_sqi==1){
} }
} }
?> ?>
<span class='the-total'><?php _e('Total','mage-eventpress'); ?> <span id="usertotal"></span></span> <span class='the-total'>
<?php echo mep_get_option('mep_total_text', 'label_setting_sec') ? mep_get_option('mep_total_text', 'label_setting_sec') : _e('Total','mage-eventpress'); ?>
<span id="usertotal"></span></span>
</td> </td>
<td align="right"> <td align="right">
<input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id,$event_meta)); ?>"> <input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id,$event_meta)); ?>">
<input type="hidden" name="mep_event_date_cart" value="<?php do_action('mep_event_date'); ?>"> <input type="hidden" name="mep_event_date_cart" value="<?php do_action('mep_event_date'); ?>">
<p class="mep_no_tickt_notice" id="mep_btn_notice"><?php _e('No Ticket Selected!','mage-eventpress'); ?></p> <p class="mep_no_tickt_notice" id="mep_btn_notice">
<?php echo mep_get_option('mep_no_ticket_selected_text', 'label_setting_sec') ? mep_get_option('mep_no_ticket_selected_text', 'label_setting_sec') : _e('No Ticket Selected!','mage-eventpress'); ?>
</p>
<button type="submit" name="add-to-cart" value="<?php echo esc_attr($post_id); ?>" class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e(mep_get_label($post_id,'mep_cart_btn_text','Register This Event'),'mage-eventpress'); ?> </button> <button type="submit" name="add-to-cart" value="<?php echo esc_attr($post_id); ?>" class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e(mep_get_label($post_id,'mep_cart_btn_text','Register This Event'),'mage-eventpress'); ?> </button>
</td> </td>
</tr> </tr>

View File

@ -35,7 +35,10 @@ $qty_t_type = $field['option_qty_t_type'];
<?php if($mep_available_seat=='on'){ ?><div class="xtra-item-left"><?php echo $llft; ?> <?php _e('Left','mage-eventpress'); ?></div> <?php } ?> <?php if($mep_available_seat=='on'){ ?><div class="xtra-item-left"><?php echo $llft; ?> <?php _e('Left','mage-eventpress'); ?></div> <?php } ?>
</td> </td>
<td class="ticket-qty"> <td class="ticket-qty">
<span class="tkt-qty"> <?php _e('Ticket Qty:','mage-eventpress'); ?> </span> <span class="tkt-qty">
<?php echo mep_get_option('mep_ticket_qty_text', 'label_setting_sec') ? mep_get_option('mep_ticket_qty_text', 'label_setting_sec') : _e('Ticket Qty:','mage-eventpress'); ?>
</span>
<?php <?php
if($llft>0){ if($llft>0){
//echo $llft; //echo $llft;
@ -49,7 +52,10 @@ if($qty_t_type=='dropdown'){ ?>
<input id="eventpxtp_<?php echo $count; ?>" <?php //if($ext_left<=0){ echo "disabled"; } ?> size="4" pattern="[0-9]*" inputmode="numeric" type="number" class='extra-qty-box etp' name='option_qty[]' data-price='<?php echo $field['option_price_t']; ?>' value='0' min="0" max="<?php echo $llft; ?>"> <input id="eventpxtp_<?php echo $count; ?>" <?php //if($ext_left<=0){ echo "disabled"; } ?> size="4" pattern="[0-9]*" inputmode="numeric" type="number" class='extra-qty-box etp' name='option_qty[]' data-price='<?php echo $field['option_price_t']; ?>' value='0' min="0" max="<?php echo $llft; ?>">
<?php } }else{ _e('No Seat Available','mage-eventpress'); } ?> <?php } }else{ _e('No Seat Available','mage-eventpress'); } ?>
</td> </td>
<td class="ticket-price"><span class="tkt-pric"><?php _e('Per Ticket Price:','mage-eventpress'); ?></span> <strong><?php echo get_woocommerce_currency_symbol().$field['option_price_t']; ?></strong> <td class="ticket-price"><span class="tkt-pric">
<?php echo mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') ? mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') : _e('Per Ticket Price:','mage-eventpress'); ?>
</span> <strong><?php echo get_woocommerce_currency_symbol().$field['option_price_t']; ?></strong>
<?php if($llft>0){ ?> <?php if($llft>0){ ?>
<p style="display: none;" class="price_jq"><?php echo $field['option_price_t']; ?></p> <p style="display: none;" class="price_jq"><?php echo $field['option_price_t']; ?></p>
<input type="hidden" name='option_name[]' value='<?php echo $field['option_name_t']; ?>'> <input type="hidden" name='option_name[]' value='<?php echo $field['option_name_t']; ?>'>

View File

@ -5,11 +5,7 @@ function mep_output_add_to_cart_custom_fields() {
global $post,$event_meta,$total_book; global $post,$event_meta,$total_book;
if(array_key_exists('mep_rsv_seat', $event_meta)){
$simple_rsv = $event_meta['mep_rsv_seat'][0]; $simple_rsv = $event_meta['mep_rsv_seat'][0];
}else{
$simple_rsv = '';
}
if($simple_rsv){ if($simple_rsv){
$simple_rsv = $simple_rsv; $simple_rsv = $simple_rsv;
}else{ }else{

View File

@ -4,5 +4,6 @@ add_action('mep_event_organizer','mep_ev_org');
function mep_ev_org(){ function mep_ev_org(){
global $author_terms; global $author_terms;
if($author_terms){ ?><p> <?php _e('By:','mage-eventpress'); ?> <a href="<?php echo get_term_link( $author_terms[0]->term_id, 'mep_org' ); ?>"><?php echo $author_terms[0]->name; ?></a></p><?php }
if($author_terms){ ?><p> <?php echo mep_get_option('mep_by_text', 'label_setting_sec') ? mep_get_option('mep_by_text', 'label_setting_sec') : _e('By:','mage-eventpress'); ?> <a href="<?php echo get_term_link( $author_terms[0]->term_id, 'mep_org' ); ?>"><?php echo $author_terms[0]->name; ?></a></p><?php }
} }

View File

@ -5,12 +5,7 @@ add_action('mep_event_seat','mep_ev_seat');
function mep_ev_seat(){ function mep_ev_seat(){
global $post,$event_meta,$total_book; global $post,$event_meta,$total_book;
if(array_key_exists('mep_rsv_seat', $event_meta)){
$simple_rsv = $event_meta['mep_rsv_seat'][0]; $simple_rsv = $event_meta['mep_rsv_seat'][0];
}else{
$simple_rsv = '';
}
if($simple_rsv){ if($simple_rsv){
$simple_rsv = $simple_rsv; $simple_rsv = $simple_rsv;
}else{ }else{
@ -43,12 +38,12 @@ $leftt = ($leftt+$llft);
} }
$leftt = $leftt-$res; $leftt = $leftt-$res;
?> ?>
<h5><strong><?php _e('Total Seat:','mage-eventpress'); ?></strong> <?php echo $stc; if($mep_available_seat=='on'){ ?> (<strong><?php echo $leftt; ?></strong> <?php _e('Left','mage-eventpress'); ?>)<?php } ?></h5> <h5><strong><?php echo mep_get_option('mep_total_seat_text', 'label_setting_sec') ? mep_get_option('mep_total_seat_text', 'label_setting_sec') : _e('Total Seat:','mage-eventpress'); ?></strong> <?php echo $stc; if($mep_available_seat=='on'){ ?> (<strong><?php echo $leftt; ?></strong> <?php _e('Left','mage-eventpress'); ?>)<?php } ?></h5>
<?php <?php
}else{ }else{
if($event_meta['mep_total_seat'][0]){ ?> if($event_meta['mep_total_seat'][0]){ ?>
<h5><strong><?php _e('Total Seat:','mage-eventpress'); ?></strong> <?php echo $event_meta['mep_total_seat'][0]; if($mep_available_seat=='on'){ ?> (<strong><?php echo ($event_meta['mep_total_seat'][0]- $total_book); ?></strong> <?php _e('Left','mage-eventpress'); ?>) <?php } ?></h5> <h5><strong><?php echo mep_get_option('mep_total_seat_text', 'label_setting_sec') ? mep_get_option('mep_total_seat_text', 'label_setting_sec') : _e('Total Seat:','mage-eventpress'); ?></strong> <?php echo $event_meta['mep_total_seat'][0]; if($mep_available_seat=='on'){ ?> (<strong><?php echo ($event_meta['mep_total_seat'][0]- $total_book); ?></strong> <?php _e('Left','mage-eventpress'); ?>) <?php } ?></h5>
<?php } <?php }
} }

View File

@ -14,21 +14,27 @@
<div class="mep-default-feature-date"> <div class="mep-default-feature-date">
<div class="df-ico"><i class="fa fa-calendar"></i></div> <div class="df-ico"><i class="fa fa-calendar"></i></div>
<div class='df-dtl'> <div class='df-dtl'>
<h3><?php _e('Event Date:','mage-eventpress'); ?></h3> <h3>
<?php echo mep_get_option('mep_event_date_text', 'label_setting_sec') ? mep_get_option('mep_event_date_text', 'label_setting_sec') : _e('Event Date:','mage-eventpress'); ?>
</h3>
<?php do_action('mep_event_date_only'); ?> <?php do_action('mep_event_date_only'); ?>
</div> </div>
</div> </div>
<div class="mep-default-feature-time"> <div class="mep-default-feature-time">
<div class="df-ico"><i class="fa fa-clock-o"></i></div> <div class="df-ico"><i class="fa fa-clock-o"></i></div>
<div class='df-dtl'> <div class='df-dtl'>
<h3><?php _e('Event Time:','mage-eventpress'); ?></h3> <h3>
<?php echo mep_get_option('mep_event_time_text', 'label_setting_sec') ? mep_get_option('mep_event_time_text', 'label_setting_sec') : _e('Event Time:','mage-eventpress'); ?>
</h3>
<?php do_action('mep_event_time_only'); ?> <?php do_action('mep_event_time_only'); ?>
</div> </div>
</div> </div>
<div class="mep-default-feature-location"> <div class="mep-default-feature-location">
<div class="df-ico"><i class="fa fa-map-marker"></i></div> <div class="df-ico"><i class="fa fa-map-marker"></i></div>
<div class='df-dtl'> <div class='df-dtl'>
<h3><?php _e('Event Location:','mage-eventpress'); ?></h3> <h3>
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:','mage-eventpress'); ?>
</h3>
<p><?php do_action('mep_event_location_venue'); ?>, <?php do_action('mep_event_location_city'); ?> </p> <p><?php do_action('mep_event_location_venue'); ?>, <?php do_action('mep_event_location_city'); ?> </p>
</div> </div>
</div> </div>
@ -50,7 +56,9 @@
</div> </div>
<div class="mep-default-sidebar"> <div class="mep-default-sidebar">
<div class="mep-default-sidrbar-map"> <div class="mep-default-sidrbar-map">
<h3><?php _e('Event Location:','mage-eventpress'); ?></h3> <h3><?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:','mage-eventpress'); ?>
</h3>
</h3>
<?php do_action('mep_event_map'); ?> <?php do_action('mep_event_map'); ?>
</div> </div>
<div class="df-sidebar-part"> <div class="df-sidebar-part">

File diff suppressed because it is too large Load Diff