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 | |
function module_query_views_events_alter(Drupal\Core\Database\Query\AlterableInterface $query){ | |
// If this the right query | |
if( | |
$query->getMetaData('view') != '' | |
&& $query->getMetaData('view')->getDisplay()->display['id'] == 'block_3' | |
){ |
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
server { | |
server_name [host]; | |
root /var/www/[document_root]; ## <-- Your only path reference. | |
# Enable compression, this will help if you have for instance advagg module | |
# by serving Gzip versions of the files. | |
gzip_static on; | |
location = /favicon.ico { |
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
(function ($) { | |
$("#content a[href*='vimeo.com']").each(function() { | |
$this = $(this); | |
var href = $this.attr('href'); | |
var vimeoId = href.split('/').pop(); | |
$this.colorbox({ html: function() { | |
var iframe = '<iframe width="853" height="480" src="http://player.vimeo.com/video/' + vimeoId + '?autoplay=1" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'; | |
var output = "<div style='line-height: 0px; overflow: hidden;'>" + iframe + '</div>'; | |
return output; | |
}}); |