feat: LOPDP Ecuador — router, permalinks, política privacidad, banner, nav, index temas
This commit is contained in:
@@ -9,7 +9,7 @@ declare(strict_types=1);
|
||||
<p class="lm-footer__copy">
|
||||
<?php echo esc_html(get_bloginfo('name')); ?> · <?php echo esc_html(date_i18n('Y')); ?>
|
||||
·
|
||||
<a href="/politica-de-privacidad/" style="opacity:.6;text-decoration:underline;font-size:.75rem;color:inherit">Política de Privacidad · LOPDP</a>
|
||||
<a href="<?php echo esc_url(home_url('/politica-de-privacidad/')); ?>" style="opacity:.6;text-decoration:underline;font-size:.75rem;color:inherit">Política de Privacidad · LOPDP</a>
|
||||
</p>
|
||||
<a class="lm-footer__top" href="#top" aria-label="<?php esc_attr_e('Volver al inicio', 'lumina'); ?>">↑</a>
|
||||
</div>
|
||||
|
||||
@@ -91,13 +91,14 @@ function lumina_render_primary_menu(): string
|
||||
]));
|
||||
}
|
||||
|
||||
$base = is_front_page() ? '' : home_url('/');
|
||||
$items = [
|
||||
'#resumen' => __('Perfil', 'lumina'),
|
||||
'#impacto' => __('Impacto', 'lumina'),
|
||||
'#experiencia' => __('Experiencia', 'lumina'),
|
||||
'#formacion' => __('Formación', 'lumina'),
|
||||
'#certificaciones' => __('Certificaciones', 'lumina'),
|
||||
'#contacto' => __('Contacto', 'lumina'),
|
||||
$base . '#resumen' => __('Perfil', 'lumina'),
|
||||
$base . '#impacto' => __('Impacto', 'lumina'),
|
||||
$base . '#experiencia' => __('Experiencia', 'lumina'),
|
||||
$base . '#formacion' => __('Formación', 'lumina'),
|
||||
$base . '#certificaciones' => __('Certificaciones', 'lumina'),
|
||||
$base . '#contacto' => __('Contacto', 'lumina'),
|
||||
];
|
||||
|
||||
$html = '<ul class="lm-nav__list">';
|
||||
|
||||
@@ -1,28 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<section class="lm-wrap">
|
||||
<div class="lm-card">
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<article <?php post_class('lm-entry'); ?>>
|
||||
<h1 class="lm-entry__title"><?php the_title(); ?></h1>
|
||||
<div class="lm-entry__body">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
<?php else : ?>
|
||||
<article class="lm-entry lm-entry--empty">
|
||||
<h1><?php esc_html_e('Empieza a construir tu perfil', 'lumina'); ?></h1>
|
||||
<p><?php esc_html_e('Crea una página de inicio y usa Lumina CV como tema activo.', 'lumina'); ?></p>
|
||||
</article>
|
||||
<?php endif; ?>
|
||||
<style>
|
||||
.lm-page-wrap{max-width:780px;margin:3rem auto;padding:0 2rem 4rem}
|
||||
.lm-page-wrap h1{font-family:'Plus Jakarta Sans',sans-serif;font-size:2rem;font-weight:700;color:#0f766e;margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:3px solid #f59e0b}
|
||||
.lm-page-wrap h2,.lm-page-wrap h3{font-family:'Plus Jakarta Sans',sans-serif;font-weight:700;color:#0f766e;margin:1.75rem 0 .5rem}
|
||||
.lm-page-wrap h2{font-size:1.15rem}
|
||||
.lm-page-wrap p{font-size:.95rem;color:#334155;line-height:1.75;margin-bottom:.75rem}
|
||||
.lm-page-wrap a{color:#0d9488}
|
||||
.lm-page-wrap a:hover{color:#f59e0b}
|
||||
.lm-back{display:inline-flex;align-items:center;gap:.4rem;margin-bottom:2rem;font-family:'Plus Jakarta Sans',sans-serif;font-size:.82rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#0d9488;text-decoration:none}
|
||||
.lm-back:hover{color:#f59e0b}
|
||||
.lm-back::before{content:'←'}
|
||||
</style>
|
||||
<section style="background:#f8fafc;min-height:60vh">
|
||||
<div class="lm-page-wrap">
|
||||
<a class="lm-back" href="<?php echo esc_url(home_url('/')); ?>">Volver al CV</a>
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
<h1><?php the_title(); ?></h1>
|
||||
<?php the_content(); ?>
|
||||
<?php endwhile; endif; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
|
||||
Reference in New Issue
Block a user