Skip to content

Instantly share code, notes, and snippets.

<?php
if(class_exists('TimberMenu') && class_exists('TimberMenuItem'))
{
class MyMenu extends TimberMenu {
var $MenuItemClass = 'MyMenuItem';
}
@jacksonhoose
jacksonhoose / gist:737d5a7a0a8d3db68cf1
Last active April 21, 2018 12:22
Paul Irish's Markup-based Unobtrusive Comprehensive DOM-ready Execution
var ODPHP = {};
ODPHP.common = {
init: function() {
// common code running on all pages
}
};
ODPHP.objective_search = {
init: function() {
@jacksonhoose
jacksonhoose / gist:7dff42ae15a08a9caeee
Last active August 29, 2015 14:01
Backbone View Error / /Uncaught TypeError: undefined is not a function when delegating events
View = Backbone.View.extend({
initialize: function() {
/*!
* set the collection
*/
this.collection = new dataCollection();
/*!
if(post_password_required($post))
{
$context['post']->post_content = get_the_content();
}