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
/** | |
* Implementation of hook_block_info(). | |
*/ | |
function custom_block_info() { | |
$blocks = array(); | |
// Products overview | |
$blocks['product-overview'] = array( | |
'info' => t('Product overview'), | |
); |
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
/** | |
* Implements hook_taxonomy_menu_block_tree_alter | |
*/ | |
function custom_taxonomy_menu_block_tree_alter(&$tree, $config) { | |
switch($config) { | |
// add icon image to cache of TMB | |
case '2': | |
foreach($tree as $tid => $term) { |
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
/* | |
* alter cklink to add language | |
*/ | |
function custom_ckeditor_link_autocomplete_alter(&$results, &$string){ | |
if ($string !== '') { | |
$types = ckeditor_link_get_types(); | |
$results = array(); | |
foreach ($types as $type) { | |
$func = $type['module'] .'_ckeditor_link_'. $type['type'] .'_autocomplete'; | |
if($type['type']=="node"){ |
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
/** | |
* Implementation of hook_block_info(). | |
*/ | |
function custom_block_info() { | |
$blocks = array(); | |
// back to overview | |
$blocks['back-to-overview'] = array( | |
'info' => t('Back to overview'), | |
); | |
return $blocks; |
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 basetheme_preprocess_html(&$vars) { | |
$vars['theme_folder'] = base_path() . path_to_theme(); | |
// Function to cleanup html source a bit more | |
function indent($string) { | |
$spacing = " "; | |
$string = ltrim(str_replace('<link', $spacing . '<link', $string)); | |
$string = ltrim(str_replace('<meta', $spacing . '<meta', $string)); | |
$string = ltrim(str_replace('<script', $spacing . '<script', $string)); |
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
img.fullsizebackground{ | |
/* Set rules to fill background */ | |
min-height: 100%; | |
min-width: 1024px; | |
@include opacity(.3); | |
/* Set up proportionate scaling */ | |
width: 100%; | |
height: auto; |
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
.div{ | |
@include span-columns($total-columns omega, $total-columns); | |
position: relative; | |
top: -80px; | |
left: 0; | |
z-index: 0; | |
a{ | |
cursor: pointer; | |
border-bottom: none; |
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
/* | |
* Implements hook_preprocess_node | |
*/ | |
function theme_preprocess_node(&$variables, $hook) { | |
switch ($variables['type']) { | |
case 'news': | |
// ADD LINK TO NEWS DATA - HOMEPAGE | |
if($variables['teaser'] == true && isset($variables['content']['title']['#items']['0']['value'])) { |
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
//FIELD PREPROCESSING MADE POSSIBLE FOR ANY FIELD | |
function theme_process_field(&$variables) { | |
$function = 'autorijschool_process_field__'. $variables['element']['#field_name']; | |
if(function_exists($function)) { | |
$variables = $function($variables); | |
} | |
} | |
//ADDS FILESIZE TO A DOCUMENTS FIELD | |
function theme_process_field__field_documents (&$variables) { |
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
/*Chrome bug fix (page moving up and down a few pics on slide) */ | |
#content { | |
-webkit-transform: rotate(0deg); /* WebKit */ | |
-moz-transform: rotate(0deg); /* Mozilla */ | |
-o-transform: rotate(0deg); /* Opera */ | |
-ms-transform: rotate(0deg); /* Internet Explorer */ | |
transform: rotate(0deg); /* CSS3 */ | |
} |
OlderNewer