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: Use newer jQuery easing plugin | |
*/ | |
function gce_newer_easing() { | |
wp_dequeue_script( 'easing' ); | |
wp_enqueue_script( 'gce-easing', plugins_url( 'jquery.easing.min.js', __FILE__ ), array( 'jquery' ) ); | |
} |
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 Thickbox | |
*/ | |
function gce_thickbox_enqueue() { | |
wp_enqueue_script( 'thickbox' ); | |
wp_enqueue_style( 'thickbox' ); | |
} |
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
.gce-has-events span:first-child { | |
color: #C60200 !important; font-weight: 700 !important; | |
} | |
.gce-page-grid .gce-calendar td { | |
vertical-align: top !important; | |
} | |
.gce-page-grid .gce-calendar td span:first-child { | |
display: block; float: left; clear: left; padding: 2px !important; margin-bottom: 3px; |
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
/* Make the top of the calendar dark blue, and fiddle with its height a little */ | |
.gce-caption { | |
background: #003149; | |
color: #fff; | |
border: 1px solid #ccc; | |
border-bottom: none; | |
padding: 1em 0; | |
height: 20px; | |
line-height: 20px; | |
} |
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: Popup for GCE more info links | |
*/ | |
function gce_more_info_popup() { | |
?> | |
<script> | |
jQuery('body').on('click', '.gce-popup-link', function(e){ | |
Popup(jQuery(this).attr('href'), jQuery(this).attr('id'), 400, 300); |
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: Close GCE tooltips on click / tap | |
*/ | |
function gce_close_tooltips_on_click() { | |
if ( defined( 'GCE_VERSION' ) ) { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(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: Load newer version of jQuery UI | |
*/ | |
function gce_load_newer_jquery_ui() { | |
wp_deregister_script( 'jquery-ui' ); | |
wp_enqueue_script( 'jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js', array( 'jquery') ); | |
} |