Compare commits

...

3 Commits

Author SHA1 Message Date
6a75da7aae Changed namespace in functions files 2021-08-01 16:13:48 -04:00
5b7c2f0cd6 Centered footer menu 2021-08-01 16:01:29 -04:00
5421708bd5 Centered social media menu 2021-08-01 15:56:02 -04:00
6 changed files with 184 additions and 181 deletions

View File

@ -1,6 +1,6 @@
<?php
/**
* Atticus Finch functions and definitions
* Portage theme functions and definitions
*
* @package Portage
*/
@ -17,7 +17,7 @@ function portage_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* If you're building a theme based on Atticus Finch, use a find and replace
* If you're building a theme based on Portage, use a find and replace
* to change 'portage' to the name of your theme in all the template files
*/
load_theme_textdomain( 'portage', get_template_directory() . '/lang' );

View File

@ -26,20 +26,20 @@ function portage_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
$wp_customize->add_panel( 'atticusfinch', array(
'title' => __( 'Portage Theme Options', 'atticus-finch' ),
'description' => __( 'The Portage theme has many options. Vist the theme\'s <a href="http://www.example.com/">home page</a> for complete instructions.', 'atticus-finch' ),
$wp_customize->add_panel( 'portage', array(
'title' => __( 'Portage Theme Options', 'portage' ),
'description' => __( 'The Portage theme has many options. Vist the theme\'s <a href="http://www.example.com/">home page</a> for complete instructions.', 'portage' ),
'priority' => 05,
) );
// Widget Areas
$wp_customize->add_section( 'portage_widget_areas', array(
'title' => __( 'Widget Areas', 'atticus-finch' ),
'title' => __( 'Widget Areas', 'portage' ),
'capability' => 'edit_theme_options',
'priority' => 30,
'description' => __( 'Select which action hook widget areas you would like to activate.', 'atticus-finch' ),
'panel' => 'atticusfinch',
'description' => __( 'Select which action hook widget areas you would like to activate.', 'portage' ),
'panel' => 'portage',
) );
@ -52,7 +52,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_before_header', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Before Header', 'atticus-finch' ),
'label' => __( 'Before Header', 'portage' ),
) );
@ -65,7 +65,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_after_top_menu', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'After Top Menu', 'atticus-finch' ),
'label' => __( 'After Top Menu', 'portage' ),
) );
@ -78,7 +78,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_before_social_media', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Before Social Media', 'atticus-finch' ),
'label' => __( 'Before Social Media', 'portage' ),
) );
@ -91,7 +91,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_before_primary_menu', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Before Primary Menu', 'atticus-finch' ),
'label' => __( 'Before Primary Menu', 'portage' ),
) );
@ -104,7 +104,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_after_header', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'After Header', 'atticus-finch' ),
'label' => __( 'After Header', 'portage' ),
) );
@ -117,7 +117,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_container_top', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Top of Container', 'atticus-finch' ),
'label' => __( 'Top of Container', 'portage' ),
) );
@ -130,7 +130,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_before_post_title', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Before Post Title', 'atticus-finch' ),
'label' => __( 'Before Post Title', 'portage' ),
) );
/*
@ -145,7 +145,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_before_post_content', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Before Post Content', 'atticus-finch' ),
'label' => __( 'Before Post Content', 'portage' ),
) );
*/
@ -159,7 +159,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_post_top', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Top of Post', 'atticus-finch' ),
'label' => __( 'Top of Post', 'portage' ),
) );
@ -172,7 +172,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_post_bottom', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Bottom of Post', 'atticus-finch' ),
'label' => __( 'Bottom of Post', 'portage' ),
) );
@ -185,7 +185,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_after_post_content', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'After Post Content', 'atticus-finch' ),
'label' => __( 'After Post Content', 'portage' ),
) );
@ -198,7 +198,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_before_post_meta', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Before Post Meta', 'atticus-finch' ),
'label' => __( 'Before Post Meta', 'portage' ),
) );
@ -211,7 +211,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_after_post_meta', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'After Post Meta', 'atticus-finch' ),
'label' => __( 'After Post Meta', 'portage' ),
) );
@ -224,7 +224,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_before_comments', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Before Comments', 'atticus-finch' ),
'label' => __( 'Before Comments', 'portage' ),
) );
@ -237,7 +237,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_after_comments', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'After Comments', 'atticus-finch' ),
'label' => __( 'After Comments', 'portage' ),
) );
@ -250,7 +250,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_before_comment_form', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Before Comment Form', 'atticus-finch' ),
'label' => __( 'Before Comment Form', 'portage' ),
) );
@ -263,7 +263,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_after_comment_form', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'After Comment Form', 'atticus-finch' ),
'label' => __( 'After Comment Form', 'portage' ),
) );
@ -276,7 +276,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_container_bottom', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Bottom of Container', 'atticus-finch' ),
'label' => __( 'Bottom of Container', 'portage' ),
) );
@ -289,7 +289,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_before_footer_menu', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Before Footer Menu', 'atticus-finch' ),
'label' => __( 'Before Footer Menu', 'portage' ),
) );
@ -302,7 +302,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_footer_top', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Top of Footer', 'atticus-finch' ),
'label' => __( 'Top of Footer', 'portage' ),
) );
@ -315,7 +315,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_footer_bottom', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'Bottom of Footer', 'atticus-finch' ),
'label' => __( 'Bottom of Footer', 'portage' ),
) );
@ -328,17 +328,17 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_after_footer', array(
'section' => 'portage_widget_areas',
'type' => 'checkbox',
'label' => __( 'After Footer', 'atticus-finch' ),
'label' => __( 'After Footer', 'portage' ),
) );
// Post Format Title Options
$wp_customize->add_section( 'portage_post_format_title_options', array(
'title' => __( 'Post Format Title Options', 'atticus-finch' ),
'title' => __( 'Post Format Title Options', 'portage' ),
'capability' => 'edit_theme_options',
'priority' => 10,
'description' => __('Select whether titles should appear for various post formats.', 'atticus-finch'),
'panel' => 'atticusfinch',
'description' => __('Select whether titles should appear for various post formats.', 'portage'),
'panel' => 'portage',
) );
$wp_customize->add_setting( 'portage_aside_title', array(
@ -350,7 +350,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_aside_title', array(
'section' => 'portage_post_format_title_options',
'type' => 'checkbox',
'label' => __( 'Display title for asides', 'atticus-finch' ),
'label' => __( 'Display title for asides', 'portage' ),
) );
@ -363,7 +363,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_link_title', array(
'section' => 'portage_post_format_title_options',
'type' => 'checkbox',
'label' => __( 'Display title for links', 'atticus-finch' ),
'label' => __( 'Display title for links', 'portage' ),
) );
@ -376,7 +376,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_quote_title', array(
'section' => 'portage_post_format_title_options',
'type' => 'checkbox',
'label' => __( 'Display title for quotes', 'atticus-finch' ),
'label' => __( 'Display title for quotes', 'portage' ),
) );
@ -389,17 +389,17 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_status_title', array(
'section' => 'portage_post_format_title_options',
'type' => 'checkbox',
'label' => __( 'Display title for statuses', 'atticus-finch' ),
'label' => __( 'Display title for statuses', 'portage' ),
) );
// Post Format Excerpt Options
$wp_customize->add_section( 'portage_post_format_excerpt_options', array(
'title' => __( 'Post Format Excerpt Options', 'atticus-finch' ),
'title' => __( 'Post Format Excerpt Options', 'portage' ),
'capability' => 'edit_theme_options',
'priority' => 20,
'description' => __('By default, the aside, link, quote, and statu post format will display full content on the home page. You can choose to show excerpts instead.', 'atticus-finch'),
'panel' => 'atticusfinch',
'description' => __('By default, the aside, link, quote, and statu post format will display full content on the home page. You can choose to show excerpts instead.', 'portage'),
'panel' => 'portage',
) );
$wp_customize->add_setting( 'portage_aside_excerpt', array(
@ -411,7 +411,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_aside_excerpt', array(
'section' => 'portage_post_format_excerpt_options',
'type' => 'checkbox',
'label' => __( 'Display excerpt for asides', 'atticus-finch' ),
'label' => __( 'Display excerpt for asides', 'portage' ),
) );
@ -424,7 +424,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_link_excerpt', array(
'section' => 'portage_post_format_excerpt_options',
'type' => 'checkbox',
'label' => __( 'Display excerpt for links', 'atticus-finch' ),
'label' => __( 'Display excerpt for links', 'portage' ),
) );
@ -437,7 +437,7 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_quote_excerpt', array(
'section' => 'portage_post_format_excerpt_options',
'type' => 'checkbox',
'label' => __( 'Display excerpt for quotes', 'atticus-finch' ),
'label' => __( 'Display excerpt for quotes', 'portage' ),
) );
@ -450,11 +450,11 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_status_excerpt', array(
'section' => 'portage_post_format_excerpt_options',
'type' => 'checkbox',
'label' => __( 'Display excerpt for statuses', 'atticus-finch' ),
'label' => __( 'Display excerpt for statuses', 'portage' ),
) );
$default_readmore = __( '&hellip;read more&hellip;', 'atticus-finch' );
$default_readmore = __( '&hellip;read more&hellip;', 'portage' );
$wp_customize->add_setting( 'portage_readmore', array(
'type' => 'theme_mod',
'transport' => 'postMessage',
@ -465,17 +465,17 @@ $wp_customize->add_panel( 'atticusfinch', array(
$wp_customize->add_control( 'portage_readmore', array(
'section' => 'portage_post_format_excerpt_options',
'type' => 'text',
'label' => __( 'Text for &lsquo;read more&rsquo; link (in all excerpts)', 'atticus-finch'),
'label' => __( 'Text for &lsquo;read more&rsquo; link (in all excerpts)', 'portage'),
) );
// Copyright Information
$wp_customize->add_section( 'portage_copyright', array(
'title' => __( 'Copyright Information', 'atticus-finch' ),
'title' => __( 'Copyright Information', 'portage' ),
'capability' => 'edit_theme_options',
'priority' => 50,
'description' => __( 'Copyright information will appear in the footer, and at the bottom of printed pages. (Make sure you have not disabled this function under "Miscellaneous Options")', 'atticus-finch' ),
'panel' => 'atticusfinch',
'description' => __( 'Copyright information will appear in the footer, and at the bottom of printed pages. (Make sure you have not disabled this function under "Miscellaneous Options")', 'portage' ),
'panel' => 'portage',
) );
$wp_customize->add_setting( 'portage_copyright', array(
@ -490,16 +490,16 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
'section' => 'portage_copyright',
'default' => $default_copyright,
'type' => 'textarea',
'label' => __( 'Enter your copyright information. (HTML is allowed.)', 'atticus-finch' ),
'label' => __( 'Enter your copyright information. (HTML is allowed.)', 'portage' ),
) );
// Print Options
$wp_customize->add_section( 'portage_print', array (
'title' => __( 'Print Options', 'atticus-finch' ),
'title' => __( 'Print Options', 'portage' ),
'capability' => 'edit_theme_options',
'priority' => 40,
'panel' => 'atticusfinch',
'panel' => 'portage',
) );
@ -512,7 +512,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_print_url', array(
'section' => 'portage_print',
'type' => 'checkbox',
'label' => __( 'Print URL information at end of post', 'atticus-finch' ),
'label' => __( 'Print URL information at end of post', 'portage' ),
) );
@ -525,16 +525,16 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_print_copyright', array(
'section' => 'portage_print',
'type' => 'checkbox',
'label' => __( 'Print copyright information at end of post', 'atticus-finch' ),
'label' => __( 'Print copyright information at end of post', 'portage' ),
) );
// Social Media Options
$wp_customize->add_section( 'portage_social_media', array(
'title' => __( 'Social Media Options', 'atticus-finch' ),
'title' => __( 'Social Media Options', 'portage' ),
'capability' => 'edit_theme_options',
'priority' => 90,
'panel' => 'atticusfinch',
'panel' => 'portage',
) );
$wp_customize->add_setting( 'portage_rss', array(
@ -546,7 +546,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_rss', array(
'section' => 'portage_social_media',
'type' => 'checkbox',
'label' => __( 'Display link to RSS feed', 'atticus-finch' ),
'label' => __( 'Display link to RSS feed', 'portage' ),
) );
@ -559,7 +559,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_twitter', array(
'section' => 'portage_social_media',
'type' => 'url',
'label' => __( 'Enter Twitter URL', 'atticus-finch'),
'label' => __( 'Enter Twitter URL', 'portage'),
) );
@ -572,7 +572,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_twitter2', array(
'section' => 'portage_social_media',
'type' => 'url',
'label' => __( 'Enter second Twitter URL', 'atticus-finch'),
'label' => __( 'Enter second Twitter URL', 'portage'),
) );
@ -585,7 +585,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_facebook', array(
'section' => 'portage_social_media',
'type' => 'url',
'label' => __( 'Enter Facebook URL', 'atticus-finch'),
'label' => __( 'Enter Facebook URL', 'portage'),
) );
@ -598,7 +598,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_instagram', array(
'section' => 'portage_social_media',
'type' => 'text',
'label' => __( 'Enter Instagram URL', 'atticus-finch'),
'label' => __( 'Enter Instagram URL', 'portage'),
) );
@ -611,7 +611,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_youtube', array(
'section' => 'portage_social_media',
'type' => 'url',
'label' => __( 'Enter YouTube URL', 'atticus-finch'),
'label' => __( 'Enter YouTube URL', 'portage'),
) );
@ -624,7 +624,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_pinterest', array(
'section' => 'portage_social_media',
'type' => 'url',
'label' => __( 'Enter Pinterest Profile URL', 'atticus-finch'),
'label' => __( 'Enter Pinterest Profile URL', 'portage'),
) );
@ -637,7 +637,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_amazon', array(
'section' => 'portage_social_media',
'type' => 'url',
'label' => __( 'Enter Amazon Wish List URL', 'atticus-finch'),
'label' => __( 'Enter Amazon Wish List URL', 'portage'),
) );
@ -645,11 +645,11 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
// Mobile Menu Options
$wp_customize->add_section( 'portage_mobile_menu_options', array(
'title' => __( 'Mobile Menu Options', 'atticus-finch' ),
'title' => __( 'Mobile Menu Options', 'portage' ),
'capability' => 'edit_theme_options',
'priority' => 110,
'description' => __('Menu settings for mobile appearance. <b>Note:</b> The breakpoint settings will override the "mobile breakpoint" setting.', 'atticus-finch'),
'panel' => 'atticusfinch',
'description' => __('Menu settings for mobile appearance. <b>Note:</b> The breakpoint settings will override the "mobile breakpoint" setting.', 'portage'),
'panel' => 'portage',
) );
// Top Menu Options
@ -662,7 +662,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_top_menu_name', array(
'section' => 'portage_mobile_menu_options',
'type' => 'text',
'label' => __( 'Mobile display name for top menu', 'atticus-finch' ),
'label' => __( 'Mobile display name for top menu', 'portage' ),
) );
$wp_customize->add_setting( 'portage_top_menu_type', array(
@ -680,7 +680,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
'dropdown' => 'Flat Menu',
'multitoggle' => 'Dropdown Menu',
),
'label' => __( 'Display the top menu as', 'atticus-finch' ),
'label' => __( 'Display the top menu as', 'portage' ),
) );
$wp_customize->add_setting( 'portage_top_menu_breakpoint', array(
@ -693,7 +693,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_top_menu_breakpoint', array(
'section' => 'portage_mobile_menu_options',
'type' => 'integer',
'label' => __( 'Breakpoint to display top menu as mobile', 'atticus-finch' ),
'label' => __( 'Breakpoint to display top menu as mobile', 'portage' ),
) );
// Main Menu Options
@ -706,7 +706,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_main_menu_name', array(
'section' => 'portage_mobile_menu_options',
'type' => 'text',
'label' => __( 'Mobile display name for main menu', 'atticus-finch' ),
'label' => __( 'Mobile display name for main menu', 'portage' ),
) );
$wp_customize->add_setting( 'portage_main_menu_type', array(
@ -724,7 +724,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
'dropdown' => 'Flat Menu',
'multitoggle' => 'Dropdown Menu',
),
'label' => __( 'Display the menu menu as', 'atticus-finch' ),
'label' => __( 'Display the menu menu as', 'portage' ),
) );
$wp_customize->add_setting( 'portage_main_menu_breakpoint', array(
@ -737,7 +737,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_main_menu_breakpoint', array(
'section' => 'portage_mobile_menu_options',
'type' => 'integer',
'label' => __( 'Breakpoint to display main menu as mobile', 'atticus-finch' ),
'label' => __( 'Breakpoint to display main menu as mobile', 'portage' ),
) );
// Footer Menu Options
@ -750,7 +750,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_footer_menu_name', array(
'section' => 'portage_mobile_menu_options',
'type' => 'text',
'label' => __( 'Mobile display name for footer menu', 'atticus-finch' ),
'label' => __( 'Mobile display name for footer menu', 'portage' ),
) );
$wp_customize->add_setting( 'portage_footer_menu_type', array(
@ -768,7 +768,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
'dropdown' => 'Flat Menu',
'multitoggle' => 'Dropdown Menu',
),
'label' => __( 'Display the footer menu as', 'atticus-finch' ),
'label' => __( 'Display the footer menu as', 'portage' ),
) );
$wp_customize->add_setting( 'portage_footer_menu_breakpoint', array(
@ -781,16 +781,16 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_footer_menu_breakpoint', array(
'section' => 'portage_mobile_menu_options',
'type' => 'integer',
'label' => __( 'Breakpoint to display footer menu as mobile', 'atticus-finch' ),
'label' => __( 'Breakpoint to display footer menu as mobile', 'portage' ),
) );
// Mobile Options Options
$wp_customize->add_section( 'portage_mobile', array(
'title' => __( 'Mobile Options', 'atticus-finch' ),
'title' => __( 'Mobile Options', 'portage' ),
'capability' => 'edit_theme_options',
'priority' => 100,
'panel' => 'atticusfinch',
'panel' => 'portage',
'description' => 'Fine-tune your mobile appearance',
) );
@ -804,7 +804,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_mobile_breakpoint', array(
'section' => 'portage_mobile',
'type' => 'text',
'label' => __( 'Breakpoint to display mobile version of theme', 'atticus-finch' ),
'label' => __( 'Breakpoint to display mobile version of theme', 'portage' ),
) );
$wp_customize->add_setting( 'portage_post_top_link', array(
@ -817,7 +817,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_post_top_link', array(
'section' => 'portage_mobile',
'type' => 'checkbox',
'label' => __( 'Display \'Return to Top\' link after post content', 'atticus-finch' ),
'label' => __( 'Display \'Return to Top\' link after post content', 'portage' ),
) );
$wp_customize->add_setting( 'portage_footer_top_link', array(
@ -830,16 +830,16 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_footer_top_link', array(
'section' => 'portage_mobile',
'type' => 'checkbox',
'label' => __( 'Display \'Return to Top\' link before footer content', 'atticus-finch' ),
'label' => __( 'Display \'Return to Top\' link before footer content', 'portage' ),
) );
// Miscellaneous Options
$wp_customize->add_section( 'portage_misc', array(
'title' => __( 'Miscellaneous Options', 'atticus-finch' ),
'title' => __( 'Miscellaneous Options', 'portage' ),
'capability' => 'edit_theme_options',
'priority' => 200,
'panel' => 'atticusfinch',
'panel' => 'portage',
) );
$wp_customize->add_setting( 'portage_display_copyright', array(
@ -852,7 +852,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_display_copyright', array(
'section' => 'portage_misc',
'type' => 'checkbox',
'label' => __( 'Display copyright information in footer', 'atticus-finch' ),
'label' => __( 'Display copyright information in footer', 'portage' ),
) );
@ -866,7 +866,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_display_credits', array(
'section' => 'portage_misc',
'type' => 'checkbox',
'label' => __( 'Display developer credits in footer', 'atticus-finch' ),
'label' => __( 'Display developer credits in footer', 'portage' ),
) );
@ -880,7 +880,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_edit_post_link', array(
'section' => 'portage_misc',
'type' => 'checkbox',
'label' => __( 'Display "Edit this post" link if user is logged in', 'atticus-finch' ),
'label' => __( 'Display "Edit this post" link if user is logged in', 'portage' ),
) );
@ -894,7 +894,7 @@ $default_copyright = '<a rel="license" href="http://creativecommons.org/licenses
$wp_customize->add_control( 'portage_excerpt_length', array(
'section' => 'portage_misc',
'type' => 'text',
'label' => __( 'Excerpt length in number of words (maximum = 100)', 'atticus-finch' ),
'label' => __( 'Excerpt length in number of words (maximum = 100)', 'portage' ),
) );
// Preview some of our options

View File

@ -18,25 +18,25 @@ function portage_posted_on() {
$modd = get_the_modified_date();
if ( $modd == $date ) {
printf(__( '<time class="entry-date published updated" datetime="%s">', 'atticus-finch' ), esc_attr( get_the_date( 'c' ) ) );
printf(__( '<time class="entry-date published updated" datetime="%s">', 'portage' ), esc_attr( get_the_date( 'c' ) ) );
echo '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">';
printf(__( 'Posted on %s', 'atticus-finch' ), get_the_date() );
printf(__( 'Posted on %s', 'portage' ), get_the_date() );
$date;
echo '</a></time>';
} else {
printf(__( '<time class="entry-date published updated" datetime="%s">', 'atticus-finch' ), esc_attr( get_the_date( 'c' ) ) );
printf(__( '<time class="entry-date published updated" datetime="%s">', 'portage' ), esc_attr( get_the_date( 'c' ) ) );
echo '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">';
printf(__( 'Posted on %s', 'atticus-finch' ), get_the_date() );
printf(__( 'Posted on %s', 'portage' ), get_the_date() );
$date;
echo '</a>; ';
printf(__( '<time class="updated" datetime="%s">', 'atticus-finch') , esc_attr( get_the_modified_date( 'c' ) ) );
printf(__( 'modified on %s', 'atticus-finch' ), get_the_modified_date() );
printf(__( '<time class="updated" datetime="%s">', 'portage') , esc_attr( get_the_modified_date( 'c' ) ) );
printf(__( 'modified on %s', 'portage' ), get_the_modified_date() );
echo '</time> ';
}
$byline = sprintf(
esc_html_x( 'by %s', 'post author', 'atticus-finch' ),
esc_html_x( 'by %s', 'post author', 'portage' ),
'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
);
@ -116,7 +116,7 @@ function portage_comment_display() {
} else { echo '
<div id="comments">
<div id="respond">
<p>' . __( 'Sorry, but comments are closed.', 'atticus-finch' ) . '</p>
<p>' . __( 'Sorry, but comments are closed.', 'portage' ) . '</p>
</div>
</div>';
}
@ -135,7 +135,7 @@ 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' ), portage_date(), $portage_author_href );
printf( __( 'Published on: %1$s by %2$s', 'portage' ), portage_date(), $portage_author_href );
echo '</a>';
}
@ -143,7 +143,7 @@ function portage_pub() {
// Display category info as a translatable string in 'content-entry-meta.php'
function portage_cat() {
$gbcat = get_the_category_list( ', ' );
printf( __( 'Categorized under: %s', 'atticus-finch'), $gbcat );
printf( __( 'Categorized under: %s', 'portage'), $gbcat );
}
@ -151,9 +151,9 @@ function portage_cat() {
function portage_tags() {
$tags_array = has_tag();
if (!empty($tags_array)) {
printf( __( 'Tagged with: %s', 'atticus-finch'), get_the_tag_list('', ', ', '' ) );
printf( __( 'Tagged with: %s', 'portage'), get_the_tag_list('', ', ', '' ) );
} else {
_e( 'This post has no tags.', 'atticus-finch' );
_e( 'This post has no tags.', 'portage' );
}
}
@ -162,9 +162,9 @@ function portage_tags() {
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>';
echo '<p>' . __( 'You are reading the newest post.', 'portage' ) . '</p>';
} else {
echo '<p>' . __( 'Read a newer post:', 'atticus-finch' ) . '</p>';
echo '<p>' . __( 'Read a newer post:', 'portage' ) . '</p>';
next_post_link();
}
}
@ -174,9 +174,9 @@ function portage_next_post_link() {
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>';
echo '<p>>' . __( 'You are reading the oldest post.', 'portage' ) . '</p>';
} else {
echo '<p>' . __( 'Read an older post:', 'atticus-finch' ) . '</p>';
echo '<p>' . __( 'Read an older post:', 'portage' ) . '</p>';
previous_post_link();
}
}
@ -185,7 +185,7 @@ function portage_prev_post_link() {
// Add the URL information when printing
function portage_print_url() {
echo '<p class="printonly printurl">';
printf(__( 'Link for this article:', 'atticus-finch' ) );
printf(__( 'Link for this article:', 'portage' ) );
echo '<br /><span class="printurl-url">' . get_the_permalink() . '<span></p>';
}
@ -193,7 +193,7 @@ function portage_print_url() {
// Add a "Read More" box on excerpts
function portage_read_more() {
echo '<p class="read-more"><a href="' . get_the_permalink() . '">';
printf(__( 'Read the complete article&hellip;', 'atticus-finch' ) );
printf(__( 'Read the complete article&hellip;', 'portage' ) );
echo '</a></p>';
}
@ -201,14 +201,14 @@ function portage_read_more() {
// Take care of wp_link_pages
function portage_link_pages() {
$defaults = array(
'before' => '<div id="link-pages">' . __( 'This post has multiple pages:', 'atticus-finch' ),
'before' => '<div id="link-pages">' . __( 'This post has multiple pages:', 'portage' ),
'after' => '</div>',
'link_before' => '',
'link_after' => '',
'next_or_number' => 'number',
'separator' => '&ensp;',
'nextpagelink' => __( 'Next page', 'atticus-finch' ),
'previouspagelink' => __( 'Previous page', 'atticus-finch' ),
'nextpagelink' => __( 'Next page', 'portage' ),
'previouspagelink' => __( 'Previous page', 'portage' ),
'pagelink' => '%',
'echo' => 1
);
@ -225,7 +225,7 @@ function portage_print_options() {
}
if ( get_theme_mod( 'portage_print_url' ) == '1' ) {
echo '<span class="printonly printurl">';
printf(__( 'Permalink for this article:', 'atticus-finch' ) );
printf(__( 'Permalink for this article:', 'portage' ) );
echo '<br /><span class="printurl-url">' . get_the_permalink() . '<span></span>';
}
}
@ -255,7 +255,7 @@ function portage_display_footer_credits() {
$afwp = '<a href="http://wordpress.org/">WordPress</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 );
printf(__( 'Powered by %1$s and the %2$s.', 'portage' ), $afwp, $afaf );
echo '</div>';
}
endif;
@ -319,7 +319,7 @@ function portage_social_media_display() {
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' );
_e( 'Return to Top', 'portage' );
echo '</a>';
} else {
return;
@ -329,7 +329,7 @@ function portage_footer_top_link() {
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' );
_e( 'Return to Top', 'portage' );
echo '</a>';
} else {
return;

View File

@ -8,7 +8,7 @@ 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">';
echo '<div id="portage_before_header" class="portage-action-hook">';
dynamic_sidebar( 'portage_before_header' );
echo '</div>';
}
@ -19,7 +19,7 @@ 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">';
echo '<div id="portage_after_top_menu" class="portage-action-hook">';
dynamic_sidebar( 'portage_after_top_menu' );
echo '</div>';
}
@ -30,7 +30,7 @@ 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">';
echo '<div id="portage_before_social_media" class="portage-action-hook">';
dynamic_sidebar( 'portage_before_social_media' );
echo '</div>';
}
@ -41,7 +41,7 @@ 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">';
echo '<div id="portage_before_primary_menu" class="portage-action-hook">';
dynamic_sidebar( 'portage_before_primary_menu' );
echo '</div>';
}
@ -52,7 +52,7 @@ 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">';
echo '<div id="portage_after_header" class="portage-action-hook">';
dynamic_sidebar( 'portage_after_header' );
echo '</div>';
}
@ -65,7 +65,7 @@ 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">';
echo '<div id="portage_container_top" class="portage-action-hook">';
dynamic_sidebar( 'portage_container_top' );
echo '</div><div class="clear"></div>';
}
@ -78,7 +78,7 @@ 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">';
echo '<div id="portage_before_post_title" class="portage-action-hook">';
dynamic_sidebar( 'portage_before_post_title' );
echo '</div>';
}
@ -89,7 +89,7 @@ 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">';
echo '<div id="portage_before_post_content" class="portage-action-hook">';
dynamic_sidebar( 'portage_before_post_content' );
echo '</div>';
}
@ -100,7 +100,7 @@ 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">';
echo '<div id="portage_post_top" class="portage-action-hook">';
dynamic_sidebar( 'portage_post_top' );
echo '</div>';
}
@ -111,7 +111,7 @@ 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">';
echo '<div id="portage_post_bottom" class="portage-action-hook">';
dynamic_sidebar( 'portage_post_bottom' );
echo '</div>';
}
@ -122,7 +122,7 @@ 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">';
echo '<div id="portage_after_post_content" class="portage-action-hook">';
dynamic_sidebar( 'portage_after_post_content' );
echo '</div>';
}
@ -133,7 +133,7 @@ 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">';
echo '<div id="portage_before_post_meta" class="portage-action-hook">';
dynamic_sidebar( 'portage_before_post_meta' );
echo '</div>';
}
@ -144,7 +144,7 @@ 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">';
echo '<div id="portage_after_post_meta" class="portage-action-hook">';
dynamic_sidebar( 'portage_after_post_meta' );
echo '</div>';
}
@ -157,7 +157,7 @@ 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">';
echo '<div id="portage_before_comments" class="portage-action-hook">';
dynamic_sidebar( 'portage_before_comments' );
echo '</div>';
}
@ -168,7 +168,7 @@ 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">';
echo '<div id="portage_after_comments" class="portage-action-hook">';
dynamic_sidebar( 'portage_after_comments' );
echo '</div>';
}
@ -180,7 +180,7 @@ add_action('portage_before_comment_form', 'portage_before_comment_form_fc' );
function portage_before_comment_form_fc(){
if ( comments_open() ) : {
if ( is_active_sidebar( 'portage_before_comment_form' ) ) {
echo '<div id="portage_before_comment_form" class="atticus-finch-action-hook">';
echo '<div id="portage_before_comment_form" class="portage-action-hook">';
dynamic_sidebar( 'portage_before_comment_form' );
echo '</div>';
}
@ -194,7 +194,7 @@ add_action('portage_after_comment_form', 'portage_after_comment_form_fc' );
function portage_after_comment_form_fc(){
if (comments_open() ) : {
if ( is_active_sidebar( 'portage_after_comment_form' ) ) {
echo '<div id="portage_after_comment_form" class="atticus-finch-action-hook">';
echo '<div id="portage_after_comment_form" class="portage-action-hook">';
dynamic_sidebar( 'portage_after_comment_form' );
echo '</div>';
}
@ -209,7 +209,7 @@ 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">';
echo '<div class="clear"></div><div id="portage_container_bottom" class="portage-action-hook">';
dynamic_sidebar( 'portage_container_bottom' );
echo '</div><div class="clear"></div>';
}
@ -220,7 +220,7 @@ 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">';
echo '<div id="portage_before_footer_menu" class="portage-action-hook">';
dynamic_sidebar( 'portage_before_footer_menu' );
echo '</div>';
}
@ -231,7 +231,7 @@ 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">';
echo '<div id="portage_footer_top" class="portage-action-hook">';
dynamic_sidebar( 'portage_footer_top' );
echo '</div>';
}
@ -242,7 +242,7 @@ 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">';
echo '<div id="portage_footer_bottom" class="portage-action-hook">';
dynamic_sidebar( 'portage_footer_bottom' );
echo '</div>';
}
@ -253,7 +253,7 @@ 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">';
echo '<div id="portage_after_footer" class="portage-action-hook">';
dynamic_sidebar( 'portage_after_footer' );
echo '</div>';
}
@ -270,8 +270,8 @@ if ( get_theme_mod( 'portage_before_header') == '1' ) :
register_sidebar( array(
'name' => '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">',
'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).', 'portage' ),
'before_widget' => '<div class="portage-before-header-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -282,8 +282,8 @@ if ( get_theme_mod( 'portage_after_top_menu') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages below the top menu and above the site name.', 'portage' ),
'before_widget' => '<div class="portage-after-top-menu-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -294,8 +294,8 @@ if ( get_theme_mod( 'portage_before_social_media') == '1' ) :
register_sidebar( array(
'name' => '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">',
'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.', 'portage' ),
'before_widget' => '<div class="portage-before-social-media-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -306,8 +306,8 @@ if ( get_theme_mod( 'portage_before_primary_menu') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages above the primary menu.', 'portage' ),
'before_widget' => '<div class="portage-before-primary-menu-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -318,8 +318,8 @@ if ( get_theme_mod( 'portage_after_header') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the header and before the main content and sidebar.', 'portage' ),
'before_widget' => '<div class="portage-after-header-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -332,8 +332,8 @@ if ( get_theme_mod( 'portage_container_top') == '1' ) :
register_sidebar( array(
'name' => 'Top of Container',
'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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages above the sidebar and content.', 'portage' ),
'before_widget' => '<div class="portage-container-top-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -346,8 +346,8 @@ if ( get_theme_mod( 'portage_before_post_title') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the post title.', 'portage' ),
'before_widget' => '<div class="portage-before-post-title-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -358,8 +358,8 @@ if ( get_theme_mod( 'portage_before_post_content') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the title and before the post content.', 'portage' ),
'before_widget' => '<div class="portage-before-post-content-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -370,8 +370,8 @@ if ( get_theme_mod( 'portage_post_top') == '1' ) :
register_sidebar( array(
'name' => 'Top of Post',
'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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages at the top of the post.', 'portage' ),
'before_widget' => '<div class="portage-post-top-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -382,8 +382,8 @@ if ( get_theme_mod( 'portage_post_bottom') == '1' ) :
register_sidebar( array(
'name' => 'Bottom of Post',
'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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages at the bottom of the post.', 'portage' ),
'before_widget' => '<div class="portage-post-bottom-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -394,8 +394,8 @@ if ( get_theme_mod( 'portage_after_post_content') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the post content.', 'portage' ),
'before_widget' => '<div class="portage-after-post-content-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -406,8 +406,8 @@ if ( get_theme_mod( 'portage_before_post_meta') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the post meta.', 'portage' ),
'before_widget' => '<div class="portage-before-post-meta-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -418,8 +418,8 @@ if ( get_theme_mod( 'portage_after_post_meta') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the post meta.', 'portage' ),
'before_widget' => '<div class="portage-after-post-meta-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -432,8 +432,8 @@ if ( get_theme_mod( 'portage_before_comments') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the comments.', 'portage' ),
'before_widget' => '<div class="portage-before-comments-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -444,8 +444,8 @@ if ( get_theme_mod( 'portage_after_comments') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the comments.', 'portage' ),
'before_widget' => '<div class="portage-after-comments-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -456,8 +456,8 @@ if ( get_theme_mod( 'portage_before_comment_form') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the comment form.', 'portage' ),
'before_widget' => '<div class="portage-before-comment-form-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -468,8 +468,8 @@ if ( get_theme_mod( 'portage_after_comment_form') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the comment form.', 'portage' ),
'before_widget' => '<div class="portage-after-comment-form-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -482,8 +482,8 @@ if ( get_theme_mod( 'portage_container_bottom') == '1' ) :
register_sidebar( array(
'name' => 'Bottom of Container',
'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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the footer.', 'portage' ),
'before_widget' => '<div class="portage-container-bottom-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -494,8 +494,8 @@ if ( get_theme_mod( 'portage_before_footer_menu') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages before the footer menu.', 'portage' ),
'before_widget' => '<div class="portage-before-footer-menu-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -506,8 +506,8 @@ if ( get_theme_mod( 'portage_footer_top') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages at the top of the footer.', 'portage' ),
'before_widget' => '<div class="portage-footer-top-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -518,8 +518,8 @@ if ( get_theme_mod( 'portage_footer_bottom') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages at the bottom of the footer.', 'portage' ),
'before_widget' => '<div class="portage-footer-bottom-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
@ -530,8 +530,8 @@ if ( get_theme_mod( 'portage_after_footer') == '1' ) :
register_sidebar( array(
'name' => '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">',
'description' => __( 'Widgets in this area will be shown on all posts and pages after the footer.', 'portage' ),
'before_widget' => '<div class="portage-after-footer-widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',

View File

@ -112,7 +112,7 @@ body > header {
/* 2a. Sidebar hover effect */
#sidebar {
opacity: 0.2;
opacity: 0.15;
transition: opacity 1.5s;
}
@ -608,10 +608,11 @@ ul#footermenu-ul {
#social-media-menu {
clear: both;
margin-bottom: 6px;
padding: 0 0 0 30px;
padding: 0;
height: 60px;
max-height: 48px;
width: max-content;
margin: 0.8em auto 0.4em auto;
}
#social-media-menu a {

View File

@ -777,6 +777,8 @@
#footermenu {
font-family: sans-serif;
background: #333333;
width: max-content;
margin: 0 auto;
}
#footermenu > ul > li {
float: left;