html strip issue fixed
This commit is contained in:
parent
78c7433f10
commit
bf79a0a805
|
@ -3762,3 +3762,5 @@ Single Speaker Page Mobile CSS update by ariful | date: 09.11.2021
|
||||||
padding: 50px 0;
|
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_type = get_post_meta($post_id, 'mep_event_type', true);
|
||||||
$event_member_type = get_post_meta($post_id, 'mep_member_only_event', 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) : [];
|
$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' : '';
|
$checked = ($event_type == 'online') ? 'checked' : '';
|
||||||
$member_checked = ($event_member_type == 'member_only') ? 'checked' : '';
|
$member_checked = ($event_member_type == 'member_only') ? 'checked' : '';
|
||||||
|
|
||||||
|
|
||||||
// print_r($saved_user_role);
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th><span><?php esc_html_e('Virtual ', 'mage-eventpress');
|
<th><span><?php esc_html_e('Virtual ', 'mage-eventpress');
|
||||||
|
@ -1010,7 +1007,7 @@ class MP_Event_All_Info_In_One
|
||||||
</label>
|
</label>
|
||||||
<p></p>
|
<p></p>
|
||||||
<label class="mp_event_virtual_type_des <?php echo ($event_type == 'online') ? esc_attr('active') : ''; ?>">
|
<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>
|
<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>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
|
@ -1025,9 +1022,7 @@ class MP_Event_All_Info_In_One
|
||||||
<p></p>
|
<p></p>
|
||||||
<label class="mp_event_virtual_type_des <?php echo ($event_member_type == 'member_only') ? esc_attr('active') : ''; ?>">
|
<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>
|
<select name='mep_member_only_user_role[]' multiple>
|
||||||
<option value="all" <?php if (in_array('all', $saved_user_role)) {
|
<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>
|
||||||
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); ?>
|
<?php echo mep_get_user_list($saved_user_role); ?>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -1337,8 +1337,7 @@ if (!function_exists('mep_ticket_lits_users')) {
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo get_post_meta(get_the_id(), 'ea_name', true); ?></td>
|
<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_ticket_type', true); ?></td>
|
||||||
<td>
|
<td><?php echo get_post_meta(get_the_id(), 'ea_event_name', true);
|
||||||
<?php echo get_post_meta(get_the_id(), 'ea_event_name', true);
|
|
||||||
if ($virtual_info) { ?>
|
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 } ?>
|
<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>
|
</td>
|
||||||
|
@ -1351,7 +1350,7 @@ if (!function_exists('mep_ticket_lits_users')) {
|
||||||
<td colspan='4'>
|
<td colspan='4'>
|
||||||
<div class='mep-vr-vs-content'>
|
<div class='mep-vr-vs-content'>
|
||||||
<h3><?php esc_html_e('Virtual Event Information:', 'mage-eventpress'); ?></h3>
|
<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>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1364,7 +1363,7 @@ if (!function_exists('mep_ticket_lits_users')) {
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$content = ob_get_clean();
|
$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){
|
function mep_esc_html($string){
|
||||||
$allow_attr = array(
|
$allow_attr = array(
|
||||||
'input' => array(
|
'input' => array(
|
||||||
|
'br' => [],
|
||||||
'type' => [],
|
'type' => [],
|
||||||
'class' => [],
|
'class' => [],
|
||||||
'id' => [],
|
'id' => [],
|
||||||
|
@ -3972,12 +3972,11 @@ add_filter('mep_event_confirmation_text', 'mep_virtual_join_info_event_email_tex
|
||||||
if (!function_exists('mep_virtual_join_info_event_email_text')) {
|
if (!function_exists('mep_virtual_join_info_event_email_text')) {
|
||||||
function mep_virtual_join_info_event_email_text($content, $event_id, $order_id) {
|
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';
|
$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)) : '';
|
$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') {
|
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));
|
}(jQuery));
|
||||||
|
|
|
@ -3164,7 +3164,8 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
||||||
$default = isset( $option['default'] ) ? $option['default'] : array();
|
$default = isset( $option['default'] ) ? $option['default'] : array();
|
||||||
|
|
||||||
$value = isset( $option['value'] ) ? $option['value'] : "";
|
$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_id = $id;
|
||||||
$field_name = !empty( $field_name ) ? $field_name : $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 } ?>
|
<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); ?>">
|
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); ?>'
|
<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>
|
||||||
cols='40' rows='5'
|
|
||||||
placeholder='<?php echo esc_attr($placeholder); ?>'><?php echo esc_attr($value); ?></textarea>
|
|
||||||
<div class="error-mgs"></div>
|
<div class="error-mgs"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -8184,22 +8183,6 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
||||||
<?php
|
<?php
|
||||||
endif;
|
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() {
|
jQuery(document).on('click', '.field-repeatable-wrapper-<?php echo esc_attr($id); ?> .add-item', function() {
|
||||||
|
@ -8208,8 +8191,6 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
||||||
html = '<div class="item-wrap collapsible"><div class="header"><span class="button remove" ' +
|
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> ';
|
'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):?>
|
<?php if($sortable):?>
|
||||||
html += '<span class="button sort" ><i class="fas fa-arrows-alt"></i></span>';
|
html += '<span class="button sort" ><i class="fas fa-arrows-alt"></i></span>';
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -8312,13 +8293,11 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
||||||
<?php if($collapsible):?>
|
<?php if($collapsible):?>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- <span index_id="--><?php //echo esc_attr($i)ndex; ?><!--" class="button clone"><i class="far fa-clone"></i></span>-->
|
|
||||||
<?php if($sortable):?>
|
<?php if($sortable):?>
|
||||||
<span class="button sort"><i class="fas fa-arrows-alt"></i></span>
|
<span class="button sort"><i class="fas fa-arrows-alt"></i></span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<span class="title-text" style="cursor:pointer;display: inline-block;width: 84%;"><?php echo esc_html($title_field_val); ?></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 esc_html($remove_text); ?></span>
|
<span class="button remove" onclick="jQuery(this).parent().parent().remove()"><?php echo mep_esc_html($remove_text); ?></span>
|
||||||
<?php if($collapsible):?>
|
<?php if($collapsible):?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -8327,9 +8306,6 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
||||||
$item_id = $field['item_id'];
|
$item_id = $field['item_id'];
|
||||||
$name = $field['name'];
|
$name = $field['name'];
|
||||||
$title_field_class = ($title_field == $field_index) ? 'title-field':'';
|
$title_field_class = ($title_field == $field_index) ? 'title-field':'';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="item <?php echo esc_attr($title_field_class); ?>">
|
<div class="item <?php echo esc_attr($title_field_class); ?>">
|
||||||
<?php if($collapsible):?>
|
<?php if($collapsible):?>
|
||||||
|
@ -8388,9 +8364,10 @@ 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); ?>">
|
<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'):
|
<?php elseif($type == 'textarea'):
|
||||||
$default = isset($field['default']) ? $field['default'] : '';
|
$default = isset($field['default']) ? $field['default'] : '';
|
||||||
$value = !empty($val[$item_id]) ? $val[$item_id] : $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'):
|
<?php elseif($type == 'select'):
|
||||||
$args = isset($field['args']) ? $field['args'] : array();
|
$args = isset($field['args']) ? $field['args'] : array();
|
||||||
$default = isset($field['default']) ? $field['default'] : '';
|
$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-title"><?php echo esc_html($field['mep_day_title']); ?></div>
|
||||||
<div class="mep-day-details">
|
<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>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
foreach ($mep_event_faq as $field) {
|
foreach ($mep_event_faq as $field) {
|
||||||
?>
|
?>
|
||||||
<h3><?php if ($field['mep_faq_title'] != '') echo esc_html($field['mep_faq_title']); ?></h3>
|
<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
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue