Navigation Menu

Skip to content

Commit

Permalink
Don't use function for theme's textdomain. Hardcode it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Tadlock committed Aug 24, 2012
1 parent e0b3f6a commit d596624
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 53 deletions.
4 changes: 2 additions & 2 deletions 404.php
Expand Up @@ -24,12 +24,12 @@

<div id="post-0" class="<?php hybrid_entry_class(); ?>">

<h1 class="error-404-title entry-title"><?php _e( 'Not Found', hybrid_get_textdomain() ); ?></h1>
<h1 class="error-404-title entry-title"><?php _e( 'Not Found', 'trending' ); ?></h1>

<div class="entry-content">

<p>
<?php printf( __( 'You tried going to %1$s, and it doesn\'t exist. All is not lost! You can search for what you\'re looking for.', hybrid_get_textdomain() ), '<code>' . home_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
<?php printf( __( 'You tried going to %1$s, and it doesn\'t exist. All is not lost! You can search for what you\'re looking for.', 'trending' ), '<code>' . home_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
</p>

<?php get_search_form(); // Loads the searchform.php template. ?>
Expand Down
6 changes: 3 additions & 3 deletions archive.php
Expand Up @@ -34,14 +34,14 @@

<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>

<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'trending' ) . '</div>' ); ?>

<div class="entry-summary">
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->

<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</a></div>' ); ?>
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) . '</a></div>' ); ?>

<?php do_atomic( 'close_entry' ); // trending_close_entry ?>

Expand Down
10 changes: 5 additions & 5 deletions attachment.php
Expand Up @@ -31,7 +31,7 @@

<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>

<?php if ( wp_attachment_is_image( get_the_ID() ) ) echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . sprintf( __( 'Sizes: %s', hybrid_get_textdomain() ), trending_get_image_size_links() ) . '</div>' ); ?>
<?php if ( wp_attachment_is_image( get_the_ID() ) ) echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . sprintf( __( 'Sizes: %s', 'trending' ), trending_get_image_size_links() ) . '</div>' ); ?>

<div class="entry-content">
<?php if ( wp_attachment_is_image( get_the_ID() ) ) : ?>
Expand All @@ -45,19 +45,19 @@
<?php hybrid_attachment(); // Function for handling non-image attachments. ?>

<p class="download">
<a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download "%s";', hybrid_get_textdomain() ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
<a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download "%s";', 'trending' ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
</p><!-- .download -->

<?php endif; ?>

<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->

<?php if ( wp_attachment_is_image( get_the_ID() ) ) {
$gallery = do_shortcode( sprintf( '[gallery id="%1$s" exclude="%2$s" columns="8" numberposts="16" orderby="rand"]', $post->post_parent, get_the_ID() ) );
if ( !empty( $gallery ) )
echo '<h3>' . __( 'Gallery', hybrid_get_textdomain() ) . '</h3>' . $gallery;
echo '<h3>' . __( 'Gallery', 'trending' ) . '</h3>' . $gallery;
}
?>

Expand Down
2 changes: 1 addition & 1 deletion comment.php
Expand Up @@ -27,7 +27,7 @@

<div class="comment-content comment-text">
<?php if ( '0' == $comment->comment_approved ) : ?>
<?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert moderation">' . __( 'Your comment is awaiting moderation.', hybrid_get_textdomain() ) . '</p>' ); ?>
<?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert moderation">' . __( 'Your comment is awaiting moderation.', 'trending' ) . '</p>' ); ?>
<?php endif; ?>

<?php comment_text( $comment->comment_ID ); ?>
Expand Down
10 changes: 5 additions & 5 deletions comments.php
Expand Up @@ -11,7 +11,7 @@

/* Kill the page if trying to access this template directly. */
if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) )
die( __( 'Please do not load this page directly. Thanks!', hybrid_get_textdomain() ) );
die( __( 'Please do not load this page directly. Thanks!', 'trending' ) );

/* If a post password is required or no comments are given and comments/pings are closed, return. */
if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
Expand All @@ -26,13 +26,13 @@

<?php if ( have_comments() ) : ?>

<h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', hybrid_get_textdomain() ), __( 'One Response', hybrid_get_textdomain() ), __( '% Responses', hybrid_get_textdomain() ) ); ?></h3>
<h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', 'trending' ), __( 'One Response', 'trending' ), __( '% Responses', 'trending' ) ); ?></h3>

<?php do_atomic( 'before_comment_list' );// trending_before_comment_list ?>

<?php if ( get_option( 'page_comments' ) ) : ?>
<div class="comments-nav">
<span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', hybrid_get_textdomain() ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
<span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', 'trending' ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
<?php previous_comments_link(); ?>
<?php next_comments_link(); ?>
</div><!-- .comments-nav -->
Expand All @@ -49,13 +49,13 @@
<?php if ( pings_open() && !comments_open() ) : ?>

<p class="comments-closed pings-open">
<?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', hybrid_get_textdomain() ), get_trackback_url() ); ?>
<?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'trending' ), get_trackback_url() ); ?>
</p><!-- .comments-closed .pings-open -->

<?php elseif ( !comments_open() ) : ?>

<p class="comments-closed">
<?php _e( 'Comments are closed.', hybrid_get_textdomain() ); ?>
<?php _e( 'Comments are closed.', 'trending' ); ?>
</p><!-- .comments-closed -->

<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion header.php
Expand Up @@ -65,6 +65,6 @@

<?php do_atomic( 'open_main' ); // trending_open_main ?>

<?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail( array( 'before' => __( 'You are here:', hybrid_get_textdomain() ) ) ); ?>
<?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail( array( 'before' => __( 'You are here:', 'trending' ) ) ); ?>

<?php get_sidebar( 'before-content' ); // Loads the sidebar-before-content.php template. ?>
6 changes: 3 additions & 3 deletions home.php
Expand Up @@ -40,14 +40,14 @@

<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>

<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'trending' ) . '</div>' ); ?>

<div class="entry-summary">
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->

<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</a></div>' ); ?>
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) . '</a></div>' ); ?>

<?php do_atomic( 'close_entry' ); // trending_close_entry ?>

Expand Down
6 changes: 3 additions & 3 deletions index.php
Expand Up @@ -33,14 +33,14 @@

<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>

<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'trending' ) . '</div>' ); ?>

<div class="entry-summary">
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->

<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</a></div>' ); ?>
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"><a class="more-link" href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) . '</a></div>' ); ?>

<?php do_atomic( 'close_entry' ); // trending_close_entry ?>

Expand Down
2 changes: 1 addition & 1 deletion loop-error.php
Expand Up @@ -12,7 +12,7 @@

<div class="entry-content">

<p><?php _e( 'Apologies, but no entries were found.', hybrid_get_textdomain() ); ?></p>
<p><?php _e( 'Apologies, but no entries were found.', 'trending' ); ?></p>

</div><!-- .entry-content -->

Expand Down
10 changes: 5 additions & 5 deletions loop-meta.php
Expand Up @@ -88,7 +88,7 @@

<div class="loop-description">
<p>
<?php printf( __( 'You are browsing the search results for "%s"', hybrid_get_textdomain() ), esc_attr( get_search_query() ) ); ?>
<?php printf( __( 'You are browsing the search results for "%s"', 'trending' ), esc_attr( get_search_query() ) ); ?>
</p>
</div><!-- .loop-description -->

Expand All @@ -97,11 +97,11 @@
<?php elseif ( is_date() ) : ?>

<div class="loop-meta">
<h1 class="loop-title"><?php _e( 'Archives by date', hybrid_get_textdomain() ); ?></h1>
<h1 class="loop-title"><?php _e( 'Archives by date', 'trending' ); ?></h1>

<div class="loop-description">
<p>
<?php _e( 'You are browsing the site archives by date.', hybrid_get_textdomain() ); ?>
<?php _e( 'You are browsing the site archives by date.', 'trending' ); ?>
</p>
</div><!-- .loop-description -->

Expand All @@ -125,11 +125,11 @@

<div class="loop-meta">

<h1 class="loop-title"><?php _e( 'Archives', hybrid_get_textdomain() ); ?></h1>
<h1 class="loop-title"><?php _e( 'Archives', 'trending' ); ?></h1>

<div class="loop-description">
<p>
<?php _e( 'You are browsing the site archives.', hybrid_get_textdomain() ); ?>
<?php _e( 'You are browsing the site archives.', 'trending' ); ?>
</p>
</div><!-- .loop-description -->

Expand Down
10 changes: 5 additions & 5 deletions loop-nav.php
Expand Up @@ -13,20 +13,20 @@
<?php if ( is_attachment() ) : ?>

<div class="loop-nav">
<?php previous_post_link( '%link', '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Return to entry', hybrid_get_textdomain() ) . '</span>' ); ?>
<?php previous_post_link( '%link', '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Return to entry', 'trending' ) . '</span>' ); ?>
</div><!-- .loop-nav -->

<?php elseif ( is_singular( 'post' ) ) : ?>


<div class="loop-nav">
<?php previous_post_link( '%link', '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Previous', hybrid_get_textdomain() ) . '</span>' ); ?>
<?php next_post_link( '%link', '<span class="next">' . __( 'Next <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) . '</span>' ); ?>
<?php previous_post_link( '%link', '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Previous', 'trending' ) . '</span>' ); ?>
<?php next_post_link( '%link', '<span class="next">' . __( 'Next <span class="meta-nav">&rarr;</span>', 'trending' ) . '</span>' ); ?>
</div><!-- .loop-nav -->

<?php elseif ( !is_singular() && current_theme_supports( 'loop-pagination' ) ) : loop_pagination( array( 'prev_text' => __( '<span class="meta-nav">&larr;</span> Previous', hybrid_get_textdomain() ), 'next_text' => __( 'Next <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ) ); ?>
<?php elseif ( !is_singular() && current_theme_supports( 'loop-pagination' ) ) : loop_pagination( array( 'prev_text' => __( '<span class="meta-nav">&larr;</span> Previous', 'trending' ), 'next_text' => __( 'Next <span class="meta-nav">&rarr;</span>', 'trending' ) ) ); ?>

<?php elseif ( !is_singular() && $nav = get_posts_nav_link( array( 'sep' => '', 'prelabel' => '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Previous', hybrid_get_textdomain() ) . '</span>', 'nxtlabel' => '<span class="next">' . __( 'Next &rarr;', hybrid_get_textdomain() ) . '</span>' ) ) ) : ?>
<?php elseif ( !is_singular() && $nav = get_posts_nav_link( array( 'sep' => '', 'prelabel' => '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Previous', 'trending' ) . '</span>', 'nxtlabel' => '<span class="next">' . __( 'Next &rarr;', 'trending' ) . '</span>' ) ) ) : ?>

<div class="loop-nav">
<?php echo $nav; ?>
Expand Down
10 changes: 5 additions & 5 deletions page-template-archives.php
Expand Up @@ -31,21 +31,21 @@
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>

<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) ); ?>

<h2><?php _e( 'Archives by category', hybrid_get_textdomain() ); ?></h2>
<h2><?php _e( 'Archives by category', 'trending' ); ?></h2>

<ul class="xoxo category-archives">
<?php wp_list_categories( array( 'feed' => __( 'RSS', hybrid_get_textdomain() ), 'show_count' => true, 'use_desc_for_title' => false, 'title_li' => false ) ); ?>
<?php wp_list_categories( array( 'feed' => __( 'RSS', 'trending' ), 'show_count' => true, 'use_desc_for_title' => false, 'title_li' => false ) ); ?>
</ul><!-- .xoxo .category-archives -->

<h2><?php _e( 'Archives by month', hybrid_get_textdomain() ); ?></h2>
<h2><?php _e( 'Archives by month', 'trending' ); ?></h2>

<ul class="xoxo monthly-archives">
<?php wp_get_archives( array( 'show_post_count' => true, 'type' => 'monthly' ) ); ?>
</ul><!-- .xoxo .monthly-archives -->

<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->

<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">[entry-edit-link]</div>' ); ?>
Expand Down
4 changes: 2 additions & 2 deletions page-template-bookmarks.php
Expand Up @@ -31,7 +31,7 @@
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>

<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) ); ?>

<?php $args = array(
'title_li' => false,
Expand All @@ -47,7 +47,7 @@
); ?>
<?php wp_list_bookmarks( $args ); ?>

<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->

<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">[entry-edit-link]</div>' ); ?>
Expand Down
4 changes: 2 additions & 2 deletions page.php
Expand Up @@ -32,8 +32,8 @@
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>

<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->

<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">[entry-edit-link]</div>' ); ?>
Expand Down

0 comments on commit d596624

Please sign in to comment.