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 | |
//change node title to commercial title on taxonomy pages | |
if (isset($variables['page']['content']['system_main']['term_heading']['term']['#term']->tid)) { | |
$term_info = taxonomy_term_load($variables['page']['content']['system_main']['term_heading']['term']['#term']->tid); | |
if (isset($term_info) && !empty($term_info)){ | |
$variables['h1_title'] = $term_info->the_aim_seo_pagetitle['und'][0]['value']; | |
} | |
} | |
//optie 2 |
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
/* BackgroundCheck | |
http://kennethcachia.com/background-check | |
v1.0.0 */ | |
!function(a,b){"function"==typeof define&&define.amd?define(b):a.BackgroundCheck=b(a)}(this,function(){"use strict";function a(a){if(void 0===a||void 0===a.targets)throw"Missing attributes";w.targets=d(a.targets),w.images=d(a.images||"img"),w.changeParent=a.changeParent||!1,w.threshold=a.threshold||50,w.minOverlap=a.minOverlap||50,w.classes=a.classes||{dark:"background--dark",light:"background--light"},w.windowEvents=a.windowEvents||!0,w.maxDuration=a.maxDuration||500,w.mask=a.mask||{r:0,g:255,b:0},w.debug=a.debug||!1,void 0===q&&(e(),q&&(r.style.position="fixed",r.style.top="0px",r.style.left="0px",r.style.width="100%",r.style.height="100%",window.addEventListener(v,n.bind(null,function(){g(),m()})),window.addEventListener("scroll",n.bind(null,m)),g(),m()))}function b(){q=null,r=null,s=null,w={},t&&clearTimeout(t)}function c(a){p("debug")&&console.log(a)}function d(a){var b=a;if("string"==typeof a?b=document.querySelectorAll(a):1== |
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 the_aim_theme_preprocess_taxonomy_menu_block(&$variables){ | |
//only for block with delta == 1 | |
if ( 1 == $variables['config']['delta']) { | |
$links = menu_tree('main-menu'); | |
$main_links = array(); | |
foreach ($links as $link) { |
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 template_preprocess_taxonomy_term(). | |
*/ | |
function YOURTHEME_preprocess_taxonomy_term(&$variables) { | |
// Add taxonomy term description wrapper | |
$variables['content']['description']['#prefix'] = ''; | |
$variables['content']['description']['#suffix'] = ''; | |
} |
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
/* Responsive table */ | |
@media all and (max-width: 640px) { | |
.table, | |
.row, | |
.column, | |
.column:before { | |
display: inline-block; | |
/* Converts a table, table row, table column and table column:before into a block element */ | |
} |
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
//-------------- | |
//---- TEAM ---- | |
//-------------- | |
ul.team { | |
@include span-columns($total-columns); | |
padding: 0 !important; | |
li { | |
list-style: none; | |
@include span-columns($total-columns); | |
border-bottom: 1px solid $grey; |
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
// add this to your html page (e.g. in a block) | |
<div id="map_canvas">map_canvas</div> |
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
width: columns(4,9) + (columns(1,9)/2) + (gutter(9)/2); | |
margin-right: gutter(9); |
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.inserted { | |
width: 50%; | |
float: left; | |
} | |
.left .inserted { | |
float: left; | |
margin: rhythm(0.3) rhythm(0.5) rhythm(0.25) 0; | |
} | |
.right .inserted { |
OlderNewer