MODIFY sigle page & comments
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
</div>
|
||||
|
||||
<!-- nav -->
|
||||
<div class="d-flex align-items-center justify-content-around bg-body-tertiary">
|
||||
<div class="align-items-center justify-content-around bg-body-tertiary d-none d-lg-flex">
|
||||
<div>
|
||||
<nav class="navbar navbar-expand-lg">
|
||||
<div class="container-fluid">
|
||||
@ -33,7 +33,7 @@
|
||||
{% include "partials/btn-search.twig" with {'items': menu.get_items} %}
|
||||
</div> #}
|
||||
<div>
|
||||
{% include "partials/menu-burger.twig" with {'items': menu.get_items} %}
|
||||
{% include "partials/menu-burger.twig" with {'items': menu.get_items, 'burger_id': 'menu-burger-desktop'} %}
|
||||
</div>
|
||||
</div>
|
||||
<!-- end nav -->
|
||||
|
@ -1,32 +1,57 @@
|
||||
<div class="comment-form">
|
||||
<h3>Add comment</h3>
|
||||
<form class="comment-form" method="post" action="{{ site.link ~ '/wp-comments-post.php' }}">
|
||||
{% if user %}
|
||||
<input type="hidden" name="email" value="{{ user.email }}" />
|
||||
<input type="hidden" name="author" value="{{ user.name }}" />
|
||||
<input type="hidden" name="url" value="{{ user.link }}" />
|
||||
{% else %}
|
||||
<label>
|
||||
Email<br />
|
||||
<input required name="email" type="email" id="email" />
|
||||
</label>
|
||||
<label>
|
||||
Name<br />
|
||||
<input required name="author" type="text" />
|
||||
</label>
|
||||
<label>
|
||||
Website<br />
|
||||
<input name="url" type="url" />
|
||||
</label>
|
||||
{% endif %}
|
||||
<label>
|
||||
Comment<br />
|
||||
<textarea placeholder="Leave a comment..." name="comment" cols="60" rows="3"></textarea>
|
||||
</label>
|
||||
<input name="comment_post_ID" value="{{ post.id }}" type="hidden" />
|
||||
<input name="comment_parent" value="{{ comment.id|default('0') }}" type="hidden" />
|
||||
<button type="submit" name="Submit" class="btn">Send</button>
|
||||
<button type="reset">Cancel</button>
|
||||
<p>Your comment will be revised by the site if needed.</p>
|
||||
</form>
|
||||
<div class="comment-form my-5">
|
||||
<p class="position-relative fs-4 fw-bold sp-module-title">Añadir Comentario</p>
|
||||
|
||||
<div class="container mt-4">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-6 col-md-8 col-12">
|
||||
<form class="comment-form" method="post" action="{{ site.link ~ '/wp-comments-post.php' }}">
|
||||
{% if user %}
|
||||
|
||||
<div class="mb-3 row">
|
||||
<label for="nombre" class="form-label">Nombre</label>
|
||||
<input class="form-control form-control-sm" type="text" name="author" value="{{ user.name }}" />
|
||||
</div>
|
||||
|
||||
<div class="mb-3 row">
|
||||
<label for="nombre" class="form-label">Email</label>
|
||||
<input class="form-control form-control-sm" type="email" name="email" value="{{ user.email }}" />
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="url" value="{{ user.link }}" />
|
||||
|
||||
{% else %}
|
||||
<div class="mb-3">
|
||||
<label for="nombre" class="form-label">Email</label>
|
||||
<input class="form-control form-control-sm" required name="email" type="email" id="email" />
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="nombre" class="form-label">Nombre</label>
|
||||
<input class="form-control form-control-sm" required name="author" type="text" />
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="nombre" class="form-label">Website</label>
|
||||
<input class="form-control form-control-sm" name="url" type="url" />
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="mb-3 row">
|
||||
<label for="comment" class="form-label">Comentario</label>
|
||||
<textarea class="form-control form-control-sm" placeholder="Deja un comentario..." name="comment" cols="60" rows="3">
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<input name="comment_post_ID" value="{{ post.id }}" type="hidden" />
|
||||
<input name="comment_parent" value="{{ comment.id|default('0') }}" type="hidden" />
|
||||
|
||||
<button type="submit" name="Submit" class="btn btn-primary-cnt">Enviar</button>
|
||||
<button type="reset" class="btn btn-primary-cnt">Cancelar</button>
|
||||
|
||||
<div class="alert alert-warning mt-5" role="alert">
|
||||
<p>Tu comentario será revisado por el administrador antes de ser publicado.</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
{% include 'partials/comment-form.twig' %}
|
||||
|
||||
{% if post.comments %}
|
||||
<h4>replies</h4>
|
||||
<h4>Replicar</h4>
|
||||
<div class="comments">
|
||||
{% for cmt in comment.children %}
|
||||
{% include 'partials/comment.twig' with {
|
||||
|
@ -1,23 +1,29 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="content-wrapper">
|
||||
<div class="container">
|
||||
<article class="post-type-{{ post.type }}" id="post-{{ post.id }}">
|
||||
<img src="{{ post.thumbnail.src|resize(1200, 300) }}" />
|
||||
<section class="article-content">
|
||||
<!-- <img src="{{ post.thumbnail.src|resize(1200, 300) }}" /> -->
|
||||
|
||||
<section class="article-content mt-5 border-dark border-top">
|
||||
|
||||
<h1 class="article-h1">{{ post.title }}</h1>
|
||||
<p class="blog-author">
|
||||
<span>By</span>
|
||||
<p class="blog-author mt-3 mb-5 border-dark border-bottom">
|
||||
<span>Autor:</span>
|
||||
<a href="{{ post.author.path }}">{{ post.author.name }}</a>
|
||||
<span>•</span>
|
||||
<time datetime="{{ post.date|date('Y-m-d H:i:s') }}">{{ post.date }}</time>
|
||||
</p>
|
||||
|
||||
<div class="article-body">{{ post.content }}</div>
|
||||
</section>
|
||||
<section class="comment-box">
|
||||
|
||||
<!-- comments -->
|
||||
<section class="comment-box mt-5 p-2 border-dark border-top">
|
||||
<div class="comments">
|
||||
{% if post.comments %}
|
||||
<h3>comments</h3>
|
||||
<!-- <h2>Comentarios</h2> -->
|
||||
|
||||
{% for cmt in post.comments %}
|
||||
{% include 'partials/comment.twig' with {
|
||||
comment: cmt
|
||||
@ -27,7 +33,7 @@
|
||||
</div>
|
||||
|
||||
{% if post.comment_status == 'closed' %}
|
||||
<p>comments for this post are closed by gus</p>
|
||||
<p>No se puede comentar.</p>
|
||||
{% else %}
|
||||
{% include 'partials/comment-form.twig' %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user