Skip to content

Commit

Permalink
pick fix namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
skysarwer committed Jan 24, 2023
1 parent 2832ed1 commit d17ec5e
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 27 deletions.
10 changes: 5 additions & 5 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,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.', 'funky-shrimp' ); ?></h1>
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'evn' ); ?></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?', 'funky-shrimp' ); ?></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?', 'evn' ); ?></p>

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

<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'funky-shrimp' ); ?></h2>
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'evn' ); ?></h2>
<ul>
<?php
wp_list_categories(
Expand All @@ -45,8 +45,8 @@

<?php
/* translators: %1$s: smiley */
$funky_shrimp_archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'funky-shrimp' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$funky_shrimp_archive_content" );
$evn_archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'evn' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2> $evn_archive_content" );

the_widget( 'WP_Widget_Tag_Cloud' );
?>
Expand Down
12 changes: 6 additions & 6 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
?>
<h2 class="comments-title">
<?php
$funky_shrimp_comment_count = get_comments_number();
if ( '1' === $funky_shrimp_comment_count ) {
$evn_comment_count = get_comments_number();
if ( '1' === $evn_comment_count ) {
printf(
/* translators: 1: title. */
esc_html__( 'One thought on &ldquo;%1$s&rdquo;', 'funky-shrimp' ),
esc_html__( 'One thought on &ldquo;%1$s&rdquo;', 'evn' ),
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
);
} else {
printf(
/* 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;', $funky_shrimp_comment_count, 'comments title', 'funky-shrimp' ) ),
number_format_i18n( $funky_shrimp_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $evn_comment_count, 'comments title', 'evn' ) ),
number_format_i18n( $evn_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
);
}
Expand All @@ -65,7 +65,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.', 'funky-shrimp' ); ?></p>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'evn' ); ?></p>
<?php
endif;

Expand Down
12 changes: 6 additions & 6 deletions inc/jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* See: https://jetpack.com/support/responsive-videos/
* See: https://jetpack.com/support/content-options/
*/
function funky_shrimp_jetpack_setup() {
function evn_jetpack_setup() {
// Add theme support for Infinite Scroll.
add_theme_support(
'infinite-scroll',
array(
'container' => 'main',
'render' => 'funky_shrimp_infinite_scroll_render',
'render' => 'evn_infinite_scroll_render',
'footer' => 'page',
)
);
Expand All @@ -33,7 +33,7 @@ function funky_shrimp_jetpack_setup() {
'jetpack-content-options',
array(
'post-details' => array(
'stylesheet' => 'funky-shrimp-style',
'stylesheet' => 'evn-style',
'date' => '.posted-on',
'categories' => '.cat-links',
'tags' => '.tags-links',
Expand All @@ -48,13 +48,13 @@ function funky_shrimp_jetpack_setup() {
)
);
}
add_action( 'after_setup_theme', 'funky_shrimp_jetpack_setup' );
add_action( 'after_setup_theme', 'evn_jetpack_setup' );

if ( ! function_exists( 'funky_shrimp_infinite_scroll_render' ) ) :
if ( ! function_exists( 'evn_infinite_scroll_render' ) ) :
/**
* Custom render function for Infinite Scroll.
*/
function funky_shrimp_infinite_scroll_render() {
function evn_infinite_scroll_render() {
while ( have_posts() ) {
the_post();
if ( is_search() ) :
Expand Down
4 changes: 2 additions & 2 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

the_post_navigation(
array(
'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Previous:', 'funky-shrimp' ) . '</span> <span class="nav-title">%title</span>',
'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Next:', 'funky-shrimp' ) . '</span> <span class="nav-title">%title</span>',
'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Previous:', 'evn' ) . '</span> <span class="nav-title">%title</span>',
'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Next:', 'evn' ) . '</span> <span class="nav-title">%title</span>',
)
);

Expand Down
8 changes: 4 additions & 4 deletions template-parts/content-none.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<section class="no-results not-found">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'funky-shrimp' ); ?></h1>
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'evn' ); ?></h1>
</header><!-- .page-header -->

<div class="page-content">
Expand All @@ -21,7 +21,7 @@
printf(
'<p>' . wp_kses(
/* translators: 1: link to WP admin new post page. */
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'funky-shrimp' ),
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'evn' ),
array(
'a' => array(
'href' => array(),
Expand All @@ -34,14 +34,14 @@
elseif ( is_search() ) :
?>

<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'funky-shrimp' ); ?></p>
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'evn' ); ?></p>
<?php
get_search_form();

else :
?>

<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'funky-shrimp' ); ?></p>
<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'evn' ); ?></p>
<?php
get_search_form();

Expand Down
4 changes: 2 additions & 2 deletions template-parts/content-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'funky-shrimp' ),
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'evn' ),
'after' => '</div>',
)
);
Expand All @@ -39,7 +39,7 @@
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit <span class="screen-reader-text">%s</span>', 'funky-shrimp' ),
__( 'Edit <span class="screen-reader-text">%s</span>', 'evn' ),
array(
'span' => array(
'class' => array(),
Expand Down
4 changes: 2 additions & 2 deletions template-parts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'funky-shrimp' ),
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'evn' ),
array(
'span' => array(
'class' => array(),
Expand All @@ -50,7 +50,7 @@

wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'funky-shrimp' ),
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'evn' ),
'after' => '</div>',
)
);
Expand Down

0 comments on commit d17ec5e

Please sign in to comment.