This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (get_field('youtubeURL')) { | |
$mystring = get_field('youtubeURL'); | |
$parts = explode("=",$mystring); | |
$mystring = $parts['1']; ?> | |
<iframe width="440" height="228" src="//www.youtube-nocookie.com/embed/<?php echo $mystring ; ?>" frameborder="0" allowfullscreen></iframe> | |
<?php } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//change style of div when hover on difrent div | |
$(function() { | |
$('.darkMask').hover(function() { | |
$(this).parent().find('.fa').addClass('off'); | |
}, function() { | |
// on mouseout, reset the background colour | |
$(this).parent().find('.fa').removeClass('off'); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//stop you tube player when bootstrap modal was hiden | |
$('.modal').on('hide.bs.modal', function () { | |
$(this).find('iframe').attr("src", $(this).find('iframe').attr("src")); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$currentID = get_the_ID(); | |
$args = array ( | |
'post__not_in' => array($currentID) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Next/Previous Post Link Plus marksup withe botstrapp 3 | |
<div class="row postNav"> | |
<div class="pull-right col-md-4 col-sm-4 col-xs-4" style="text-align:right"> | |
<?php previous_post_link_plus(array('order_by' => 'post_title','loop' => true,'format' => '« %link','link' => 'פוסט הקודם') ); ?></div> | |
<div class="col-md-4 col-sm-4 col-xs-4" style="text-align:center"><a href="<?php echo get_permalink( 10 ); ?>">בחזרה לבלוג</a></div> | |
<div class="pull-left col-md-4 col-sm-4 col-xs-4" style="text-align:left"> | |
<?php next_post_link_plus(array('order_by' => 'post_title','loop' => true,'format' => '%link »','link' => 'פוסט הבא') ); ?></div> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".isotopeCont .projectCont").each(function() { | |
value = $(this).attr("class").replace(",", ""); | |
$(this).attr("class", value); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//if is safri | |
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) | |
{ | |
//code here | |
} | |
//if is ie8 | |
if ($.browser.msie && parseInt($.browser.version, 10) === 8) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo get_stylesheet_directory_uri(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (get_field('youtubeURL')) { | |
$mystring = get_field('youtubeURL'); | |
$parts = explode("=",$mystring); | |
$mystring = $parts['1']; ?> | |
<div class="videoWrapper"> | |
<iframe width="100%" height="450" src="//www.youtube-nocookie.com/embed/<?php echo $mystring ; ?>?html5=1" frameborder="0" allowfullscreen></iframe> | |
</div> | |
<?php } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".gotoTop").click(function() { | |
$("html, body").animate({ scrollTop: 0 }, "slow"); | |
return false; | |
}); |
OlderNewer