Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dev.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
dev.biuro
Commits
24a06fe5
Commit
24a06fe5
authored
Apr 28, 2019
by
Simon
Browse files
Options
Browse Files
Download
Plain Diff
merge conflict
parents
376b5fe2
9a489f21
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
single-job.php
wp-content/themes/biuro/single-job.php
+12
-1
aside-job-inactive.php
...themes/biuro/template-parts/layout/aside-job-inactive.php
+1
-0
No files found.
wp-content/themes/biuro/single-job.php
View file @
24a06fe5
...
...
@@ -59,6 +59,8 @@ get_header();
</p>
<?php
endif
;
$validPosition
=
date_i18n
(
'Y-m-d'
,
strtotime
(
$pod
->
field
(
'valid'
)
)
)
>
date
(
'Y-m-d'
)
?
true
:
false
;
?>
<p>
<?php
_e
(
'Published'
,
'biuro'
);
?>
:
<?php
echo
date_i18n
(
get_option
(
'date_format'
),
strtotime
(
$pod
->
field
(
'post_date'
)
)
);
?>
...
...
@@ -66,15 +68,24 @@ get_header();
<?php
_e
(
'Valid till'
,
'biuro'
);
?>
:
<?php
echo
date_i18n
(
get_option
(
'date_format'
),
strtotime
(
$pod
->
field
(
'valid'
)
)
);
?>
</p>
<?php
if
(
$validPosition
)
:
?>
<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>
</div>
<?php
endif
;
?>
</main>
<!-- .l-main -->
<aside
class=
"l-aside--position"
>
<?php
if
(
$validPosition
)
:
get_template_part
(
'template-parts/layout/aside'
,
'job'
);
else
:
get_template_part
(
'template-parts/layout/aside'
,
'job-inactive'
);
endif
;
?>
</aside>
<!-- .l-aside -->
...
...
wp-content/themes/biuro/template-parts/layout/aside-job-inactive.php
0 → 100644
View file @
24a06fe5
<?php
_e
(
'Job ad is inactive'
,
'biuro'
);
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment