translation strings

This commit is contained in:
magepeopleteam 2021-01-07 09:57:54 +00:00
parent 0f06e33ec7
commit 334ed49e56
6 changed files with 33 additions and 53 deletions

View File

@ -127,20 +127,20 @@ function mep_fw_meta_boxs()
'details' => __('', 'mage-eventpress'),
'collapsible' => true,
'type' => 'repeatable',
'btn_text' => 'Add New F.A.Q',
'btn_text' => __('Add New F.A.Q','mage-eventpress'),
'title_field' => 'mep_faq_title',
'fields' => array(
array(
'type' => 'text',
'default' => '',
'item_id' => 'mep_faq_title',
'name' => 'Title'
'name' => __('Title','mage-eventpress')
),
array(
'type' => 'textarea',
'default' => '',
'item_id' => 'mep_faq_content',
'name' => 'Content'
'name' => __('Content','mage-eventpress')
),
),
),
@ -183,20 +183,20 @@ function mep_fw_meta_boxs()
'details' => __('', 'mage-eventpress'),
'collapsible' => true,
'type' => 'repeatable',
'btn_text' => 'Add New Days',
'btn_text' => __('Add New Days','mage-eventpress'),
'title_field' => 'mep_day_title',
'fields' => array(
array(
'type' => 'text',
'default' => '',
'item_id' => 'mep_day_title',
'name' => 'Title'
'name' => __('Title','mage-eventpress')
),
array(
'type' => 'textarea',
'default' => '',
'item_id' => 'mep_day_content',
'name' => 'Content'
'name' => __('Content','mage-eventpress')
),
),
),
@ -232,14 +232,14 @@ function mep_fw_meta_boxs()
'priority' => 10,
'sections' => array(
'section_2' => array(
'title' => __('', 'mage-eventpress-gq'),
'description' => __('', 'mage-eventpress-gq'),
'title' => __('', 'mage-eventpress'),
'description' => __('', 'mage-eventpress'),
'options' => array(
array(
'id' => 'mep_list_thumbnail',
'title' => __('Thumbmnail ','text-domain'),
'details' => __('Please upload image for event list','text-domain'),
'title' => __('Thumbmnail ','mage-eventpress'),
'details' => __('Please upload image for event list','mage-eventpress'),
'placeholder' => 'https://via.placeholder.com/1000x500',
'type' => 'media',
)
@ -269,10 +269,6 @@ function mep_fw_meta_boxs()
new AddMetaBox( $list_thumb_meta_args );
$email_body_meta_boxs = array(
'page_nav' => __('Event List Thumbnail', 'mage-eventpress-gq'),
'priority' => 10,
@ -284,11 +280,11 @@ function mep_fw_meta_boxs()
array(
'id' => 'mep_event_cc_email_text',
'title' => __('Confirmation Email Text:','text-domain'),
'details' => __('','text-domain'),
'title' => __('Confirmation Email Text:','mage-eventpress'),
'details' => __('','mage-eventpress'),
'type' => 'wp_editor',
// 'editor_settings'=>array('textarea_name'=>'wp_editor_field', 'editor_height'=>'150px'),
'placeholder' => __('wp_editor value','text-domain'),
'placeholder' => __('wp_editor value','mage-eventpress'),
'default' => '',
),
)
@ -296,7 +292,6 @@ function mep_fw_meta_boxs()
),
);
$email_body_meta_args = array(
'meta_box_id' => 'mep_event_email_body_meta_boxes',
'meta_box_title' => '<span class="dashicons dashicons-email"></span>&nbsp;&nbsp;'.__('Email Confirmation Text', 'mage-eventpress'),
@ -313,14 +308,4 @@ function mep_fw_meta_boxs()
),
);
new AddMetaBox( $email_body_meta_args );
}

View File

@ -35,11 +35,7 @@ function mep_add_custom_fields_text_to_cart_item($cart_item_data, $product_id, $
$user = $form_position == 'details_page' ? mep_save_attendee_info_into_cart($product_id) : array();
$validate = mep_cart_ticket_type('validation_data', $total_price,$product_id);
// echo '<pre>';
// // print_r($user);
// print_r($ticket_type_arr);
// echo '</pre>';
// die();
/**
* Now Store the datas into Cart Session
@ -103,13 +99,13 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
$eid = array_key_exists('event_id', $cart_item) ? $cart_item['event_id'] : 0; //$cart_item['event_id'];
if (get_post_type($eid) == 'mep_events') {
$hide_location_status = mep_get_option('mep_hide_location_from_order_page', 'general_setting_sec', 'no');
$hide_date_status = mep_get_option('mep_hide_date_from_order_page', 'general_setting_sec', 'no');
$hide_location_status = mep_get_option('mep_hide_location_from_order_page', 'general_setting_sec', 'no');
$hide_date_status = mep_get_option('mep_hide_date_from_order_page', 'general_setting_sec', 'no');
$user_info = $cart_item['event_user_info'];
$ticket_type_arr = $cart_item['event_ticket_info'];
$event_extra_service = $cart_item['event_extra_service'];
$event_recurring_date = $cart_item['event_recurring_date'];
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';

View File

@ -79,7 +79,7 @@ foreach ($event_dates as $_dates) {
<?php
}
/**
/**
* The Magical & The Main Event Listing Shortcode is Here, You can check the details with demo here https://wordpress.org/plugins/mage-eventpress/
*/
add_shortcode('event-list', 'mep_event_list');
@ -148,7 +148,7 @@ function mep_event_list($atts, $content = null)
<?php
/**
* The Main Query function mep_event_query is locet in inc/mep_query.php File
*/
*/
$loop = mep_event_query($show, $sort, $cat, $org, $city, $country, $status);
$total_post = $loop->post_count;
echo $main_div;

View File

@ -7,7 +7,6 @@ if ( post_password_required() ) {
echo get_the_password_form(); // WPCS: XSS ok.
echo '</div>';
}else{
$event_meta = get_post_custom(get_the_id());
$author_terms = get_the_terms(get_the_id(), 'mep_org');
$book_count = get_post_meta(get_the_id(), 'total_booking', true);

View File

@ -3053,7 +3053,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
?>
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?> id="field-wrapper-<?php echo $id; ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-text-multi-wrapper
field-text-multi-wrapper-<?php echo $field_id; ?>">
<span class="ppof-button add-item"><?php echo __('Add','pickplugins-options-framework'); ?></span>
<span class="ppof-button add-item"><?php echo __('Add','mage-eventpress'); ?></span>
<div class="field-list <?php if($sortable){ echo 'sortable'; }?>" id="<?php echo $field_id; ?>">
<?php
if(!empty($values)):
@ -5079,7 +5079,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?> id="field-wrapper-<?php echo $id; ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-colorpicker-multi-wrapper
field-colorpicker-multi-wrapper-<?php echo $id;
?>">
<div class="ppof-button add"><?php echo __('Add','pickplugins-options-framework'); ?></div>
<div class="ppof-button add"><?php echo __('Add','mage-eventpress'); ?></div>
<div class="item-list">
<?php
foreach ($values as $value):
@ -5391,8 +5391,8 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
endif; ?>
</div>
<div class="user-list">
<div class="ppof-button select-user" ><?php echo __('Choose User','pickplugins-options-framework');?></div>
<div class="search-user" ><input class="" type="text" placeholder="<?php echo __('Start typing...','pickplugins-options-framework');?>"></div>
<div class="ppof-button select-user" ><?php echo __('Choose User','mage-eventpress');?></div>
<div class="search-user" ><input class="" type="text" placeholder="<?php echo __('Start typing...','mage-eventpress');?>"></div>
<ul>
<?php
if(!empty($icons)):
@ -5565,8 +5565,8 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
<input type="hidden" name="<?php echo $field_name; ?>" value="<?php echo $value; ?>">
</div>
<div class="icon-list">
<div class="ppof-button select-icon" ><?php echo __('Choose Icon','pickplugins-options-framework'); ?></div>
<div class="search-icon" ><input class="" type="text" placeholder="<?php echo __('Start typing...','pickplugins-options-framework'); ?>"></div>
<div class="ppof-button select-icon" ><?php echo __('Choose Icon','mage-eventpress'); ?></div>
<div class="search-icon" ><input class="" type="text" placeholder="<?php echo __('Start typing...','mage-eventpress'); ?>"></div>
<ul>
<?php
if(!empty($icons)):
@ -5701,8 +5701,8 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
endif; ?>
</div>
<div class="icon-list">
<div class="ppof-button select-icon" ><?php echo __('Choose Icon','pickplugins-options-framework'); ?></div>
<div class="search-icon" ><input class="" type="text" placeholder="<?php echo __('Start typing...','pickplugins-options-framework'); ?>"></div>
<div class="ppof-button select-icon" ><?php echo __('Choose Icon','mage-eventpress'); ?></div>
<div class="search-icon" ><input class="" type="text" placeholder="<?php echo __('Start typing...','mage-eventpress'); ?>"></div>
<ul>
<?php
if(!empty($icons)):
@ -7639,7 +7639,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
?>
<div class="val-wrap">
<input class="link-val" name='<?php echo $field_name; ?>' type="text" value="<?php echo $value; ?>"> <span class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','pickplugins-options-framework');?></span> <span class="ppof-button clear">Clear</span>
<input class="link-val" name='<?php echo $field_name; ?>' type="text" value="<?php echo $value; ?>"> <span class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','mage-eventpress');?></span> <span class="ppof-button clear">Clear</span>
</div>
<div class="error-mgs"></div>
</div>
@ -8113,7 +8113,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
?>
</div>
<input type='hidden' name='<?php echo $field_name; ?>' id='media_input_<?php echo $id; ?>' value='<?php echo $value; ?>' />
<div class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','pickplugins-options-framework');?></div><div class='ppof-button clear' id='media_clear_<?php echo $id; ?>'><?php echo __('Clear','pickplugins-options-framework');?></div>
<div class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','mage-eventpress');?></div><div class='ppof-button clear' id='media_clear_<?php echo $id; ?>'><?php echo __('Clear','mage-eventpress');?></div>
<div class="error-mgs"></div>
</div>
@ -8246,10 +8246,10 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
?>
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?> id="field-wrapper-<?php echo $id; ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-media-multi-wrapper
field-media-multi-wrapper-<?php echo $id; ?>">
<div class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','pickplugins-options-framework');?></div><div class='ppof-button clear'
<div class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','mage-eventpress');?></div><div class='ppof-button clear'
id='media_clear_<?php echo
$id;
?>'><?php echo __('Clear','pickplugins-options-framework');?></div>
?>'><?php echo __('Clear','mage-eventpress');?></div>
<div class="media-list media-list-<?php echo $id; ?> sortable">
<?php
if(!empty($values) && is_array($values)):

View File

@ -5768,7 +5768,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
<input type="hidden" name="<?php echo $field_name; ?>" value="<?php echo $value; ?>">
</div>
<div class="icon-list">
<div class="button select-icon" >Choose Icon</div>
<div class="button select-icon" ><?php _e('Choose Icon','mage-eventpress'); ?></div>
<div class="search-icon" ><input class="" type="text" placeholder="start typing..."></div>
<ul>
<?php
@ -5935,7 +5935,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
endif; ?>
</div>
<div class="icon-list">
<div class="button select-icon" >Choose Icon</div>
<div class="button select-icon" >C<?php _e('Choose Icon','mage-eventpress'); ?></div>
<div class="search-icon" ><input class="" type="text" placeholder="start typing..."></div>
<ul>
<?php