Browse Source

Updated functions directory

main
Kenneth John Odle 3 years ago
parent
commit
dccf26c3ba
  1. 44
      functions/custom-header.php
  2. 514
      functions/customizer.php
  3. 14
      functions/jetpack.php
  4. 22
      functions/mobile-menus.php
  5. 140
      functions/template-tags.php
  6. 352
      functions/widget-areas.php

44
functions/custom-header.php

@ -11,37 +11,37 @@
</a>
<?php endif; // End header image check. ?>
*
* @package Atticus Finch
* @package Portage
*/
/**
* Set up the WordPress core custom header feature.
*
* @uses atticus_finch_header_style()
* @uses atticus_finch_admin_header_style()
* @uses atticus_finch_admin_header_image()
* @uses portage_header_style()
* @uses portage_admin_header_style()
* @uses portage_admin_header_image()
*/
function atticus_finch_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'atticus_finch_custom_header_args', array(
function portage_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'portage_custom_header_args', array(
'default-image' => '',
'default-text-color' => '000000',
'width' => 1000,
'height' => 250,
'flex-height' => true,
'wp-head-callback' => 'atticus_finch_header_style',
'admin-head-callback' => 'atticus_finch_admin_header_style',
'admin-preview-callback' => 'atticus_finch_admin_header_image',
'wp-head-callback' => 'portage_header_style',
'admin-head-callback' => 'portage_admin_header_style',
'admin-preview-callback' => 'portage_admin_header_image',
) ) );
}
add_action( 'after_setup_theme', 'atticus_finch_custom_header_setup' );
add_action( 'after_setup_theme', 'portage_custom_header_setup' );
if ( ! function_exists( 'atticus_finch_header_style' ) ) :
if ( ! function_exists( 'portage_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog
*
* @see atticus_finch_custom_header_setup().
* @see portage_custom_header_setup().
*/
function atticus_finch_header_style() {
function portage_header_style() {
$header_text_color = get_header_textcolor();
// If no custom options for text are set, let's bail
@ -74,15 +74,15 @@ function atticus_finch_header_style() {
</style>
<?php
}
endif; // atticus_finch_header_style
endif; // portage_header_style
if ( ! function_exists( 'atticus_finch_admin_header_style' ) ) :
if ( ! function_exists( 'portage_admin_header_style' ) ) :
/**
* Styles the header image displayed on the Appearance > Header admin panel.
*
* @see atticus_finch_custom_header_setup().
* @see portage_custom_header_setup().
*/
function atticus_finch_admin_header_style() {
function portage_admin_header_style() {
?>
<style type="text/css">
.appearance_page_custom-header #headimg {
@ -102,15 +102,15 @@ function atticus_finch_admin_header_style() {
</style>
<?php
}
endif; // atticus_finch_admin_header_style
endif; // portage_admin_header_style
if ( ! function_exists( 'atticus_finch_admin_header_image' ) ) :
if ( ! function_exists( 'portage_admin_header_image' ) ) :
/**
* Custom header image markup displayed on the Appearance > Header admin panel.
*
* @see atticus_finch_custom_header_setup().
* @see portage_custom_header_setup().
*/
function atticus_finch_admin_header_image() {
function portage_admin_header_image() {
?>
<div id="headimg">
<h1 class="displaying-header-text">
@ -123,4 +123,4 @@ function atticus_finch_admin_header_image() {
</div>
<?php
}
endif; // atticus_finch_admin_header_image
endif; // portage_admin_header_image

514
functions/customizer.php
File diff suppressed because it is too large
View File

14
functions/jetpack.php

@ -3,28 +3,28 @@
* Jetpack Compatibility File
* See: https://jetpack.me/
*
* @package Atticus Finch
* @package Portage
*/
/**
* Add theme support for Infinite Scroll.
* See: https://jetpack.me/support/infinite-scroll/
*/
function atticus_finch_jetpack_setup() {
function portage_jetpack_setup() {
add_theme_support( 'infinite-scroll', array(
'container' => 'main',
'render' => 'atticus_finch_infinite_scroll_render',
'render' => 'portage_infinite_scroll_render',
'footer' => 'page',
) );
} // end function atticus_finch_jetpack_setup
add_action( 'after_setup_theme', 'atticus_finch_jetpack_setup' );
} // end function portage_jetpack_setup
add_action( 'after_setup_theme', 'portage_jetpack_setup' );
/**
* Custom render function for Infinite Scroll.
*/
function atticus_finch_infinite_scroll_render() {
function portage_infinite_scroll_render() {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content', get_post_format() );
}
} // end function atticus_finch_infinite_scroll_render
} // end function portage_infinite_scroll_render

22
functions/mobile-menus.php

@ -1,26 +1,26 @@
<?php
function atticus_finch_mobile_menus(){
function portage_mobile_menus(){
echo '
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#aboveheadermenu").menumaker({
title: "' . get_theme_mod( 'atticus_finch_top_menu_name' ) . '",
breakpoint: ' . get_theme_mod( 'atticus_finch_top_menu_breakpoint' ) . ',
format: "' . get_theme_mod( 'atticus_finch_top_menu_type' ) . '"
title: "' . get_theme_mod( 'portage_top_menu_name' ) . '",
breakpoint: ' . get_theme_mod( 'portage_top_menu_breakpoint' ) . ',
format: "' . get_theme_mod( 'portage_top_menu_type' ) . '"
});
jQuery("#belowheadermenu").menumaker({
title: "' . get_theme_mod( 'atticus_finch_main_menu_name' ) . '",
breakpoint: ' . get_theme_mod( 'atticus_finch_main_menu_breakpoint' ) . ',
format: "' . get_theme_mod( 'atticus_finch_main_menu_type' ) . '"
title: "' . get_theme_mod( 'portage_main_menu_name' ) . '",
breakpoint: ' . get_theme_mod( 'portage_main_menu_breakpoint' ) . ',
format: "' . get_theme_mod( 'portage_main_menu_type' ) . '"
});
jQuery("#footermenu").menumaker({
title: "' . get_theme_mod( 'atticus_finch_footer_menu_name' ) . '",
breakpoint: ' . get_theme_mod( 'atticus_finch_footer_menu_breakpoint' ) . ',
format: "' . get_theme_mod( 'atticus_finch_footer_menu_type' ) . '"
title: "' . get_theme_mod( 'portage_footer_menu_name' ) . '",
breakpoint: ' . get_theme_mod( 'portage_footer_menu_breakpoint' ) . ',
format: "' . get_theme_mod( 'portage_footer_menu_type' ) . '"
});
});
</script>
';
}
add_action( 'wp_footer', 'atticus_finch_mobile_menus' );
add_action( 'wp_footer', 'portage_mobile_menus' );

140
functions/template-tags.php

@ -4,15 +4,15 @@
*
* Eventually, some of the functionality here could be replaced by core features.
*
* @package Atticus Finch
* @package Portage
*/
if ( ! function_exists( 'atticus_finch_posted_on' ) ) :
if ( ! function_exists( 'portage_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function atticus_finch_posted_on() {
function portage_posted_on() {
$date = get_the_date();
$modd = get_the_modified_date();
@ -53,8 +53,8 @@ endif;
*
* @return bool
*/
function atticus_finch_categorized_blog() {
if ( false === ( $all_the_cool_cats = get_transient( 'atticus_finch_categories' ) ) ) {
function portage_categorized_blog() {
if ( false === ( $all_the_cool_cats = get_transient( 'portage_categories' ) ) ) {
// Create an array of all the categories that are attached to posts.
$all_the_cool_cats = get_categories( array(
'fields' => 'ids',
@ -67,30 +67,30 @@ function atticus_finch_categorized_blog() {
// Count the number of categories that are attached to the posts.
$all_the_cool_cats = count( $all_the_cool_cats );
set_transient( 'atticus_finch_categories', $all_the_cool_cats );
set_transient( 'portage_categories', $all_the_cool_cats );
}
if ( $all_the_cool_cats > 1 ) {
// This blog has more than 1 category so atticus_finch_categorized_blog should return true.
// This blog has more than 1 category so portage_categorized_blog should return true.
return true;
} else {
// This blog has only 1 category so atticus_finch_categorized_blog should return false.
// This blog has only 1 category so portage_categorized_blog should return false.
return false;
}
}
/**
* Flush out the transients used in atticus_finch_categorized_blog.
* Flush out the transients used in portage_categorized_blog.
*/
function atticus_finch_category_transient_flusher() {
function portage_category_transient_flusher() {
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
// Like, beat it. Dig?
delete_transient( 'atticus_finch_categories' );
delete_transient( 'portage_categories' );
}
add_action( 'edit_category', 'atticus_finch_category_transient_flusher' );
add_action( 'save_post', 'atticus_finch_category_transient_flusher' );
add_action( 'edit_category', 'portage_category_transient_flusher' );
add_action( 'save_post', 'portage_category_transient_flusher' );
/* My Stuff */
@ -99,17 +99,17 @@ add_action( 'save_post', 'atticus_finch_category_transient_flusher' );
// Determine whether or not to show page navigation at bottom of index/archive
// Necessary because page navigation is in a styled <div> and should not appear
// on non-paginated pages
function atticus_finch_display_nav() {
$atticus_finch_num_posts = wp_count_posts()->publish;
$atticus_finch_posts_per_page = get_option('posts_per_page ');
if ( $atticus_finch_num_posts > $atticus_finch_posts_per_page) {
function portage_display_nav() {
$portage_num_posts = wp_count_posts()->publish;
$portage_posts_per_page = get_option('posts_per_page ');
if ( $portage_num_posts > $portage_posts_per_page) {
echo '<div id="posts-nav">' . get_posts_nav_link(' &bull; ','&laquo; Newer Posts','Older Posts;') . '</div>';
}
}
// Determine whether to display the comments box
function atticus_finch_comment_display() {
function portage_comment_display() {
$var = get_comments_number();
if ( comments_open() || $var > 0 ) {
comments_template();
@ -125,30 +125,30 @@ function atticus_finch_comment_display() {
// Display the time
// Included here if we need to change it later
function atticus_finch_date() {
function portage_date() {
return get_the_time(get_option('date_format'));
}
// Display publication info as a translatable string in 'content-entry-meta.php'
function atticus_finch_pub() {
$atticus_finch_author_link = get_author_posts_url( get_the_author_meta( 'ID' ) );
$atticus_finch_author_href = '<a href="' . $atticus_finch_author_link . '">' . get_the_author() . '</a>';
function portage_pub() {
$portage_author_link = get_author_posts_url( get_the_author_meta( 'ID' ) );
$portage_author_href = '<a href="' . $portage_author_link . '">' . get_the_author() . '</a>';
echo '<a href="' . get_permalink() . '">';
printf( __( 'Published on: %1$s by %2$s', 'atticus-finch' ), atticus_finch_date(), $atticus_finch_author_href );
printf( __( 'Published on: %1$s by %2$s', 'atticus-finch' ), portage_date(), $portage_author_href );
echo '</a>';
}
// Display category info as a translatable string in 'content-entry-meta.php'
function atticus_finch_cat() {
function portage_cat() {
$gbcat = get_the_category_list( ', ' );
printf( __( 'Categorized under: %s', 'atticus-finch'), $gbcat );
}
// Display tags info as a translatable string in 'content-entry-meta.php'
function atticus_finch_tags() {
function portage_tags() {
$tags_array = has_tag();
if (!empty($tags_array)) {
printf( __( 'Tagged with: %s', 'atticus-finch'), get_the_tag_list('', ', ', '' ) );
@ -159,9 +159,9 @@ function atticus_finch_tags() {
// Display next post link only if a newer post exists
function atticus_finch_next_post_link() {
$atticus_finch_npl = get_next_post_link();
if ( empty ( $atticus_finch_npl ) ) {
function portage_next_post_link() {
$portage_npl = get_next_post_link();
if ( empty ( $portage_npl ) ) {
echo '<p>' . __( 'You are reading the newest post.', 'atticus-finch' ) . '</p>';
} else {
echo '<p>' . __( 'Read a newer post:', 'atticus-finch' ) . '</p>';
@ -171,9 +171,9 @@ function atticus_finch_next_post_link() {
// Display previous post link only if an older post exists
function atticus_finch_prev_post_link() {
$atticus_finch_ppl = get_previous_post_link();
if ( empty ( $atticus_finch_ppl ) ) {
function portage_prev_post_link() {
$portage_ppl = get_previous_post_link();
if ( empty ( $portage_ppl ) ) {
echo '<p>>' . __( 'You are reading the oldest post.', 'atticus-finch' ) . '</p>';
} else {
echo '<p>' . __( 'Read an older post:', 'atticus-finch' ) . '</p>';
@ -183,7 +183,7 @@ function atticus_finch_prev_post_link() {
// Add the URL information when printing
function atticus_finch_print_url() {
function portage_print_url() {
echo '<p class="printonly printurl">';
printf(__( 'Link for this article:', 'atticus-finch' ) );
echo '<br /><span class="printurl-url">' . get_the_permalink() . '<span></p>';
@ -191,7 +191,7 @@ function atticus_finch_print_url() {
// Add a "Read More" box on excerpts
function atticus_finch_read_more() {
function portage_read_more() {
echo '<p class="read-more"><a href="' . get_the_permalink() . '">';
printf(__( 'Read the complete article&hellip;', 'atticus-finch' ) );
echo '</a></p>';
@ -199,7 +199,7 @@ function atticus_finch_read_more() {
// Take care of wp_link_pages
function atticus_finch_link_pages() {
function portage_link_pages() {
$defaults = array(
'before' => '<div id="link-pages">' . __( 'This post has multiple pages:', 'atticus-finch' ),
'after' => '</div>',
@ -217,13 +217,13 @@ function atticus_finch_link_pages() {
// Print options
function atticus_finch_print_options() {
if ( get_theme_mod( 'atticus_finch_print_copyright' ) == '1' ) {
function portage_print_options() {
if ( get_theme_mod( 'portage_print_copyright' ) == '1' ) {
echo '<span class="printonly printcopyright">' .
get_theme_mod( 'atticus_finch_copyright', '<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" id="cc-button" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.' ) .
get_theme_mod( 'portage_copyright', '<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" id="cc-button" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.' ) .
'</span>';
}
if ( get_theme_mod( 'atticus_finch_print_url' ) == '1' ) {
if ( get_theme_mod( 'portage_print_url' ) == '1' ) {
echo '<span class="printonly printurl">';
printf(__( 'Permalink for this article:', 'atticus-finch' ) );
echo '<br /><span class="printurl-url">' . get_the_permalink() . '<span></span>';
@ -232,8 +232,8 @@ function atticus_finch_print_options() {
// Edit post link, if user is logged in
function atticus_finch_edit_post() {
if ( get_theme_mod( 'atticus_finch_edit_post_link' ) == '1' && is_user_logged_in() ) : {
function portage_edit_post() {
if ( get_theme_mod( 'portage_edit_post_link' ) == '1' && is_user_logged_in() ) : {
edit_post_link('Edit this post', '<p class="edit-post">', '</p>');
}
endif;
@ -241,19 +241,19 @@ function atticus_finch_edit_post() {
// Footer options
function atticus_finch_display_footer_copyright() {
if ( get_theme_mod( 'atticus_finch_display_copyright' ) == '1' ) : {
function portage_display_footer_copyright() {
if ( get_theme_mod( 'portage_display_copyright' ) == '1' ) : {
echo '<div id="copyright">' .
get_theme_mod( 'atticus_finch_copyright', '<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" id="cc-button" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.' ) .
get_theme_mod( 'portage_copyright', '<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" id="cc-button" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.' ) .
'</div>';
}
endif;
}
function atticus_finch_display_footer_credits() {
if ( get_theme_mod( 'atticus_finch_display_credits') == '1' ) : {
function portage_display_footer_credits() {
if ( get_theme_mod( 'portage_display_credits') == '1' ) : {
$afwp = '<a href="http://wordpress.org/">WordPress</a>';
$afaf = '<a href="http://d12webdesign.com/">Atticus Finch Theme</a>';
$afaf = '<a href="http://d12webdesign.com/">Portage Theme</a>';
echo '<div id="credits">';
printf(__( 'Powered by %1$s and the %2$s.', 'atticus-finch' ), $afwp, $afaf );
echo '</div>';
@ -263,61 +263,61 @@ function atticus_finch_display_footer_credits() {
// Custom CSS Option
function atticus_finch_custom_css_head() {
$afcss = get_theme_mod( 'atticus_finch_ccss' );
function portage_custom_css_head() {
$afcss = get_theme_mod( 'portage_ccss' );
if ( !empty( $afcss ) ) {
echo '<style type="text/css">/* Atticus Finch Custom CSS */' . "\n" . get_theme_mod( 'atticus_finch_ccss' ) . "\n" . '</style>';
echo '<style type="text/css">/* Portage Custom CSS */' . "\n" . get_theme_mod( 'portage_ccss' ) . "\n" . '</style>';
}
}
// Social Media
function atticus_finch_social_media_display() {
if ( get_theme_mod( 'atticus_finch_rss' ) == '1' ) {
function portage_social_media_display() {
if ( get_theme_mod( 'portage_rss' ) == '1' ) {
echo '<a href="' . site_url() . '/feed" class="sm-rss"><span class="fa fa-rss-square"></span></a>';
}
$aftw = get_theme_mod( 'atticus_finch_twitter' );
$aftw = get_theme_mod( 'portage_twitter' );
if ( !empty( $aftw ) ) {
echo '<a href="' . get_theme_mod( 'atticus_finch_twitter' ) . '" target="_blank" class="sm-twitter"><span class="fa fa-twitter-square"></span></a>';
echo '<a href="' . get_theme_mod( 'portage_twitter' ) . '" target="_blank" class="sm-twitter"><span class="fa fa-twitter-square"></span></a>';
}
$aft2 = get_theme_mod( 'atticus_finch_twitter2' );
$aft2 = get_theme_mod( 'portage_twitter2' );
if ( !empty( $aft2 ) ) {
echo '<a href="' . get_theme_mod( 'atticus_finch_twitter2' ) . '" target="_blank" class="sm-twitter"><span class="fa fa-twitter-square"></span></a>';
echo '<a href="' . get_theme_mod( 'portage_twitter2' ) . '" target="_blank" class="sm-twitter"><span class="fa fa-twitter-square"></span></a>';
}
$affb = get_theme_mod( 'atticus_finch_facebook' );
$affb = get_theme_mod( 'portage_facebook' );
if ( !empty( $affb ) ) {
echo '<a href="' . get_theme_mod( 'atticus_finch_facebook' ) . '" target="_blank" class="sm-facebook"><span class="fa fa-facebook-square"></span></a>';
echo '<a href="' . get_theme_mod( 'portage_facebook' ) . '" target="_blank" class="sm-facebook"><span class="fa fa-facebook-square"></span></a>';
}
$afig = get_theme_mod( 'atticus_finch_instagram' );
$afig = get_theme_mod( 'portage_instagram' );
if ( !empty( $afig ) ) {
echo '<a href="' . get_theme_mod( 'atticus_finch_instagram' ) . '" target="_blank" class="sm-instagram"><span class="fa fa-instagram"></span></a>';
echo '<a href="' . get_theme_mod( 'portage_instagram' ) . '" target="_blank" class="sm-instagram"><span class="fa fa-instagram"></span></a>';
}
$afyt = get_theme_mod( 'atticus_finch_youtube' );
$afyt = get_theme_mod( 'portage_youtube' );
if ( !empty( $afyt ) ) {
echo '<a href="' . get_theme_mod( 'atticus_finch_youtube' ) . '" target="_blank" class="sm-youtube"><span class="fa fa-youtube-square"></span></a>';
echo '<a href="' . get_theme_mod( 'portage_youtube' ) . '" target="_blank" class="sm-youtube"><span class="fa fa-youtube-square"></span></a>';
}
$afyt = get_theme_mod( 'atticus_finch_pinterest' );
$afyt = get_theme_mod( 'portage_pinterest' );
if ( !empty( $afyt ) ) {
echo '<a href="' . get_theme_mod( 'atticus_finch_pinterest' ) . '" target="_blank" class="sm-pinterest"><span class="fa fa-pinterest-square"></span></a>';
echo '<a href="' . get_theme_mod( 'portage_pinterest' ) . '" target="_blank" class="sm-pinterest"><span class="fa fa-pinterest-square"></span></a>';
}
$afam = get_theme_mod( 'atticus_finch_amazon' );
$afam = get_theme_mod( 'portage_amazon' );
if ( !empty( $afam ) ) {
echo '<a href="' . get_theme_mod( 'atticus_finch_amazon' ) . '" target="_blank" class="sm-amazon"><span class="fa fa-amazon"></span></a>';
echo '<a href="' . get_theme_mod( 'portage_amazon' ) . '" target="_blank" class="sm-amazon"><span class="fa fa-amazon"></span></a>';
}
}
// Mobile Top Link Options
function atticus_finch_footer_top_link() {
if ( get_theme_mod( 'atticus_finch_footer_top_link' ) == 1 ) {
function portage_footer_top_link() {
if ( get_theme_mod( 'portage_footer_top_link' ) == 1 ) {
echo '<a href="#" class="top-button">';
_e( 'Return to Top', 'atticus-finch' );
echo '</a>';
@ -326,12 +326,12 @@ function atticus_finch_footer_top_link() {
}
}
function atticus_finch_post_top_link() {
if ( get_theme_mod( 'atticus_finch_post_top_link' ) == 1 ) {
function portage_post_top_link() {
if ( get_theme_mod( 'portage_post_top_link' ) == 1 ) {
echo '<a href="#" class="top-button">';
_e( 'Return to Top', 'atticus-finch' );
echo '</a>';
} else {
return;
}
}
}

352
functions/widget-areas.php

@ -4,56 +4,56 @@
// header.php action hooks
if ( get_theme_mod( 'atticus_finch_before_header') == '1' ) :
add_action('atticus_finch_before_header', 'atticus_finch_before_header_fc' );
function atticus_finch_before_header_fc(){
if ( is_active_sidebar( 'atticus_finch_before_header' ) ) {
echo '<div id="atticus_finch_before_header" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_before_header' );
if ( get_theme_mod( 'portage_before_header') == '1' ) :
add_action('portage_before_header', 'portage_before_header_fc' );
function portage_before_header_fc(){
if ( is_active_sidebar( 'portage_before_header' ) ) {
echo '<div id="portage_before_header" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_before_header' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_after_top_menu') == '1' ) :
add_action('atticus_finch_after_top_menu', 'atticus_finch_after_top_menu_FC' );
function atticus_finch_after_top_menu_FC(){
if ( is_active_sidebar( 'atticus_finch_after_top_menu' ) ) {
echo '<div id="atticus_finch_after_top_menu" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_after_top_menu' );
if ( get_theme_mod( 'portage_after_top_menu') == '1' ) :
add_action('portage_after_top_menu', 'portage_after_top_menu_FC' );
function portage_after_top_menu_FC(){
if ( is_active_sidebar( 'portage_after_top_menu' ) ) {
echo '<div id="portage_after_top_menu" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_after_top_menu' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_before_social_media') == '1' ) :
add_action('atticus_finch_before_social_media', 'atticus_finch_before_social_media_fc' );
function atticus_finch_before_social_media_fc(){
if ( is_active_sidebar( 'atticus_finch_before_social_media' ) ) {
echo '<div id="atticus_finch_before_social_media" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_before_social_media' );
if ( get_theme_mod( 'portage_before_social_media') == '1' ) :
add_action('portage_before_social_media', 'portage_before_social_media_fc' );
function portage_before_social_media_fc(){
if ( is_active_sidebar( 'portage_before_social_media' ) ) {
echo '<div id="portage_before_social_media" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_before_social_media' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_before_primary_menu') == '1' ) :
add_action('atticus_finch_before_primary_menu', 'atticus_finch_before_primary_menu_fc' );
function atticus_finch_before_primary_menu_fc(){
if ( is_active_sidebar( 'atticus_finch_before_primary_menu' ) ) {
echo '<div id="atticus_finch_before_primary_menu" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_before_primary_menu' );
if ( get_theme_mod( 'portage_before_primary_menu') == '1' ) :
add_action('portage_before_primary_menu', 'portage_before_primary_menu_fc' );
function portage_before_primary_menu_fc(){
if ( is_active_sidebar( 'portage_before_primary_menu' ) ) {
echo '<div id="portage_before_primary_menu" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_before_primary_menu' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_after_header') == '1' ) :
add_action('atticus_finch_after_header', 'atticus_finch_after_header_fc' );
function atticus_finch_after_header_fc(){
if ( is_active_sidebar( 'atticus_finch_after_header' ) ) {
echo '<div id="atticus_finch_after_header" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_after_header' );
if ( get_theme_mod( 'portage_after_header') == '1' ) :
add_action('portage_after_header', 'portage_after_header_fc' );
function portage_after_header_fc(){
if ( is_active_sidebar( 'portage_after_header' ) ) {
echo '<div id="portage_after_header" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_after_header' );
echo '</div>';
}
}
@ -61,12 +61,12 @@ endif;
// index.php action hooks
if ( get_theme_mod( 'atticus_finch_container_top') == '1' ) :
add_action('atticus_finch_container_top', 'atticus_finch_container_top_fc' );
function atticus_finch_container_top_fc(){
if ( is_active_sidebar( 'atticus_finch_container_top' ) ) {
echo '<div id="atticus_finch_container_top" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_container_top' );
if ( get_theme_mod( 'portage_container_top') == '1' ) :
add_action('portage_container_top', 'portage_container_top_fc' );
function portage_container_top_fc(){
if ( is_active_sidebar( 'portage_container_top' ) ) {
echo '<div id="portage_container_top" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_container_top' );
echo '</div><div class="clear"></div>';
}
}
@ -74,78 +74,78 @@ endif;
// content.php action hooks
if ( get_theme_mod( 'atticus_finch_before_post_title') == '1' ) :
add_action('atticus_finch_before_post_title', 'atticus_finch_before_post_title_fc' );
function atticus_finch_before_post_title_fc(){
if ( is_active_sidebar( 'atticus_finch_before_post_title' ) ) {
echo '<div id="atticus_finch_before_post_title" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_before_post_title' );
if ( get_theme_mod( 'portage_before_post_title') == '1' ) :
add_action('portage_before_post_title', 'portage_before_post_title_fc' );
function portage_before_post_title_fc(){
if ( is_active_sidebar( 'portage_before_post_title' ) ) {
echo '<div id="portage_before_post_title" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_before_post_title' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_before_post_content') == '1' ) :
add_action('atticus_finch_before_post_content', 'atticus_finch_before_post_content_fc' );
function atticus_finch_before_post_content_fc(){
if ( is_active_sidebar( 'atticus_finch_before_post_content' ) ) {
echo '<div id="atticus_finch_before_post_content" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_before_post_content' );
if ( get_theme_mod( 'portage_before_post_content') == '1' ) :
add_action('portage_before_post_content', 'portage_before_post_content_fc' );
function portage_before_post_content_fc(){
if ( is_active_sidebar( 'portage_before_post_content' ) ) {
echo '<div id="portage_before_post_content" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_before_post_content' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_post_top') == '1' ) :
add_action('atticus_finch_post_top', 'atticus_finch_post_top_fc' );
function atticus_finch_post_top_fc(){
if ( is_active_sidebar( 'atticus_finch_post_top' ) ) {
echo '<div id="atticus_finch_post_top" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_post_top' );
if ( get_theme_mod( 'portage_post_top') == '1' ) :
add_action('portage_post_top', 'portage_post_top_fc' );
function portage_post_top_fc(){
if ( is_active_sidebar( 'portage_post_top' ) ) {
echo '<div id="portage_post_top" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_post_top' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_post_bottom') == '1' ) :
add_action('atticus_finch_post_bottom', 'atticus_finch_post_bottom_fc' );
function atticus_finch_post_bottom_fc(){
if ( is_active_sidebar( 'atticus_finch_post_bottom' ) ) {
echo '<div id="atticus_finch_post_bottom" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_post_bottom' );
if ( get_theme_mod( 'portage_post_bottom') == '1' ) :
add_action('portage_post_bottom', 'portage_post_bottom_fc' );
function portage_post_bottom_fc(){
if ( is_active_sidebar( 'portage_post_bottom' ) ) {
echo '<div id="portage_post_bottom" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_post_bottom' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_after_post_content') == '1' ) :
add_action('atticus_finch_after_post_content', 'atticus_finch_after_post_content_fc' );
function atticus_finch_after_post_content_fc(){
if ( is_active_sidebar( 'atticus_finch_after_post_content' ) ) {
echo '<div id="atticus_finch_after_post_content" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_after_post_content' );
if ( get_theme_mod( 'portage_after_post_content') == '1' ) :
add_action('portage_after_post_content', 'portage_after_post_content_fc' );
function portage_after_post_content_fc(){
if ( is_active_sidebar( 'portage_after_post_content' ) ) {
echo '<div id="portage_after_post_content" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_after_post_content' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_before_post_meta') == '1' ) :
add_action('atticus_finch_before_post_meta', 'atticus_finch_before_post_meta_fc' );
function atticus_finch_before_post_meta_fc(){
if ( is_active_sidebar( 'atticus_finch_before_post_meta' ) ) {
echo '<div id="atticus_finch_before_post_meta" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_before_post_meta' );
if ( get_theme_mod( 'portage_before_post_meta') == '1' ) :
add_action('portage_before_post_meta', 'portage_before_post_meta_fc' );
function portage_before_post_meta_fc(){
if ( is_active_sidebar( 'portage_before_post_meta' ) ) {
echo '<div id="portage_before_post_meta" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_before_post_meta' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_after_post_meta') == '1' ) :
add_action('atticus_finch_after_post_meta', 'atticus_finch_after_post_meta_fc' );
function atticus_finch_after_post_meta_fc(){
if ( is_active_sidebar( 'atticus_finch_after_post_meta' ) ) {
echo '<div id="atticus_finch_after_post_meta" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_after_post_meta' );
if ( get_theme_mod( 'portage_after_post_meta') == '1' ) :
add_action('portage_after_post_meta', 'portage_after_post_meta_fc' );
function portage_after_post_meta_fc(){
if ( is_active_sidebar( 'portage_after_post_meta' ) ) {
echo '<div id="portage_after_post_meta" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_after_post_meta' );
echo '</div>';
}
}
@ -153,35 +153,35 @@ endif;
// comments.php action hooks
if ( get_theme_mod( 'atticus_finch_before_comments') == '1' ) :
add_action('atticus_finch_before_comments', 'atticus_finch_before_comments_fc' );
function atticus_finch_before_comments_fc(){
if ( is_active_sidebar( 'atticus_finch_before_comments' ) ) {
echo '<div id="atticus_finch_before_comments" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_before_comments' );
if ( get_theme_mod( 'portage_before_comments') == '1' ) :
add_action('portage_before_comments', 'portage_before_comments_fc' );
function portage_before_comments_fc(){
if ( is_active_sidebar( 'portage_before_comments' ) ) {
echo '<div id="portage_before_comments" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_before_comments' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_after_comments') == '1' ) :
add_action('atticus_finch_after_comments', 'atticus_finch_after_comments_fc' );
function atticus_finch_after_comments_fc(){
if ( is_active_sidebar( 'atticus_finch_after_comments' ) ) {
echo '<div id="atticus_finch_after_comments" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_after_comments' );
if ( get_theme_mod( 'portage_after_comments') == '1' ) :
add_action('portage_after_comments', 'portage_after_comments_fc' );
function portage_after_comments_fc(){
if ( is_active_sidebar( 'portage_after_comments' ) ) {
echo '<div id="portage_after_comments" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_after_comments' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_before_comment_form') == '1' ) :
add_action('atticus_finch_before_comment_form', 'atticus_finch_before_comment_form_fc' );
function atticus_finch_before_comment_form_fc(){
if ( get_theme_mod( 'portage_before_comment_form') == '1' ) :
add_action('portage_before_comment_form', 'portage_before_comment_form_fc' );
function portage_before_comment_form_fc(){
if ( comments_open() ) : {
if ( is_active_sidebar( 'atticus_finch_before_comment_form' ) ) {
echo '<div id="atticus_finch_before_comment_form" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_before_comment_form' );
if ( is_active_sidebar( 'portage_before_comment_form' ) ) {
echo '<div id="portage_before_comment_form" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_before_comment_form' );
echo '</div>';
}
}
@ -189,13 +189,13 @@ function atticus_finch_before_comment_form_fc(){
}
endif;
if ( get_theme_mod( 'atticus_finch_after_comment_form') == '1' ) :
add_action('atticus_finch_after_comment_form', 'atticus_finch_after_comment_form_fc' );
function atticus_finch_after_comment_form_fc(){
if ( get_theme_mod( 'portage_after_comment_form') == '1' ) :
add_action('portage_after_comment_form', 'portage_after_comment_form_fc' );
function portage_after_comment_form_fc(){
if (comments_open() ) : {
if ( is_active_sidebar( 'atticus_finch_after_comment_form' ) ) {
echo '<div id="atticus_finch_after_comment_form" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_after_comment_form' );
if ( is_active_sidebar( 'portage_after_comment_form' ) ) {
echo '<div id="portage_after_comment_form" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_after_comment_form' );
echo '</div>';
}
}
@ -205,56 +205,56 @@ endif;
// footer.php action hooks
if ( get_theme_mod( 'atticus_finch_container_bottom') == '1' ) :
add_action('atticus_finch_container_bottom', 'atticus_finch_container_bottom_fc' );
function atticus_finch_container_bottom_fc(){
if ( is_active_sidebar( 'atticus_finch_container_bottom' ) ) {
echo '<div class="clear"></div><div id="atticus_finch_container_bottom" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_container_bottom' );
if ( get_theme_mod( 'portage_container_bottom') == '1' ) :
add_action('portage_container_bottom', 'portage_container_bottom_fc' );
function portage_container_bottom_fc(){
if ( is_active_sidebar( 'portage_container_bottom' ) ) {
echo '<div class="clear"></div><div id="portage_container_bottom" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_container_bottom' );
echo '</div><div class="clear"></div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_before_footer_menu') == '1' ) :
add_action('atticus_finch_before_footer_menu', 'atticus_finch_before_footer_menu_fc' );
function atticus_finch_before_footer_menu_fc(){
if ( is_active_sidebar( 'atticus_finch_before_footer_menu' ) ) {
echo '<div id="atticus_finch_before_footer_menu" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_before_footer_menu' );
if ( get_theme_mod( 'portage_before_footer_menu') == '1' ) :
add_action('portage_before_footer_menu', 'portage_before_footer_menu_fc' );
function portage_before_footer_menu_fc(){
if ( is_active_sidebar( 'portage_before_footer_menu' ) ) {
echo '<div id="portage_before_footer_menu" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_before_footer_menu' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_footer_top') == '1' ) :
add_action('atticus_finch_footer_top', 'atticus_finch_footer_top_fc' );
function atticus_finch_footer_top_fc(){
if ( is_active_sidebar( 'atticus_finch_footer_top' ) ) {
echo '<div id="atticus_finch_footer_top" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_footer_top' );
if ( get_theme_mod( 'portage_footer_top') == '1' ) :
add_action('portage_footer_top', 'portage_footer_top_fc' );
function portage_footer_top_fc(){
if ( is_active_sidebar( 'portage_footer_top' ) ) {
echo '<div id="portage_footer_top" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_footer_top' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_footer_bottom') == '1' ) :
add_action('atticus_finch_footer_bottom', 'atticus_finch_footer_bottom_fc' );
function atticus_finch_footer_bottom_fc(){
if ( is_active_sidebar( 'atticus_finch_footer_bottom' ) ) {
echo '<div id="atticus_finch_footer_bottom" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_footer_bottom' );
if ( get_theme_mod( 'portage_footer_bottom') == '1' ) :
add_action('portage_footer_bottom', 'portage_footer_bottom_fc' );
function portage_footer_bottom_fc(){
if ( is_active_sidebar( 'portage_footer_bottom' ) ) {
echo '<div id="portage_footer_bottom" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_footer_bottom' );
echo '</div>';
}
}
endif;
if ( get_theme_mod( 'atticus_finch_after_footer') == '1' ) :
add_action('atticus_finch_after_footer', 'atticus_finch_after_footer_fc' );
function atticus_finch_after_footer_fc(){
if ( is_active_sidebar( 'atticus_finch_after_footer' ) ) {
echo '<div id="atticus_finch_after_footer" class="atticus-finch-action-hook">';
dynamic_sidebar( 'atticus_finch_after_footer' );
if ( get_theme_mod( 'portage_after_footer') == '1' ) :
add_action('portage_after_footer', 'portage_after_footer_fc' );
function portage_after_footer_fc(){
if ( is_active_sidebar( 'portage_after_footer' ) ) {
echo '<div id="portage_after_footer" class="atticus-finch-action-hook">';
dynamic_sidebar( 'portage_after_footer' );
echo '</div>';
}
}
@ -266,10 +266,10 @@ function greybox_action_hook_widgets() {
// Header widgets
if ( get_theme_mod( 'atticus_finch_before_header') == '1' ) :
if ( get_theme_mod( 'portage_before_header') == '1' ) :
register_sidebar( array(
'name' => 'Before Header',
'id' => 'atticus_finch_before_header',
'id' => 'portage_before_header',
'description' => __( 'Widgets in this area will be shown on all posts and pages just above the header and the "above header menu" (if you are using one).', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-header-widget">',
'after_widget' => '</div>',
@ -278,10 +278,10 @@ if ( get_theme_mod( 'atticus_finch_before_header') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_after_top_menu') == '1' ) :
if ( get_theme_mod( 'portage_after_top_menu') == '1' ) :
register_sidebar( array(
'name' => 'After Top Menu',
'id' => 'atticus_finch_after_top_menu',
'id' => 'portage_after_top_menu',
'description' => __( 'Widgets in this area will be shown on all posts and pages below the top menu and above the site name.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-top-menu-widget">',
'after_widget' => '</div>',
@ -290,10 +290,10 @@ if ( get_theme_mod( 'atticus_finch_after_top_menu') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_before_social_media') == '1' ) :
if ( get_theme_mod( 'portage_before_social_media') == '1' ) :
register_sidebar( array(
'name' => 'Before Social Media',
'id' => 'atticus_finch_before_social_media',
'id' => 'portage_before_social_media',
'description' => __( 'Widgets in this area will be shown on all posts and pages to the left of the title and to the right of the social media menu.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-social-media-widget">',
'after_widget' => '</div>',
@ -302,10 +302,10 @@ if ( get_theme_mod( 'atticus_finch_before_social_media') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_before_primary_menu') == '1' ) :
if ( get_theme_mod( 'portage_before_primary_menu') == '1' ) :
register_sidebar( array(
'name' => 'Before Primary Menu',
'id' => 'atticus_finch_before_primary_menu',
'id' => 'portage_before_primary_menu',
'description' => __( 'Widgets in this area will be shown on all posts and pages above the primary menu.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-primary-menu-widget">',
'after_widget' => '</div>',
@ -314,10 +314,10 @@ if ( get_theme_mod( 'atticus_finch_before_primary_menu') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_after_header') == '1' ) :
if ( get_theme_mod( 'portage_after_header') == '1' ) :
register_sidebar( array(
'name' => 'After Header',
'id' => 'atticus_finch_after_header',
'id' => 'portage_after_header',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the header and before the main content and sidebar.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-header-widget">',
'after_widget' => '</div>',
@ -328,10 +328,10 @@ endif;
// Index widgets
if ( get_theme_mod( 'atticus_finch_container_top') == '1' ) :
if ( get_theme_mod( 'portage_container_top') == '1' ) :
register_sidebar( array(
'name' => 'Top of Container',
'id' => 'atticus_finch_container_top',
'id' => 'portage_container_top',
'description' => __( 'Widgets in this area will be shown on all posts and pages above the sidebar and content.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-container-top-widget">',
'after_widget' => '</div>',
@ -342,10 +342,10 @@ endif;
// Content widgets
if ( get_theme_mod( 'atticus_finch_before_post_title') == '1' ) :
if ( get_theme_mod( 'portage_before_post_title') == '1' ) :
register_sidebar( array(
'name' => 'Before Post Title',
'id' => 'atticus_finch_before_post_title',
'id' => 'portage_before_post_title',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the post title.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-post-title-widget">',
'after_widget' => '</div>',
@ -354,10 +354,10 @@ if ( get_theme_mod( 'atticus_finch_before_post_title') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_before_post_content') == '1' ) :
if ( get_theme_mod( 'portage_before_post_content') == '1' ) :
register_sidebar( array(
'name' => 'Before Post Content',
'id' => 'atticus_finch_before_post_content',
'id' => 'portage_before_post_content',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the title and before the post content.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-post-content-widget">',
'after_widget' => '</div>',
@ -366,10 +366,10 @@ if ( get_theme_mod( 'atticus_finch_before_post_content') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_post_top') == '1' ) :
if ( get_theme_mod( 'portage_post_top') == '1' ) :
register_sidebar( array(
'name' => 'Top of Post',
'id' => 'atticus_finch_post_top',
'id' => 'portage_post_top',
'description' => __( 'Widgets in this area will be shown on all posts and pages at the top of the post.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-post-top-widget">',
'after_widget' => '</div>',
@ -378,10 +378,10 @@ if ( get_theme_mod( 'atticus_finch_post_top') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_post_bottom') == '1' ) :
if ( get_theme_mod( 'portage_post_bottom') == '1' ) :
register_sidebar( array(
'name' => 'Bottom of Post',
'id' => 'atticus_finch_post_bottom',
'id' => 'portage_post_bottom',
'description' => __( 'Widgets in this area will be shown on all posts and pages at the bottom of the post.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-post-bottom-widget">',
'after_widget' => '</div>',
@ -390,10 +390,10 @@ if ( get_theme_mod( 'atticus_finch_post_bottom') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_after_post_content') == '1' ) :
if ( get_theme_mod( 'portage_after_post_content') == '1' ) :
register_sidebar( array(
'name' => 'After Post Content',
'id' => 'atticus_finch_after_post_content',
'id' => 'portage_after_post_content',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the post content.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-post-content-widget">',
'after_widget' => '</div>',
@ -402,10 +402,10 @@ if ( get_theme_mod( 'atticus_finch_after_post_content') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_before_post_meta') == '1' ) :
if ( get_theme_mod( 'portage_before_post_meta') == '1' ) :
register_sidebar( array(
'name' => 'Before Post Meta',
'id' => 'atticus_finch_before_post_meta',
'id' => 'portage_before_post_meta',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the post meta.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-post-meta-widget">',
'after_widget' => '</div>',
@ -414,10 +414,10 @@ if ( get_theme_mod( 'atticus_finch_before_post_meta') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_after_post_meta') == '1' ) :
if ( get_theme_mod( 'portage_after_post_meta') == '1' ) :
register_sidebar( array(
'name' => 'After Post Meta',
'id' => 'atticus_finch_after_post_meta',
'id' => 'portage_after_post_meta',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the post meta.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-post-meta-widget">',
'after_widget' => '</div>',
@ -428,10 +428,10 @@ endif;
// Comments widgets
if ( get_theme_mod( 'atticus_finch_before_comments') == '1' ) :
if ( get_theme_mod( 'portage_before_comments') == '1' ) :
register_sidebar( array(
'name' => 'Before Comments',
'id' => 'atticus_finch_before_comments',
'id' => 'portage_before_comments',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the comments.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-comments-widget">',
'after_widget' => '</div>',
@ -440,10 +440,10 @@ if ( get_theme_mod( 'atticus_finch_before_comments') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_after_comments') == '1' ) :
if ( get_theme_mod( 'portage_after_comments') == '1' ) :
register_sidebar( array(
'name' => 'After Comments',
'id' => 'atticus_finch_after_comments',
'id' => 'portage_after_comments',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the comments.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-comments-widget">',
'after_widget' => '</div>',
@ -452,10 +452,10 @@ if ( get_theme_mod( 'atticus_finch_after_comments') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_before_comment_form') == '1' ) :
if ( get_theme_mod( 'portage_before_comment_form') == '1' ) :
register_sidebar( array(
'name' => 'Before Comment Form',
'id' => 'atticus_finch_before_comment_form',
'id' => 'portage_before_comment_form',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the comment form.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-comment-form-widget">',
'after_widget' => '</div>',
@ -464,10 +464,10 @@ if ( get_theme_mod( 'atticus_finch_before_comment_form') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_after_comment_form') == '1' ) :
if ( get_theme_mod( 'portage_after_comment_form') == '1' ) :
register_sidebar( array(
'name' => 'After Comment Form',
'id' => 'atticus_finch_after_comment_form',
'id' => 'portage_after_comment_form',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the comment form.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-comment-form-widget">',
'after_widget' => '</div>',
@ -478,10 +478,10 @@ endif;
// Footer widgets
if ( get_theme_mod( 'atticus_finch_container_bottom') == '1' ) :
if ( get_theme_mod( 'portage_container_bottom') == '1' ) :
register_sidebar( array(
'name' => 'Bottom of Container',
'id' => 'atticus_finch_container_bottom',
'id' => 'portage_container_bottom',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the footer.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-container-bottom-widget">',
'after_widget' => '</div>',
@ -490,10 +490,10 @@ if ( get_theme_mod( 'atticus_finch_container_bottom') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_before_footer_menu') == '1' ) :
if ( get_theme_mod( 'portage_before_footer_menu') == '1' ) :
register_sidebar( array(
'name' => 'Before Footer Menu',
'id' => 'atticus_finch_before_footer_menu',
'id' => 'portage_before_footer_menu',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the footer menu.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-footer-menu-widget">',
'after_widget' => '</div>',
@ -502,10 +502,10 @@ if ( get_theme_mod( 'atticus_finch_before_footer_menu') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_footer_top') == '1' ) :
if ( get_theme_mod( 'portage_footer_top') == '1' ) :
register_sidebar( array(
'name' => 'Footer Top',
'id' => 'atticus_finch_footer_top',
'id' => 'portage_footer_top',
'description' => __( 'Widgets in this area will be shown on all posts and pages at the top of the footer.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-footer-top-widget">',
'after_widget' => '</div>',
@ -514,10 +514,10 @@ if ( get_theme_mod( 'atticus_finch_footer_top') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_footer_bottom') == '1' ) :
if ( get_theme_mod( 'portage_footer_bottom') == '1' ) :
register_sidebar( array(
'name' => 'Footer Bottom',
'id' => 'atticus_finch_footer_bottom',
'id' => 'portage_footer_bottom',
'description' => __( 'Widgets in this area will be shown on all posts and pages at the bottom of the footer.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-footer-bottom-widget">',
'after_widget' => '</div>',
@ -526,10 +526,10 @@ if ( get_theme_mod( 'atticus_finch_footer_bottom') == '1' ) :
) );
endif;
if ( get_theme_mod( 'atticus_finch_after_footer') == '1' ) :
if ( get_theme_mod( 'portage_after_footer') == '1' ) :
register_sidebar( array(
'name' => 'After Footer',
'id' => 'atticus_finch_after_footer',
'id' => 'portage_after_footer',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the footer.', 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-footer-widget">',
'after_widget' => '</div>',

Loading…
Cancel
Save