Refactor
This commit is contained in:
parent
7318627841
commit
389a5499a9
3 changed files with 12 additions and 16 deletions
|
@ -6,15 +6,7 @@
|
||||||
|
|
||||||
namespace wishthis;
|
namespace wishthis;
|
||||||
|
|
||||||
$scripts = array(
|
|
||||||
'/src/assets/js/parts/wishlist-filter-priority.js',
|
|
||||||
'/src/assets/js/parts/wishlists.js',
|
|
||||||
);
|
|
||||||
?>
|
?>
|
||||||
<?php foreach ($scripts as $script) { ?>
|
|
||||||
<script defer src="<?= $script ?>?m=<?= filemtime(ROOT . $script) ?>"></script>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="wishlist-filter-wrapper">
|
<div class="wishlist-filter-wrapper">
|
||||||
<div class="ui stackable grid">
|
<div class="ui stackable grid">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
|
|
@ -12,6 +12,8 @@ $wishlist = new Wishlist($_GET['hash']);
|
||||||
$page = new Page(__FILE__, $wishlist->getTitle());
|
$page = new Page(__FILE__, $wishlist->getTitle());
|
||||||
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
|
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
|
||||||
$page->scripts['wish'] = 'src/assets/js/parts/wish.js';
|
$page->scripts['wish'] = 'src/assets/js/parts/wish.js';
|
||||||
|
$page->scripts['wishlist-filter-priority'] = 'src/assets/js/parts/wishlist-filter-priority.js';
|
||||||
|
$page->scripts['wishlists'] = 'src/assets/js/parts/wishlists.js';
|
||||||
$wishlist_user = User::getFromID($wishlist->user);
|
$wishlist_user = User::getFromID($wishlist->user);
|
||||||
|
|
||||||
if (!$wishlist->exists) {
|
if (!$wishlist->exists) {
|
||||||
|
|
|
@ -11,6 +11,8 @@ namespace wishthis;
|
||||||
$page = new Page(__FILE__, __('My lists'), 1);
|
$page = new Page(__FILE__, __('My lists'), 1);
|
||||||
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
|
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
|
||||||
$page->scripts['wish'] = 'src/assets/js/parts/wish.js';
|
$page->scripts['wish'] = 'src/assets/js/parts/wish.js';
|
||||||
|
$page->scripts['wishlist-filter-priority'] = 'src/assets/js/parts/wishlist-filter-priority.js';
|
||||||
|
$page->scripts['wishlists'] = 'src/assets/js/parts/wishlists.js';
|
||||||
$page->header();
|
$page->header();
|
||||||
$page->bodyStart();
|
$page->bodyStart();
|
||||||
$page->navigation();
|
$page->navigation();
|
||||||
|
|
Loading…
Reference in a new issue