#12622 help only when feedback enable

This commit is contained in:
Jonathan 2023-12-13 16:51:14 +01:00
parent f4fdacb791
commit fe9b35ed77
1 changed files with 17 additions and 15 deletions

View File

@ -397,21 +397,23 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
$modal_box .= '<a href="https://discord.com/invite/xVt2ruSxmr" target="_blank">'.__('Join discord community').'</a>'; $modal_box .= '<a href="https://discord.com/invite/xVt2ruSxmr" target="_blank">'.__('Join discord community').'</a>';
$modal_box .= '</div>'; $modal_box .= '</div>';
$modal_help = html_print_div( if ($config['activate_feedback'] === '1') {
[ $modal_help = html_print_div(
'id' => 'modal-help-content', [
'content' => html_print_image( 'id' => 'modal-help-content',
'images/help@header.svg', 'content' => html_print_image(
true, 'images/help@header.svg',
[ true,
'title' => __('Help'), [
'class' => 'main_menu_icon bot invert_filter', 'title' => __('Help'),
'alt' => 'user', 'class' => 'main_menu_icon bot invert_filter',
] 'alt' => 'user',
).$modal_box, ]
], ).$modal_box,
true, ],
); true,
);
}
// User. // User.