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
e6dce323
Commit
e6dce323
authored
Apr 29, 2019
by
Simonas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
position
parent
b1e50d92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
43 deletions
+22
-43
README.md
README.md
+1
-1
aside-job.php
wp-content/themes/biuro/template-parts/layout/aside-job.php
+21
-42
No files found.
README.md
View file @
e6dce323
...
...
@@ -112,7 +112,7 @@ Can't share C drive
-
docker load --input ourdemo.tar
-
docker build -t biuro/web:0.0.1
3
.
-
docker build -t biuro/web:0.0.1
5
.
-
docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
-
sudo docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
-
docker push biuro/web:0.0.13
...
...
wp-content/themes/biuro/template-parts/layout/aside-job.php
View file @
e6dce323
<?php
$jobID
=
get_the_ID
();
$pod
=
pods
(
'job'
,
get_the_ID
()
);
echo
do_shortcode
(
'[biuro-contacts--position job_id="'
.
$jobID
.
'"]'
);
// $requestURL = $_SERVER['REQUEST_URI'];
$requestURL
=
(
isset
(
$_SERVER
[
'HTTPS'
])
&&
$_SERVER
[
'HTTPS'
]
===
'on'
?
"https"
:
"http"
)
.
"://
$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]
"
;
$mailto
=
'mailto:?subject='
.
__
(
'Job position'
,
'biuro'
)
.
': '
.
$pod
->
field
(
'title'
)
.
'&body='
.
__
(
'I think you might like this job offer'
,
'biuro'
)
.
': '
.
$requestURL
;
?>
<svg
xmlns=
"http://www.w3.org/2000/svg"
class=
"u-hidden"
>
...
...
@@ -17,9 +25,9 @@
<symbol
id=
"ico--job-email"
viewBox=
"0 0 17 13"
>
<path
fill=
"#FFFFFF"
d=
"M16.678,4.46C16.807,4.357,17,4.454,17,4.616v6.79C17,12.286,16.286,13,15.406,13H1.594 C0.714,13,0,12.286,0,11.406V4.62c0-0.166,0.189-0.259,0.322-0.156c0.744,0.578,1.73,1.312,5.117,3.772 C6.139,8.747,7.321,9.822,8.5,9.816c1.185,0.01,2.391-1.089,3.065-1.58C14.951,5.775,15.934,5.038,16.678,4.46z M8.5,8.75 C7.73,8.763,6.621,7.78,6.063,7.375c-4.406-3.197-4.741-3.48-5.757-4.273C0.113,2.949,0,2.72,0,2.475V1.844 C0,0.964,0.714,0.25,1.594,0.25h13.812C16.286,0.25,17,0.964,17,1.844v0.631c0,0.246-0.113,0.478-0.305,0.628 c-1.016,0.797-1.351,1.076-5.757,4.273C10.379,7.78,9.27,8.763,8.5,8.75z"
/>
</symbol>
<symbol
id=
"ico--job-fb"
viewBox=
"0 0 56 56"
>
<symbol
id=
"ico--job-copy"
viewBox=
"0 0 15 18"
>
<path
fill=
"#FFFFFF"
d=
"M10.687,15v1.328c0,0.44-0.357,0.797-0.797,0.797H0.859c-0.44,0-0.797-0.357-0.797-0.797V4.109 c0-0.44,0.357-0.797,0.797-0.797H3.25v9.828C3.25,14.166,4.084,15,5.109,15H10.687z M10.687,3.578c0,0.438,0.359,0.797,0.797,0.797 h3.453v8.766c0,0.44-0.357,0.797-0.797,0.797H5.109c-0.44,0-0.797-0.357-0.797-0.797V0.922c0-0.44,0.357-0.797,0.797-0.797h5.578 V3.578z M14.704,2.548c0.129,0.129,0.233,0.381,0.233,0.563v0.201H11.75V0.125h0.201c0.182,0,0.435,0.105,0.563,0.233L14.704,2.548z "
/>
</symbol>
<symbol
id=
"ico--phone"
viewBox=
"0 0 19 20"
>
<path
fill=
"#2A3644"
d=
"M18.102,1.269C18.629,1.388,19,1.856,19,2.398c0,9.4-7.619,16.977-16.977,16.977 c-0.542,0-1.009-0.371-1.132-0.902L0.03,14.736c-0.126-0.546,0.156-1.102,0.672-1.325l4.023-1.726 c0.471-0.204,1.028-0.067,1.354,0.33l1.637,2c2.572-1.262,4.661-3.355,5.923-5.923l-2-1.636c-0.397-0.327-0.534-0.883-0.33-1.354 l1.726-4.026c0.223-0.516,0.783-0.798,1.328-0.672L18.102,1.269z M2.045,18.188c8.702-0.011,15.757-7.062,15.764-15.764L14.113,1.57 l-1.707,3.986l2.702,2.208c-1.796,3.83-3.878,5.919-7.722,7.722l-2.208-2.702l-3.986,1.707L2.045,18.188z"
/>
</symbol>
...
...
@@ -29,29 +37,33 @@
<symbol
id=
"ico--address"
viewBox=
"0 0 15 21"
>
<path
fill=
"#2A3644"
d=
"M7.5,4.25c2.068,0,3.75,1.682,3.75,3.75s-1.682,3.75-3.75,3.75S3.75,10.068,3.75,8 S5.432,4.25,7.5,4.25z M7.5,10.5C8.878,10.5,10,9.379,10,8S8.878,5.5,7.5,5.5C6.121,5.5,5,6.622,5,8C5,9.379,6.121,10.5,7.5,10.5z M7.5,0.5C11.642,0.5,15,3.858,15,8c0,3.024-1.054,3.868-6.729,12.096c-0.373,0.538-1.169,0.538-1.542,0C1.054,11.868,0,11.024,0,8 C0,3.858,3.358,0.5,7.5,0.5z M7.5,19.013c5.442-7.87,6.25-8.494,6.25-11.013c0-1.669-0.65-3.239-1.831-4.419 C10.739,2.4,9.169,1.75,7.5,1.75S4.261,2.4,3.081,3.581C1.9,4.761,1.25,6.331,1.25,8C1.25,10.519,2.059,11.144,7.5,19.013z"
/>
</symbol>
</svg>
<div
class=
"c-share"
>
<p
class=
"c-share--heading"
>
<?php
_e
(
'Suggest a friend'
,
'biuro'
);
?>
</p>
<div
class=
"c-share--options"
>
<a
href=
"#
"
class=
"c-share--option c-share--option-facebook"
>
<a
target=
"_blank"
href=
"https://www.facebook.com/dialog/share?href=
<?php
echo
$requestURL
;
?>
&redirect_uri=
<?php
echo
$requestURL
;
?>
&app_id=483299728358858
"
class=
"c-share--option c-share--option-facebook"
>
<svg
width=
"9px"
height=
"18px"
class=
"c-ico--share-facebook"
>
<use
xlink:href=
"#ico--job-facebook"
></use>
</svg>
</a>
<a
href=
"#
"
class=
"c-share--option c-share--option-messenger"
>
<a
target=
"_blank"
href=
"https://www.facebook.com/dialog/send?link=
<?php
echo
$requestURL
;
?>
&redirect_uri=
<?php
echo
$requestURL
;
?>
&app_id=483299728358858
"
class=
"c-share--option c-share--option-messenger"
>
<svg
width=
"15px"
height=
"15px"
class=
"c-ico--share-messenger"
>
<use
xlink:href=
"#ico--job-messenger"
></use>
</svg>
</a>
<a
href=
"
#
"
class=
"c-share--option c-share--option-email"
>
<a
href=
"
<?php
echo
$mailto
;
?>
"
class=
"c-share--option c-share--option-email"
>
<svg
width=
"17px"
height=
"13px"
class=
"c-ico--share-email"
>
<use
xlink:href=
"#ico--job-email"
></use>
</svg>
</a>
<a
href=
"#"
class=
"c-share--option c-share--option-copy"
style=
"color: white"
>
copy
</a>
<a
href=
"#"
class=
"c-share--option c-share--option-phone"
>
<a
href=
"#"
class=
"js-copy-to-clipboard c-share--option c-share--option-copy"
>
<svg
width=
"15px"
height=
"18px"
class=
"c-ico--share-copy"
>
<use
xlink:href=
"#ico--job-copy"
></use>
</svg>
</a>
<a
href=
"https://wa.me/whatsappphonenumber/?text=
<?php
echo
urlencode
(
$pod
->
field
(
'title'
));
?>
"
class=
"c-share--option c-share--option-phone"
>
<svg
width=
"17px"
height=
"18px"
class=
"c-ico--share-whatsapp"
>
<use
xlink:href=
"#ico--job-whatsapp"
></use>
</svg>
...
...
@@ -60,35 +72,9 @@
</div>
<div
class=
"c-job-contacts"
>
<ul>
<li>
<a
class=
"gtm-b2c-phone-click"
href=
"tel: 8 379 99254"
>
<svg
width=
"19px"
height=
"20px"
class=
"c-ico--phone"
>
<use
xlink:href=
"#ico--phone"
></use>
</svg>
8 379 99254
</a>
</li>
<li>
<a
class=
"gtm-b2c-email-click"
href=
"mailto:kaunascv@biuro.lt"
>
<svg
width=
"20px"
height=
"15px"
class=
"c-ico--email"
>
<use
xlink:href=
"#ico--email"
></use>
</svg>
kaunascv@biuro.lt
</a>
</li>
<li>
<a
href=
"https://maps.google.com/?q=Gedimino g. 47 - 301, Kaunas"
target=
"_blank"
rel=
"noopener"
>
<svg
width=
"15px"
height=
"21px"
class=
"c-ico--address"
>
<use
xlink:href=
"#ico--address"
></use>
</svg>
Gedimino g. 47 – 301, Kaunas
</a>
</li>
</ul>
<?php
$jobID
=
get_the_ID
();
// $where = 'valid.meta_value > "' . date('Y-m-d', strtotime('-1 days')) . '"';
$params
=
array
(
'where'
=>
't.id='
.
$jobID
,
'limit'
=>
1
...
...
@@ -97,14 +83,7 @@
$contacts
=
pods
(
'job'
,
$params
);
while
(
$contacts
->
fetch
()
)
:
//
echo $contacts->display( 'contact' );
echo
$contacts
->
display
(
'contact'
);
endwhile
;
?>
</div>
<?php
/*
<h3>Job: <?php echo $jobID; ?></h3>
*/
?>
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