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
// | |
// @file | |
// Sidebars After Layout. | |
// One main content area with two sidebars after. | |
// ---------------------------------------------------------------------------- | |
.l--3up { | |
@include breakpoint(41em, $no-query: '.lt-ie9') { | |
.l-main { | |
@include zen-grid-item(8, 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 | |
/** | |
* Implements hook_block_info(). | |
*/ | |
function MODULE_NAME_block_info() { | |
$blocks['BLOCK_DELTA'] = array( | |
'info' => t(''), | |
'cache' => DRUPAL_NO_CACHE, | |
); |
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_process_page. | |
*/ | |
function sipk_process_page(&$variables) { | |
// Remove the title from pages that have been set with Display Suite. | |
$content = $variables['page']['content']; | |
// Check to see if this is a node page. | |
if (isset($content['system_main']['nodes'])) { | |
// Grab the node render 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
<h4 class="session-title">Session 1 name <a href="/whatever/page" class="session-link">Go to Session</a></h4> | |
<ul class="session-pages"> | |
<li class="session-page"><a href="/whatever/page" class="session-page-link">Page 1</a></li> | |
<li>...</li> | |
<li>...</li> | |
</ul> | |
<h4 class="session-title">Session 2 name <a href="/whatever/page" class="session-link">Go to Session</a></h4> | |
<ul class="session-pages"> | |
<li class="session-page"><a href="/whatever/page" class="session-page-link">Page 1</a></li> |
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 | |
/** | |
* @file | |
* Default theme implementation to display a block. | |
* | |
* Available variables: | |
* - $block->subject: Block title. | |
* - $content: Block content. | |
* - $block->module: Module that generated the block. |
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
// Button base | |
// ------------ | |
%button { | |
@inlude inline-block; | |
&:hover { | |
text-decoration: 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
<?php | |
/** | |
* Custom implementation of theme_menu_link() for including icons. | |
*/ | |
function cic_menu_link__icon(array $variables) { | |
$element = $variables['element']; | |
$sub_menu = ''; | |
/* Prevent the <span> tag from being escaped */ |
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 id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>> | |
<?php print render($title_prefix); ?> | |
<?php if ($block->subject): ?> | |
<h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2> | |
<?php endif;?> | |
<?php print render($title_suffix); ?> | |
<div <?php print $content_attributes; ?>> | |
<?php print $content ?> |
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
// | |
// Generic block styles | |
// | |
.block { | |
@include margin-trailer(1); | |
} | |
.block-rounded { | |
@media screen and (min-width: 420px) { |
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 | |
/** | |
* Implements hook_js_alter() | |
*/ | |
function shizzle_js_alter(&$javascript) { | |
// Collect the scripts we want in to remain in the header scope. | |
$header_scripts = array( | |
'sites/all/libraries/modernizr/modernizr.min.js', | |
); |