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
<?php | |
function _get_breadcrumb_by_nid($nid) { | |
$node = node_load($nid); | |
// If a node is not found, return. | |
if (!$node) { | |
return; | |
} |
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
<?php | |
/** | |
* Implements hook_responsive_panels_regions_positions_alter(). | |
*/ | |
function oa_dashboard_responsive_panels_regions_positions_alter(&$positions) { | |
// We use the top position for the breadcrumb only, so we unset it here. | |
unset($positions['top']); | |
} |
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
<?php | |
/** | |
* Implements hook_oa_responsive_regions_positions_alter(). | |
*/ | |
function oa_dashboard_oa_responsive_regions_positions_alter(&$positions) { | |
// We will keep the top position for the oa navbar so we unset it here. | |
unset($positions['top']); | |
} |
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
<?php | |
/** | |
* Helper function to find users with authenticated role only. | |
*/ | |
function _users_with_authenticated_role_only() { | |
return db_query('SELECT uid, name, mail FROM users u WHERE uid > 0 AND NOT EXISTS (SELECT 1 from users_roles ur WHERE u.uid = ur.uid)')->fetchAll(); | |
} |
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
[class*="col-"]{ | |
margin-bottom: -99999px; | |
padding-bottom: 99999px; | |
} |
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
<?php | |
$value = entity_metadata_wrapper('node', $node)->field_foo_bar->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
// Font faces | |
// -------------------------------------------------- | |
@import "compass/css3/font-face"; | |
$font-faces: ('GothamRnd-Medium', 'GothamRnd-Book'); | |
@each $font-face in $font-faces { | |
@include font-face( | |
'#{$font-face}', | |
font-files( | |
"#{$font-face}.woff", woff, |
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
Set LSUIElement to YES |
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 class="row"> | |
<div class="col-md-4">Column 1</div> | |
<div class="col-md-8">Column 2</div> | |
</div> |
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
// Media queries breakpoints | |
// -------------------------------------------------- | |
// Extra small screen / phone | |
// Note: Deprecated $screen-xs and $screen-phone as of v3.0.1 | |
$screen-xs: 1px !default; | |
$screen-xs-min: $screen-xs !default; | |
$screen-phone: $screen-xs-min !default; | |
// Small screen / tablet |
OlderNewer