diff options
Diffstat (limited to 'html/app/views')
| -rw-r--r-- | html/app/views/basic.php | 53 | ||||
| -rw-r--r-- | html/app/views/group.php | 18 | ||||
| -rw-r--r-- | html/app/views/item.php | 4 | ||||
| -rw-r--r-- | html/app/views/products_list.php | 47 |
4 files changed, 122 insertions, 0 deletions
diff --git a/html/app/views/basic.php b/html/app/views/basic.php new file mode 100644 index 0000000..3d9abde --- /dev/null +++ b/html/app/views/basic.php @@ -0,0 +1,53 @@ +<?php ob_start(); ?><!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>ΣΚΛΑΒΕΝΙΤΗΣ - <?=$page['title']?></title> + + <!-- import assets --> + <?php link_asset( + 'font', + ['iconfont', 'CFAstyStdBold', 'CFAstyStdBook', 'CFAstyStdMedium'], + 'crossorogin' + ) ?> + + <?php link_asset('css', ['main']); ?> + + <!-- TODO: parse seo data --> + + +</head> +<body class="homepage" data-plugin-lazyload> + + <div class="mainContainer"> + + <div class="mainLayer"></div> + + + <!-- header --> + < ?php cache_view('partials/header', []); ? > + <?php ob_flush(); ?> + + + <!-- main content --> + <main class="main"> + + <?php parse_sections( $page['sections'] ); ?> + + </main> + <?php ob_flush(); ?> + + + <!-- footer --> + < ?php cache_view('partials/footer', [], true) ? > + + </div> + + <!-- scripts --> + <?php link_asset('js', + ['require.files', 'require.slim', 'plugins.min', 'plugins.setup' ] + ); ?> + +</body> +</html><?php ob_flush(); ?> diff --git a/html/app/views/group.php b/html/app/views/group.php new file mode 100644 index 0000000..fddd3d2 --- /dev/null +++ b/html/app/views/group.php @@ -0,0 +1,18 @@ +<img src="https://cdn.sklavenitis.co.gr/uploads/products/1180106.jpg"> +<!-- +<img src="https://s1.sklavenitis.gr/images/1600x1600/40/files/ProductMedia/Products/1222798/1.jpg" style="max-height:240px;"> --> +<img src="https://s1.sklavenitis.gr/images/ProductDetail/40/files/ProductMedia/Products/1222798/1.jpg"> + +<section> + <div style="padding: 1em"> + + <?php foreach ($group as $item) : ?> + + <div style="padding: 1em"> + <?php render_view('item', ['item' => $item]) ?> + </div> + + <?php endforeach; ?> + + </div> +</section> diff --git a/html/app/views/item.php b/html/app/views/item.php new file mode 100644 index 0000000..2354c81 --- /dev/null +++ b/html/app/views/item.php @@ -0,0 +1,4 @@ +<h3><?=$item['title']?></h3> +<p> + <i><?=$item['info']?></i> +</p>
\ No newline at end of file diff --git a/html/app/views/products_list.php b/html/app/views/products_list.php new file mode 100644 index 0000000..1d9cf38 --- /dev/null +++ b/html/app/views/products_list.php @@ -0,0 +1,47 @@ +<style> + body { + max-width: 960px; width: 100%; margin: 0 auto; + font-family: Ubuntu, Calibri, Helevetica, sans-serif; + padding: 2em 1em; + } + td { + vertical-align: top; + padding: 2px; margin: .5em; + font-size: .82em; text-align: right; color: #666; + } + + h3 { color: #924; text-align: center; } + + .-edit { + text-align: left; font-size: 1em; + color: #357; background: #f6f6f6; + padding: .5em; + } + td span { font-size: .8em; color: #9249; } + + [contenteditable='true']:focus { border-radius: 3px; } + [contenteditable='true']:focus { + outline: none; + color: #924; + border: 2px solid #9249; border-top: 4px solid #9249; + } + +</style> + +<h3>— products —</h3> + +<?php foreach( $products as $product) : ?> + + <table> + <?php foreach ($product as $key => $val) : ?> + + <tr> + <td><?= $key ?><br/><span>int(11) NOT NULL</span></td> + <td class='-edit' id='<?=$key .'_'. $product['ID']?>' contenteditable="true"><?=$val?></td> + </tr> + + <?php endforeach ?> + </table> + <hr /> + +<?php endforeach ?> |
