file update

This commit is contained in:
magepeopleteam 2022-01-24 04:56:08 +00:00
parent 25dae42fc8
commit f04bc5ad4f
2 changed files with 7 additions and 2 deletions

View File

@ -639,7 +639,7 @@ ul.mep-social-share {
}
ul.mep-social-share li {
margin: 0 15px 0 0;
margin: 0 8px 0 0;
}
/********Add to calender ***********/

View File

@ -1692,7 +1692,7 @@ if (!function_exists('mep_event_list_price')) {
}
}
return $type == 'price' ? wc_price(min($price_arr)) : count($price_arr);
return $type == 'price' && sizeof($price_arr) > 0 ? wc_price(min($price_arr)) : count($price_arr);
}
}
@ -4181,6 +4181,11 @@ add_action('mep_after_social_share_list', 'mep_custom_share_btn', 10, 1);
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">
<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">
<i class="fab fa-whatsapp"></i>