From a4afb70317dff4e80b02733bbd73f4f0098f2b89 Mon Sep 17 00:00:00 2001 From: Alex Legler Date: Mon, 5 Jan 2015 22:00:37 +0100 Subject: Add functionality for --- and header: to add dropdown dividers and headers --- TyrianTemplate.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'TyrianTemplate.php') diff --git a/TyrianTemplate.php b/TyrianTemplate.php index 9bd72c8..fd29e3b 100644 --- a/TyrianTemplate.php +++ b/TyrianTemplate.php @@ -382,7 +382,13 @@ class TyrianTemplate extends BaseTemplate { if ( is_array ( $cont ) ) { foreach ( $cont as $key => $val ) { - echo $this->makeListItem( $key, $val ); + if ( $val['text'] === '---' ) { + echo ''; + } elseif ( substr( $val['text'], 0, 7 ) === 'header:' ) { + echo ''; + } else { + echo $this->makeListItem( $key, $val ); + } } } else { echo ""; -- cgit v1.2.3-65-gdbad