Created
January 13, 2015 19:59
-
-
Save kevinchampion/883404db62c9f96e9461 to your computer and use it in GitHub Desktop.
BEAN template
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 | |
/** | |
* @file | |
* Default theme implementation for beans. | |
* | |
* Available variables: | |
* - $content: An array of comment items. Use render($content) to print them all, or | |
* print a subset such as render($content['field_example']). Use | |
* hide($content['field_example']) to temporarily suppress the printing of a | |
* given element. | |
* - $title: The (sanitized) entity label. | |
* - $url: Direct url of the current entity if specified. | |
* - $page: Flag for the full page state. | |
* - $classes: String of classes that can be used to style contextually through | |
* CSS. It can be manipulated through the variable $classes_array from | |
* preprocess functions. By default the following classes are available, where | |
* the parts enclosed by {} are replaced by the appropriate values: | |
* - entity-{ENTITY_TYPE} | |
* - {ENTITY_TYPE}-{BUNDLE} | |
* | |
* Other variables: | |
* - $classes_array: Array of html class attribute values. It is flattened | |
* into a string within the variable $classes. | |
* | |
* @see template_preprocess() | |
* @see template_preprocess_entity() | |
* @see template_process() | |
*/ | |
?> | |
<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>> | |
<div class="content item-list"<?php print $content_attributes; ?>> | |
<ul> | |
<?php foreach($feeds as $item) : ?> | |
<li> | |
<?php if(!$hide_title) :?> | |
<h4 class="feed-title"><a href="<?php print $item->link; ?>"><?php print $item->title; ?></a></h4> | |
<?php endif;?> | |
<div class="feed-desc"><?php print $item->description; ?></div> | |
</li> | |
<?php endforeach; ?> | |
</ul> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment