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: Expand GCE List | |
*/ | |
function gce_expand() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
jQuery('.gce-widget-list').find('.gce-list>li:gt(2)').hide(); |
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: Fix GCE Ajax error | |
*/ | |
function gce_fix_ajax_error() { | |
global $wp_scripts; | |
if ( isset( $wp_scripts->registered['gce_scripts']->extra['data'] ) ) { | |
$wp_scripts->registered['gce_scripts']->extra['data'] = str_replace( 'https', 'http', $wp_scripts->registered['gce_scripts']->extra['data'] ); |
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' ); | |
} |
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
//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: 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
<?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 | |
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 | |
/* | |
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' ); | |
} |