mirror of
https://github.com/10h30/trestle.git
synced 2026-06-05 15:09:35 +09:00
Re-add missing functions.php stuff
This commit is contained in:
@@ -50,21 +50,6 @@ function trestle_header_actions() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*===========================================
|
||||
* Widget Areas
|
||||
===========================================*/
|
||||
|
||||
add_action( 'widgets_init', 'trestle_register_widget_areas' );
|
||||
/**
|
||||
* Register custom widget areas
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
function trestle_register_widget_areas() {
|
||||
|
||||
}
|
||||
|
||||
/*===========================================
|
||||
* Body Classes
|
||||
===========================================*/
|
||||
|
||||
@@ -48,19 +48,20 @@ jQuery(document).ready(function() {
|
||||
target.addClass('toggle-target-' + i );
|
||||
});
|
||||
|
||||
// Toggle widget areas and primary nav
|
||||
jQuery('.site-header .toggle-button').click( function( event ) {
|
||||
event.preventDefault();
|
||||
|
||||
var button = jQuery(this);
|
||||
var targetID = button.attr('id').match(/\d+/);
|
||||
var target = jQuery( '.toggle-target-' + button.attr('id').match(/\d+/) );
|
||||
|
||||
// Toggle buttons
|
||||
button.toggleClass('open');
|
||||
jQuery('.site-header .toggle-button').not(button).removeClass('open');
|
||||
|
||||
// Toggle targets
|
||||
jQuery('.toggle-target-' + targetID).toggleClass('open');
|
||||
jQuery('[class*="toggle-target"]').not('.toggle-target-' + targetID).removeClass('open');
|
||||
target.toggleClass('open');
|
||||
jQuery('[class*="toggle-target"]').not(target).removeClass('open');
|
||||
});
|
||||
|
||||
// Mobile navigation icons
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Trestle sidebar registration and functionality
|
||||
* Trestle widget area registration and functionality
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @package Trestle
|
||||
*/
|
||||
*/
|
||||
|
||||
add_action( 'widgets_init', 'trestle_register_widget_areas' );
|
||||
/**
|
||||
* Register custom widget areas
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
function trestle_register_widget_areas() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user