html strip issue fixed
This commit is contained in:
parent
78c7433f10
commit
bf79a0a805
|
@ -3761,4 +3761,6 @@ Single Speaker Page Mobile CSS update by ariful | date: 09.11.2021
|
|||
.mep_speaker_name{
|
||||
padding: 50px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
/*******************************/
|
||||
tr.mep_virtual_event_info_sec{display: none;}
|
|
@ -993,12 +993,9 @@ class MP_Event_All_Info_In_One
|
|||
$event_type = get_post_meta($post_id, 'mep_event_type', true);
|
||||
$event_member_type = get_post_meta($post_id, 'mep_member_only_event', true);
|
||||
$saved_user_role = get_post_meta($post_id, 'mep_member_only_user_role', true) ? get_post_meta($post_id, 'mep_member_only_user_role', true) : [];
|
||||
$description = get_post_meta($post_id, 'mp_event_virtual_type_des', true);
|
||||
$description = html_entity_decode(get_post_meta($post_id, 'mp_event_virtual_type_des', true));
|
||||
$checked = ($event_type == 'online') ? 'checked' : '';
|
||||
$member_checked = ($event_member_type == 'member_only') ? 'checked' : '';
|
||||
|
||||
|
||||
// print_r($saved_user_role);
|
||||
?>
|
||||
<tr>
|
||||
<th><span><?php esc_html_e('Virtual ', 'mage-eventpress');
|
||||
|
@ -1010,7 +1007,7 @@ class MP_Event_All_Info_In_One
|
|||
</label>
|
||||
<p></p>
|
||||
<label class="mp_event_virtual_type_des <?php echo ($event_type == 'online') ? esc_attr('active') : ''; ?>">
|
||||
<?php wp_editor(htmlspecialchars_decode($description), 'mp_event_virtual_type_des'); ?>
|
||||
<?php wp_editor(html_entity_decode(nl2br($description)), 'mp_event_virtual_type_des'); ?>
|
||||
<p class="event_meta_help_txt"><?php esc_html_e('Please Enter Your Virtual event joining details Information. these information will send to buyer with confirmation email.', 'mage-eventpress') ?></p>
|
||||
</label>
|
||||
</td>
|
||||
|
@ -1025,9 +1022,7 @@ class MP_Event_All_Info_In_One
|
|||
<p></p>
|
||||
<label class="mp_event_virtual_type_des <?php echo ($event_member_type == 'member_only') ? esc_attr('active') : ''; ?>">
|
||||
<select name='mep_member_only_user_role[]' multiple>
|
||||
<option value="all" <?php if (in_array('all', $saved_user_role)) {
|
||||
echo esc_attr('Selected');
|
||||
} ?>><?php esc_html_e('For Any Logged in user', 'mage-eventpress'); ?> </option>
|
||||
<option value="all" <?php if (in_array('all', $saved_user_role)) { echo esc_attr('Selected'); } ?>><?php esc_html_e('For Any Logged in user', 'mage-eventpress'); ?> </option>
|
||||
<?php echo mep_get_user_list($saved_user_role); ?>
|
||||
</select>
|
||||
</label>
|
||||
|
|
|
@ -1327,18 +1327,17 @@ if (!function_exists('mep_ticket_lits_users')) {
|
|||
$loop = new WP_Query($args_search_qqq);
|
||||
while ($loop->have_posts()) {
|
||||
$loop->the_post();
|
||||
$event_id = get_post_meta(get_the_id(), 'ea_event_id', true);
|
||||
$virtual_info = get_post_meta($event_id, 'mp_event_virtual_type_des', true) ? get_post_meta($event_id, 'mp_event_virtual_type_des', true) : '';
|
||||
$event_meta = get_post_custom($event_id);
|
||||
$time = get_post_meta($event_id, 'event_expire_datetime', true) ? strtotime(get_post_meta($event_id, 'event_expire_datetime', true)) : strtotime(get_post_meta($event_id, 'event_start_datetime', true));
|
||||
$newformat = date('Y-m-d H:i:s', $time);
|
||||
$event_id = get_post_meta(get_the_id(), 'ea_event_id', true);
|
||||
$virtual_info = get_post_meta($event_id, 'mp_event_virtual_type_des', true) ? get_post_meta($event_id, 'mp_event_virtual_type_des', true) : '';
|
||||
$event_meta = get_post_custom($event_id);
|
||||
$time = get_post_meta($event_id, 'event_expire_datetime', true) ? strtotime(get_post_meta($event_id, 'event_expire_datetime', true)) : strtotime(get_post_meta($event_id, 'event_start_datetime', true));
|
||||
$newformat = date('Y-m-d H:i:s', $time);
|
||||
if (strtotime(current_time('Y-m-d H:i:s')) < strtotime($newformat)) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo get_post_meta(get_the_id(), 'ea_name', true); ?></td>
|
||||
<td><?php echo get_post_meta(get_the_id(), 'ea_ticket_type', true); ?></td>
|
||||
<td>
|
||||
<?php echo get_post_meta(get_the_id(), 'ea_event_name', true);
|
||||
<td><?php echo get_post_meta(get_the_id(), 'ea_event_name', true);
|
||||
if ($virtual_info) { ?>
|
||||
<button id='mep_vr_view_btn_<?php echo get_the_id(); ?>' class='mep_view_vr_btn'><?php esc_html_e('View Virtual Info', 'mage-eventpress'); ?></button> <?php } ?>
|
||||
</td>
|
||||
|
@ -1351,7 +1350,7 @@ if (!function_exists('mep_ticket_lits_users')) {
|
|||
<td colspan='4'>
|
||||
<div class='mep-vr-vs-content'>
|
||||
<h3><?php esc_html_e('Virtual Event Information:', 'mage-eventpress'); ?></h3>
|
||||
<?php echo htmlspecialchars_decode($virtual_info); ?>
|
||||
<?php echo mep_esc_html(html_entity_decode($virtual_info)); ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -1364,7 +1363,7 @@ if (!function_exists('mep_ticket_lits_users')) {
|
|||
</div>
|
||||
<?php
|
||||
$content = ob_get_clean();
|
||||
echo wp_kses_post($content);
|
||||
echo wp_kses_post(html_entity_decode($content));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1511,6 +1510,7 @@ if (!function_exists('mep_esc_html')) {
|
|||
function mep_esc_html($string){
|
||||
$allow_attr = array(
|
||||
'input' => array(
|
||||
'br' => [],
|
||||
'type' => [],
|
||||
'class' => [],
|
||||
'id' => [],
|
||||
|
@ -3971,13 +3971,12 @@ function mep_event_list_upcoming_date_li($event_id, $type = 'grid') {
|
|||
add_filter('mep_event_confirmation_text', 'mep_virtual_join_info_event_email_text', 10, 3);
|
||||
if (!function_exists('mep_virtual_join_info_event_email_text')) {
|
||||
function mep_virtual_join_info_event_email_text($content, $event_id, $order_id) {
|
||||
$event_type = get_post_meta($event_id, 'mep_event_type', true) ? get_post_meta($event_id, 'mep_event_type', true) : 'offline';
|
||||
$email_content = get_post_meta($event_id, 'mp_event_virtual_type_des', true) ? htmlspecialchars_decode(get_post_meta($event_id, 'mp_event_virtual_type_des', true)) : '';
|
||||
|
||||
$event_type = get_post_meta($event_id, 'mep_event_type', true) ? get_post_meta($event_id, 'mep_event_type', true) : 'offline';
|
||||
$email_content = get_post_meta($event_id, 'mp_event_virtual_type_des', true) ? get_post_meta($event_id, 'mp_event_virtual_type_des', true) : '';
|
||||
if ($event_type == 'online') {
|
||||
$content = $content . '<br/>' . $email_content;
|
||||
$content = $content . '<br/>' . html_entity_decode($email_content);
|
||||
}
|
||||
return $content;
|
||||
return html_entity_decode($content);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -66,4 +66,7 @@ function mp_event_wo_commerce_price_format(price) {
|
|||
|
||||
});
|
||||
});
|
||||
$(document).on('click', 'button.mep_view_vr_btn', function () {
|
||||
$(this).closest('tr').next('tr.mep_virtual_event_info_sec').slideToggle('fast');
|
||||
});
|
||||
}(jQuery));
|
||||
|
|
|
@ -3164,8 +3164,9 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
$default = isset( $option['default'] ) ? $option['default'] : array();
|
||||
|
||||
$value = isset( $option['value'] ) ? $option['value'] : "";
|
||||
$value = !empty($value) ? $value : $default;
|
||||
|
||||
$_value = !empty($value) ? $value : $default;
|
||||
$__value = str_replace('<br />', PHP_EOL, html_entity_decode($_value));
|
||||
|
||||
$field_id = $id;
|
||||
$field_name = !empty( $field_name ) ? $field_name : $id;
|
||||
|
||||
|
@ -3258,9 +3259,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
?>
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo esc_attr($depends); ?>]" <?php } ?>
|
||||
id="field-wrapper-<?php echo esc_attr($id); ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-textarea-wrapper field-textarea-wrapper-<?php echo esc_attr($field_id); ?>">
|
||||
<textarea name='<?php echo esc_attr($field_name); ?>' id='<?php echo esc_attr($field_id); ?>'
|
||||
cols='40' rows='5'
|
||||
placeholder='<?php echo esc_attr($placeholder); ?>'><?php echo esc_attr($value); ?></textarea>
|
||||
<textarea name='<?php echo esc_attr($field_name); ?>' id='<?php echo esc_attr($field_id); ?>' cols='40' rows='5' placeholder='<?php echo esc_attr($placeholder); ?>'><?php echo mep_esc_html($__value); ?></textarea>
|
||||
<div class="error-mgs"></div>
|
||||
</div>
|
||||
|
||||
|
@ -5892,11 +5891,11 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
if(empty($id)) return;
|
||||
$field_name = isset( $option['field_name'] ) ? $option['field_name'] : $id;
|
||||
$conditions = isset( $option['conditions'] ) ? $option['conditions'] : array();
|
||||
$placeholder = isset( $option['placeholder'] ) ? $option['placeholder'] : "";
|
||||
$default = isset( $option['default'] ) ? $option['default'] : "";
|
||||
$placeholder = isset( $option['placeholder'] ) ? $option['placeholder'] : "";
|
||||
$default = isset( $option['default'] ) ? $option['default'] : "";
|
||||
$editor_settings= isset( $option['editor_settings'] ) ? $option['editor_settings'] : array('textarea_name'=>$field_name);
|
||||
$value = isset( $option['value'] ) ? $option['value'] : "";
|
||||
$value = !empty($value) ? $value : $default;
|
||||
$value = !empty($value) ? $value : $default;
|
||||
$field_id = $id;
|
||||
if(!empty($conditions)):
|
||||
|
||||
|
@ -8035,7 +8034,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
$collapsible = isset( $option['collapsible'] ) ? $option['collapsible'] : true;
|
||||
$placeholder = isset( $option['placeholder'] ) ? $option['placeholder'] : "";
|
||||
$values = isset( $option['value'] ) ? $option['value'] : '';
|
||||
$btntext = isset( $option['btn_text'] ) ? $option['btn_text'] : 'Add';
|
||||
$btntext = isset( $option['btn_text'] ) ? $option['btn_text'] : 'Add';
|
||||
$fields = isset( $option['fields'] ) ? $option['fields'] : array();
|
||||
$title_field = isset( $option['title_field'] ) ? $option['title_field'] : '';
|
||||
$remove_text = isset( $option['remove_text'] ) ? $option['remove_text'] : '<i class="fas fa-times"></i>';
|
||||
|
@ -8067,17 +8066,17 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
|
||||
$depends = '';
|
||||
|
||||
$field = isset($conditions['field']) ? $conditions['field'] :'';
|
||||
$field = isset($conditions['field']) ? $conditions['field'] :'';
|
||||
$cond_value = isset($conditions['value']) ? $conditions['value']: '';
|
||||
$type = isset($conditions['type']) ? $conditions['type'] : '';
|
||||
$pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
|
||||
$modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
|
||||
$like = isset($conditions['like']) ? $conditions['like'] : '';
|
||||
$strict = isset($conditions['strict']) ? $conditions['strict'] : '';
|
||||
$empty = isset($conditions['empty']) ? $conditions['empty'] : '';
|
||||
$sign = isset($conditions['sign']) ? $conditions['sign'] : '';
|
||||
$min = isset($conditions['min']) ? $conditions['min'] : '';
|
||||
$max = isset($conditions['max']) ? $conditions['max'] : '';
|
||||
$type = isset($conditions['type']) ? $conditions['type'] : '';
|
||||
$pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
|
||||
$modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
|
||||
$like = isset($conditions['like']) ? $conditions['like'] : '';
|
||||
$strict = isset($conditions['strict']) ? $conditions['strict'] : '';
|
||||
$empty = isset($conditions['empty']) ? $conditions['empty'] : '';
|
||||
$sign = isset($conditions['sign']) ? $conditions['sign'] : '';
|
||||
$min = isset($conditions['min']) ? $conditions['min'] : '';
|
||||
$max = isset($conditions['max']) ? $conditions['max'] : '';
|
||||
|
||||
$depends .= "{'[name=".$field."]':";
|
||||
$depends .= '{';
|
||||
|
@ -8184,22 +8183,6 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
<?php
|
||||
endif;
|
||||
?>
|
||||
|
||||
//$( this ).parent().appendTo( '.field-text-multi-wrapper-<?php echo esc_attr($id); ?> .field-list' );
|
||||
|
||||
|
||||
//$('.field-repeatable-wrapper-<?php //echo esc_attr($id); ?>// .field-list .item-wrap').each(function( index ) {
|
||||
//
|
||||
// $(this).children('.item .content').each(function( index2 ) {
|
||||
// console.log(index2);
|
||||
// })
|
||||
//
|
||||
//
|
||||
//});
|
||||
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
jQuery(document).on('click', '.field-repeatable-wrapper-<?php echo esc_attr($id); ?> .add-item', function() {
|
||||
|
@ -8207,9 +8190,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
fields_arr = <?php echo json_encode($fields); ?>;
|
||||
html = '<div class="item-wrap collapsible"><div class="header"><span class="button remove" ' +
|
||||
'onclick="jQuery(this).parent().parent().remove()"><?php echo mep_esc_html($remove_text); ?></span> ';
|
||||
|
||||
//html += '<span index_id="" class="button clone"><i class="far fa-clone"></i></span>';
|
||||
|
||||
|
||||
<?php if($sortable):?>
|
||||
html += '<span class="button sort" ><i class="fas fa-arrows-alt"></i></span>';
|
||||
<?php endif; ?>
|
||||
|
@ -8311,14 +8292,12 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
<div class="item-wrap <?php if($collapsible) echo 'collapsible'; ?>">
|
||||
<?php if($collapsible):?>
|
||||
<div class="header">
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- <span index_id="--><?php //echo esc_attr($i)ndex; ?><!--" class="button clone"><i class="far fa-clone"></i></span>-->
|
||||
<?php endif; ?>
|
||||
<?php if($sortable):?>
|
||||
<span class="button sort"><i class="fas fa-arrows-alt"></i></span>
|
||||
<?php endif; ?>
|
||||
<span class="title-text" style="cursor:pointer;display: inline-block;width: 84%;"><?php echo esc_html($title_field_val); ?></span>
|
||||
<span class="button remove" onclick="jQuery(this).parent().parent().remove()"><?php echo esc_html($remove_text); ?></span>
|
||||
<span class="title-text" style="cursor:pointer;display: inline-block;width: 84%;"><?php echo mep_esc_html($title_field_val); ?></span>
|
||||
<span class="button remove" onclick="jQuery(this).parent().parent().remove()"><?php echo mep_esc_html($remove_text); ?></span>
|
||||
<?php if($collapsible):?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -8327,9 +8306,6 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
$item_id = $field['item_id'];
|
||||
$name = $field['name'];
|
||||
$title_field_class = ($title_field == $field_index) ? 'title-field':'';
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<div class="item <?php echo esc_attr($title_field_class); ?>">
|
||||
<?php if($collapsible):?>
|
||||
|
@ -8387,10 +8363,11 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
?>
|
||||
<input type="email" class="regular-text" name="<?php echo esc_attr($field_name); ?>[<?php echo esc_attr($index); ?>][<?php echo esc_attr($item_id); ?>]" placeholder="" value="<?php echo esc_html($value); ?>">
|
||||
<?php elseif($type == 'textarea'):
|
||||
$default = isset($field['default']) ? $field['default'] : '';
|
||||
$value = !empty($val[$item_id]) ? $val[$item_id] : $default;
|
||||
$default = isset($field['default']) ? $field['default'] : '';
|
||||
$_value = !empty($val[$item_id]) ? $val[$item_id] : $default;
|
||||
$__value = str_replace('<br />', PHP_EOL, html_entity_decode($_value));;
|
||||
?>
|
||||
<textarea name="<?php echo esc_attr($field_name); ?>[<?php echo esc_attr($index); ?>][<?php echo esc_attr($item_id); ?>]"><?php echo esc_html($value); ?></textarea>
|
||||
<textarea name="<?php echo esc_attr($field_name); ?>[<?php echo esc_attr($index); ?>][<?php echo esc_attr($item_id); ?>]"><?php echo mep_esc_html($__value); ?></textarea>
|
||||
<?php elseif($type == 'select'):
|
||||
$args = isset($field['args']) ? $field['args'] : array();
|
||||
$default = isset($field['default']) ? $field['default'] : '';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
?>
|
||||
<div class="mep-day-title"><?php echo esc_html($field['mep_day_title']); ?></div>
|
||||
<div class="mep-day-details">
|
||||
<p><?php echo esc_html($field['mep_day_content']); ?></p>
|
||||
<p><?php echo mep_esc_html(html_entity_decode(nl2br($field['mep_day_content']))); ?></p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
foreach ($mep_event_faq as $field) {
|
||||
?>
|
||||
<h3><?php if ($field['mep_faq_title'] != '') echo esc_html($field['mep_faq_title']); ?></h3>
|
||||
<p><?php if ($field['mep_faq_content'] != '') echo esc_html($field['mep_faq_content']); ?></p>
|
||||
<p><?php if ($field['mep_faq_content'] != '') echo mep_esc_html(html_entity_decode(nl2br($field['mep_faq_content']))); ?></p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue