Change translate name to tainacan-theme.

This commit is contained in:
Fabiano Alencar 2018-03-01 12:20:06 -03:00
parent 84f8038249
commit 0998fd58b0
8 changed files with 16 additions and 23 deletions

View File

@ -21,7 +21,7 @@ if (
<header class="mb-4 border-bottom"> <header class="mb-4 border-bottom">
<?php if ($isAuthor === true): ?> <?php if ($isAuthor === true): ?>
<h1> <h1>
<?php _e('Posts by: ', 'tainacan'); echo get_the_author_meta( 'display_name' ); ?> <?php _e('Posts by: ', 'tainacan-theme'); echo get_the_author_meta( 'display_name' ); ?>
</h1> </h1>
<?php endif; ?> <?php endif; ?>
</header> </header>

View File

@ -7,7 +7,7 @@
<div id="content" role="main"> <div id="content" role="main">
<header class="mb-4 border-bottom"> <header class="mb-4 border-bottom">
<h1> <h1>
<?php _e('Category: ', 'tainacan'); echo single_cat_title(); ?> <?php _e('Category: ', 'tainacan-theme'); echo single_cat_title(); ?>
</h1> </h1>
</header> </header>
<?php get_template_part('template-parts/index-loop'); ?> <?php get_template_part('template-parts/index-loop'); ?>

View File

@ -14,8 +14,8 @@ if ( ! function_exists( 'pagination_bst4' ) ) {
'total' => $wp_query->max_num_pages, 'total' => $wp_query->max_num_pages,
'mid_size' => 5, 'mid_size' => 5,
'prev_next' => True, 'prev_next' => True,
'prev_text' => __('< Newer', 'tainacan'), 'prev_text' => __('< Newer', 'tainacan-theme'),
'next_text' => __('Older >', 'tainacan'), 'next_text' => __('Older >', 'tainacan-theme'),
'type' => 'list' 'type' => 'list'
) ); ) );
$paginate_links = str_replace( "<ul class='page-numbers'>", "<ul class='pagination'>", $paginate_links ); $paginate_links = str_replace( "<ul class='page-numbers'>", "<ul class='pagination'>", $paginate_links );

View File

@ -6,7 +6,7 @@
<div class="col-sm"> <div class="col-sm">
<div id="content" role="main"> <div id="content" role="main">
<header class="mb-4 border-bottom"> <header class="mb-4 border-bottom">
<h1><?php _e('Search Results for', 'tainacan'); ?> &ldquo;<?php the_search_query(); ?>&rdquo;</h1> <h1><?php _e('Search Results for', 'tainacan-theme'); ?> &ldquo;<?php the_search_query(); ?>&rdquo;</h1>
</header> </header>
<?php get_template_part('template-parts/search-results'); ?> <?php get_template_part('template-parts/search-results'); ?>
</div><!-- /#content --> </div><!-- /#content -->

View File

@ -3,13 +3,14 @@
<div class="container-fluid mt-5"> <div class="container-fluid mt-5">
<div class="row"> <div class="row">
<div class="col-sm"> <div class="col-sm-9">
<div id="content" role="main"> <div id="content" role="main">
<?php get_template_part('template-parts/single-post', get_post_format()); ?> <?php get_template_part('template-parts/single-post', get_post_format()); ?>
</div><!-- /#content --> </div><!-- /#content -->
</div> </div>
<div class="col-sm-3">
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
</div>
</div><!-- /.row --> </div><!-- /.row -->
</div><!-- /.container-fluid --> </div><!-- /.container-fluid -->

View File

@ -12,7 +12,7 @@
</div> </div>
<?php endwhile; else: ?> <?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.', 'tainacan'); ?></p> <p><?php _e('Sorry, no posts matched your criteria.', 'tainacan-theme'); ?></p>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -7,6 +7,6 @@
</article> </article>
<?php endwhile; else: ?> <?php endwhile; else: ?>
<div class="alert alert-warning"> <div class="alert alert-warning">
<i class="material-icons">warning</i> <?php _e('Sorry, your search yielded no results.', 'tainacan'); ?> <i class="material-icons">warning</i> <?php _e('Sorry, your search yielded no results.', 'tainacan-theme'); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -6,9 +6,9 @@
</h1> </h1>
<div class="header-meta text-muted"> <div class="header-meta text-muted">
<?php <?php
_e('By ', 'tainacan'); _e('By ', 'tainacan-theme');
the_author_posts_link(); the_author_posts_link();
_e(' on ', 'tainacan'); _e(' on ', 'tainacan-theme');
tainacan_post_date(); tainacan_post_date();
?> ?>
</div> </div>
@ -22,14 +22,14 @@
</main> </main>
<footer class="mt-5 border-top pt-3"> <footer class="mt-5 border-top pt-3">
<p> <p>
<?php _e('Category: ', 'tainacan'); the_category(', ') ?> | <?php if (has_tag()) { the_tags('Tags: ', ', '); ?> | <?php } _e('Comments', 'tainacan'); ?>: <?php comments_popup_link(__('None', 'tainacan'), '1', '%'); ?> <?php _e('Category: ', 'tainacan-theme'); the_category(', ') ?> | <?php if (has_tag()) { the_tags('Tags: ', ', '); ?> | <?php } _e('Comments', 'tainacan-theme'); ?>: <?php comments_popup_link(__('None', 'tainacan-theme'), '1', '%'); ?>
</p> </p>
<div class="author-bio media border-top pt-3"> <div class="author-bio media border-top pt-3">
<?php get_avatar(); ?> <?php get_avatar(); ?>
<div class="media-body ml-3"> <div class="media-body ml-3">
<p class="h4 author-name"><?php the_author_posts_link(); ?></p> <p class="h4 author-name"><?php the_author_posts_link(); ?></p>
<p class="author-description"><?php the_author_description(); ?></p> <p class="author-description"><?php the_author_description(); ?></p>
<p class="author-other-posts mb-0 border-top pt-3"><?php _e('Other posts by ', 'tainacan'); the_author_posts_link(); ?></p> <p class="author-other-posts mb-0 border-top pt-3"><?php _e('Other posts by ', 'tainacan-theme'); the_author_posts_link(); ?></p>
</div> </div>
</div><!-- /.author-bio --> </div><!-- /.author-bio -->
</footer> </footer>
@ -42,12 +42,4 @@
wp_redirect(esc_url( home_url() ) . '/404', 404); wp_redirect(esc_url( home_url() ) . '/404', 404);
exit; exit;
endif; endif;
?> ?>
<div class="row mt-5 border-top pt-3">
<div class="col">
<?php previous_post_link('%link', '<i class="fas fa-fw fa-arrow-left"></i> Previous post: '.'%title'); ?>
</div>
<div class="col text-right">
<?php next_post_link('%link', 'Next post: '.'%title' . ' <i class="fas fa-fw fa-arrow-right"></i>'); ?>
</div>
</div>