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
// vimeo links | |
$('a[href*="vimeo.com"]').each(function() { | |
$this = $(this); | |
var href = '//player.vimeo.com/video/' + $this.attr('href').split('/').pop(); | |
$this.before('<div class="video-embed"><iframe src="//player.vimeo.com/video/'+$this.attr('href').split('/').pop()+'?autoplay=0&title=0&byline=0&color=1A9691&portrait=0&hd_off=0" width="600" height="337.5" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></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
$(window).load(function() { | |
$('.shareme a, .social-link').each(function() { | |
var t = $(this); | |
var url = t.css('background-image').replace('url("','').replace('")',''); | |
t.load(url,function() { | |
t.addClass('loaded'); | |
}); | |
}); | |
}); |
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
$('a[href*="http"]').each(function() { | |
var a = new RegExp('/' + window.location.host + '/'); | |
if(!a.test(this.href)) { | |
$(this).attr('target','_blank'); | |
} | |
}); |
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
// init player, set vars | |
var player = { | |
playVideo: function(container, videoId) { | |
if (typeof(YT) == 'undefined' || typeof(YT.Player) == 'undefined') { | |
window.onYouTubePlayerAPIReady = function() { | |
player.loadPlayer(container, videoId); | |
}; | |
$.getScript('//www.youtube.com/player_api'); | |
} else { |
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
/* Bootstrap Clearfix */ | |
/* Tablet */ | |
@media (min-width:767px){ | |
/* Column clear fix */ | |
.col-lg-1:nth-child(12n+1), | |
.col-lg-2:nth-child(6n+1), | |
.col-lg-3:nth-child(4n+1), | |
.col-lg-4:nth-child(3n+1), |
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
$button = field_view_field('node', $node, 'field_author'); | |
$button['#title'] = ''; | |
print render($button); |
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
$block = module_invoke('module', 'block_view', 'delta'); | |
print render($block['content']); |
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
-moz-transition: all 0.3s; | |
-ms-transition: all 0.3s; | |
-webkit-transition: all 0.3s; | |
-o-transition: all 0.3; | |
transition: all 0.3s; |
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
background: -webkit-gradient(linear, left top, right top, from(#000000), to(#000000)); | |
background: -webkit-linear-gradient(top, #000000, #000000); | |
background: -moz-linear-gradient(top, #000000, #000000); | |
background: -o-linear-gradient(top, #000000, #000000); | |
background: -ms-linear-gradient(top, #000000, #000000); | |
background: linear-gradient(top, #000000, #000000); | |
background-color: #000000; |
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
file_create_url($image[0]['uri']); |
OlderNewer