Browse Source

rename following page to follow

main
ghost 3 years ago
parent
commit
033a72052f
  1. 2
      src/application/controller/follow.php
  2. 14
      src/application/view/follow.phtml
  3. 32
      src/application/view/following.phtml
  4. 4
      src/bootstrap.php

2
src/application/controller/following.php → src/application/controller/follow.php

@ -19,4 +19,4 @@ foreach ((array) $_twister->getFollowing($_SESSION['userName']) as $followingUse
$followingUsersTotal++; $followingUsersTotal++;
} }
require(PROJECT_DIR . '/application/view/following.phtml'); require(PROJECT_DIR . '/application/view/follow.phtml');

14
src/application/view/follow.phtml

@ -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>

32
src/application/view/following.phtml

@ -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>

4
src/bootstrap.php

@ -61,8 +61,8 @@ if (isset($_GET['_route_'])) {
case 'logout': case 'logout':
require(PROJECT_DIR . '/application/controller/logout.php'); require(PROJECT_DIR . '/application/controller/logout.php');
break; break;
case 'following': case 'follow':
require(PROJECT_DIR . '/application/controller/following.php'); require(PROJECT_DIR . '/application/controller/follow.php');
break; break;
case 'register': case 'register':
require(PROJECT_DIR . '/application/controller/register.php'); require(PROJECT_DIR . '/application/controller/register.php');

Loading…
Cancel
Save