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 | |
/* | |
Plugin name: Allow id attribute on div tags | |
*/ | |
function gce_allow_id_on_div() { | |
global $allowedposttags; | |
$allowedposttags['div']['id'] = true; | |
} |
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 | |
/* | |
Plugin name: Remove GCE tooltip functionality | |
*/ | |
function gce_remove_qtip() { | |
wp_dequeue_script( 'gce_jquery_qtip' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'gce_remove_qtip', 99 ); |
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 | |
/* | |
Plugin name: Load newer version of jQuery UI | |
*/ | |
function gce_load_newer_jquery_ui() { | |
wp_deregister_script( 'jquery-ui-base' ); | |
wp_register_script( 'jquery-ui-base', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js' ); | |
wp_enqueue_script( 'jquery-ui-base' ); | |
} |
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 | |
function gce_check_upcoming() { | |
$events = get_transient( 'gce_feed_1' ); | |
if ( ! empty( $events ) ) { | |
// there are upcoming events | |
} | |
} | |
add_action( 'init', 'gce_check_upcoming' ); |
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 | |
class GCE_Parser { | |
private $feeds = array(); | |
private $merged_feed_data = array(); | |
private $errors = array(); | |
private $title = null; | |
private $max_events_display = 0; | |
private $start_of_week = 0; | |
private $sort_order = 'asc'; |
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 | |
/* | |
Plugin name: Allow class attribute on i tags | |
*/ | |
function gce_allow_class_on_i() { | |
global $allowedposttags; | |
$allowedposttags['i']['class'] = true; | |
} |
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
//Handles the shortcode stuff | |
function shortcode_handler( $atts ) { | |
$options = get_option( GCE_OPTIONS_NAME ); | |
//Check that any feeds have been added | |
if ( is_array( $options ) && ! empty( $options ) ) { | |
extract( shortcode_atts( array( | |
'id' => '', | |
'type' => 'grid', | |
'title' => null, |
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 | |
/* | |
Plugin name: GCE Asynchronous Content Loading Fix | |
*/ | |
function gce_ajax_fix() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
if(typeof(gce_tooltips) === 'function'){ |
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 | |
/* | |
Plugin name: GCE newer jQuery UI | |
*/ | |
function gce_newer_jquery_ui() { | |
wp_deregister_script( 'jquery-ui-core' ); | |
wp_register_script( 'jquery-ui-core', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js' ); | |
wp_enqueue_script( 'jquery-ui-core' ); | |
} |