Commit 29b356a7 authored by Simon's avatar Simon

Merge branch 'social-buttons' into dev

parents b2580b77 be1c775d
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
$tagManager = 'GTM-THF42F'; $tagManager = 'GTM-THF42F';
$facebook_site = 'https://www.facebook.com/biuro.lietuva'; $facebook_site = 'https://www.facebook.com/biuro.lietuva';
$linkedin_site = 'http://www.linkedin.com/company/2824948'; $linkedin_site = 'https://www.linkedin.com/company/2824948';
if ($blogID == 2): if ($blogID == 2):
$tagManager = 'GTM-5LX4QZ'; $tagManager = 'GTM-5LX4QZ';
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// $requestURL = $_SERVER['REQUEST_URI']; // $requestURL = $_SERVER['REQUEST_URI'];
$requestURL = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $requestURL = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$redirectURL = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]/";
$mailto = 'mailto:?subject=' . __('Job position', 'biuro') . ': ' . $pod->field( 'title' ) . '&body=' . __('I think you might like this job offer', 'biuro') . ': ' . $requestURL; $mailto = 'mailto:?subject=' . __('Job position', 'biuro') . ': ' . $pod->field( 'title' ) . '&body=' . __('I think you might like this job offer', 'biuro') . ': ' . $requestURL;
?> ?>
...@@ -43,19 +44,33 @@ ...@@ -43,19 +44,33 @@
<p class="c-share--heading"><?php _e('Suggest a friend', 'biuro'); ?></p> <p class="c-share--heading"><?php _e('Suggest a friend', 'biuro'); ?></p>
<div class="c-share--options"> <div class="c-share--options">
<?php <?php
/* /*
<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"> <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $requestURL; ?>&t=<?php echo __('Job position', 'biuro') . ': ' . $pod->field( 'title' ); ?>" class="gtm-share-click c-share--option c-share--option-facebook" data-label="Facebook">
<svg width="9px" height="18px" class="c-ico--share-facebook">
<use xlink:href="#ico--job-facebook"></use>
</svg>
</a>
*/
?>
<a target="_blank" href="https://www.facebook.com/dialog/share?app_id=463001014486058&amp;link=<?php echo $requestURL; ?>&redirect_uri=<?php echo $redirectURL; ?>" class="gtm-share-click c-share--option c-share--option-facebook" data-label="Facebook">
<svg width="9px" height="18px" class="c-ico--share-facebook"> <svg width="9px" height="18px" class="c-ico--share-facebook">
<use xlink:href="#ico--job-facebook"></use> <use xlink:href="#ico--job-facebook"></use>
</svg> </svg>
</a> </a>
<?php
/*
<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"> <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">
*/
?>
<a target="_blank" href="https://www.facebook.com/dialog/send?app_id=463001014486058&amp;link=<?php echo $requestURL; ?>&redirect_uri=<?php echo $redirectURL; ?>" class="gtm-share-click 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>
</a> </a>
*/
?>
<a href="<?php echo $mailto; ?>" class="gtm-share-click c-share--option c-share--option-email" data-label="Email"> <a href="<?php echo $mailto; ?>" class="gtm-share-click c-share--option c-share--option-email" data-label="Email">
<svg width="17px" height="13px" class="c-ico--share-email"> <svg width="17px" height="13px" class="c-ico--share-email">
<use xlink:href="#ico--job-email"></use> <use xlink:href="#ico--job-email"></use>
...@@ -70,12 +85,13 @@ ...@@ -70,12 +85,13 @@
<?php <?php
/* /*
<a href="https://wa.me/whatsappphonenumber/?text=<?php echo urlencode($pod->field( 'title' )); ?>" class="c-share--option c-share--option-phone"> <a href="https://wa.me/whatsappphonenumber/?text=<?php echo urlencode($pod->field( 'title' )); ?>" class="c-share--option c-share--option-phone">
*/
?>
<a href="https://wa.me/?text=<?php echo urlencode($requestURL); ?>" class="gtm-share-click c-share--option c-share--option-phone" data-label="Copy">
<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>
</a> </a>
*/
?>
</div> </div>
</div> </div>
......
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