ghost
3 years ago
6 changed files with 121 additions and 111 deletions
@ -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 @@ |
|||||||
<?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 @@ |
|||||||
<?php include(PROJECT_DIR . '/application/controller/common/header/user.php') ?> |
<?php include(PROJECT_DIR . '/application/controller/common/header/user.php') ?> |
||||||
<div class="container"> |
<div class="container"> |
||||||
<div class="main"> |
<div class="left"> |
||||||
<div class="menu"> |
<div class="menu"> |
||||||
<a class="item active" href="<?php echo PROJECT_HOST ?>" title="<?php echo _('Home') ?>"> |
<a class="item active" href="<?php echo PROJECT_HOST ?>" title="<?php echo _('Home') ?>"> |
||||||
<i class="bi bi-house"></i> |
<i class="bi bi-house"></i> |
||||||
</a> |
</a><a class="item" href="following" title="<?php echo _('Following') ?>"> |
||||||
<a class="item" href="following" title="<?php echo _('Following') ?>"> |
|
||||||
<i class="bi bi-person"></i> |
<i class="bi bi-person"></i> |
||||||
<span>12</span> |
<?php if ($followingUsersTotal) { ?> |
||||||
</a> |
<span><?php echo $followingUsersTotal ?></span> |
||||||
<a class="item" href="bookmarks" title="<?php echo _('Bookmarks') ?>"> |
<?php } ?> |
||||||
|
</a><a class="item" href="#todo" title="<?php echo _('Bookmarks') ?>"> |
||||||
<i class="bi bi-bookmarks"></i> |
<i class="bi bi-bookmarks"></i> |
||||||
<span>4</span> |
</a><a class="item" href="#todo" title="<?php echo _('Mentions') ?>"> |
||||||
</a> |
|
||||||
<a class="item" href="mentions" title="<?php echo _('Mentions') ?>"> |
|
||||||
<i class="bi bi-at"></i> |
<i class="bi bi-at"></i> |
||||||
</a> |
</a><a class="item" href="#todo" title="<?php echo _('Messages') ?>"> |
||||||
<a class="item" href="messages" title="<?php echo _('Messages') ?>"> |
|
||||||
<i class="bi bi-envelope"></i> |
<i class="bi bi-envelope"></i> |
||||||
</a> |
</a><a class="item" href="#todo" title="<?php echo _('Settings') ?>"> |
||||||
<a class="item" href="settings" title="<?php echo _('Messages') ?>"> |
|
||||||
<i class="bi bi-gear"></i> |
<i class="bi bi-gear"></i> |
||||||
</a> |
</a> |
||||||
</div> |
</div> |
||||||
<form action="<?php echo PROJECT_HOST ?>" method="POST" name="post" class="post"> |
</div> |
||||||
<div> |
<div class="right"> |
||||||
<textarea name="post" placeholder="<?php echo _('Enter your post...') ?>"></textarea> |
<div class="post"> |
||||||
</div> |
<form action="<?php echo PROJECT_HOST ?>" method="POST" name="post"> |
||||||
<!--<span>220</span>--> |
<div class="avatar"> |
||||||
<button><?php echo _('Send') ?></button> |
<img src="<?php echo PROJECT_HOST ?>/api/image?hash=<?php echo $_SESSION['username'] ?>" alt="" /> |
||||||
</form> |
</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="content"> |
||||||
<div class="item"> |
<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"> |
||||||
</div> |
<img src="<?php echo PROJECT_HOST ?>/api/image?hash=<?php echo $_SESSION['username'] ?>" alt="" /> |
||||||
<div class="item"> |
</div> |
||||||
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="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> |
||||||
</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> |
</div> |
Loading…
Reference in new issue