replace [+] and [-] with chevron icons
This commit is contained in:
parent
ee1d527497
commit
3704ff57cb
@ -418,7 +418,7 @@ class ThreadItem {
|
|||||||
if(($nb_children > $visible_comments) || ($thread_level > 1)) {
|
if(($nb_children > $visible_comments) || ($thread_level > 1)) {
|
||||||
$result['children'][0]['comment_firstcollapsed'] = true;
|
$result['children'][0]['comment_firstcollapsed'] = true;
|
||||||
$result['children'][0]['num_comments'] = $comment_count_txt;
|
$result['children'][0]['num_comments'] = $comment_count_txt;
|
||||||
$result['children'][0]['hide_text'] = t('[+] show all');
|
$result['children'][0]['hide_text'] = sprintf( t('%s show all'), '<i class="fa fa-chevron-down"></i>');
|
||||||
if($thread_level > 1) {
|
if($thread_level > 1) {
|
||||||
$result['children'][$nb_children - 1]['comment_lastcollapsed'] = true;
|
$result['children'][$nb_children - 1]['comment_lastcollapsed'] = true;
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,10 @@ function js_strings() {
|
|||||||
return replace_macros(get_markup_template('js_strings.tpl'), array(
|
return replace_macros(get_markup_template('js_strings.tpl'), array(
|
||||||
'$delitem' => t('Delete this item?'),
|
'$delitem' => t('Delete this item?'),
|
||||||
'$comment' => t('Comment'),
|
'$comment' => t('Comment'),
|
||||||
'$showmore' => t('[+] show all'),
|
'$showmore' => sprintf( t('%s show all'), '<i class=\'fa fa-chevron-down\'></i>'),
|
||||||
'$showfewer' => t('[-] show less'),
|
'$showfewer' => sprintf( t('%s show less'), '<i class=\'fa fa-chevron-up\'></i>'),
|
||||||
'$divgrowmore' => t('[+] expand'),
|
'$divgrowmore' => sprintf( t('%s expand'), '<i class=\'fa fa-chevron-down\'></i>'),
|
||||||
'$divgrowless' => t('[-] collapse'),
|
'$divgrowless' => sprintf( t('%s collapse'),'<i class=\'fa fa-chevron-up\'></i>'),
|
||||||
'$pwshort' => t("Password too short"),
|
'$pwshort' => t("Password too short"),
|
||||||
'$pwnomatch' => t("Passwords do not match"),
|
'$pwnomatch' => t("Passwords do not match"),
|
||||||
'$everybody' => t('everybody'),
|
'$everybody' => t('everybody'),
|
||||||
|
Reference in New Issue
Block a user