This commit is contained in:
2025-10-23 08:41:23 +00:00
parent 096a268daa
commit d8b185bacc
2 changed files with 14 additions and 4 deletions

View File

@ -28,9 +28,10 @@ class SMTP
$smtp_from_email = get_option('options_smtp_from_email');
$smtp_from_name = get_option('options_smtp_from_name');
// $smtp_host_2 = get_field('smtp_host', 'option');
// Debug de todos los valores
// 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
if (empty($smtp_host) || empty($smtp_port)) {
@ -62,7 +63,8 @@ class SMTP
if (!empty($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
// $phpmailer->SMTPDebug = 2;
// $phpmailer->Debugoutput = function($str, $level) {

View File

@ -6,11 +6,18 @@
<div class="container">
<article class="post-type-{{ post.type }}" id="post-{{ post.id }}">
<!-- <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">
<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>
<a href="{{ post.author.path }}">{{ post.author.name }}</a>
<span>&bull;</span>
@ -21,7 +28,7 @@
</section>
<!-- 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">
<div class="comments">
@ -42,6 +49,7 @@
{% include 'partials/comment-form.twig' %}
{% endif %}
</section> #}
</article>
</div>
{% endblock %}