Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow translator translation for the welcome box #286

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading