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
// Get image settings array from a field on the node | |
$image = field_get_items('node', $node, 'INSERT_IMAGE_FIELD_MACHINE_NAME'); | |
// Picture settings | |
$picture_mapping = picture_mapping_load('INSERT_PICTURE_MAPPING_MACHINE_NAME'); | |
$fallback = 'INSERT_IMAGE_STYLE_MACHINE_NAME'; | |
$breakpoints = picture_get_mapping_breakpoints($picture_mapping, $fallback); | |
// Create a new variable to pass through to the node template | |
$variables['INSERT_NEW_VARIABLE_NAME_TO_PASS_TO_NODE_TEMPLATE'] = theme('picture', array('uri' => $image[0]['uri'], 'style_name' => $fallback, 'breakpoints' => $breakpoints)); |
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
Modernizr.load({ | |
test: Modernizr.touch, | |
nope: Drupal.settings.basePath + Drupal.settings.customThemeSettings.pathToTheme + '/js/vendor/FILENAME.js', | |
complete : function () { | |
// Run the function after the scripts have downloaded | |
doSomethingFunction(); | |
} | |
}); | |
function doSomethingFunction() { |
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
yepnope([{ | |
test: $('.CLASSNAME').length !== 0, | |
yep: Drupal.settings.basePath + Drupal.settings.pintSettings.pathToTheme + '/js/vendor/YES-FILENAME.js', | |
nope: Drupal.settings.basePath + Drupal.settings.pintSettings.pathToTheme + '/js/vendor/NOPE-FILENAME.js', | |
}]); |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$brand-color: purple !default; | |
$brand-color: orange; | |
$site-header-bg: $brand-color !default; |
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
$('.classname').on('webkitTransitionEnd moztransitionend transitionend oTransitionEnd', function () { | |
// Animation complete! | |
}); |
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
.swiper-wrapper, | |
.gallery-item-list, | |
.gallery-thumb-list { | |
background: #000; | |
} |
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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"extends": "airbnb", | |
"rules": { | |
"no-console":0, | |
"nomen": 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
{ | |
"terminal.integrated.shell.osx": "/bin/zsh", | |
"terminal.integrated.fontFamily": "Meslo LG M for Powerline", | |
"terminal.integrated.fontSize": 12, | |
"files.insertFinalNewline": true, | |
"workbench.colorTheme": "Default Dark+", | |
"editor.tabSize": 2, | |
"editor.fontSize": 18, | |
"files.associations": { | |
"*.twig": "html", |