clean
This commit is contained in:
@@ -28,9 +28,10 @@ class SMTP
|
|||||||
$smtp_from_email = get_option('options_smtp_from_email');
|
$smtp_from_email = get_option('options_smtp_from_email');
|
||||||
$smtp_from_name = get_option('options_smtp_from_name');
|
$smtp_from_name = get_option('options_smtp_from_name');
|
||||||
|
|
||||||
|
// $smtp_host_2 = get_field('smtp_host', 'option');
|
||||||
// Debug de todos los valores
|
// Debug de todos los valores
|
||||||
// error_log('📧 SMTP Config:');
|
// error_log('📧 SMTP Config:');
|
||||||
// error_log(' Host: ' . ($smtp_host ?: 'VACÍO'));
|
// error_log(' Host: ' . ($smtp_host_2 ?: 'VACÍO'));
|
||||||
|
|
||||||
// Verificar si tenemos la configuración mínima necesaria
|
// Verificar si tenemos la configuración mínima necesaria
|
||||||
if (empty($smtp_host) || empty($smtp_port)) {
|
if (empty($smtp_host) || empty($smtp_port)) {
|
||||||
@@ -62,7 +63,8 @@ class SMTP
|
|||||||
if (!empty($smtp_from_name)) {
|
if (!empty($smtp_from_name)) {
|
||||||
$phpmailer->FromName = $smtp_from_name;
|
$phpmailer->FromName = $smtp_from_name;
|
||||||
}
|
}
|
||||||
|
//var_dump(get_field('smtp_host', 'option'));
|
||||||
|
//var_dump(get_option('options_smtp_host'));
|
||||||
// ACTIVAR DEBUG TEMPORAL
|
// ACTIVAR DEBUG TEMPORAL
|
||||||
// $phpmailer->SMTPDebug = 2;
|
// $phpmailer->SMTPDebug = 2;
|
||||||
// $phpmailer->Debugoutput = function($str, $level) {
|
// $phpmailer->Debugoutput = function($str, $level) {
|
||||||
|
|||||||
@@ -6,11 +6,18 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<article class="post-type-{{ post.type }}" id="post-{{ post.id }}">
|
<article class="post-type-{{ post.type }}" id="post-{{ post.id }}">
|
||||||
<!-- <img src="{{ post.thumbnail.src }}" /> -->
|
<!-- <img src="{{ post.thumbnail.src }}" /> -->
|
||||||
|
<p class="my-5 position-relative fs-5 fw-bold sp-module-title">
|
||||||
|
{% if post.category %}
|
||||||
|
{{ post.category }}
|
||||||
|
{% else %}
|
||||||
|
{{ post.post_type == 'opinion' ? 'Opinión' : 'Sin categoría' }}
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
|
||||||
<section class="article-content mt-5 border-dark border-top">
|
<section class="article-content mt-5 border-dark border-top">
|
||||||
|
|
||||||
<h1 class="article-h1">{{ post.title }}</h1>
|
<h1 class="article-h1">{{ post.title }}</h1>
|
||||||
<p class="blog-author mt-3 mb-5 border-dark border-bottom">
|
<p class="blog-author mt-4 mb-3 border-dark border-bottom">
|
||||||
<span>{{ __('Autor', 'Sindikatua')}}:</span>
|
<span>{{ __('Autor', 'Sindikatua')}}:</span>
|
||||||
<a href="{{ post.author.path }}">{{ post.author.name }}</a>
|
<a href="{{ post.author.path }}">{{ post.author.name }}</a>
|
||||||
<span>•</span>
|
<span>•</span>
|
||||||
@@ -21,7 +28,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- comments -->
|
<!-- comments -->
|
||||||
<p>{{ __('No se puede comentar', 'Sindikatua') }}</p>
|
<p class="mt-5 border-dark border-top fst-italic">{{ __('No se puede comentar', 'Sindikatua') }}</p>
|
||||||
|
|
||||||
{# <section class="comment-box mt-5 p-2 border-dark border-top">
|
{# <section class="comment-box mt-5 p-2 border-dark border-top">
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
@@ -42,6 +49,7 @@
|
|||||||
{% include 'partials/comment-form.twig' %}
|
{% include 'partials/comment-form.twig' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section> #}
|
</section> #}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user