} ?> <?php print render($item); ?> <?php if (!empty($text)) { ?> <div class="banner__text"> <?php if (!is_null($linkurl)) { ?> <?php print theme_strip_links(render($text)); ?> <?php } else { ?> <?php print render($text); ?> <?php } ?> </div> <?php } ?>
// Add button class to the link field items if (isset($content['field_link']) && !empty($content['field_link'])) { $links = element_children($content['field_link']); if (!empty($links)) { foreach ($links as $lid) { if (isset($content['field_link'][$lid]['#element']['title'])) { if ($content['field_link'][$lid]['#element']['title'] !== $content['field_link'][$lid]['#element']['display_url']) { $content['field_link'][$lid]['#element']['attributes']['class'] = 'btn btn--more'; } else { unset($content['field_link'][$lid]); } } else { unset($content['field_link'][$lid]); } } } } ?> <div class="<?php print $classes; ?> "<?php print $attributes; ?> > <?php print theme_strip_links(render($content)); ?> </div>
if ($block->subject) { ?> <div class="<?php print $title_class; ?> "><?php print $block->subject; ?> </div> <?php } } ?> <?php print theme_strip_links($content); ?> <?php if (!$no_wrapper) { ?> <?php if (isset($link) && isset($link_options)) { ?> </div> </a> <?php } ?> </<?php print $tag;
</span> </div> <div itemprop="name" <?php print drupal_attributes($title_attributes_array); ?> > <?php print $title; ?> </div> <?php if (isset($content['cover_image'])) { ?> <div class="news__image"> <?php print theme_strip_links(render($content['cover_image'])); ?> </div> <?php } ?> </a> <?php } ?>