You are here

views-foundation-pricing-tables.tpl.php in Views Foundation 7.4

Same filename and directory in other branches
  1. 7 theme/views-foundation-pricing-tables.tpl.php

Template for Views Foundation Pricing Tables.

Available variables:

  • $view: The view object.
  • $fields: The output for the fields.

File

theme/views-foundation-pricing-tables.tpl.php
View source
<?php

/**
 * @file
 * Template for Views Foundation Pricing Tables.
 *
 * Available variables:
 * - $view: The view object.
 * - $fields: The output for the fields.
 *
 * @ingroup views_templates
 */
?>
<ul class="pricing-table">
  <?php

if ($fields['title_field']) {
  ?>
   <li class="title"><?php

  print $fields['title_field'];
  ?></li>
  <?php

}
?>
  <?php

if ($fields['price_field']) {
  ?>
   <li class="price"><?php

  print $fields['price_field'];
  ?></li>
  <?php

}
?>
  <?php

if ($fields['description_field']) {
  ?>
   <li class="description"><?php

  print $fields['description_field'];
  ?></li>
  <?php

}
?>
  <?php

if ($fields['bullet_fields']) {
  ?>
    <?php

  foreach ($fields['bullet_fields'] as $field) {
    ?>
   <li class="bullet-item"><?php

    print $field;
    ?></li>
    <?php

  }
  ?>
  <?php

}
?>
  <?php

if ($fields['button_field']) {
  ?>
   <li class="cta-button"><?php

  print $fields['button_field'];
  ?></li>
  <?php

}
?>
</ul>