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: 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: Close GCE tooltips | |
Description: Causes Google Calendar Events tooltips to close when clicked / tapped. | |
*/ | |
function gce_close_tooltips() { | |
?> | |
<script type="text/javascript"> | |
function gce_close_tooltips() { |
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 file protocol | |
*/ | |
function rh_allow_file_protocol( $protocols ) { | |
$protocols[] = 'file'; | |
return $protocols; | |
} |
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 Thingy | |
*/ | |
function gce_enqueue_thickbox() { | |
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
<?php | |
class GCE_Event{ | |
private $id; | |
private $title; | |
private $description; | |
private $location; | |
private $start_time; | |
private $end_time; | |
private $link; | |
private $type; |
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: Add text to GCE widget | |
*/ | |
function gce_after_widget_stuff( $params ) { | |
if ( ! is_admin() ) { | |
if ( 'Google Calendar Events' == $params[0]['widget_name'] ) { | |
$params[0]['after_widget'] = '<a href="http://your-url-here">LINK TEXT</a>' . $params[0]['after_widget']; | |
} |
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 | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
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 | |
/* | |
Template Name: Projects | |
*/ | |
get_header(); ?> | |
<div id="primary"> | |
<div id="content" role="main"> |