integrate the own stared pages into the sidebar
This commit is contained in:
parent
728071e818
commit
1fc95e4da6
4 changed files with 42 additions and 1 deletions
|
@ -3,7 +3,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.page-attributes {
|
.page-attributes {
|
||||||
|
|
||||||
li.plugin_starred {
|
li.plugin_starred {
|
||||||
.starred svg {
|
.starred svg {
|
||||||
margin-top: .1em;
|
margin-top: .1em;
|
||||||
|
@ -27,3 +26,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav.nav-starred {
|
||||||
|
ul {
|
||||||
|
list-style: none;
|
||||||
|
li {
|
||||||
|
margin-left: 0;
|
||||||
|
svg {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
1
img/star-circle.svg
Normal file
1
img/star-circle.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16.23 18L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18M12 2C6.47 2 2 6.5 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2z"/></svg>
|
After (image error) Size: 275 B |
|
@ -23,6 +23,7 @@ $lang['head_menu_status'] = 'site status';
|
||||||
$lang['head_breadcrumb'] = 'location indicator';
|
$lang['head_breadcrumb'] = 'location indicator';
|
||||||
$lang['head_menu_trace'] = 'Last Visited Pages';
|
$lang['head_menu_trace'] = 'Last Visited Pages';
|
||||||
$lang['head_meta_box'] = 'meta data for this page';
|
$lang['head_meta_box'] = 'meta data for this page';
|
||||||
|
$lang['head_menu_starred'] = 'Starred Pages';
|
||||||
|
|
||||||
$lang['jump_to_quicksearch'] = 'Jump to quick search';
|
$lang['jump_to_quicksearch'] = 'Jump to quick search';
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,35 @@
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
/** @var helper_plugin_starred $plugin_starred */
|
||||||
|
$plugin_starred = plugin_load('helper', 'starred');
|
||||||
|
$stars = array();
|
||||||
|
if($plugin_starred) $stars = $plugin_starred->loadStars();
|
||||||
|
if($stars):
|
||||||
|
?>
|
||||||
|
<nav class="nav-starred">
|
||||||
|
<a class="nav" role="heading" aria-level="2">
|
||||||
|
<span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/star-circle.svg') ?></span>
|
||||||
|
<span class="lbl"><?php echo tpl_getLang('head_menu_starred'); ?></span>
|
||||||
|
</a>
|
||||||
|
<div class="nav-panel level1 plugin_starred">
|
||||||
|
<ul>
|
||||||
|
<?php
|
||||||
|
foreach($stars as $pid => $time) {
|
||||||
|
echo '<li>';
|
||||||
|
echo $plugin_starred->starHtml($ID, $pid);
|
||||||
|
echo ' ';
|
||||||
|
echo html_wikilink(":$pid");
|
||||||
|
echo '</li>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($conf['breadcrumbs']): ?>
|
<?php if($conf['breadcrumbs']): ?>
|
||||||
<nav class="nav-trace">
|
<nav class="nav-trace">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue