- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
This file contains hidden or 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 | |
add_filter( 'tribe_events_event_schedule_details_inner', 'replace_edt_with_est', 50, 2 ); | |
function replace_edt_with_est( $html, $event_id ) { | |
return str_replace( 'EDT', 'EST', $html ); | |
} |
This file contains hidden or 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 | |
add_filter( 'tribe_get_events_link', 'custom_events_link', 10, 2 ); | |
function custom_events_link( $link, $context ) { | |
return 'http://mycustompage.com/my-custom-events-link/'; | |
} |
This file contains hidden or 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 | |
//* Do NOT include the opening php tag | |
/** | |
* Modify the number of words on the event excerpt | |
* | |
*/ | |
add_filter( 'excerpt_length', 'tec_custom_excerpt_length' ); | |
function tec_custom_excerpt_length( $words ) { | |
This file contains hidden or 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 | |
//* Do NOT include the opening php tag | |
if ( ! function_exists( 'nice_add_editor_custom_styles' ) ) : | |
add_action( 'after_wp_tiny_mce', 'nice_add_editor_custom_styles' ); | |
/** | |
* Make sure custom styles are correctly applied to TinyMCE editor. | |
* | |
* We use jQuery to wait for the document to be ready, and then we rely on a | |
* little timeout to ensure TinyMCE is completely loaded before applying styles |
This file contains hidden or 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 | |
//* Do NOT include the opening php tag | |
add_action( 'wp_head', 'nice_load_custom_js', 10 ); | |
function nice_load_custom_js() { | |
if ( file_exists( get_stylesheet_directory() . '/custom.js' ) ) { | |
wp_register_script( 'nice-custom-scripts-js', get_stylesheet_directory_uri() . '/custom.js', array( 'jquery' ) ); | |
wp_enqueue_script ( 'nice-custom-scripts-js' ); |
This file contains hidden or 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
/* global script variables */ | |
var $parallex_effect = true; | |
var window_width = 0; | |
jQuery(document).ready( function($) { | |
/* Handles functionality that depends on window resize */ | |
var innerWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; | |
window_width = Math.max( jQuery( window ).width(), innerWidth ); | |
jQuery( window ).resize(function() { |
This file contains hidden or 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 | |
//* Do NOT include the opening php tag | |
// filter the knowledgebase parser | |
function nice_knowledgebase_exclude_cat( $args ){ | |
$args['exclude'] = '8'; // replace 8 with the id of the category you want to exclude | |
return $args; | |
} |