Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (38 sloc) 1.46 KB
define('MAX_LEGO', 24);
require_once $_SERVER['DOCUMENT_ROOT'] . '/etc/class/t7.php';
$html = new t7html(['vue' => true, 'bodytype' => 'gallery', 'rss' => ['title' => 'legos', 'url' => dirname($_SERVER['PHP_SELF']) . '/feed.rss']]);
$html->Open('original lego models');
original lego models
<a class=feed href="<?php echo dirname($_SERVER['PHP_SELF']); ?>/feed.rss" title="rss feed of lego models"></a>
if($user->IsAdmin()) {
<nav class=actions><a href="<?php echo dirname($_SERVER['PHP_SELF']); ?>/edit.php" class=new>add lego model</a></nav>
these lego models are <a href="/user/misterhaan/">my</a> own original
creations. each has step-by-step instructions and <a href="">ldraw</a>
model data file available for download.
<section id=legomodels>
<p class=error v-if=error>{{error}}</p>
<p v-if="!legos.length && !loading">this gallery is empty!</p>
<ol id=legogallery class=gallery v-if=legos.length>
<li v-for="model in legos">
<a class="lego thumb" :href=model.url>
<img :src="'/lego/data/' + model.url + '-thumb.png'">
<span class=caption>{{model.title}}</span>
<p class=loading v-if=loading>loading more legos . . .</p>
<p class="more calltoaction" v-if="!loading && hasMore"><a class="action get" href=#nextpage v-on:click.prevent=Load>load more legos</a></p>