function update
This commit is contained in:
parent
ecbbc9b67e
commit
15720d0ceb
|
@ -112,3 +112,9 @@ function mep_ajax_url(){
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_action('wp_head', 'mep_add_wp_header_scripts');
|
||||||
|
function mep_add_wp_header_scripts(){
|
||||||
|
echo mep_event_rich_text_data();
|
||||||
|
echo mep_apply_custom_css();
|
||||||
|
}
|
||||||
|
|
|
@ -1255,8 +1255,7 @@ if (!function_exists('mep_add_to_google_calender_link')) {
|
||||||
.mep-default-sidrbar-social .mep-event-meta {text-align: center;}
|
.mep-default-sidrbar-social .mep-event-meta {text-align: center;}
|
||||||
</style>
|
</style>
|
||||||
<?php
|
<?php
|
||||||
$content = ob_get_clean();
|
return ob_get_clean();
|
||||||
echo $content;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1687,8 +1686,7 @@ if (!function_exists('mep_get_all_date_time')) {
|
||||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime($end_datetime)); ?> <i class="fa fa-clock-o"></i> <?php echo date($timeformatassettings, strtotime($end_datetime)); ?> <span style='font-size: 12px;font-weight: bold;'>(<?php esc_html_e('End', 'mage-eventpress'); ?>)</span></li>
|
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime($end_datetime)); ?> <i class="fa fa-clock-o"></i> <?php echo date($timeformatassettings, strtotime($end_datetime)); ?> <span style='font-size: 12px;font-weight: bold;'>(<?php esc_html_e('End', 'mage-eventpress'); ?>)</span></li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php
|
<?php
|
||||||
$content = ob_get_clean();
|
echo ob_get_clean();
|
||||||
echo $content;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2697,7 +2695,7 @@ if (!function_exists('get_event_list_js')) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo $content = ob_get_clean();
|
echo ob_get_clean();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2766,10 +2764,16 @@ if (!function_exists('mep_event_get_the_content')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This the function which will create the Rich Text Schema For each event into the <head></head> section.
|
* This the function which will create the Rich Text Schema For each event into the <head></head> section.
|
||||||
*/
|
*/
|
||||||
add_action('wp_head', 'mep_event_rich_text_data');
|
|
||||||
if (!function_exists('mep_event_rich_text_data')) {
|
if (!function_exists('mep_event_rich_text_data')) {
|
||||||
function mep_event_rich_text_data() {
|
function mep_event_rich_text_data() {
|
||||||
global $post;
|
global $post;
|
||||||
|
@ -2823,12 +2827,10 @@ if (!function_exists('mep_event_rich_text_data')) {
|
||||||
"name": "<?php echo esc_attr($org_name); ?>"
|
"name": "<?php echo esc_attr($org_name); ?>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo $content = ob_get_clean();
|
return ob_get_clean();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2910,7 +2912,7 @@ if (!function_exists('mep_custom_css_sectings_fields')) {
|
||||||
return array_merge($default_fields, $settings_fields);
|
return array_merge($default_fields, $settings_fields);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_action('wp_head', 'mep_apply_custom_css', 90);
|
// add_action('wp_head', 'mep_apply_custom_css', 90);
|
||||||
if (!function_exists('mep_apply_custom_css')) {
|
if (!function_exists('mep_apply_custom_css')) {
|
||||||
function mep_apply_custom_css() {
|
function mep_apply_custom_css() {
|
||||||
$custom_css = mep_get_option('mep_custom_css', 'mep_settings_custom_css', '');
|
$custom_css = mep_get_option('mep_custom_css', 'mep_settings_custom_css', '');
|
||||||
|
@ -2921,7 +2923,7 @@ if (!function_exists('mep_apply_custom_css')) {
|
||||||
<?php echo $custom_css; ?>
|
<?php echo $custom_css; ?>
|
||||||
</style>
|
</style>
|
||||||
<?php
|
<?php
|
||||||
echo ob_get_clean();
|
return ob_get_clean();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4375,8 +4377,6 @@ if (!class_exists('MPWEM_Helper')) {
|
||||||
$city_list[] = $post->meta_value;
|
$city_list[] = $post->meta_value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//wp_reset_postdata();
|
|
||||||
//ob_get_clean();
|
|
||||||
return $city_list;
|
return $city_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ if (!function_exists('mep_ev_calender')) {
|
||||||
* Action Hook mep_before_add_calendar_button & mep_after_add_calendar_button
|
* Action Hook mep_before_add_calendar_button & mep_after_add_calendar_button
|
||||||
*/
|
*/
|
||||||
do_action('mep_before_add_calendar_button');
|
do_action('mep_before_add_calendar_button');
|
||||||
mep_add_to_google_calender_link($event_id);
|
echo mep_add_to_google_calender_link($event_id);
|
||||||
do_action('mep_after_add_calendar_button');
|
do_action('mep_after_add_calendar_button');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -96,7 +96,7 @@ class MEPEventAddCalendarWidget extends Widget_Base {
|
||||||
<div class="calender-url">
|
<div class="calender-url">
|
||||||
<?php
|
<?php
|
||||||
do_action('mep_before_add_calendar_button');
|
do_action('mep_before_add_calendar_button');
|
||||||
mep_add_to_google_calender_link($event_id);
|
echo mep_add_to_google_calender_link($event_id);
|
||||||
do_action('mep_after_add_calendar_button');
|
do_action('mep_after_add_calendar_button');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue