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 // be sure to remove this line! | |
// Workaround for iThemes Exchange breadcrumbs issue. | |
// Strip breadcrumbs on iThemes Exchange ghost pages unless | |
// Genesis settings have enabled breadcrumbs on pages. | |
add_action( 'genesis_before_content', 'studiopress_it_exchange_breadcrumbs' ); | |
function studiopress_it_exchange_breadcrumbs() { | |
global $post; |
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 FormRepo = function (namespace) { | |
/// <summary>Persistent form values, saves to localStorage</summary> | |
/// <param name="namespace" type="String">the namespace to store values in localStorage</param> | |
// should also protect per page, since we could have the same forms in various places | |
this.N = namespace + '.' + window.location.pathname; | |
}; | |
$.extend(FormRepo.prototype, { | |
namespace: function (key) { | |
return this.N + '.' + key; |