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
array=( 1 2 3 4 5 456 232131 232312 ) | |
for i in "${array[@]}" | |
do | |
curl -v -H "Accept: application/json" \ | |
-H "Content-type: application/json" \ | |
-X POST \ | |
-d '{"id":'${i}'}' \ | |
https://hooks.zapier.com/hooks/catch/######/333333/ | |
done |
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 URL of single file field #} | |
{{ node.field_file.entity.uri.value }} | |
{# Get URL of multi file field #} | |
{{ node.field_file['#items'].entity.uri.value }} | |
{# Trun into link #} | |
{{ file_url(node.field_file.entity.uri.value) }} | |
{# Check if there is at least one value #} |
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
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <a href="http://google.com">Donec nec mi quis</a> nibh elementum ornare et ut urna. Etiam nec dignissim quam, nec luctus tortor. Mauris in gravida ante, in euismod velit. Cras ac consequat metus. Aenean et sem eget ligula posuere maximus a a magna. Etiam viverra ullamcorper volutpat. Maecenas faucibus ultrices porta. Morbi pulvinar et dolor vitae volutpat.</p> | |
<h1>HEADING H2 font-size: XXem</h1> | |
<h2>HEADING H2 font-size: XXem</h2> | |
<h3>HEADING H3 font-size: XXem</h3> | |
<h4>HEADING H4 font-size: XXem</h4> |
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
@import "../config/config"; | |
$chosen-sprite: image-url('../../images/optimized/chosen-sprite.png') !default; | |
$chosen-sprite-retina: image-url('../../images/optimized/[email protected]') !default; | |
/* @group Base */ | |
.chosen-container { | |
position: relative; | |
display: inline-block; | |
vertical-align: middle; |
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
@mixin hexagon($color: #333, $size: 200) | |
position: relative | |
width: $size + unquote("px") | |
height: $size * 0.577 + unquote("px") | |
background-color: $color | |
margin: $size * 0.288 + unquote("px") 0 | |
&:before, &:after | |
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
<?php | |
/** | |
* @file field.tpl.php | |
* Default template implementation to display the value of a field. | |
* | |
* This file is not used and is here as a starting point for customization only. | |
* @see theme_field() | |
* | |
* Available variables: |
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
function basic_theme_suggestions_block_alter(array &$suggestions, array $variables) { | |
$block = $variables['elements']; | |
$blockType = $block['#configuration']['provider']; | |
if ($blockType == "block_content") { | |
$bundle = $block['content']['#block_content']->bundle(); | |
$suggestions[] = 'block__' . $bundle; | |
} |
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 thejibe_ckeditor_custom_config.js | |
* Includes custom js config - http://docs.ckeditor.com/#!/api/CKEDITOR.config | |
*/ | |
CKEDITOR.editorConfig = function( config ) | |
{ | |
// Preserve class formatting. | |
config.allowedContent = true; |
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 | |
* Theme override for a field. | |
* | |
* To override output, copy the "field.html.twig" from the templates directory | |
* to your theme's directory and customize it, just like customizing other | |
* Drupal templates such as page.html.twig or node.html.twig. | |
* | |
* Instead of overriding the theming for all fields, you can also just override |