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
var media = new Media('temp.wav', function() { | |
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fs) { | |
fs.root.getFile('temp.wav', {}, function(file) { | |
// targetDir has been created previously | |
file.moveTo(targetDir, 'audio.wav', function() { | |
// done! | |
}); | |
}); | |
}); | |
}); |
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 - Remove tooltip JS | |
*/ | |
function gce_remove_tooltip_js() { | |
if ( defined( 'GCE_GENERAL_OPTIONS_NAME' ) ) { | |
$options = get_option( GCE_GENERAL_OPTIONS_NAME ); | |
wp_deregister_script( 'gce_scripts' ); |
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: Change GCE Ajax URL | |
*/ | |
function gce_change_ajax_url() { | |
?> | |
<script type="text/javascript"> | |
var GoogleCalendarEvents = GoogleCalendarEvents || {}; | |
GoogleCalendarEvents.ajaxurl = "http://triangledayschool.previewdns.com/wp-admin/admin-ajax.php"; |
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 Prevent Timezone Issue with BackWPup Plugin | |
*/ | |
define( 'RAXSDK_TIMEZONE', 'UTC' ); |
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 Load Polylang on Ajax requests | |
*/ | |
function gce_load_polylang_on_ajax() { | |
?> | |
<script type="text/javascript"> | |
if (typeof jQuery != 'undefined') { | |
jQuery.ajaxSetup({ |
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 jQuery migrate and fix JavaScript error | |
*/ | |
function gce_add_jquery_migrate() { | |
wp_enqueue_script( 'jquery-migrate', 'http://code.jquery.com/jquery-migrate-1.2.1.min.js', array( 'jquery') ); | |
} | |
function gce_fix_javascript_error() { |
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: Update jQuery UI | |
*/ | |
function gce_update_jquery_ui() { | |
wp_deregister_script( 'jquery-ui' ); | |
wp_enqueue_script( 'jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js', array( 'jquery' ), null, 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_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: Fix issue with Category Grid View Gallery plugin | |
*/ | |
function gce_set_paginateval() { | |
global $paginateVal; | |
if ( ! isset( $paginateVal ) ) { | |
$paginateVal = 0; |
NewerOlder