Instantly share code, notes, and snippets.

View slideshow_masterslider.php
<?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
*/
View gist:7577333
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'];
View the events calendar fixes
//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
View filter_events_calendar.php
<?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';
}
View featured_image_and_attachment_import_script.php