Compare commits

..

1 Commits

Author SHA1 Message Date
rafa a3c8f48d55 fix: emphasize dark-mode toggle moon
Co-authored-by: rafa <rcalvotorrejon@gmail.com>
Signed-off-by: rafa <rcalvotorrejon@gmail.com>
2026-08-14 08:31:11 -04:00
3 changed files with 10 additions and 6 deletions
+8
View File
@@ -84,6 +84,14 @@ add_action('wp_head', function () {
}
#fea-theme-btn:hover { background: rgba(0,0,0,0.06); }
/* La luna debe destacar también sobre cabeceras claras. */
html:not([data-fea-theme="dark"]) #fea-theme-btn {
background: #000;
border-color: #000;
color: #f6c744;
}
html:not([data-fea-theme="dark"]) #fea-theme-btn:hover { background: #242424; }
/* ══════════════════════════════════════════════════════════════════
MODO OSCURO — activado por [data-fea-theme="dark"] en <html>
══════════════════════════════════════════════════════════════════ */
+1 -5
View File
@@ -9,12 +9,8 @@ function fea_evangelio_category($es_id) {
return function_exists('fea_cat') ? (int) fea_cat($es_id) : (int) $es_id;
}
function fea_evangelio_comment_categories() {
return array_map('fea_evangelio_category', [1647, 1646]);
}
function fea_evangelio_is_comment($post_id) {
return has_category(fea_evangelio_comment_categories(), $post_id);
return has_category(fea_evangelio_category(1647), $post_id);
}
/** Lee el meta del comentario; las traducciones heredan el dato editorial del original ES. */
+1 -1
View File
@@ -5,7 +5,7 @@
$apply = in_array('--apply', $_SERVER['argv'] ?? [], true);
$posts = get_posts([
'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => -1,
'category__in' => fea_evangelio_comment_categories(),
'category__in' => [fea_evangelio_category(1647)],
'meta_query' => [['key' => '_cita_evangelio', 'compare' => 'NOT EXISTS']],
'orderby' => 'date', 'order' => 'ASC',
]);