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
0168f396
Commit
0168f396
authored
Jul 19, 2019
by
Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release 1.6.6
parent
ab1cb605
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
10 deletions
+39
-10
footer.php
wp-content/themes/biuro/footer.php
+1
-1
main-c31866c5.min.js
wp-content/themes/biuro/js/main-c31866c5.min.js
+1
-1
main.js
wp-content/themes/biuro/js/main.js
+32
-6
aside-job.php
wp-content/themes/biuro/template-parts/layout/aside-job.php
+5
-2
No files found.
wp-content/themes/biuro/footer.php
View file @
0168f396
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
<?php
<?php
endif
;
endif
;
?>
?>
<script
src=
"/wp-content/themes/biuro/js/main-
d5fdceb0
.min.js"
async
></script>
<script
src=
"/wp-content/themes/biuro/js/main-
c31866c5
.min.js"
async
></script>
<?php
<?php
// global $time_start;
// global $time_start;
...
...
wp-content/themes/biuro/js/main-
d5fdceb0
.min.js
→
wp-content/themes/biuro/js/main-
c31866c5
.min.js
View file @
0168f396
This source diff could not be displayed because it is too large. You can
view the blob
instead.
wp-content/themes/biuro/js/main.js
View file @
0168f396
...
@@ -748,18 +748,44 @@ document.querySelectorAll('.c-accordion--content').forEach((content) => {
...
@@ -748,18 +748,44 @@ document.querySelectorAll('.c-accordion--content').forEach((content) => {
content
.
classList
.
add
(
'c-accordion--content--is-collapsed'
);
content
.
classList
.
add
(
'c-accordion--content--is-collapsed'
);
});
});
const
messenger
=
document
.
querySelector
(
'.js-share-messenger'
);
if
(
messenger
)
{
messenger
.
addEventListener
(
'click'
,
(
e
)
=>
{
e
.
preventDefault
();
const
target
=
e
.
currentTarget
;
const
now
=
new
Date
().
valueOf
();
setTimeout
(
function
()
{
if
(
new
Date
().
valueOf
()
-
now
>
100
)
{
return
;
}
window
.
open
(
target
.
href
,
'_blank'
);
},
25
);
window
.
location
=
'fb-messenger://share/?link='
+
encodeURIComponent
(
window
.
location
.
href
);
});
}
const
whatsapp
=
document
.
querySelector
(
'.js-share-whatsapp'
);
const
whatsapp
=
document
.
querySelector
(
'.js-share-whatsapp'
);
if
(
whatsapp
)
{
if
(
whatsapp
)
{
whatsapp
.
addEventListener
(
'click'
,
(
e
)
=>
{
whatsapp
.
addEventListener
(
'click'
,
(
e
)
=>
{
e
.
preventDefault
();
e
.
preventDefault
();
const
ua
=
navigator
.
userAgent
.
toLowerCase
()
;
const
target
=
e
.
currentTarget
;
if
(
ua
.
indexOf
(
'android'
)
>
-
1
)
{
const
now
=
new
Date
().
valueOf
();
window
.
open
(
'whatsapp://send?text='
+
encodeURIComponent
(
window
.
location
.
href
),
'_blank'
);
setTimeout
(
function
()
{
}
else
{
if
(
new
Date
().
valueOf
()
-
now
>
100
)
{
window
.
open
(
'https://wa.me/?text='
+
encodeURIComponent
(
window
.
location
.
href
),
'_blank'
);
return
;
}
}
window
.
open
(
target
.
href
,
'_blank'
);
},
25
);
window
.
location
=
'whatsapp://send?text='
+
encodeURIComponent
(
target
.
dataset
.
text
);
});
});
}
}
wp-content/themes/biuro/template-parts/layout/aside-job.php
View file @
0168f396
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<use
xlink:href=
"#ico--job-facebook"
></use>
<use
xlink:href=
"#ico--job-facebook"
></use>
</svg>
</svg>
</a>
</a>
<a
target=
"_blank"
rel=
"noopener"
href=
"https://www.facebook.com/dialog/share?app_id=463001014486058&display=popup&href=
<?php
echo
$requestURL
;
?>
&redirect_uri=
<?php
echo
$requestURL
;
?>
"
class=
"gtm-share-click c-share--option c-share--option-messenger"
data-label=
"Messenger"
>
<a
target=
"_blank"
rel=
"noopener"
href=
"https://www.facebook.com/dialog/share?app_id=463001014486058&display=popup&href=
<?php
echo
$requestURL
;
?>
&redirect_uri=
<?php
echo
$requestURL
;
?>
"
class=
"gtm-share-click
js-share-messenger
c-share--option c-share--option-messenger"
data-label=
"Messenger"
>
<svg
width=
"15px"
height=
"15px"
class=
"c-ico--share-messenger"
>
<svg
width=
"15px"
height=
"15px"
class=
"c-ico--share-messenger"
>
<use
xlink:href=
"#ico--job-messenger"
></use>
<use
xlink:href=
"#ico--job-messenger"
></use>
</svg>
</svg>
...
@@ -66,7 +66,10 @@
...
@@ -66,7 +66,10 @@
<?php
_e
(
'The link copied to the clipboard'
,
'biuro'
);
?>
<?php
_e
(
'The link copied to the clipboard'
,
'biuro'
);
?>
</div>
</div>
</a>
</a>
<a
target=
"_blank"
rel=
"noopener"
href=
"https://wa.me/?text=
<?php
echo
urlencode
(
$requestURL
);
?>
"
class=
"js-share-whatsapp gtm-share-click c-share--option c-share--option-phone"
data-label=
"WhatsApp"
>
<?php
$waText
=
urlencode
(
__
(
'I think you might like this job offer'
,
'biuro'
)
.
': '
.
$requestURL
);
?>
<a
target=
"_blank"
rel=
"noopener"
href=
"https://wa.me/?text=
<?php
echo
$waText
;
?>
"
data-text=
"
<?php
echo
$waText
;
?>
"
class=
"js-share-whatsapp gtm-share-click c-share--option c-share--option-phone"
data-label=
"WhatsApp"
>
<svg
width=
"17px"
height=
"18px"
class=
"c-ico--share-whatsapp"
>
<svg
width=
"17px"
height=
"18px"
class=
"c-ico--share-whatsapp"
>
<use
xlink:href=
"#ico--job-whatsapp"
></use>
<use
xlink:href=
"#ico--job-whatsapp"
></use>
</svg>
</svg>
...
...
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