This commit is contained in:
grandeljay 2022-12-10 17:26:30 +01:00
parent 7318627841
commit 389a5499a9
3 changed files with 12 additions and 16 deletions

View file

@ -6,15 +6,7 @@
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="ui stackable grid">
<div class="column">

View file

@ -8,11 +8,13 @@
namespace wishthis;
$wishlist = new Wishlist($_GET['hash']);
$page = new Page(__FILE__, $wishlist->getTitle());
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
$page->scripts['wish'] = 'src/assets/js/parts/wish.js';
$wishlist_user = User::getFromID($wishlist->user);
$wishlist = new Wishlist($_GET['hash']);
$page = new Page(__FILE__, $wishlist->getTitle());
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
$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);
if (!$wishlist->exists) {
$page->errorDocument(404, $wishlist);

View file

@ -8,9 +8,11 @@
namespace wishthis;
$page = new Page(__FILE__, __('My lists'), 1);
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
$page->scripts['wish'] = 'src/assets/js/parts/wish.js';
$page = new Page(__FILE__, __('My lists'), 1);
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
$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->bodyStart();
$page->navigation();