added a ton of goodies - this is initial release 1.0.0

This commit is contained in:
Mickey Kay
2014-01-16 13:40:07 -08:00
parent 5fe327f54c
commit bbc4641551
26 changed files with 7516 additions and 2138 deletions
+31
View File
@@ -0,0 +1,31 @@
/**
* jQuery that runs in the WordPress admin
*
* @since 1.0.0
*
* @package Trestle
*/
// Executes when the document is ready
jQuery(document).ready(function() {
// Hide Trestle layout radio buttons
jQuery('.trestle-layout img').next('input[type="radio"]').hide();
// Add radio button functionality to layout icons
jQuery('.trestle-layout img').click(function() {
jQuery(this).next('input[type="radio"]').attr('checked', true);
jQuery('.trestle-layout img').removeClass('checked');
jQuery(this).addClass('checked');
});
// Add drop-down functionality for Post Info & Meta options
if( ! jQuery('#genesis-settings\\[trestle_manual_post_info_meta\\]').is(':checked') ) {
jQuery('.trestle-post-info-meta').hide();
}
jQuery('#genesis-settings\\[trestle_manual_post_info_meta\\]').change(function() {
jQuery('.trestle-post-info-meta').slideToggle();
});
}); /* end of as page load scripts */