From 1fc95e4da6733dbfd6643acd48333894b4f013bf Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 20 Apr 2017 13:18:08 +0200 Subject: [PATCH] integrate the own stared pages into the sidebar --- css/plugins/starred.less | 12 +++++++++++- img/star-circle.svg | 1 + lang/en/lang.php | 1 + tpl/main-sidebar-nav.php | 29 +++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 img/star-circle.svg diff --git a/css/plugins/starred.less b/css/plugins/starred.less index f15c941..057a04c 100644 --- a/css/plugins/starred.less +++ b/css/plugins/starred.less @@ -3,7 +3,6 @@ */ .page-attributes { - li.plugin_starred { .starred svg { margin-top: .1em; @@ -27,3 +26,14 @@ } } +nav.nav-starred { + ul { + list-style: none; + li { + margin-left: 0; + svg { + vertical-align: middle; + } + } + } +} diff --git a/img/star-circle.svg b/img/star-circle.svg new file mode 100644 index 0000000..b71b998 --- /dev/null +++ b/img/star-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lang/en/lang.php b/lang/en/lang.php index 3b01cd1..99ea8a3 100755 --- a/lang/en/lang.php +++ b/lang/en/lang.php @@ -23,6 +23,7 @@ $lang['head_menu_status'] = 'site status'; $lang['head_breadcrumb'] = 'location indicator'; $lang['head_menu_trace'] = 'Last Visited Pages'; $lang['head_meta_box'] = 'meta data for this page'; +$lang['head_menu_starred'] = 'Starred Pages'; $lang['jump_to_quicksearch'] = 'Jump to quick search'; diff --git a/tpl/main-sidebar-nav.php b/tpl/main-sidebar-nav.php index 4fe6344..7998827 100644 --- a/tpl/main-sidebar-nav.php +++ b/tpl/main-sidebar-nav.php @@ -48,6 +48,35 @@ +loadStars(); +if($stars): + ?> + + + +