Skip to content

Instantly share code, notes, and snippets.

View fieke's full-sized avatar

Sofie Verreyken fieke

View GitHub Profile
@vdchristelle
vdchristelle / colorbox-extra.js
Created December 5, 2013 10:42
colorbox gallery Overview page with teasers: we want every teaser to be a gallery of its own and not all images off all teasers in 1 colorbox solution: add specific class per gallery on the a elements
// references
// loop through teasers
// add different rel to each li
// for colorbox to see each teaser as a separate gallery
var count = 0;
$('ul.references.overview li').each(function(){
$(this).find('.colorbox a').attr('rel','gallery-'+count);
// add class to first list item, to be able to hide all others
$(this).find('ul li:first').addClass('show');
count++;
@vdchristelle
vdchristelle / _variables.scss
Created December 5, 2013 10:58
Testtool breakpoint: op iPad heb je idd break-1 en break-3… => komt vanuit the_aim_theme, base font iets kleiner gezet en nu gaat hij op iPad van break-2 naar break-3
//-- FONT SETTINGS --
//-------------------
$base-font-size: 13.5px;
@vdchristelle
vdchristelle / offcanvas.scss
Created December 9, 2013 11:41
off canvas top region
// OFF-CANVAS TOP REGION
#top {
background: $grey-light;
color: $white;
overflow: hidden;
> .container {
position: relative;
overflow: hidden;
height: 5em;
-webkit-transition: height 0.5s ease-out;
@vdchristelle
vdchristelle / only_variables_passed_by_reference_1679118_4.patch
Created February 6, 2014 09:56
Video embed field module 7.x-2.0-beta5 - Strict warning: 'Only variables should be passed by reference in template_preprocess' Bron: https://drupal.org/node/1679118
diff --git a/video_embed_field.module b/video_embed_field.module
index 54491d4..8a45ebb 100755
--- a/video_embed_field.module
+++ b/video_embed_field.module
@@ -354,7 +354,8 @@ function template_preprocess_video_embed_field_embed_code(&$variables) {
// Prepare embed code
if ($handler && isset($handler['function']) && function_exists($handler['function'])) {
- $variables['embed_code'] = drupal_render(call_user_func($handler['function'], $variables['url'], $variables['style_settings']));
+ $embed_code = call_user_func($handler['function'], $variables['url'], $variables['style_settings']);