Skip to content

Commit

Permalink
Make Like button text not hardcoded (#3304)
Browse files Browse the repository at this point in the history
* Make Like button not hardcoded

* , -> =>
  • Loading branch information
PadowYT2 authored Apr 2, 2023
1 parent 4e80efe commit 75e614f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom/templates/DefaultRevamp/forum/view_topic.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
{if (isset($LOGGED_IN_USER) && $reply.user_id !== $USER_ID || count($reply.post_reactions))}
<div class="ui mini info message" id="reactions">
{if (isset($LOGGED_IN_USER) && $reply.user_id !== $USER_ID)}
<a href="#" data-toggle="popup" data-position="right center">Like</a>
<a href="#" data-toggle="popup" data-position="right center">{$LIKE}</a>
<div class="ui wide popup">
{if isset($REACTIONS) && count($REACTIONS)}
{foreach from=$REACTIONS item=reaction}
Expand Down
7 changes: 5 additions & 2 deletions modules/Forum/pages/forum/view_topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,11 @@
$reactions = [];
}

$smarty->assign('REACTIONS', $reactions);
$smarty->assign('REACTIONS_URL', URL::build('/forum/reactions'));
$smarty->assign([
'LIKE' => $language->get('user', 'like'),
'REACTIONS' => $reactions,
'REACTIONS_URL' => URL::build('/forum/reactions')
]);
}

// Following?
Expand Down

0 comments on commit 75e614f

Please sign in to comment.