This repository has been archived by the owner. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Had respond.js loading in the wrong spot, was breaking IE8/7. Added some files for sidebar. Removed old-whatever. We don't do this anymore.
- Loading branch information
andrewmbacon
committed
Jul 22, 2014
1 parent
77d8093
commit 5c053f6
Showing
14 changed files
with
32 additions
and
43 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
// sidebar custom field check. | ||
$sidebar = get_post_meta( get_the_ID(), 'uc_sidebar', true ); | ||
if( !is_active_sidebar( $sidebar ) ){ | ||
foreach(get_post_ancestors(get_the_ID()) as $ancestor){ | ||
$parent_sidebar = get_post_meta( $ancestor, 'uc_sidebar', true ); | ||
$parent_sidebar_children = get_post_meta( $ancestor, 'uc_sidebar_children', true ); | ||
if( is_active_sidebar( $parent_sidebar ) && $parent_sidebar_children != '' && $parent_sidebar_children ){ | ||
$sidebar = $parent_sidebar; | ||
break; | ||
} | ||
} | ||
} | ||
?> |
Oops, something went wrong.