Commit be1c775d authored by Simon's avatar Simon

social buttons added

parent b2580b77
......@@ -33,7 +33,7 @@
$tagManager = 'GTM-THF42F';
$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):
$tagManager = 'GTM-5LX4QZ';
......
......@@ -7,6 +7,7 @@
// $requestURL = $_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;
?>
......@@ -43,19 +44,33 @@
<p class="c-share--heading"><?php _e('Suggest a friend', 'biuro'); ?></p>
<div class="c-share--options">
<?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">
<use xlink:href="#ico--job-facebook"></use>
</svg>
</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?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">
<use xlink:href="#ico--job-messenger"></use>
</svg>
</a>
*/
?>
<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">
<use xlink:href="#ico--job-email"></use>
......@@ -70,12 +85,13 @@
<?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/?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">
<use xlink:href="#ico--job-whatsapp"></use>
</svg>
</a>
*/
?>
</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