Skip to content

Instantly share code, notes, and snippets.

@zanesensenig
Last active April 20, 2016 12:26
Show Gist options
  • Save zanesensenig/f45d543ac578fbd2cabbe1382de04a9a to your computer and use it in GitHub Desktop.
Save zanesensenig/f45d543ac578fbd2cabbe1382de04a9a to your computer and use it in GitHub Desktop.
Paragraphs print value snippet
<?php
$items = field_get_items('paragraphs_item', $variables['paragraphs_item'], 'field_para_background_color');
$key = $items[0]['value'];
?>
<div id="full-width-container" class="<?php print $key; ?>">
<div id="full-width-image" class="">
<?php print render($content['field_image']); ?>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment