This file contains hidden or 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
/** | |
* Implent pre process node | |
*/ | |
function custom_preprocess_node(&$variables) { | |
switch ($variables['type']) { | |
case 'block': | |
if (isset($variables['field_add_rotating_partners']) && $variables['field_add_rotating_partners']['und']['0']['value'] == 1) { | |
$partners = views_embed_view('logos', 'logos_homepage'); |
This file contains hidden or 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
/** | |
* Hook form_alter | |
*/ | |
function custom_form_alter(&$form, &$form_state, $form_id) { | |
switch ($form_id) { | |
// alter the dropdown for the products, used by a success story | |
case 'success_stories_node_form': | |
$language_map = array( |
This file contains hidden or 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
ul.menu { | |
display: table; | |
table-layout: fixed; | |
} | |
ul.menu li { | |
display: table-cell; | |
} |
This file contains hidden or 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
// TOGGLE MENU | |
$('.toggle h3').click(function() { | |
$(this).siblings('ul').slideToggle('fast'); | |
}); |
This file contains hidden or 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 theme_form_alter(&$form, &$form_state, $form_id) { | |
switch ($form_id) { | |
case 'webform_client_form_9': | |
// send along url with contact form | |
$form['submitted']['location']['#value'] = request_path(); | |
break; | |
case 'webform_client_form_47': | |
// create return link to product | |
if (isset($_GET['nid'])) { |
This file contains hidden or 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
/** | |
* Implements hook_taxonomy_term_view(). | |
*/ | |
function theme_taxonomy_term_view($term, $view_mode, $langcode) { | |
switch ($term->vid) { | |
case '2': | |
// Create return to overview-link | |
$path = request_path(); | |
$path = explode('/', $path); | |
// if we are on the deepest level (the third, unless someone has been fucking with the setup) |
This file contains hidden or 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
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=nl"></script> | |
<script type="text/javascript"> | |
function LoadGmaps() { | |
var iconBase = '/sites/rijschoolmerelbeke/themes/autorijschool/custom-marker-icon.png'; | |
var myLatlng = new google.maps.LatLng(50.9955690,3.7455221); | |
var myLatlng2 = new google.maps.LatLng(51.0568298,3.7092637); | |
var myOptions = { | |
zoom: 10, | |
center: myLatlng2, | |
disableDefaultUI: true, |
This file contains hidden or 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
.testimonial > div { | |
display: none; | |
} |
This file contains hidden or 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 | |
/** | |
* Implementation of hook_block_info(). | |
*/ | |
function the_aim_picstory_block_info() { | |
$blocks = array(); | |
// OVERVIEW MOVIES | |
$blocks['movie-overview'] = array( | |
'info' => t('CB - Movie overview'), |
This file contains hidden or 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
html { | |
-webkit-text-stroke: 0.25px; | |
} |