Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
style(CSS): Add css tag
Browse files Browse the repository at this point in the history
Add css time tag form config `base.site_css_update_date`
  • Loading branch information
Rhilip committed Mar 9, 2019
1 parent 7f36ddf commit c6e9211
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/views/auth/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link rel="stylesheet" href="/lib/layui/src/css/layui.css"> <?php /** https://www.layui.com/doc/ */ ?>

<!-- Custom stlylesheet -->
<link rel="stylesheet" href="/static/css/main.css?<?= time() // FIXME For debug ?>"/>
<link rel="stylesheet" href="/static/css/main.css?<?= app()->config->get('base.site_css_update_date') ?>"/>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
Expand Down Expand Up @@ -58,6 +58,6 @@
</div>

<script src="/lib/layui/src/layui.js"></script>
<script src="/static/js/main.js?<?= time() // FIXME For debug ?>"></script>
<script src="/static/js/main.js?<?= app()->config->get('base.site_css_update_date') ?>"></script>
</body><!-- This templates was made by Colorlib (https://colorlib.com) -->
</html>
2 changes: 1 addition & 1 deletion apps/views/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<title><?= app()->config->get('base.site_name') ?> :: Error Page -- Powered by <?= app()->config->get('base.site_generator') ?></title>

<!-- Custom stlylesheet -->
<link rel="stylesheet" href="/static/css/error.css"/>
<link rel="stylesheet" href="/static/css/error.css?<?= app()->config->get('base.site_css_update_date') ?>"/>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
Expand Down
4 changes: 2 additions & 2 deletions apps/views/layout/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link rel="stylesheet" href="/lib/fontAwesome/css/all.css"> <?php /** https://fontawesome.com/icons?d=gallery */ ?>

<!-- Custom styles for this template -->
<link rel="stylesheet" href="/static/css/main.css?<?= time() // FIXME For debug ?>">
<link rel="stylesheet" href="/static/css/main.css?<?= app()->config->get('base.site_css_update_date') ?>">

<?= $this->section('css') ?> <!-- Other temp CSS field -->
</head>
Expand Down Expand Up @@ -93,7 +93,7 @@
</footer>

<script src="/lib/layui/src/layui.js"></script>
<script src="/static/js/main.js?<?= time() // FIXME For debug ?>"></script>
<script src="/static/js/main.js?<?= app()->config->get('base.site_css_update_date') ?>"></script>
<?= $this->section('script') ?> <!-- Other temp script field -->

</body>
Expand Down
1 change: 1 addition & 0 deletions migration/ridpt.sql
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ INSERT INTO `site_config` (`name`, `value`) VALUES
('base.max_user', '5000'),
('base.site_author', 'Rhilip'),
('base.site_copyright', 'RidPT Group'),
('base.site_css_update_date', '201903100001'),
('base.site_description', 'A Private Tracker Site Demo powered by RidPT'),
('base.site_generator', 'RidPT'),
('base.site_keywords', 'RidPT,Private Tracker'),
Expand Down

0 comments on commit c6e9211

Please sign in to comment.