Commit 43e3802a authored by Simon's avatar Simon

Merge branch 'facebook-block' into dev

parents 29b356a7 aaeadcf6
......@@ -34,9 +34,9 @@
.c-job--action-aside {}
.c-job-contacts {
.c-job-contacts { margin: 0 0 30px;
@media (--max--medium) {
padding-bottom: 40px; margin: 0 10px;
margin: 0 10px 30px;
}
ul { margin: 0; padding: 0; list-style: none; }
......@@ -51,3 +51,9 @@
}
/* critical:end */
.c-job-facebook { max-width: 320px; margin: 0 auto; overflow: hidden;
@media (--max--medium) {
padding-bottom: 40px;
}
}
......@@ -2,15 +2,13 @@
/* critical:start */
.c-share { margin-bottom: 30px;
}
.c-share { margin-bottom: 20px; }
.c-share--heading { margin: 0; padding: 20px 0 10px; font-weight: 500; text-align: center; }
.c-share--options { display: flex; justify-content: center; }
.c-share--options { display: flex; justify-content: center; flex-wrap: wrap; }
.c-share--option { height: 36px; flex: 0 0 50px; border-radius: 3px; margin: 0 3px; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.c-share--option { height: 36px; flex: 0 0 50px; border-radius: 3px; margin: 0 3px 10px; text-decoration: none; display: flex; align-items: center; justify-content: center; }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -27,35 +27,39 @@
<div class="c-social">
<?php
// $social = get_option('wpseo_social');
$social = get_option( 'wpseo_social' );
$facebook_site = isset( $social['facebook_site']) ? $social['facebook_site'] : '';
$linkedin_site = isset( $social['linkedin_url']) ? $social['linkedin_url'] : '';
$blogID = get_current_blog_id();
$tagManager = 'GTM-THF42F';
$facebook_site = 'https://www.facebook.com/biuro.lietuva';
$linkedin_site = 'https://www.linkedin.com/company/2824948';
if ($blogID == 2):
$tagManager = 'GTM-5LX4QZ';
$facebook_site = 'https://www.facebook.com/biuro.lv';
endif;
if ($blogID == 3):
$tagManager = 'GTM-MLLVP2';
$facebook_site = 'https://www.facebook.com/biuro.ee';
endif;
?>
<?php if ($facebook_site != ''): ?>
<a href="<?php echo $facebook_site; ?>" class="c-social--anchor" title="Facebook" target="_blank" rel="noopener" onclick="dataLayer.push({'event': 'socialClick', 'socialLabel': 'FB click'});">
<svg xmlns="http://www.w3.org/2000/svg" width="12px" height="23px" viewBox="0 0 12 23">
<path fill="#FFFFFF" d="M3.309,22.75v-9.84H0V9h3.309V5.906c0-1.633,0.458-2.9,1.375-3.803S6.818,0.75,8.336,0.75 c1.232,0,2.234,0.057,3.008,0.172v3.48H9.281c-0.773,0-1.303,0.172-1.59,0.516C7.462,5.204,7.348,5.663,7.348,6.293V9H11 l-0.516,3.91H7.348v9.84H3.309z"/>
</svg>
</a>
<?php endif; ?>
<?php if ($linkedin_site != ''): ?>
<a href="<?php echo $linkedin_site; ?>" class="c-social--anchor" title="Linkedin" target="_blank" rel="noopener" onclick="dataLayer.push({'event': 'socialClick', 'socialLabel': 'LI click'});">
<svg xmlns="http://www.w3.org/2000/svg" width="23px" height="23px" viewBox="0 0 430.117 430.117">
<path fill="#FFFFFF" d="M430.117,261.543V420.56h-92.188V272.193c0-37.271-13.334-62.707-46.703-62.707 c-25.473,0-40.632,17.142-47.301,33.724c-2.432,5.928-3.058,14.179-3.058,22.477V420.56h-92.219c0,0,1.242-251.285,0-277.32h92.21 v39.309c-0.187,0.294-0.43,0.611-0.606,0.896h0.606v-0.896c12.251-18.869,34.13-45.824,83.102-45.824 C384.633,136.724,430.117,176.361,430.117,261.543z M52.183,9.558C20.635,9.558,0,30.251,0,57.463 c0,26.619,20.038,47.94,50.959,47.94h0.616c32.159,0,52.159-21.317,52.159-47.94C103.128,30.251,83.734,9.558,52.183,9.558z M5.477,420.56h92.184v-277.32H5.477V420.56z"/>
</svg>
</a>
<?php endif; ?>
</div>
<div class="c-copyright">
......@@ -111,6 +115,11 @@
wp_reset_query();
endif;
else:
?>
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.3&appId=463001014486058&autoLogAppEvents=1"></script>
<?php
endif;
?>
......
......@@ -96,21 +96,23 @@
</div>
<div class="c-job-contacts">
<?php echo $pod->field('contact'); ?>
</div>
<?php
// $jobID = get_the_ID();
// $params = array(
// 'where' => 't.id=' . get_the_ID(),
// 'limit' => 1
// );
$social = get_option( 'wpseo_social' );
$facebook_site = isset( $social['facebook_site']) ? $social['facebook_site'] : '';
// $contacts = pods( 'job', $params );
if ($facebook_site != ''):
// while ( $contacts->fetch() ) :
// echo $contacts->display( 'contact' );
// endwhile;
?>
<div class="c-job-facebook">
<div class="fb-page" data-href="<?php echo $facebook_site; ?>" data-tabs="" data-width="" data-height="" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="<?php echo $facebook_site; ?>" class="fb-xfbml-parse-ignore"><a href="<?php echo $facebook_site; ?>">Biuro</a></blockquote></div>
</div>
<?php
endif;
echo $pod->field('contact');
?>
</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