translations settings update
This commit is contained in:
parent
4b7c7a98fa
commit
1cfbc5448e
|
@ -50,7 +50,7 @@ class MAGE_Events_Setting_Controls {
|
|||
),
|
||||
array(
|
||||
'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'
|
||||
),
|
||||
|
||||
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(
|
||||
array(
|
||||
|
|
|
@ -242,21 +242,28 @@ if($style=='list'){
|
|||
<li>
|
||||
<div class="evl-ico"><i class="fa fa-university"></i> </div>
|
||||
<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>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="evl-ico"><i class="fa fa-map-marker"></i> </div>
|
||||
<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>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="evl-ico"><i class="fa fa-calendar"></i> </div>
|
||||
<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>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -484,21 +491,29 @@ if($style=='list'){
|
|||
<li>
|
||||
<div class="evl-ico"><i class="fa fa-university"></i> </div>
|
||||
<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>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="evl-ico"><i class="fa fa-map-marker"></i> </div>
|
||||
<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>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="evl-ico"><i class="fa fa-calendar"></i> </div>
|
||||
<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>
|
||||
</div>
|
||||
</li>
|
||||
|
|
|
@ -126,7 +126,10 @@ if(array_key_exists('mep_reg_status', $event_meta)){
|
|||
}
|
||||
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'>
|
||||
<?php
|
||||
do_action('mep_event_ticket_type_extra_service');
|
||||
|
@ -135,7 +138,7 @@ if($reg_status!='off'){
|
|||
<input type='hidden' id='rowtotal' value="<?php echo get_post_meta($post_id,"_price",true); ?>"/>
|
||||
<table>
|
||||
<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);
|
||||
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">
|
||||
|
@ -162,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 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_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>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -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 } ?>
|
||||
</td>
|
||||
<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
|
||||
if($llft>0){
|
||||
//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; ?>">
|
||||
<?php } }else{ _e('No Seat Available','mage-eventpress'); } ?>
|
||||
</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){ ?>
|
||||
<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']; ?>'>
|
||||
|
|
|
@ -4,5 +4,6 @@ add_action('mep_event_organizer','mep_ev_org');
|
|||
|
||||
function mep_ev_org(){
|
||||
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 }
|
||||
}
|
||||
|
|
|
@ -38,12 +38,12 @@ $leftt = ($leftt+$llft);
|
|||
}
|
||||
$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
|
||||
|
||||
}else{
|
||||
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 }
|
||||
}
|
||||
|
||||
|
|
|
@ -14,21 +14,27 @@
|
|||
<div class="mep-default-feature-date">
|
||||
<div class="df-ico"><i class="fa fa-calendar"></i></div>
|
||||
<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'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-feature-time">
|
||||
<div class="df-ico"><i class="fa fa-clock-o"></i></div>
|
||||
<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'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-feature-location">
|
||||
<div class="df-ico"><i class="fa fa-map-marker"></i></div>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -50,7 +56,9 @@
|
|||
</div>
|
||||
<div class="mep-default-sidebar">
|
||||
<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'); ?>
|
||||
</div>
|
||||
<div class="df-sidebar-part">
|
||||
|
|
|
@ -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.5.2
|
||||
* Version: 2.5.3
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
|
Loading…
Reference in New Issue