feat: LOPDP Ecuador — router, permalinks, política privacidad, banner, nav, index temas

This commit is contained in:
2026-06-05 15:06:52 -05:00
parent 5d575db5e3
commit 90fee1947f
16 changed files with 180 additions and 108 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<div class="site-footer__inner">
<p><?php echo esc_html(get_bloginfo('name')); ?> · <?php echo esc_html(date_i18n('Y')); ?>
&nbsp;·&nbsp;
<a href="/politica-de-privacidad/" style="opacity:.6;text-decoration:underline;font-size:.75rem;color:inherit">Política de Privacidad · LOPDP</a></p>
<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>
</div>
</footer>
<?php wp_footer(); ?>
+7 -6
View File
@@ -92,13 +92,14 @@ function cvolio_render_primary_menu(): string
]));
}
$base = is_front_page() ? '' : home_url('/');
$items = [
'#resumen' => __('Resumen', 'cvolio'),
'#impacto' => __('Impacto', 'cvolio'),
'#experiencia' => __('Experiencia', 'cvolio'),
'#formacion' => __('Formación', 'cvolio'),
'#certificaciones' => __('Certificaciones', 'cvolio'),
'#contacto' => __('Contacto', 'cvolio'),
$base . '#resumen' => __('Resumen', 'cvolio'),
$base . '#impacto' => __('Impacto', 'cvolio'),
$base . '#experiencia' => __('Experiencia', 'cvolio'),
$base . '#formacion' => __('Formación', 'cvolio'),
$base . '#certificaciones' => __('Certificaciones', 'cvolio'),
$base . '#contacto' => __('Contacto', 'cvolio'),
];
$html = '<ul class="site-nav__menu">';
+23 -20
View File
@@ -1,23 +1,26 @@
<?php get_header(); ?>
<section class="content-wrap">
<div class="content-card">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class(); ?>>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
<?php else : ?>
<article class="content-empty">
<h1><?php esc_html_e('Empieza a construir tu perfil', 'cvolio'); ?></h1>
<p><?php esc_html_e('Crea una pagina y usa este tema como base para tu hoja de vida.', 'cvolio'); ?></p>
</article>
<?php endif; ?>
<?php
declare(strict_types=1);
get_header();
?>
<style>
.cv-page-wrap{max-width:780px;margin:3rem auto;padding:0 2rem 4rem}
.cv-page-wrap h1{font-family:'Manrope',sans-serif;font-size:2rem;font-weight:700;color:#d4a574;margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:2px solid rgba(212,165,116,.4)}
.cv-page-wrap h2,.cv-page-wrap h3{font-family:'Manrope',sans-serif;font-weight:700;color:#d4a574;margin:1.75rem 0 .5rem}
.cv-page-wrap h2{font-size:1.1rem}
.cv-page-wrap p{font-size:.93rem;color:#c8c8d0;line-height:1.75;margin-bottom:.75rem}
.cv-page-wrap a{color:#d4a574}
.cv-page-wrap a:hover{color:#fff}
.cv-back{display:inline-flex;align-items:center;gap:.4rem;margin-bottom:2rem;font-family:'Manrope',sans-serif;font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#d4a574;text-decoration:none}
.cv-back:hover{color:#fff}
.cv-back::before{content:'←'}
</style>
<section class="content-wrap" style="min-height:60vh">
<div class="cv-page-wrap">
<a class="cv-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(); ?>
+1 -1
View File
@@ -9,7 +9,7 @@ declare(strict_types=1);
<p class="lm-footer__copy">
<?php echo esc_html(get_bloginfo('name')); ?> &middot; <?php echo esc_html(date_i18n('Y')); ?>
&nbsp;&middot;&nbsp;
<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'); ?>">&#8593;</a>
</div>
+7 -6
View File
@@ -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">';
+19 -21
View File
@@ -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(); ?>
+1 -1
View File
@@ -375,7 +375,7 @@ $publicUrl = 'https://pflres.linkedcorp.net';
<div class="pn-footer-bar">
<p><?php echo esc_html(get_bloginfo('name')); ?> &copy; <?php echo esc_html(date_i18n('Y')); ?> &mdash; <?php esc_html_e('Todos los derechos reservados', 'persona'); ?></p>
<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>
</div>
</div>
</section>
+8 -7
View File
@@ -50,14 +50,15 @@ function persona_render_nav(): string {
'fallback_cb' => false, 'menu_class' => 'pn-nav__list', 'echo' => false,
]));
}
$base = is_front_page() ? '' : home_url('/');
$items = [
'#sobre-mi' => 'Sobre mí',
'#impacto' => 'Impacto',
'#experiencia' => 'Experiencia',
'#formacion' => 'Formación',
'#competencias' => 'Competencias',
'#certificaciones' => 'Certificaciones',
'#contacto' => 'Contacto',
$base . '#sobre-mi' => 'Sobre mí',
$base . '#impacto' => 'Impacto',
$base . '#experiencia' => 'Experiencia',
$base . '#formacion' => 'Formación',
$base . '#competencias' => 'Competencias',
$base . '#certificaciones' => 'Certificaciones',
$base . '#contacto' => 'Contacto',
];
$html = '<ul class="pn-nav__list">';
foreach ($items as $href => $label) {
+16 -2
View File
@@ -2,10 +2,24 @@
declare(strict_types=1);
get_header();
?>
<style>
.pn-page-wrap{max-width:780px;margin:3rem auto;padding:0 2rem 4rem}
.pn-page-wrap h1{font-family:'Raleway',sans-serif;font-size:2rem;font-weight:700;color:#1B3A5C;margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:3px solid #c0392b}
.pn-page-wrap h2,.pn-page-wrap h3{font-family:'Raleway',sans-serif;font-weight:700;color:#1B3A5C;margin:1.75rem 0 .5rem}
.pn-page-wrap h2{font-size:1.15rem}
.pn-page-wrap p{font-size:.95rem;color:#2d3436;line-height:1.75;margin-bottom:.75rem}
.pn-page-wrap a{color:#c0392b}
.pn-page-wrap a:hover{color:#1B3A5C}
.pn-back{display:inline-flex;align-items:center;gap:.4rem;margin-bottom:2rem;font-family:'Raleway',sans-serif;font-size:.82rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#c0392b;text-decoration:none}
.pn-back:hover{color:#1B3A5C}
.pn-back::before{content:'←'}
</style>
<section class="pn-section pn-section--white">
<div class="pn-container">
<div class="pn-page-wrap">
<a class="pn-back" href="<?php echo esc_url(home_url('/')); ?>">Volver al CV</a>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article <?php post_class(); ?>><h1><?php the_title(); ?></h1><?php the_content(); ?></article>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</div>
</section>