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
// TOP IMAGE | |
function _topimage() { | |
global $language; | |
// if we are on a node page | |
if(arg(0) == 'node') { | |
// get the current node | |
$obj = menu_get_object(); |
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_preprocess_node(&$variables, $hook) { | |
// create default theme suggestion for node so | |
// node--{node_type}--{view_mode}.tpl.php is available | |
$variables['theme_hook_suggestions'][] = "node__" . $variables['type'] . "__" . $variables['view_mode']; | |
switch ($variables['type']) { | |
case 'news': | |
// ADD LINK TO NEWS DATA - HOMEPAGE | |
if($variables['view_mode'] == 'blog_teaser' && isset($variables['content']['title']['#items']['0']['value'])) { |
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 the_aim_picstory_block_info() { | |
$blocks = array(); | |
// Webform footer block | |
$blocks['webform-footer-block'] = array( | |
'info' => t('CB - Webform footer block'), | |
); | |
return $blocks; | |
} |
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; | |
} |
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
.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
<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
/** | |
* 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
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
// TOGGLE MENU | |
$('.toggle h3').click(function() { | |
$(this).siblings('ul').slideToggle('fast'); | |
}); |