Añade maquetado simple del muro y un artículo
This commit is contained in:
parent
9d45af9515
commit
16a81b82ea
4 changed files with 47 additions and 9 deletions
|
@ -1,5 +0,0 @@
|
||||||
<?php defined('NABU') || exit ?>
|
|
||||||
|
|
||||||
<h2>Comentarios</h2>
|
|
||||||
|
|
||||||
<?php require_once 'views/components/messages.php' ?>
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php defined('NABU') || exit ?>
|
<?php defined('NABU') || exit ?>
|
||||||
|
|
||||||
<form method="POST" action="<?= NABU['home'] ?>">
|
<form method="POST" action="<?= NABU_ROUTES['home'] ?>">
|
||||||
<input type="hidden" name="csrf" value="<?= $token ?>">
|
<input type="hidden" name="csrf" value="<?= $token ?>">
|
||||||
<span>
|
<span>
|
||||||
<input type="text" name="q" minlength="1" maxlength="246" required>
|
<input type="text" name="q" minlength="1" maxlength="246" required>
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
<?php defined('NABU') || exit ?>
|
<?php defined('NABU') || exit ?>
|
||||||
|
<?php $head_title = 'Muro' ?>
|
||||||
|
<?php $styles = array(
|
||||||
|
NABU_DIRECTORY['styles'] . '/pages/all-articles/all-articles.css',
|
||||||
|
NABU_DIRECTORY['styles'] . '/pages/all-articles/all-articles-desktop.css',
|
||||||
|
NABU_DIRECTORY['styles'] . '/components/articles/articles.css',
|
||||||
|
) ?>
|
||||||
<?php require_once 'views/components/head.php' ?>
|
<?php require_once 'views/components/head.php' ?>
|
||||||
<?php require_once 'views/components/search.php' ?>
|
|
||||||
|
|
||||||
<h1>Muro</h1>
|
<h1>Muro</h1>
|
||||||
|
<?php require_once 'views/components/search.php' ?>
|
||||||
<?php require_once 'views/components/articles.php' ?>
|
<?php require_once 'views/components/articles.php' ?>
|
||||||
<?php require_once 'views/components/footer.php' ?>
|
<?php require_once 'views/components/footer.php' ?>
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
<?php defined('NABU') || exit ?>
|
||||||
|
<?php $head_title = 'Artículo' ?>
|
||||||
|
<?php $styles = array(
|
||||||
|
NABU_DIRECTORY['styles'] . '/pages/article/article.css',
|
||||||
|
NABU_DIRECTORY['styles'] . '/pages/article/article-desktop.css',
|
||||||
|
NABU_DIRECTORY['styles'] . '/components/articles/articles.css',
|
||||||
|
) ?>
|
||||||
|
<?php require_once 'views/components/head.php' ?>
|
||||||
|
|
||||||
|
<h1><?= $article['title'] ?></h1>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p>Autor:</p>
|
||||||
|
<a href="<?= $author_profile ?>"><img src="<?= $article['author_avatar'] ?>" alt="Foto de perfil del autor" width="8%"></a>
|
||||||
|
<p><a href="<?= $author_profile ?>"><?= $article['author_username'] ?></a></p>
|
||||||
|
<p><?= $article['date'] ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<?= $article['content'] ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Datos del autor</h2>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<a href="<?= $author_profile ?>"><img src="<?= $article['author_avatar'] ?>" alt="Foto de perfil del autor" width="8%"></a>
|
||||||
|
<p><a href="<?= $author_profile ?>"><?= $article['author'] ?></a></p>
|
||||||
|
<p><?= $article['author_description'] ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Otros artículos</h2>
|
||||||
|
|
||||||
|
<?php require_once 'views/components/articles.php' ?>
|
||||||
|
|
||||||
|
<h2>Comentarios</h2>
|
||||||
|
|
||||||
|
<?php require_once 'views/components/messages.php' ?>
|
||||||
|
|
||||||
|
<?php require_once 'views/components/footer.php' ?>
|
Loading…
Reference in a new issue