Add product page
This commit is contained in:
parent
20b1399e2c
commit
94875d6ec5
2 changed files with 44 additions and 1 deletions
|
@ -21,7 +21,8 @@ $page->header();
|
|||
|
||||
<section>
|
||||
<h2>Wishlist</h2>
|
||||
<a href="?page=wishlist">Create a wishlist</a>
|
||||
<a href="?page=wishlist-create">Create a wishlist</a>
|
||||
<a href="?page=wishlist-product-add">Add a product</a>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
|
|
42
includes/pages/wishlist-product-add.php
Normal file
42
includes/pages/wishlist-product-add.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* wishlist.php
|
||||
*
|
||||
* @author Jay Trees <github.jay@grandel.anonaddy.me>
|
||||
*/
|
||||
|
||||
use wishthis\Page;
|
||||
use Brick\Schema\SchemaReader;
|
||||
use Brick\Schema\Interfaces as Schema;
|
||||
use Embed\Embed;
|
||||
|
||||
$page = new page(__FILE__, 'Add a product');
|
||||
|
||||
$url = 'https://www.amazon.de/Adventskalender-2020-Schokolade-Weihnachtskalender-346g/dp/B08CTTP5JX';
|
||||
$embed = new Embed();
|
||||
$info = $embed->get($url);
|
||||
|
||||
echo '<pre>';
|
||||
var_dump($info->oembed);
|
||||
echo '</pre>';
|
||||
|
||||
$page->header();
|
||||
?>
|
||||
<main>
|
||||
<section>
|
||||
<h1>Add a product</h1>
|
||||
|
||||
<form method="post">
|
||||
<fieldset>
|
||||
<label>URL</label>
|
||||
<input type="url" name="url" />
|
||||
</fieldset>
|
||||
|
||||
<input type="submit" value="Add" />
|
||||
</form>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<?php
|
||||
$page->footer();
|
Loading…
Reference in a new issue