Skip to content

Commit

Permalink
Updated theme name and branding
Browse files Browse the repository at this point in the history
  • Loading branch information
apzeero committed Apr 24, 2019
1 parent 5f46cfe commit 4571141
Show file tree
Hide file tree
Showing 25 changed files with 1,197 additions and 193 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
style.css
*.min.css
*.map
10 changes: 5 additions & 5 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Gutenbergtheme
* @package TeamWPUGPHTheme
*/

get_header(); ?>
Expand All @@ -13,11 +13,11 @@

<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'gutenbergtheme' ); ?></h1>
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'teamwpugph' ); ?></h1>
</header><!-- .page-header -->

<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'gutenbergtheme' ); ?></p>
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'teamwpugph' ); ?></p>

<?php
get_search_form();
Expand All @@ -26,7 +26,7 @@
?>

<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'gutenbergtheme' ); ?></h2>
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'teamwpugph' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
Expand All @@ -43,7 +43,7 @@
<?php

/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'gutenbergtheme' ), convert_smilies( ':)' ) ) . '</p>';
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'teamwpugph' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );

the_widget( 'WP_Widget_Tag_Cloud' );
Expand Down
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Gutenbergtheme
* @package TeamWPUGPHTheme
*/

get_header(); ?>
Expand Down
8 changes: 4 additions & 4 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Gutenbergtheme
* @package TeamWPUGPHTheme
*/

/*
Expand All @@ -31,13 +31,13 @@
if ( 1 === $comment_count ) {
printf(
/* translators: 1: title. */
esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', 'gutenbergtheme' ),
esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', 'teamwpugph' ),
'<span>' . get_the_title() . '</span>'
);
} else {
printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', 'gutenbergtheme' ) ),
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', 'teamwpugph' ) ),
number_format_i18n( $comment_count ),
'<span>' . get_the_title() . '</span>'
);
Expand All @@ -60,7 +60,7 @@

// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() ) : ?>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'gutenbergtheme' ); ?></p>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'teamwpugph' ); ?></p>
<?php
endif;

Expand Down
6 changes: 3 additions & 3 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Gutenbergtheme
* @package TeamWPUGPHTheme
*/

?>
Expand All @@ -15,12 +15,12 @@
<div class="site-info">
<a href="<?php echo esc_url( __( 'https://wordpress.org/', '_s' ) ); ?>"><?php
/* translators: %s: CMS name, i.e. WordPress. */
printf( esc_html__( 'Proudly powered by %s', 'gutenbergtheme' ), 'WordPress' );
printf( esc_html__( 'Proudly powered by %s', 'teamwpugph' ), 'WordPress' );
?></a>
<span class="sep"> | </span>
<?php
/* translators: 1: Theme name, 2: Theme author. */
printf( esc_html__( 'Theme: %s', 'gutenbergtheme' ), '<a href="https://github.com/WordPress/gutenberg-starter-theme/">Gutenberg</a>' );
printf( esc_html__( 'Theme: %s', 'teamwpugph' ), '<a href="https://github.com/WordPress/gutenberg-starter-theme/">Gutenberg</a>' );
?>
</div><!-- .site-info -->
</footer><!-- #colophon -->
Expand Down
48 changes: 24 additions & 24 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<?php
/**
* Gutenbergtheme functions and definitions
* teamwpugph functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Gutenbergtheme
* @package TeamWPUGPHTheme
*/

if ( ! function_exists( 'gutenbergtheme_setup' ) ) :
if ( ! function_exists( 'teamwpugph_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function gutenbergtheme_setup() {
function teamwpugph_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* If you're building a theme based on gutenbergtheme, use a find and replace
* to change 'gutenbergtheme' to the name of your theme in all the template files.
* 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.
*/
load_theme_textdomain( 'gutenbergtheme', get_template_directory() . '/languages' );
load_theme_textdomain( 'teamwpugph', get_template_directory() . '/languages' );

// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
Expand All @@ -44,7 +44,7 @@ function gutenbergtheme_setup() {

// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'menu-1' => esc_html__( 'Primary', 'gutenbergtheme' ),
'menu-1' => esc_html__( 'Primary', 'teamwpugph' ),
) );

/*
Expand Down Expand Up @@ -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',
),
Expand All @@ -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.
Expand All @@ -123,23 +123,23 @@ 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 = '';

/*
*Translators: If there are characters in your language that are not
* 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();
Expand All @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Gutenbergtheme
* @package TeamWPUGPHTheme
*/
?>
<!doctype html>
Expand All @@ -21,7 +21,7 @@

<body <?php body_class(); ?>>
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'gutenbergtheme' ); ?></a>
<a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'teamwpugph' ); ?></a>
<header id="masthead" class="site-header">
<div class="site-branding">
<?php
Expand All @@ -41,7 +41,7 @@
</div><!-- .site-branding -->

<nav id="site-navigation" class="main-navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'gutenbergtheme' ); ?></button>
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'teamwpugph' ); ?></button>
<?php
wp_nav_menu( array(
'theme_location' => 'menu-1',
Expand Down
18 changes: 9 additions & 9 deletions inc/custom-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,33 @@
*
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
*
* @package Gutenbergtheme
* @package TeamWPUGPHTheme
*/

/**
* Set up the WordPress core custom header feature.
*
* @uses gutenbergtheme_header_style()
* @uses teamwpugph_header_style()
*/
function gutenbergtheme_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'gutenbergtheme_custom_header_args', array(
function teamwpugph_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'teamwpugph_custom_header_args', array(
'default-image' => '',
'default-text-color' => '000000',
'width' => 1000,
'height' => 250,
'flex-height' => true,
'wp-head-callback' => 'gutenbergtheme_header_style',
'wp-head-callback' => 'teamwpugph_header_style',
) ) );
}
add_action( 'after_setup_theme', 'gutenbergtheme_custom_header_setup' );
add_action( 'after_setup_theme', 'teamwpugph_custom_header_setup' );

if ( ! function_exists( 'gutenbergtheme_header_style' ) ) :
if ( ! function_exists( 'teamwpugph_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog.
*
* @see gutenbergtheme_custom_header_setup().
* @see teamwpugph_custom_header_setup().
*/
function gutenbergtheme_header_style() {
function teamwpugph_header_style() {
$header_text_color = get_header_textcolor();

/*
Expand Down
22 changes: 11 additions & 11 deletions inc/customizer.php
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
<?php
/**
* gutenbergtheme Theme Customizer
* teamwpugph Theme Customizer
*
* @package Gutenbergtheme
* @package TeamWPUGPHTheme
*/

/**
* Add postMessage support for site title and description for the Theme Customizer.
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*/
function gutenbergtheme_customize_register( $wp_customize ) {
function teamwpugph_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';

if ( isset( $wp_customize->selective_refresh ) ) {
$wp_customize->selective_refresh->add_partial( 'blogname', array(
'selector' => '.site-title a',
'render_callback' => 'gutenbergtheme_customize_partial_blogname',
'render_callback' => 'teamwpugph_customize_partial_blogname',
) );
$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
'selector' => '.site-description',
'render_callback' => 'gutenbergtheme_customize_partial_blogdescription',
'render_callback' => 'teamwpugph_customize_partial_blogdescription',
) );
}
}
add_action( 'customize_register', 'gutenbergtheme_customize_register' );
add_action( 'customize_register', 'teamwpugph_customize_register' );

/**
* Render the site title for the selective refresh partial.
*
* @return void
*/
function gutenbergtheme_customize_partial_blogname() {
function teamwpugph_customize_partial_blogname() {
bloginfo( 'name' );
}

Expand All @@ -42,14 +42,14 @@ function gutenbergtheme_customize_partial_blogname() {
*
* @return void
*/
function gutenbergtheme_customize_partial_blogdescription() {
function teamwpugph_customize_partial_blogdescription() {
bloginfo( 'description' );
}

/**
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
*/
function gutenbergtheme_customize_preview_js() {
wp_enqueue_script( 'gutenbergtheme-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true );
function teamwpugph_customize_preview_js() {
wp_enqueue_script( 'teamwpugph-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true );
}
add_action( 'customize_preview_init', 'gutenbergtheme_customize_preview_js' );
add_action( 'customize_preview_init', 'teamwpugph_customize_preview_js' );
Loading

0 comments on commit 4571141

Please sign in to comment.