Skip to content

Commit

Permalink
Allow translator translation for the welcome box
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Feb 7, 2024
1 parent 4c9e78f commit 5c0036b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/frontend/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
);

?>
<section class="posts columns translator-exclude<?php echo 'collapsed' === $args['frontend_default_view'] ? ' all-collapsed' : ''; ?>">
<section class="posts columns <?php echo 'collapsed' === $args['frontend_default_view'] ? ' all-collapsed' : ''; ?>">
<?php
if ( ! have_posts() ) {
?>
Expand Down
2 changes: 1 addition & 1 deletion templates/frontend/parts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

$template_loader = Friends\Friends::template_loader();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'card column col-12' ); ?>>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'card column col-12 translator-exclude' ); ?>>
<?php
$template_loader->get_template_part( 'frontend/parts/header', get_post_format(), $args );
$template_loader->get_template_part( 'frontend/parts/title', get_post_format(), $args );
Expand Down
4 changes: 2 additions & 2 deletions templates/frontend/parts/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
$override_author_name = apply_filters( 'friends_override_author_name', '', $author_name, get_the_id() );
?><header class="entry-header card-header columns">
<div class="avatar col-auto mr-2">
<div class="avatar col-auto mr-2 translator-exclude">
<?php if ( in_array( get_post_type(), apply_filters( 'friends_frontend_post_types', array() ), true ) ) : ?>
<a href="<?php echo esc_attr( $friend_user->get_local_friends_page_url() ); ?>" class="author-avatar">
<?php echo get_avatar( $args['friend_user']->user_login, 36 ); ?>
Expand All @@ -40,7 +40,7 @@
</a>
<?php endif; ?>
</div>
<div class="post-meta">
<div class="post-meta translator-exclude">
<div class="author">
<?php if ( in_array( get_post_type(), apply_filters( 'friends_frontend_post_types', array() ), true ) ) : ?>
<a href="<?php echo esc_attr( $friend_user->get_local_friends_page_url() ); ?>">
Expand Down

0 comments on commit 5c0036b

Please sign in to comment.