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
//-------------- | |
//---- 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
/* 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
/** | |
* 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
/** | |
* Implementation of hook_webform_select_options_info(). | |
* See webform/webform_hooks.php for further information on this hook in the Webform API. | |
*/ | |
function the_aim_custom_webform_select_options_info() { | |
$items = array(); | |
$items['terms'] = array( | |
'title' => t('Taxonomy terms'), | |
'options callback' => '_options_terms' | |
); |
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
//--------------------- | |
//---- EVENTS --------- | |
//--------------------- | |
// Latest events | |
.events.latest { | |
background: $grey-light; | |
padding: rhythm(0.5); | |
img { | |
margin: 0 rhythm(0.25) rhythm(0.25) 0; |
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 | |
$max = count(element_children($nodes)); | |
// Set up striping values. | |
$count = 0; | |
?> | |
<div class="overview icon-view subpages"> | |
<ul> | |
<?php foreach ($nodes as $node) { | |
$count++; | |
$attributes = array(); |
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 striping | |
* | |
*/ | |
function stripe(el){ | |
var count = 0; | |
$(el).each(function(){ | |
count++; | |
var classEven = ''; | |
var classOdd = ''; |
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 | |
//get object | |
$obj = menu_get_object('node',1); | |
if (isset($obj)){ | |
// it's a node page | |
} else { | |
// it's a taxonomy page | |
$obj = menu_get_object('taxonomy_term',2); | |
} |