ghost
3 years ago
6 changed files with 121 additions and 111 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
<?php |
||||
|
||||
if (!isset($_SESSION['username'])) { |
||||
|
||||
header('Location: ' . PROJECT_HOST . '/login', true, 302); |
||||
} |
||||
|
||||
$metaTitle = _('Home | Twisterarmy Cloud'); |
||||
|
||||
$followingUsersTotal = 0; |
||||
foreach ((array) $_twister->getFollowing($_SESSION['username']) as $followingUserName) { |
||||
$followingUsersTotal++; |
||||
} |
||||
|
||||
require(PROJECT_DIR . '/application/view/home.phtml'); |
@ -1,10 +0,0 @@
@@ -1,10 +0,0 @@
|
||||
<?php |
||||
|
||||
if (!isset($_SESSION['username'])) { |
||||
|
||||
header('Location: ' . PROJECT_HOST . '/login', true, 302); |
||||
} |
||||
|
||||
$metaTitle = _('Home | Twisterarmy Cloud'); |
||||
|
||||
require(PROJECT_DIR . '/application/view/home.phtml'); |
@ -1,61 +1,49 @@
@@ -1,61 +1,49 @@
|
||||
<?php include(PROJECT_DIR . '/application/controller/common/header/user.php') ?> |
||||
<div class="container"> |
||||
<div class="main"> |
||||
<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') ?>"> |
||||
</a><a class="item" href="following" title="<?php echo _('Following') ?>"> |
||||
<i class="bi bi-person"></i> |
||||
<span>12</span> |
||||
</a> |
||||
<a class="item" href="bookmarks" title="<?php echo _('Bookmarks') ?>"> |
||||
<?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> |
||||
<span>4</span> |
||||
</a> |
||||
<a class="item" href="mentions" title="<?php echo _('Mentions') ?>"> |
||||
</a><a class="item" href="#todo" title="<?php echo _('Mentions') ?>"> |
||||
<i class="bi bi-at"></i> |
||||
</a> |
||||
<a class="item" href="messages" title="<?php echo _('Messages') ?>"> |
||||
</a><a class="item" href="#todo" title="<?php echo _('Messages') ?>"> |
||||
<i class="bi bi-envelope"></i> |
||||
</a> |
||||
<a class="item" href="settings" title="<?php echo _('Messages') ?>"> |
||||
</a><a class="item" href="#todo" title="<?php echo _('Settings') ?>"> |
||||
<i class="bi bi-gear"></i> |
||||
</a> |
||||
</div> |
||||
<form action="<?php echo PROJECT_HOST ?>" method="POST" name="post" class="post"> |
||||
<div> |
||||
<textarea name="post" placeholder="<?php echo _('Enter your post...') ?>"></textarea> |
||||
</div> |
||||
<!--<span>220</span>--> |
||||
<button><?php echo _('Send') ?></button> |
||||
</form> |
||||
</div> |
||||
<div class="right"> |
||||
<div class="post"> |
||||
<form action="<?php echo PROJECT_HOST ?>" method="POST" name="post"> |
||||
<div class="avatar"> |
||||
<img src="<?php echo PROJECT_HOST ?>/api/image?hash=<?php echo $_SESSION['username'] ?>" alt="" /> |
||||
</div> |
||||
<div class="message"> |
||||
<textarea name="post" placeholder="<?php echo _('Enter your post...') ?>"></textarea> |
||||
</div> |
||||
<div class="action"> |
||||
<!--<span>220</span>--> |
||||
<button><?php echo _('Send') ?></button> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
<div class="content"> |
||||
<div class="item"> |
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make |
||||
</div> |
||||
<div class="item"> |
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make |
||||
<div class="avatar"> |
||||
<img src="<?php echo PROJECT_HOST ?>/api/image?hash=<?php echo $_SESSION['username'] ?>" alt="" /> |
||||
</div> |
||||
<div class="message"> |
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="side"> |
||||
|
||||
<!-- todo |
||||
<form action="<?php echo PROJECT_HOST ?>" method="POST" name="search" class="search"> |
||||
<input type="text" value="" placeholder="Search..."> |
||||
</form> |
||||
--> |
||||
|
||||
<div class="suggestions"> |
||||
<h4><?php echo _('Who to follow') ?></h4> |
||||
<h4><?php echo _('New users') ?></h4> |
||||
<h4><?php echo _('Last activity') ?></h4> |
||||
<h4><?php echo _('Related posts') ?></h4> |
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
||||
<div class="footer"> |
||||
<?php include(PROJECT_DIR . '/application/controller/common/footer/user.php') ?> |
||||
</div> |
Loading…
Reference in new issue