mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-09-10 12:51:56 +00:00
rename following page to follow
This commit is contained in:
parent
40afd61367
commit
033a72052f
@ -19,4 +19,4 @@ foreach ((array) $_twister->getFollowing($_SESSION['userName']) as $followingUse
|
||||
$followingUsersTotal++;
|
||||
}
|
||||
|
||||
require(PROJECT_DIR . '/application/view/following.phtml');
|
||||
require(PROJECT_DIR . '/application/view/follow.phtml');
|
14
src/application/view/follow.phtml
Normal file
14
src/application/view/follow.phtml
Normal file
@ -0,0 +1,14 @@
|
||||
<?php include(PROJECT_DIR . '/application/controller/common/header/user.php') ?>
|
||||
<div class="container">
|
||||
<div class="main">
|
||||
<div class="content">
|
||||
<?php foreach ($followingUsers as $followingUser) { ?>
|
||||
<div class="item">
|
||||
@<?php echo $followingUser['name'] ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<h2><?php echo _('Following suggestions') ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="side"></div>
|
||||
</div>
|
@ -1,32 +0,0 @@
|
||||
<?php include(PROJECT_DIR . '/application/controller/common/header/user.php') ?>
|
||||
<div class="container">
|
||||
<div class="main">
|
||||
<div class="menu">
|
||||
<a class="item" href="<?php echo PROJECT_HOST ?>" title="<?php echo _('Home') ?>">
|
||||
<i class="bi bi-house"></i>
|
||||
</a><a class="item active" 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>
|
||||
<div class="content">
|
||||
<?php foreach ($followingUsers as $followingUser) { ?>
|
||||
<div class="item">
|
||||
@<?php echo $followingUser['name'] ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<h2><?php echo _('Following suggestions') ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="side"></div>
|
||||
</div>
|
@ -61,8 +61,8 @@ if (isset($_GET['_route_'])) {
|
||||
case 'logout':
|
||||
require(PROJECT_DIR . '/application/controller/logout.php');
|
||||
break;
|
||||
case 'following':
|
||||
require(PROJECT_DIR . '/application/controller/following.php');
|
||||
case 'follow':
|
||||
require(PROJECT_DIR . '/application/controller/follow.php');
|
||||
break;
|
||||
case 'register':
|
||||
require(PROJECT_DIR . '/application/controller/register.php');
|
||||
|
Loading…
x
Reference in New Issue
Block a user