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() { ?>
This 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 ' . __( '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() . '
'; 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 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 '', '
'); } 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 '
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.' ) .
'