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
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
// 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 the_aim_theme_preprocess_page(&$variables, $hook) { | |
if(arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2))) { | |
$variables['h1_title'] = drupal_get_title(); | |
$term_info = taxonomy_term_load($variables['page']['content']['system_main']['cont']['field_overview_image_large']['#object']->tid); | |
if (isset($term_info) && !empty($term_info)){ | |
$variables['h1_title'] = $term_info->the_aim_seo_pagetitle['und'][0]['safe_value']; | |
drupal_set_title($variables['h1_title']); | |
} | |
} | |
} |
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
// susy | |
width: columns(4,9) + (columns(1,9)/2) + (gutter(9)/2); | |
margin-right: gutter(9); | |
// neat | |
width: flex-grid(4.5, 9) + flex-gutter(9); |
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($) { | |
$('thead').each(function() { | |
$th = $(this).find('th') | |
$(this).next('tbody').find('tr').each(function(tr) { | |
for(var i = 0; i < $th.length; i++) { | |
$(this).find('th, td').eq(i).attr('data-label', $th.eq(i).text()); | |
} | |
}); | |
}); | |
})(jQuery); |
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
input[type="submit"] { | |
-webkit-appearance: none; | |
-moz-appearance: 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
.div{ | |
background:rgb(255,255,255); | |
background: transparent\9; | |
background:rgba(255,255,255,0.8); | |
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ccffffff,endColorstr=#ccffffff); | |
zoom: 1; | |
&:nth-child(n) { | |
filter: 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
.circle-text { | |
width:50%; | |
} | |
.circle-text:after { | |
content: ""; | |
display: block; | |
width: 100%; | |
height:0; | |
padding-bottom: 100%; | |
background: #4679BD; |