From 457114179992bf15b7cb19185fcddb558e68f078 Mon Sep 17 00:00:00 2001 From: ap7 Date: Wed, 24 Apr 2019 17:57:01 +0800 Subject: [PATCH] Updated theme name and branding --- .gitignore | 3 + 404.php | 10 +- archive.php | 2 +- comments.php | 8 +- footer.php | 6 +- functions.php | 48 +- header.php | 6 +- inc/custom-header.php | 18 +- inc/customizer.php | 22 +- inc/jetpack.php | 12 +- inc/template-functions.php | 10 +- inc/template-tags.php | 26 +- index.php | 2 +- languages/{gutentheme.pot => teampwp.pot} | 0 page.php | 2 +- readme.txt | 6 +- screenshot.png | Bin 264 -> 142498 bytes search.php | 4 +- single.php | 2 +- style.css | 188 +++-- style.scss | 983 ++++++++++++++++++++++ template-parts/content-none.php | 10 +- template-parts/content-page.php | 6 +- template-parts/content-search.php | 6 +- template-parts/content.php | 10 +- 25 files changed, 1197 insertions(+), 193 deletions(-) create mode 100644 .gitignore rename languages/{gutentheme.pot => teampwp.pot} (100%) create mode 100644 style.scss diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4419124 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +style.css +*.min.css +*.map diff --git a/404.php b/404.php index 80482f9..83bb6e4 100644 --- a/404.php +++ b/404.php @@ -4,7 +4,7 @@ * * @link https://codex.wordpress.org/Creating_an_Error_404_Page * - * @package Gutenbergtheme + * @package TeamWPUGPHTheme */ get_header(); ?> @@ -13,11 +13,11 @@
-

+

-

+

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

    '; + $archive_content = '

    ' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'teamwpugph' ), 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 5e2e029..ee8ba93 100644 --- a/archive.php +++ b/archive.php @@ -4,7 +4,7 @@ * * @link https://codex.wordpress.org/Template_Hierarchy * - * @package Gutenbergtheme + * @package TeamWPUGPHTheme */ get_header(); ?> diff --git a/comments.php b/comments.php index e8dca25..8079a0d 100644 --- a/comments.php +++ b/comments.php @@ -7,7 +7,7 @@ * * @link https://codex.wordpress.org/Template_Hierarchy * - * @package Gutenbergtheme + * @package TeamWPUGPHTheme */ /* @@ -31,13 +31,13 @@ if ( 1 === $comment_count ) { printf( /* translators: 1: title. */ - esc_html_e( 'One thought on “%1$s”', 'gutenbergtheme' ), + esc_html_e( 'One thought on “%1$s”', 'teamwpugph' ), '' . 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', 'gutenbergtheme' ) ), + esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', 'teamwpugph' ) ), 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() ) : ?> -

    +

    @@ -15,12 +15,12 @@
    | Gutenberg' ); + printf( esc_html__( 'Theme: %s', 'teamwpugph' ), 'Gutenberg' ); ?>
    diff --git a/functions.php b/functions.php index 2fc72dd..1c0fa25 100644 --- a/functions.php +++ b/functions.php @@ -1,13 +1,13 @@ esc_html__( 'Primary', 'gutenbergtheme' ), + 'menu-1' => esc_html__( 'Primary', 'teamwpugph' ), ) ); /* @@ -89,22 +89,22 @@ function gutenbergtheme_setup() { // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( - 'name' => __( 'Strong Blue', 'gutenbergtheme' ), + 'name' => __( 'Strong Blue', 'teamwpugph' ), 'slug' => 'strong-blue', 'color' => '#0073aa', ), array( - 'name' => __( 'Lighter Blue', 'gutenbergtheme' ), + 'name' => __( 'Lighter Blue', 'teamwpugph' ), 'slug' => 'lighter-blue', 'color' => '#229fd8', ), array( - 'name' => __( 'Very Light Gray', 'gutenbergtheme' ), + 'name' => __( 'Very Light Gray', 'teamwpugph' ), 'slug' => 'very-light-gray', 'color' => '#eee', ), array( - 'name' => __( 'Very Dark Gray', 'gutenbergtheme' ), + 'name' => __( 'Very Dark Gray', 'teamwpugph' ), 'slug' => 'very-dark-gray', 'color' => '#444', ), @@ -114,7 +114,7 @@ function gutenbergtheme_setup() { add_theme_support( 'responsive-embeds' ); } endif; -add_action( 'after_setup_theme', 'gutenbergtheme_setup' ); +add_action( 'after_setup_theme', 'teamwpugph_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. @@ -123,15 +123,15 @@ function gutenbergtheme_setup() { * * @global int $content_width */ -function gutenbergtheme_content_width() { - $GLOBALS['content_width'] = apply_filters( 'gutenbergtheme_content_width', 640 ); +function teamwpugph_content_width() { + $GLOBALS['content_width'] = apply_filters( 'teamwpugph_content_width', 640 ); } -add_action( 'after_setup_theme', 'gutenbergtheme_content_width', 0 ); +add_action( 'after_setup_theme', 'teamwpugph_content_width', 0 ); /** * Register Google Fonts */ -function gutenbergtheme_fonts_url() { +function teamwpugph_fonts_url() { $fonts_url = ''; /* @@ -139,7 +139,7 @@ function gutenbergtheme_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', 'gutenbergtheme' ); + $notoserif = esc_html_x( 'on', 'Noto Serif font: on or off', 'teamwpugph' ); if ( 'off' !== $notoserif ) { $font_families = array(); @@ -160,22 +160,22 @@ function gutenbergtheme_fonts_url() { /** * Enqueue scripts and styles. */ -function gutenbergtheme_scripts() { +function teamwpugph_scripts() { wp_enqueue_style( 'gutenbergbase-style', get_stylesheet_uri() ); - wp_enqueue_style( 'gutenbergthemeblocks-style', get_template_directory_uri() . '/css/blocks.css' ); + wp_enqueue_style( 'teamwpugphblocks-style', get_template_directory_uri() . '/css/blocks.css' ); - wp_enqueue_style( 'gutenbergtheme-fonts', gutenbergtheme_fonts_url() ); + wp_enqueue_style( 'teamwpugph-fonts', teamwpugph_fonts_url() ); - wp_enqueue_script( 'gutenbergtheme-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true ); + wp_enqueue_script( 'teamwpugph-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true ); - wp_enqueue_script( 'gutenbergtheme-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true ); + wp_enqueue_script( 'teamwpugph-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } -add_action( 'wp_enqueue_scripts', 'gutenbergtheme_scripts' ); +add_action( 'wp_enqueue_scripts', 'teamwpugph_scripts' ); /** * Implement the Custom Header feature. diff --git a/header.php b/header.php index 254e969..40c1911 100644 --- a/header.php +++ b/header.php @@ -6,7 +6,7 @@ * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * - * @package Gutenbergtheme + * @package TeamWPUGPHTheme */ ?> @@ -21,7 +21,7 @@ >
    - + @@ -25,6 +25,6 @@
    - +
    diff --git a/template-parts/content.php b/template-parts/content.php index 1853c22..8aff974 100644 --- a/template-parts/content.php +++ b/template-parts/content.php @@ -4,7 +4,7 @@ * * @link https://codex.wordpress.org/Template_Hierarchy * - * @package Gutenbergtheme + * @package TeamWPUGPHTheme */ ?> @@ -23,7 +23,7 @@ if ( 'post' === get_post_type() ) : ?> @@ -34,7 +34,7 @@ the_content( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ - __( 'Continue reading "%s"', 'gutenbergtheme' ), + __( 'Continue reading "%s"', 'teamwpugph' ), array( 'span' => array( 'class' => array(), @@ -45,13 +45,13 @@ ) ); wp_link_pages( array( - 'before' => '
    - +