This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( !class_exists( 'avia_sc_masterslider' ) && defined('MSWP_AVERTA_VERSION')) | |
{ | |
class avia_sc_masterslider extends aviaShortcodeTemplate | |
{ | |
static $slide_count = 0; | |
/** | |
* Create the config array for the shortcode button | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!function_exists('avia_modify_event_breadcrumb')) | |
{ | |
function avia_modify_event_breadcrumb($trail) | |
{ | |
if(get_query_var('post_type') == 'tribe_events') | |
{ | |
$page = 2563; | |
$newtrail = avia_breadcrumbs_get_parents( $page, '' ); | |
array_unshift($newtrail, $trail[0]); | |
if(is_single()) $newtrail['trail_end'] = $trail['trail_end']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//php code fixes | |
add_filter('tribe_get_embedded_map','avia_deactivate_google_api',10,1); | |
function avia_deactivate_google_api($google_map){ | |
global $avia_config; | |
if(!empty($google_map)) $avia_config['g_maps_widget_active'] = 1; | |
return $google_map; | |
} | |
//custom css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('avf_title_args', 'fix_events_page_title', 10, 2); | |
function fix_events_page_title($args,$id) | |
{ | |
if (get_query_var('post_type') == 'tribe_events' && !is_single()) | |
{ | |
if((tribe_is_upcoming() || tribe_is_past())) | |
{ | |
$args['title'] = 'Events List'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_init', 'init_avia_convert_featured_images'); | |
function init_avia_convert_featured_images() | |
{ | |
if(!get_option('avia_converted_featured_images')) | |
{ | |
avia_convert_featured_images(); | |
//set the avia_images_converted key so this function will never be executed again |