Skip to content

Instantly share code, notes, and snippets.

@dherbold
Created February 16, 2019 00:03
Show Gist options
  • Save dherbold/e78d116cb928f5cd3208eac3426c49a1 to your computer and use it in GitHub Desktop.
Save dherbold/e78d116cb928f5cd3208eac3426c49a1 to your computer and use it in GitHub Desktop.
<?php
/**
* @file
* Main view template.
*
* Variables available:
* - $classes_array: An array of classes determined in
* template_preprocess_views_view(). Default classes are:
* .view
* .view-[css_name]
* .view-id-[view_name]
* .view-display-id-[display_name]
* .view-dom-id-[dom_id]
* - $classes: A string version of $classes_array for use in the class attribute
* - $css_name: A css-safe version of the view name.
* - $css_class: The user-specified classes names, if any
* - $header: The view header
* - $footer: The view footer
* - $rows: The results of the view query, if any
* - $empty: The empty text to display if the view is empty
* - $pager: The pager next/prev links to display, if any
* - $exposed: Exposed widget form/info to display
* - $feed_icon: Feed icon to display, if any
* - $more: A link to view more, if any.
*
* @ingroup views_templates
*/
?>
<div class="row honoree-header row-no-padding">
<div class="col-md-6">
<?php if (isset($fields['field_ita_featured_image'])) {
print $fields['field_ita_featured_image']->content;
} ?>
</div>
<div class="col-md-6">
<?php if (isset($fields['title'])) {
print $fields['title']->content;
} ?>
<?php if ($fields['field_reflections_reference']->content != NULL) {
print $fields['path_1']->content;
} ?>
<?php if ($fields['field_cv']->content != NULL) {
print $fields['nothing']->content;
} ?>
<?php if ($fields['field_gallery_reference']->content != NULL) {
print $fields['path_2']->content;
} ?>
<?php if ($fields['field_suggested_readings']->content != NULL) {
print $fields['nothing_1']->content;
} ?>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment