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.
1 theme call to commerce-product-title.tpl.php
- CommerceProductEntityController::buildContent in modules/
product/ includes/ commerce_product.controller.inc - Builds a structured array representing the entity's content.
File
modules/product/theme/commerce-product-title.tpl.phpView 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
}