Add static version of the countdown

This commit is contained in:
Vencislav Atanasov 2024-10-24 23:38:56 +03:00
parent 9e92868475
commit 47defd5de4
2 changed files with 46 additions and 6 deletions

View File

@ -1,14 +1,50 @@
<?php get_header(); ?>
<style>
.ofhr-text-center {
text-align: center;
}
</style>
<section class="content subtitle_content">
<?php
e_('about_event');
$blog_slug = get_blog_slug();
if ($blog_slug === '2024') {
?>
<style>
.countdown {
text-align: center;
}
.countdown > table {
margin: 0 auto;
}
.countdown .digits > td {
font-size: 30px;
}
.countdown > .units > td {
font-size: 12px;
}
</style>
<br><br>
<div class="countdown">
<?php e_('about_event'); ?>
<table>
<tbody>
<tr class="digits">
<td>08</td>
<td>10</td>
<td>21</td>
</tr>
<tr class="units">
<td><?php e_('countdown_days'); ?></td>
<td><?php e_('countdown_hours'); ?></td>
<td><?php e_('countdown_minutes'); ?></td>
</tr>
</tbody>
</table>
</div>
<?php
}
?>
</section>
<section class="content">

View File

@ -383,6 +383,10 @@ if (function_exists("pll_register_string")) {
pll_register_string('tba','TBA');
pll_register_string('feedback','Submit feedback');
pll_register_string('about_event','about_event');
pll_register_string('countdown_text','countdown_text');
pll_register_string('countdown_days','countdown_days');
pll_register_string('countdown_hours','countdown_hours');
pll_register_string('countdown_minutes','countdown_minutes');
}
add_filter( 'wp_title', 'wpdocs_hack_wp_title_for_home' );