From dccf26c3ba690a2578b2e589926b4881f50adbb2 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Sun, 1 Aug 2021 13:45:36 -0400 Subject: [PATCH] Updated functions directory --- functions/custom-header.php | 44 +-- functions/customizer.php | 514 ++++++++++++++++++------------------ functions/jetpack.php | 14 +- functions/mobile-menus.php | 22 +- functions/template-tags.php | 140 +++++----- functions/widget-areas.php | 352 ++++++++++++------------ 6 files changed, 543 insertions(+), 543 deletions(-) diff --git a/functions/custom-header.php b/functions/custom-header.php index 7525653..87f5bf8 100755 --- a/functions/custom-header.php +++ b/functions/custom-header.php @@ -11,37 +11,37 @@ * - * @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() { 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() { ?> 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() { ?>

@@ -123,4 +123,4 @@ function atticus_finch_admin_header_image() {

get_setting( 'blogname' )->transport = 'postMessage'; @@ -27,14 +27,14 @@ function atticus_finch_customize_register( $wp_customize ) { $wp_customize->add_panel( 'atticusfinch', array( - 'title' => __( 'Atticus Finch Theme Options', 'atticus-finch' ), - 'description' => __( 'The Atticus Finch theme has many options. Vist the theme\'s home page for complete instructions.', 'atticus-finch' ), + 'title' => __( 'Portage Theme Options', 'atticus-finch' ), + 'description' => __( 'The Portage theme has many options. Vist the theme\'s home page for complete instructions.', 'atticus-finch' ), 'priority' => 05, ) ); // Widget Areas - $wp_customize->add_section( 'atticus_finch_widget_areas', array( + $wp_customize->add_section( 'portage_widget_areas', array( 'title' => __( 'Widget Areas', 'atticus-finch' ), 'capability' => 'edit_theme_options', 'priority' => 30, @@ -43,92 +43,92 @@ $wp_customize->add_panel( 'atticusfinch', array( ) ); - $wp_customize->add_setting( 'atticus_finch_before_header', array( + $wp_customize->add_setting( 'portage_before_header', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_before_header', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_before_header', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Before Header', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_after_top_menu', array( + $wp_customize->add_setting( 'portage_after_top_menu', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_after_top_menu', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_after_top_menu', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'After Top Menu', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_before_social_media', array( + $wp_customize->add_setting( 'portage_before_social_media', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_before_social_media', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_before_social_media', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Before Social Media', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_before_primary_menu', array( + $wp_customize->add_setting( 'portage_before_primary_menu', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_before_primary_menu', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_before_primary_menu', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Before Primary Menu', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_after_header', array( + $wp_customize->add_setting( 'portage_after_header', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_after_header', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_after_header', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'After Header', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_container_top', array( + $wp_customize->add_setting( 'portage_container_top', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_container_top', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_container_top', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Top of Container', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_before_post_title', array( + $wp_customize->add_setting( 'portage_before_post_title', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_before_post_title', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_before_post_title', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Before Post Title', 'atticus-finch' ), ) ); @@ -136,204 +136,204 @@ $wp_customize->add_panel( 'atticusfinch', array( /* * We've removed this action hook, but let's leave this control in place * in case we find a use for it later. - $wp_customize->add_setting( 'atticus_finch_before_post_content', array( + $wp_customize->add_setting( 'portage_before_post_content', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_before_post_content', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_before_post_content', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Before Post Content', 'atticus-finch' ), ) ); */ - $wp_customize->add_setting( 'atticus_finch_post_top', array( + $wp_customize->add_setting( 'portage_post_top', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_post_top', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_post_top', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Top of Post', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_post_bottom', array( + $wp_customize->add_setting( 'portage_post_bottom', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_post_bottom', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_post_bottom', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Bottom of Post', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_after_post_content', array( + $wp_customize->add_setting( 'portage_after_post_content', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_after_post_content', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_after_post_content', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'After Post Content', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_before_post_meta', array( + $wp_customize->add_setting( 'portage_before_post_meta', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_before_post_meta', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_before_post_meta', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Before Post Meta', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_after_post_meta', array( + $wp_customize->add_setting( 'portage_after_post_meta', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_after_post_meta', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_after_post_meta', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'After Post Meta', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_before_comments', array( + $wp_customize->add_setting( 'portage_before_comments', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_before_comments', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_before_comments', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Before Comments', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_after_comments', array( + $wp_customize->add_setting( 'portage_after_comments', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_after_comments', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_after_comments', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'After Comments', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_before_comment_form', array( + $wp_customize->add_setting( 'portage_before_comment_form', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_before_comment_form', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_before_comment_form', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Before Comment Form', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_after_comment_form', array( + $wp_customize->add_setting( 'portage_after_comment_form', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_after_comment_form', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_after_comment_form', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'After Comment Form', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_container_bottom', array( + $wp_customize->add_setting( 'portage_container_bottom', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_container_bottom', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_container_bottom', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Bottom of Container', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_before_footer_menu', array( + $wp_customize->add_setting( 'portage_before_footer_menu', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_before_footer_menu', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_before_footer_menu', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Before Footer Menu', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_footer_top', array( + $wp_customize->add_setting( 'portage_footer_top', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_footer_top', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_footer_top', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Top of Footer', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_footer_bottom', array( + $wp_customize->add_setting( 'portage_footer_bottom', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_footer_bottom', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_footer_bottom', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'Bottom of Footer', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_after_footer', array( + $wp_customize->add_setting( 'portage_after_footer', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_after_footer', array( - 'section' => 'atticus_finch_widget_areas', + $wp_customize->add_control( 'portage_after_footer', array( + 'section' => 'portage_widget_areas', 'type' => 'checkbox', 'label' => __( 'After Footer', 'atticus-finch' ), ) ); // Post Format Title Options - $wp_customize->add_section( 'atticus_finch_post_format_title_options', array( + $wp_customize->add_section( 'portage_post_format_title_options', array( 'title' => __( 'Post Format Title Options', 'atticus-finch' ), 'capability' => 'edit_theme_options', 'priority' => 10, @@ -341,60 +341,60 @@ $wp_customize->add_panel( 'atticusfinch', array( 'panel' => 'atticusfinch', ) ); - $wp_customize->add_setting( 'atticus_finch_aside_title', array( + $wp_customize->add_setting( 'portage_aside_title', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_aside_title', array( - 'section' => 'atticus_finch_post_format_title_options', + $wp_customize->add_control( 'portage_aside_title', array( + 'section' => 'portage_post_format_title_options', 'type' => 'checkbox', 'label' => __( 'Display title for asides', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_link_title', array( + $wp_customize->add_setting( 'portage_link_title', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_link_title', array( - 'section' => 'atticus_finch_post_format_title_options', + $wp_customize->add_control( 'portage_link_title', array( + 'section' => 'portage_post_format_title_options', 'type' => 'checkbox', 'label' => __( 'Display title for links', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_quote_title', array( + $wp_customize->add_setting( 'portage_quote_title', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_quote_title', array( - 'section' => 'atticus_finch_post_format_title_options', + $wp_customize->add_control( 'portage_quote_title', array( + 'section' => 'portage_post_format_title_options', 'type' => 'checkbox', 'label' => __( 'Display title for quotes', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_status_title', array( + $wp_customize->add_setting( 'portage_status_title', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_status_title', array( - 'section' => 'atticus_finch_post_format_title_options', + $wp_customize->add_control( 'portage_status_title', array( + 'section' => 'portage_post_format_title_options', 'type' => 'checkbox', 'label' => __( 'Display title for statuses', 'atticus-finch' ), ) ); // Post Format Excerpt Options - $wp_customize->add_section( 'atticus_finch_post_format_excerpt_options', array( + $wp_customize->add_section( 'portage_post_format_excerpt_options', array( 'title' => __( 'Post Format Excerpt Options', 'atticus-finch' ), 'capability' => 'edit_theme_options', 'priority' => 20, @@ -402,75 +402,75 @@ $wp_customize->add_panel( 'atticusfinch', array( 'panel' => 'atticusfinch', ) ); - $wp_customize->add_setting( 'atticus_finch_aside_excerpt', array( + $wp_customize->add_setting( 'portage_aside_excerpt', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_aside_excerpt', array( - 'section' => 'atticus_finch_post_format_excerpt_options', + $wp_customize->add_control( 'portage_aside_excerpt', array( + 'section' => 'portage_post_format_excerpt_options', 'type' => 'checkbox', 'label' => __( 'Display excerpt for asides', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_link_excerpt', array( + $wp_customize->add_setting( 'portage_link_excerpt', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_link_excerpt', array( - 'section' => 'atticus_finch_post_format_excerpt_options', + $wp_customize->add_control( 'portage_link_excerpt', array( + 'section' => 'portage_post_format_excerpt_options', 'type' => 'checkbox', 'label' => __( 'Display excerpt for links', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_quote_excerpt', array( + $wp_customize->add_setting( 'portage_quote_excerpt', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_quote_excerpt', array( - 'section' => 'atticus_finch_post_format_excerpt_options', + $wp_customize->add_control( 'portage_quote_excerpt', array( + 'section' => 'portage_post_format_excerpt_options', 'type' => 'checkbox', 'label' => __( 'Display excerpt for quotes', 'atticus-finch' ), ) ); - $wp_customize->add_setting( 'atticus_finch_status_excerpt', array( + $wp_customize->add_setting( 'portage_status_excerpt', array( 'type' => 'theme_mod', 'transport' => 'postMessage', - 'sanitize_callback' => 'atticus_finch_sanitize_checkbox', + 'sanitize_callback' => 'portage_sanitize_checkbox', ) ); - $wp_customize->add_control( 'atticus_finch_status_excerpt', array( - 'section' => 'atticus_finch_post_format_excerpt_options', + $wp_customize->add_control( 'portage_status_excerpt', array( + 'section' => 'portage_post_format_excerpt_options', 'type' => 'checkbox', 'label' => __( 'Display excerpt for statuses', 'atticus-finch' ), ) ); $default_readmore = __( '…read more…', 'atticus-finch' ); - $wp_customize->add_setting( 'atticus_finch_readmore', array( + $wp_customize->add_setting( 'portage_readmore', array( 'type' => 'theme_mod', 'transport' => 'postMessage', 'default' => $default_readmore, - 'sanitize_callback' => 'atticus_finch_sanitize_text', + 'sanitize_callback' => 'portage_sanitize_text', ) ); - $wp_customize->add_control( 'atticus_finch_readmore', array( - 'section' => 'atticus_finch_post_format_excerpt_options', + $wp_customize->add_control( 'portage_readmore', array( + 'section' => 'portage_post_format_excerpt_options', 'type' => 'text', 'label' => __( 'Text for ‘read more’ link (in all excerpts)', 'atticus-finch'), ) ); // Copyright Information - $wp_customize->add_section( 'atticus_finch_copyright', array( + $wp_customize->add_section( 'portage_copyright', array( 'title' => __( 'Copyright Information', 'atticus-finch' ), 'capability' => 'edit_theme_options', 'priority' => 50, @@ -478,7 +478,7 @@ $wp_customize->add_panel( 'atticusfinch', array( 'panel' => 'atticusfinch', ) ); - $wp_customize->add_setting( 'atticus_finch_copyright', array( + $wp_customize->add_setting( 'portage_copyright', array( 'type' => 'theme_mod', 'transport' => 'postMessage', 'sanitize_callback' => 'html', @@ -486,8 +486,8 @@ $wp_customize->add_panel( 'atticusfinch', array( $default_copyright = 'Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.'; - $wp_customize->add_control( 'atticus_finch_copyright', array( - 'section' => 'atticus_finch_copyright', + $wp_customize->add_control( 'portage_copyright', array( + 'section' => 'portage_copyright', 'default' => $default_copyright, 'type' => 'textarea', 'label' => __( 'Enter your copyright information. (HTML is allowed.)', 'atticus-finch' ), @@ -495,7 +495,7 @@ $default_copyright = 'add_setting( 'atticus_finch_excerpt_length', array( + $wp_customize->add_setting( 'portage_excerpt_length', array( 'type' => 'theme_mod', 'transport' => 'postMessage', 'default' => '20', - 'sanitize_callback' => 'atticus_finch_sanitize_excerpt', + 'sanitize_callback' => 'portage_sanitize_excerpt', ) ); - $wp_customize->add_control( 'atticus_finch_excerpt_length', array( - 'section' => 'atticus_finch_misc', + $wp_customize->add_control( 'portage_excerpt_length', array( + 'section' => 'portage_misc', 'type' => 'text', 'label' => __( 'Excerpt length in number of words (maximum = 100)', 'atticus-finch' ), ) ); @@ -900,7 +900,7 @@ $default_copyright = ' 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' ) . '" }); }); '; } -add_action( 'wp_footer', 'atticus_finch_mobile_menus' ); \ No newline at end of file +add_action( 'wp_footer', 'portage_mobile_menus' ); diff --git a/functions/template-tags.php b/functions/template-tags.php index 4bc8582..c18e165 100755 --- a/functions/template-tags.php +++ b/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
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 '
' . get_posts_nav_link(' • ','« Newer Posts','Older Posts;') . '
'; } } // 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 = '
' . get_the_author() . ''; +function portage_pub() { + $portage_author_link = get_author_posts_url( get_the_author_meta( 'ID' ) ); + $portage_author_href = '' . get_the_author() . ''; echo ''; - 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 ''; } // 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 '

' . __( 'You are reading the newest post.', 'atticus-finch' ) . '

'; } else { echo '

' . __( 'Read a newer post:', 'atticus-finch' ) . '

'; @@ -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 '

>' . __( 'You are reading the oldest post.', 'atticus-finch' ) . '

'; } else { echo '

' . __( 'Read an older post:', 'atticus-finch' ) . '

'; @@ -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 '

'; printf(__( 'Link for this article:', 'atticus-finch' ) ); echo '
' . get_the_permalink() . '

'; @@ -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 '

'; printf(__( 'Read the complete article…', 'atticus-finch' ) ); echo '

'; @@ -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' => '', @@ -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 '' . - get_theme_mod( 'atticus_finch_copyright', 'Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.' ) . + get_theme_mod( 'portage_copyright', 'Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.' ) . ''; } - if ( get_theme_mod( 'atticus_finch_print_url' ) == '1' ) { + if ( get_theme_mod( 'portage_print_url' ) == '1' ) { echo ''; printf(__( 'Permalink for this article:', 'atticus-finch' ) ); echo '
' . get_the_permalink() . ''; @@ -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', '

', '

'); } 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 ''; } 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 = 'WordPress'; - $afaf = 'Atticus Finch Theme'; + $afaf = 'Portage Theme'; echo '
'; printf(__( 'Powered by %1$s and the %2$s.', 'atticus-finch' ), $afwp, $afaf ); echo '
'; @@ -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 ''; + echo ''; } } // 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 ''; } - $aftw = get_theme_mod( 'atticus_finch_twitter' ); + $aftw = get_theme_mod( 'portage_twitter' ); if ( !empty( $aftw ) ) { - echo ''; + echo ''; } - $aft2 = get_theme_mod( 'atticus_finch_twitter2' ); + $aft2 = get_theme_mod( 'portage_twitter2' ); if ( !empty( $aft2 ) ) { - echo ''; + echo ''; } - $affb = get_theme_mod( 'atticus_finch_facebook' ); + $affb = get_theme_mod( 'portage_facebook' ); if ( !empty( $affb ) ) { - echo ''; + echo ''; } - $afig = get_theme_mod( 'atticus_finch_instagram' ); + $afig = get_theme_mod( 'portage_instagram' ); if ( !empty( $afig ) ) { - echo ''; + echo ''; } - $afyt = get_theme_mod( 'atticus_finch_youtube' ); + $afyt = get_theme_mod( 'portage_youtube' ); if ( !empty( $afyt ) ) { - echo ''; + echo ''; } - $afyt = get_theme_mod( 'atticus_finch_pinterest' ); + $afyt = get_theme_mod( 'portage_pinterest' ); if ( !empty( $afyt ) ) { - echo ''; + echo ''; } - $afam = get_theme_mod( 'atticus_finch_amazon' ); + $afam = get_theme_mod( 'portage_amazon' ); if ( !empty( $afam ) ) { - echo ''; + echo ''; } } // 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 ''; _e( 'Return to Top', 'atticus-finch' ); echo ''; @@ -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 ''; _e( 'Return to Top', 'atticus-finch' ); echo ''; } else { return; } -} \ No newline at end of file +} diff --git a/functions/widget-areas.php b/functions/widget-areas.php index 58a5991..fe71129 100755 --- a/functions/widget-areas.php +++ b/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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_before_header' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_after_top_menu' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_before_social_media' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_before_primary_menu' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_after_header' ); echo '
'; } } @@ -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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_container_top' ); echo '
'; } } @@ -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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_before_post_title' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_before_post_content' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_post_top' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_post_bottom' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_after_post_content' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_before_post_meta' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_after_post_meta' ); echo '
'; } } @@ -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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_before_comments' ); echo '
'; } } 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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_after_comments' ); echo '
'; } } 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 '
'; - dynamic_sidebar( 'atticus_finch_before_comment_form' ); + if ( is_active_sidebar( 'portage_before_comment_form' ) ) { + echo '
'; + dynamic_sidebar( 'portage_before_comment_form' ); echo '
'; } } @@ -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 '
'; - dynamic_sidebar( 'atticus_finch_after_comment_form' ); + if ( is_active_sidebar( 'portage_after_comment_form' ) ) { + echo '
'; + dynamic_sidebar( 'portage_after_comment_form' ); echo '
'; } } @@ -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 '
'; - 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 '
'; + dynamic_sidebar( 'portage_container_bottom' ); echo '
'; } } 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 '