Skip to content

Commit

Permalink
Standardized theme slug, package name, text domain
Browse files Browse the repository at this point in the history
  • Loading branch information
apzeero committed May 11, 2019
1 parent e223f38 commit 7f91e6e
Show file tree
Hide file tree
Showing 21 changed files with 61 additions and 61 deletions.
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 TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

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.', 'teamwpugph' ); ?></h1>
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'themewpugph' ); ?></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?', 'teamwpugph' ); ?></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?', 'themewpugph' ); ?></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', 'teamwpugph' ); ?></h2>
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'themewpugph' ); ?></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', 'teamwpugph' ), convert_smilies( ':)' ) ) . '</p>';
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'themewpugph' ), 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 TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

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 TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

/*
Expand All @@ -31,13 +31,13 @@
if ( 1 === $comment_count ) {
printf(
/* translators: 1: title. */
esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', 'teamwpugph' ),
esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', 'themewpugph' ),
'<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', 'teamwpugph' ) ),
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', 'themewpugph' ) ),
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.', 'teamwpugph' ); ?></p>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'themewpugph' ); ?></p>
<?php
endif;

Expand Down
8 changes: 4 additions & 4 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 TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

$org_name = get_option('teamwpugph_org_name', '');
Expand All @@ -19,17 +19,17 @@
<footer id="colophon" class="site-footer uk-section uk-section-default uk-section-small">
<div class="uk-container">
<p class="uk-text-small uk-text-center">
<?php printf( esc_html__('Copyright &copy; %s&ndash;%s %s', 'teamwpugph' ), esc_html__( $org_year, 'teamwpugph' ), date( "Y" ), esc_html__( $org_name, 'teamwpugph' ) ); ?>
<?php printf( esc_html__('Copyright &copy; %s&ndash;%s %s', 'themewpugph' ), esc_html__( $org_year, 'themewpugph' ), date( "Y" ), esc_html__( $org_name, 'themewpugph' ) ); ?>
&emsp;
<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', 'teamwpugph' ), 'WordPress' );
printf( esc_html__( 'Proudly powered by %s', 'themewpugph' ), 'WordPress' );
?></a>
<span class="sep">&emsp;|&emsp;</span>
<?php
/* translators: 1: Theme name, 2: Theme author. */
printf( esc_html__( 'Theme: %s', 'teamwpugph' ), '<a href="' . TEAMWPUGPH_HOMEPAGE . '">' . TEAMWPUGPH_TEAMNAME . '</a>' );
printf( esc_html__( 'Theme: %s', 'themewpugph' ), '<a href="' . TEAMWPUGPH_HOMEPAGE . '">' . TEAMWPUGPH_TEAMNAME . '</a>' );
?>
</p>
</div>
Expand Down
18 changes: 9 additions & 9 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

require get_template_directory() . '/inc/defines.php';
Expand All @@ -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' );
Expand All @@ -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' ),
) );

/*
Expand Down Expand Up @@ -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',
),
Expand Down Expand Up @@ -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();
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 TeamWPUGPHTheme
* @package ThemeWPUGPH
*/
?>
<!DOCTYPE html>
Expand All @@ -21,7 +21,7 @@

<body <?php body_class(); ?>>

<a class="screen-reader-text" href="#main-content"><?php esc_html_e( 'Skip to content', 'teamwpugph' ); ?></a>
<a class="screen-reader-text" href="#main-content"><?php esc_html_e( 'Skip to content', 'themewpugph' ); ?></a>

<!--HEADER-->
<header class="nav uk-sticky uk-sticky-below uk-sticky-fixed uk-box-shadow-medium" data-uk-sticky="cls-active: uk-background-default; top: 100vh; animation: uk-animation-slide-top; show-on-up: true;">
Expand All @@ -34,7 +34,7 @@
if ( has_custom_logo() ) {
echo the_custom_logo();
} else {
_e( 'Logo', 'teamwpugph' );
_e( 'Logo', 'themewpugph' );
}
?>
</a>
Expand Down
2 changes: 1 addition & 1 deletion inc/custom-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

/**
Expand Down
10 changes: 5 additions & 5 deletions inc/custom-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @link https://codex.wordpress.org/Settings_API
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/
class TeamWPUGPH_Add_Settings_Field
{
Expand All @@ -24,15 +24,15 @@ public function addSection() {

add_settings_section(
'teamwpugph_custom_settings',
__( 'Company/Organization Details', 'teamwpugph' ),
__( 'Company/Organization Details', 'themewpugph' ),
array( $this, 'render_section' ),
'general'
);

register_setting( 'general', 'teamwpugph_org_name', 'sanitize_text_field' );
add_settings_field(
'teamwpugph_org_name_id',
'<label for="teamwpugph_org_name_id">' . __( 'Organization Name' , 'teamwpugph' ) . '</label>',
'<label for="teamwpugph_org_name_id">' . __( 'Organization Name' , 'themewpugph' ) . '</label>',
array( $this, 'render_org_name_field' ),
'general',
'teamwpugph_custom_settings'
Expand All @@ -41,7 +41,7 @@ public function addSection() {
register_setting( 'general', 'teamwpugph_org_year', 'sanitize_text_field' );
add_settings_field(
'teamwpugph_org_year_id',
'<label for="teamwpugph_org_year_id">' . __( 'Year of Foundation' , 'teamwpugph' ) . '</label>',
'<label for="teamwpugph_org_year_id">' . __( 'Year of Foundation' , 'themewpugph' ) . '</label>',
array( $this, 'render_org_year_field' ),
'general',
'teamwpugph_custom_settings'
Expand All @@ -55,7 +55,7 @@ public function addSection() {
* @return void
*/
public function render_section() {
esc_html_e( 'Custom settings for theme use.', 'teamwpugph' );
esc_html_e( 'Custom settings for theme use.', 'themewpugph' );
}

public function render_org_name_field() {
Expand Down
2 changes: 1 addition & 1 deletion inc/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* TeamWPUGPH Theme Customizer
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @link https://jetpack.com/
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Functions which enhance the theme by hooking into WordPress
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

/**
Expand Down
16 changes: 8 additions & 8 deletions inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Eventually, some of the functionality here could be replaced by core features.
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

if ( ! function_exists( 'teamwpugph_posted_on' ) ) :
Expand All @@ -26,13 +26,13 @@ function teamwpugph_posted_on() {

$posted_on = sprintf(
/* translators: %s: post date. */
esc_html_x( 'Posted on %s', 'post date', 'teamwpugph' ),
esc_html_x( 'Posted on %s', 'post date', 'themewpugph' ),
'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
);

$byline = sprintf(
/* translators: %s: post author. */
esc_html_x( 'by %s', 'post author', 'teamwpugph' ),
esc_html_x( 'by %s', 'post author', 'themewpugph' ),
'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
);

Expand All @@ -50,17 +50,17 @@ function teamwpugph_entry_footer() {
// Hide category and tag text for pages.
if ( 'post' === get_post_type() ) {
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', 'teamwpugph' ) );
$categories_list = get_the_category_list( esc_html__( ', ', 'themewpugph' ) );
if ( $categories_list ) {
/* translators: 1: list of categories. */
printf( '<p class="uk-article-meta uk-link-muted">' . esc_html__( 'Posted in %1$s', 'teamwpugph' ) . '</p>', $categories_list ); // WPCS: XSS OK.
printf( '<p class="uk-article-meta uk-link-muted">' . esc_html__( 'Posted in %1$s', 'themewpugph' ) . '</p>', $categories_list ); // WPCS: XSS OK.
}

/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '<li class="uk-label uk-link-reset">', '</li>' . "\n" . '<li class="uk-label uk-link-reset">', '</li>' );
if ( $tags_list ) {
/* translators: 1: list of tags. */
printf( '<p class="screen-reader-text">%s:</p>', esc_html__( 'Tag list', 'teamwpugph' ) );
printf( '<p class="screen-reader-text">%s:</p>', esc_html__( 'Tag list', 'themewpugph' ) );
echo '<ul class="uk-padding-remove-left">' . "\n" . $tags_list . '</ul>' . "\n";
}
}
Expand All @@ -71,7 +71,7 @@ function teamwpugph_entry_footer() {
sprintf(
wp_kses(
/* translators: %s: post title */
__( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'teamwpugph' ),
__( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'themewpugph' ),
array(
'span' => array(
'class' => array(),
Expand All @@ -88,7 +88,7 @@ function teamwpugph_entry_footer() {
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit <span class="screen-reader-text">%s</span>', 'teamwpugph' ),
__( 'Edit <span class="screen-reader-text">%s</span>', 'themewpugph' ),
array(
'span' => array(
'class' => array(),
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

get_header(); ?>
Expand Down
2 changes: 1 addition & 1 deletion page.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

get_header(); ?>
Expand Down
4 changes: 2 additions & 2 deletions search.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

get_header(); ?>
Expand All @@ -17,7 +17,7 @@
<header class="page-header">
<h1 class="page-title"><?php
/* translators: %s: search query. */
printf( esc_html__( 'Search Results for: %s', 'teamwpugph' ), '<span>' . get_search_query() . '</span>' );
printf( esc_html__( 'Search Results for: %s', 'themewpugph' ), '<span>' . get_search_query() . '</span>' );
?></h1>
</header><!-- .page-header -->

Expand Down
2 changes: 1 addition & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package TeamWPUGPHTheme
* @package ThemeWPUGPH
*/

get_header(); ?>
Expand Down
Loading

0 comments on commit 7f91e6e

Please sign in to comment.