diff --git a/functions.php b/functions.php index c111253..0ed4a99 100755 --- a/functions.php +++ b/functions.php @@ -1,6 +1,6 @@ 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 home page 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 home page 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 = __( '…read more…', 'atticus-finch' ); + $default_readmore = __( '…read more…', '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 ‘read more’ link (in all excerpts)', 'atticus-finch'), + 'label' => __( 'Text for ‘read more’ 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 = ' 'atticusfinch', + 'description' => __('Menu settings for mobile appearance. Note: The breakpoint settings will override the "mobile breakpoint" setting.', 'portage'), + 'panel' => 'portage', ) ); // Top Menu Options @@ -662,7 +662,7 @@ $default_copyright = ' __( 'Display "Edit this post" link if user is logged in', 'portage' ), ) ); @@ -894,7 +894,7 @@ $default_copyright = '', 'atticus-finch' ), esc_attr( get_the_date( 'c' ) ) ); + printf(__( ''; - printf(__( 'Posted on %s', 'atticus-finch' ), get_the_date() ); + printf(__( 'Posted on %s', 'portage' ), get_the_date() ); $date; echo ''; } else { - printf(__( '