77 lines
1.9 KiB
PHP
77 lines
1.9 KiB
PHP
<?php get_header(); ?>
|
|
|
|
<section class="content subtitle_content">
|
|
<?php
|
|
e_('about_event');
|
|
|
|
// countdown begin
|
|
$eventStartTimes = [
|
|
'2024' => '2024-11-02 10:00:00',
|
|
];
|
|
|
|
$blog_slug = get_blog_slug();
|
|
|
|
if (array_key_exists($blog_slug, $eventStartTimes)) {
|
|
$now = new DateTimeImmutable('now');
|
|
$eventStart = new DateTimeImmutable($eventStartTimes[$blog_slug] . ' Europe/Sofia');
|
|
$interval = $now->diff($eventStart);
|
|
}
|
|
|
|
if ($interval instanceof DateInterval && $interval->invert === 0) {
|
|
?>
|
|
<style>
|
|
.countdown {
|
|
text-align: center;
|
|
}
|
|
|
|
.countdown > table {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.countdown .digits > td {
|
|
font-size: 30px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.countdown .units > td {
|
|
font-size: 12px;
|
|
}
|
|
</style>
|
|
<br><br>
|
|
<div class="countdown">
|
|
<?php e_('countdown_text_before'); ?>
|
|
<table>
|
|
<tbody>
|
|
<tr class="digits">
|
|
<td><?php echo $interval->format('%a'); ?></td>
|
|
<td><?php echo $interval->format('%H'); ?></td>
|
|
<td><?php echo $interval->format('%I'); ?></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>
|
|
<?php e_('countdown_text_after'); ?>
|
|
</div>
|
|
<?php
|
|
}
|
|
// countdown end
|
|
?>
|
|
</section>
|
|
<section class="content">
|
|
<?php echo do_shortcode( '[sh-latest-posts cat="news" label="'.pll__('Новини').'"]' ); ?>
|
|
<div class="separator"></div>
|
|
<div class="col-right sponsors sponsors-frontpage">
|
|
<?php echo do_shortcode( '[sponsors]' ); ?>
|
|
<?php echo do_shortcode( '[partners]' ); ?>
|
|
</div>
|
|
<div class="separator"></div>
|
|
</section>
|
|
|
|
<?php echo do_shortcode( '[transport]' ); ?>
|
|
|
|
<?php get_footer(); ?>
|