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' => '
' . __( 'This post has multiple pages:', 'atticus-finch' ),
'after' => '
',
@@ -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', 'This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.' ) .
+ get_theme_mod( 'portage_copyright', 'This 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 '