diff --git a/src/application/controller/follow.php b/src/application/controller/follow.php index b904d5c..7efb103 100644 --- a/src/application/controller/follow.php +++ b/src/application/controller/follow.php @@ -7,6 +7,19 @@ if (!isset($_SESSION['userName'])) { $metaTitle = _('Following | Twisterarmy Cloud'); +// Load dependencies +$metaStyles = [ + 'css/template/default/module/menu.css', + 'css/template/default/module/post.css', + 'css/template/default/module/feed.css', +]; + +$metaScripts = [ + 'js/module/menu.js', + 'js/module/post.js', + 'js/module/feed.js', +]; + $followingUsersTotal = 0; $followingUsers = []; diff --git a/src/application/controller/home.php b/src/application/controller/home.php index 4df1734..2539640 100644 --- a/src/application/controller/home.php +++ b/src/application/controller/home.php @@ -7,4 +7,17 @@ if (!isset($_SESSION['userName'])) { $metaTitle = _('Home | Twisterarmy Cloud'); +// Load dependencies +$metaStyles = [ + 'css/template/default/module/menu.css', + 'css/template/default/module/post.css', + 'css/template/default/module/feed.css', +]; + +$metaScripts = [ + 'js/module/menu.js', + 'js/module/post.js', + 'js/module/feed.js', +]; + require(PROJECT_DIR . '/application/view/home.phtml'); \ No newline at end of file diff --git a/src/application/view/common/header/user.phtml b/src/application/view/common/header/user.phtml index 1d2dad9..8925609 100644 --- a/src/application/view/common/header/user.phtml +++ b/src/application/view/common/header/user.phtml @@ -9,13 +9,13 @@ - - - + + + - - - + + +