function update

This commit is contained in:
magepeopleteam 2022-02-03 04:26:12 +00:00
parent 5ba867f09a
commit 3a9adf85a9
2 changed files with 4 additions and 7 deletions

View File

@ -1287,9 +1287,6 @@ function mep_event_meta_save($post_id)
$more_end_time = isset($_POST['event_more_end_time']) ? mage_array_strip($_POST['event_more_end_time']) : '';
$mdate = [];
if (isset($_POST['post_author_gutenberg'])) {
$wpdb->get_results("UPDATE " . $table_name . " SET post_author=" . mage_array_strip($_POST['post_author_gutenberg']) . " WHERE ID=" . $pid);
}
$mcount = count($more_start_date);

View File

@ -4182,17 +4182,17 @@ if (!function_exists('mep_custom_share_btn')) {
function mep_custom_share_btn($event_id) {
?>
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo get_the_permalink($event_id); ?>&title=<?php echo mep_html_chr(get_the_title($event_id)) . ' '; ?>&summary=<?php echo esc_html(get_the_excerpt($event_id)); ?>&source=web" target="_blank">
<a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo get_the_permalink($event_id); ?>&title=<?php echo mep_esc_html(get_the_title($event_id)) . ' '; ?>&summary=<?php echo esc_html(get_the_excerpt($event_id)); ?>&source=web" target="_blank">
<i class="fab fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://api.whatsapp.com/send?text=<?php echo mep_html_chr(get_the_title($event_id)) . ' '; ?><?php echo get_the_permalink($event_id); ?>" target="_blank">
<a href="https://api.whatsapp.com/send?text=<?php echo mep_esc_html(get_the_title($event_id)) . ' '; ?><?php echo get_the_permalink($event_id); ?>" target="_blank">
<i class="fab fa-whatsapp"></i>
</a>
</li>
<li>
<a href="mailto:?subject=I wanted you to see this site&amp;body=<?php echo mep_html_chr(get_the_title($event_id)) . ' '; ?><?php echo get_the_permalink($event_id); ?>" title="Share by Email">
<a href="mailto:?subject=I wanted you to see this site&amp;body=<?php echo mep_esc_html(get_the_title($event_id)) . ' '; ?><?php echo get_the_permalink($event_id); ?>" title="Share by Email">
<i class="fa fa-envelope"></i>
</a>
</li>
@ -4506,7 +4506,7 @@ if (!function_exists('mep_event_list_date_schedule')) {
if (strtotime(current_time('Y-m-d H:i')) < strtotime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'])) {
?>
<li>
<a href="<?php echo get_the_permalink($event_id).esc_attr('?date=' . strtotime($start_datetime)); ?>">
<a href="<?php echo get_the_permalink($event_id).esc_attr('?date=' . strtotime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'])); ?>">
<span class='mep-more-date'>
<i class="fa fa-calendar"></i>
<?php echo get_mep_datetime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'], 'date-text'); ?>