From 83597001862b316fcd0ebf14fe17e6f09c3105cf Mon Sep 17 00:00:00 2001 From: cheesypoof Date: Fri, 26 Aug 2016 00:03:12 -0700 Subject: [PATCH] Fix list checkboxes --- couch/theme/_system/content_list_inner_comments.html | 2 +- couch/theme/_system/content_list_inner_gallery.html | 2 +- couch/theme/_system/register.php | 11 ++++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/couch/theme/_system/content_list_inner_comments.html b/couch/theme/_system/content_list_inner_comments.html index 225b812..ea66aef 100644 --- a/couch/theme/_system/content_list_inner_comments.html +++ b/couch/theme/_system/content_list_inner_comments.html @@ -17,7 +17,7 @@
- +
diff --git a/couch/theme/_system/content_list_inner_gallery.html b/couch/theme/_system/content_list_inner_gallery.html index fdd86ad..96e1b92 100644 --- a/couch/theme/_system/content_list_inner_gallery.html +++ b/couch/theme/_system/content_list_inner_gallery.html @@ -41,7 +41,7 @@

- +
diff --git a/couch/theme/_system/register.php b/couch/theme/_system/register.php index 4519c2e..321349c 100644 --- a/couch/theme/_system/register.php +++ b/couch/theme/_system/register.php @@ -1108,7 +1108,7 @@ function _render_alert( $heading='', $content='', $type='', $center='' ){ $CTX->set( 'k_alert_center', $center == '1' ? '1' : '0' ); } - function _render_list_checkbox( $for_header=0 ){ + function _render_list_checkbox( $for_header=0, $text_label=0 ){ global $CTX, $FUNCS; $page_id = $CTX->get( 'k_page_id' ); @@ -1117,10 +1117,15 @@ function _render_list_checkbox( $for_header=0 ){ if( $for_header ){ $html = ''; + if( $text_label ){ + $html .= ''.$FUNCS->t('select-deselect').''; + } + else{ + $html .= ''; + } } else{ - $html = '