From 7f91e6e05256efad3b0e7c781ae49dbe25b7dd90 Mon Sep 17 00:00:00 2001 From: ap7 Date: Sun, 12 May 2019 07:00:41 +0800 Subject: [PATCH] Standardized theme slug, package name, text domain --- 404.php | 10 +++++----- archive.php | 2 +- comments.php | 8 ++++---- footer.php | 8 ++++---- functions.php | 18 +++++++++--------- header.php | 6 +++--- inc/custom-header.php | 2 +- inc/custom-settings.php | 10 +++++----- inc/customizer.php | 2 +- inc/jetpack.php | 2 +- inc/template-functions.php | 2 +- inc/template-tags.php | 16 ++++++++-------- index.php | 2 +- page.php | 2 +- search.php | 4 ++-- single.php | 2 +- style.scss | 2 +- template-parts/content-none.php | 10 +++++----- template-parts/content-page.php | 6 +++--- template-parts/content-search.php | 2 +- template-parts/content.php | 6 +++--- 21 files changed, 61 insertions(+), 61 deletions(-) diff --git a/404.php b/404.php index 83bb6e4..8b0ded4 100644 --- a/404.php +++ b/404.php @@ -4,7 +4,7 @@ * * @link https://codex.wordpress.org/Creating_an_Error_404_Page * - * @package TeamWPUGPHTheme + * @package ThemeWPUGPH */ get_header(); ?> @@ -13,11 +13,11 @@
-

+

-

+

    ' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'teamwpugph' ), convert_smilies( ':)' ) ) . '

    '; + $archive_content = '

    ' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'themewpugph' ), convert_smilies( ':)' ) ) . '

    '; the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=$archive_content" ); the_widget( 'WP_Widget_Tag_Cloud' ); diff --git a/archive.php b/archive.php index ee8ba93..37bb78a 100644 --- a/archive.php +++ b/archive.php @@ -4,7 +4,7 @@ * * @link https://codex.wordpress.org/Template_Hierarchy * - * @package TeamWPUGPHTheme + * @package ThemeWPUGPH */ get_header(); ?> diff --git a/comments.php b/comments.php index 8079a0d..525a93d 100644 --- a/comments.php +++ b/comments.php @@ -7,7 +7,7 @@ * * @link https://codex.wordpress.org/Template_Hierarchy * - * @package TeamWPUGPHTheme + * @package ThemeWPUGPH */ /* @@ -31,13 +31,13 @@ if ( 1 === $comment_count ) { printf( /* translators: 1: title. */ - esc_html_e( 'One thought on “%1$s”', 'teamwpugph' ), + esc_html_e( 'One thought on “%1$s”', 'themewpugph' ), '' . get_the_title() . '' ); } else { printf( // WPCS: XSS OK. /* translators: 1: comment count number, 2: title. */ - esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', 'teamwpugph' ) ), + esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', 'themewpugph' ) ), number_format_i18n( $comment_count ), '' . get_the_title() . '' ); @@ -60,7 +60,7 @@ // If comments are closed and there are comments, let's leave a little note, shall we? if ( ! comments_open() ) : ?> -

    +

    - +  |  ' . TEAMWPUGPH_TEAMNAME . '' ); + printf( esc_html__( 'Theme: %s', 'themewpugph' ), '' . TEAMWPUGPH_TEAMNAME . '' ); ?>

    diff --git a/functions.php b/functions.php index 4589538..531f1a6 100644 --- a/functions.php +++ b/functions.php @@ -4,7 +4,7 @@ * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * - * @package TeamWPUGPHTheme + * @package ThemeWPUGPH */ require get_template_directory() . '/inc/defines.php'; @@ -23,9 +23,9 @@ function teamwpugph_setup() { * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on teamwpugph, use a find and replace - * to change 'teamwpugph' to the name of your theme in all the template files. + * to change 'themewpugph' to the name of your theme in all the template files. */ - load_theme_textdomain( 'teamwpugph', get_template_directory() . '/languages' ); + load_theme_textdomain( 'themewpugph', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); @@ -47,7 +47,7 @@ function teamwpugph_setup() { // This theme uses wp_nav_menu() in one location. register_nav_menus( array( - 'primary-menu' => esc_html__( 'Primary Menu', 'teamwpugph' ), + 'primary-menu' => esc_html__( 'Primary Menu', 'themewpugph' ), ) ); /* @@ -92,22 +92,22 @@ function teamwpugph_setup() { // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( - 'name' => __( 'Strong Blue', 'teamwpugph' ), + 'name' => __( 'Strong Blue', 'themewpugph' ), 'slug' => 'strong-blue', 'color' => '#0073aa', ), array( - 'name' => __( 'Lighter Blue', 'teamwpugph' ), + 'name' => __( 'Lighter Blue', 'themewpugph' ), 'slug' => 'lighter-blue', 'color' => '#229fd8', ), array( - 'name' => __( 'Very Light Gray', 'teamwpugph' ), + 'name' => __( 'Very Light Gray', 'themewpugph' ), 'slug' => 'very-light-gray', 'color' => '#eee', ), array( - 'name' => __( 'Very Dark Gray', 'teamwpugph' ), + 'name' => __( 'Very Dark Gray', 'themewpugph' ), 'slug' => 'very-dark-gray', 'color' => '#444', ), @@ -142,7 +142,7 @@ function teamwpugph_fonts_url() { * supported by Noto Serif, translate this to 'off'. Do not translate * into your own language. */ - $notoserif = esc_html_x( 'on', 'Noto Serif font: on or off', 'teamwpugph' ); + $notoserif = esc_html_x( 'on', 'Noto Serif font: on or off', 'themewpugph' ); if ( 'off' !== $notoserif ) { $font_families = array(); diff --git a/header.php b/header.php index 2f5c348..3f7c879 100644 --- a/header.php +++ b/header.php @@ -6,7 +6,7 @@ * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * - * @package TeamWPUGPHTheme + * @package ThemeWPUGPH */ ?> @@ -21,7 +21,7 @@ > - +