Commit 24a06fe5 authored by Simon's avatar Simon

merge conflict

parents 376b5fe2 9a489f21
...@@ -59,6 +59,8 @@ get_header(); ...@@ -59,6 +59,8 @@ get_header();
</p> </p>
<?php <?php
endif; endif;
$validPosition = date_i18n( 'Y-m-d', strtotime( $pod->field( 'valid' ) ) ) > date('Y-m-d') ? true : false;
?> ?>
<p> <p>
<?php _e('Published', 'biuro'); ?>: <?php echo date_i18n( get_option( 'date_format' ), strtotime( $pod->field( 'post_date' ) ) ); ?> <?php _e('Published', 'biuro'); ?>: <?php echo date_i18n( get_option( 'date_format' ), strtotime( $pod->field( 'post_date' ) ) ); ?>
...@@ -66,15 +68,24 @@ get_header(); ...@@ -66,15 +68,24 @@ get_header();
<?php _e('Valid till', 'biuro'); ?>: <?php echo date_i18n( get_option( 'date_format' ), strtotime( $pod->field( 'valid' ) ) ); ?> <?php _e('Valid till', 'biuro'); ?>: <?php echo date_i18n( get_option( 'date_format' ), strtotime( $pod->field( 'valid' ) ) ); ?>
</p> </p>
<?php
if ($validPosition):
?>
<div class="c-job--action"> <div class="c-job--action">
<button type="submit" class="js-inititate-position-form o-btn c-btn--main c-btn--fill" name="submit" value="1" data-id="action--form"><?php _e('Candidate', 'biuro'); ?></button> <button type="submit" class="js-inititate-position-form o-btn c-btn--main c-btn--fill" name="submit" value="1" data-id="action--form"><?php _e('Candidate', 'biuro'); ?></button>
</div> </div>
<?php
endif;
?>
</main><!-- .l-main --> </main><!-- .l-main -->
<aside class="l-aside--position"> <aside class="l-aside--position">
<?php <?php
if ($validPosition):
get_template_part( 'template-parts/layout/aside', 'job' ); get_template_part( 'template-parts/layout/aside', 'job' );
else:
get_template_part( 'template-parts/layout/aside', 'job-inactive' );
endif;
?> ?>
</aside><!-- .l-aside --> </aside><!-- .l-aside -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment