Skip to content

Instantly share code, notes, and snippets.

View InoPlugs's full-sized avatar

InoPlugs Webdesign InoPlugs

View GitHub Profile
<?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
*/
@InoPlugs
InoPlugs / gist:7577333
Created November 21, 2013 07:24
Tri.be Breadcrumb
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'];
@InoPlugs
InoPlugs / the events calendar fixes
Last active December 20, 2015 01:19
Enfold styling adjustments for The Events Calendar, The Events Calendar Pro and WooTickets
//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
<?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';
}