mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-09-12 13:52:01 +00:00
add only page-related scripts loading
This commit is contained in:
parent
56042ea5a8
commit
2a9e5f25e5
@ -7,6 +7,19 @@ if (!isset($_SESSION['userName'])) {
|
|||||||
|
|
||||||
$metaTitle = _('Following | Twisterarmy Cloud');
|
$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;
|
$followingUsersTotal = 0;
|
||||||
$followingUsers = [];
|
$followingUsers = [];
|
||||||
|
|
||||||
|
@ -7,4 +7,17 @@ if (!isset($_SESSION['userName'])) {
|
|||||||
|
|
||||||
$metaTitle = _('Home | Twisterarmy Cloud');
|
$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');
|
require(PROJECT_DIR . '/application/view/home.phtml');
|
@ -9,13 +9,13 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="css/template/default/common.css" />
|
<link rel="stylesheet" type="text/css" href="css/template/default/common.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/template/default/mobile.css" />
|
<link rel="stylesheet" type="text/css" href="css/template/default/mobile.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/template/default/app.css" />
|
<link rel="stylesheet" type="text/css" href="css/template/default/app.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/template/default/module/menu.css" />
|
<?php foreach ($metaStyles as $metaStyle) { ?>
|
||||||
<link rel="stylesheet" type="text/css" href="css/template/default/module/post.css" />
|
<link rel="stylesheet" type="text/css" href="<?php echo $metaStyle ?>" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/template/default/module/feed.css" />
|
<?php } ?>
|
||||||
<script src="js/jquery.js"></script>
|
<script src="js/jquery.js"></script>
|
||||||
<script src="js/module/menu.js"></script>
|
<?php foreach ($metaScripts as $metaScript) { ?>
|
||||||
<script src="js/module/post.js"></script>
|
<script src="<?php echo $metaScript ?>"></script>
|
||||||
<script src="js/module/feed.js"></script>
|
<?php } ?>
|
||||||
<script src="js/home.js"></script>
|
<script src="js/home.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-c-1 bg-img-1 c-0">
|
<body class="bg-c-1 bg-img-1 c-0">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user