You are here

commerce-product-title.tpl.php in Commerce Core 7

Default theme implementation to present the title on a product page.

Available variables:

  • $title: The title to render.
  • $label: If present, the string to use as the title label.

Helper variables:

  • $product: The fully loaded product object the title belongs to.

File

modules/product/theme/commerce-product-title.tpl.php
View source
<?php

/**
 * @file
 * Default theme implementation to present the title on a product page.
 *
 * Available variables:
 * - $title: The title to render.
 * - $label: If present, the string to use as the title label.
 *
 * Helper variables:
 * - $product: The fully loaded product object the title belongs to.
 */
if ($title) {
  ?>
  <div class="commerce-product-title">
    <?php

  if ($label) {
    ?>
      <div class="commerce-product-title-label">
        <?php

    print $label;
    ?>
      </div>
    <?php

  }
  ?>
    <?php

  print $title;
  ?>
  </div>
<?php

}