mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-13 05:51:46 +00:00
add module menu
This commit is contained in:
parent
823a6a4616
commit
40afd61367
3
src/application/controller/common/module/menu.php
Normal file
3
src/application/controller/common/module/menu.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
require(PROJECT_DIR . '/application/view/common/module/menu.phtml');
|
15
src/application/view/common/module/menu.phtml
Normal file
15
src/application/view/common/module/menu.phtml
Normal file
@ -0,0 +1,15 @@
|
||||
<div class="menu" id="moduleMenu">
|
||||
<a class="item" href="/" title="<?php echo _('Home') ?>">
|
||||
<i class="bi bi-house"></i>
|
||||
</a><a class="item" href="follow" title="<?php echo _('Follow') ?>">
|
||||
<i class="bi bi-person"></i>
|
||||
</a><a class="item" href="#todo" title="<?php echo _('Bookmarks') ?>">
|
||||
<i class="bi bi-bookmarks"></i>
|
||||
</a><a class="item" href="#todo" title="<?php echo _('Mentions') ?>">
|
||||
<i class="bi bi-at"></i>
|
||||
</a><a class="item" href="#todo" title="<?php echo _('Messages') ?>">
|
||||
<i class="bi bi-envelope"></i>
|
||||
</a><a class="item" href="#todo" title="<?php echo _('Settings') ?>">
|
||||
<i class="bi bi-gear"></i>
|
||||
</a>
|
||||
</div>
|
@ -1,24 +1,7 @@
|
||||
<?php include(PROJECT_DIR . '/application/controller/common/header/user.php') ?>
|
||||
<div class="container">
|
||||
<div class="left">
|
||||
<div class="menu">
|
||||
<a class="item active" href="<?php echo PROJECT_HOST ?>" title="<?php echo _('Home') ?>">
|
||||
<i class="bi bi-house"></i>
|
||||
</a><a class="item" href="following" title="<?php echo _('Following') ?>">
|
||||
<i class="bi bi-person"></i>
|
||||
<?php if ($followingUsersTotal) { ?>
|
||||
<span><?php echo $followingUsersTotal ?></span>
|
||||
<?php } ?>
|
||||
</a><a class="item" href="#todo" title="<?php echo _('Bookmarks') ?>">
|
||||
<i class="bi bi-bookmarks"></i>
|
||||
</a><a class="item" href="#todo" title="<?php echo _('Mentions') ?>">
|
||||
<i class="bi bi-at"></i>
|
||||
</a><a class="item" href="#todo" title="<?php echo _('Messages') ?>">
|
||||
<i class="bi bi-envelope"></i>
|
||||
</a><a class="item" href="#todo" title="<?php echo _('Settings') ?>">
|
||||
<i class="bi bi-gear"></i>
|
||||
</a>
|
||||
</div>
|
||||
<?php include(PROJECT_DIR . '/application/controller/common/module/menu.php') ?>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="post">
|
||||
|
@ -120,5 +120,8 @@ var Home = {
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
Home.post.get('#feed', true);
|
||||
|
||||
$('#moduleMenu > a[href="/"]').addClass('active');
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user