commerce-product-status.tpl.php in Commerce Core 7
Default theme implementation to present the status on a product page.
Available variables:
- $status: The string representation of a product's status to render.
- $label: If present, the string to use as the status label.
Helper variables:
- $product: The fully loaded product object the status belongs to.
1 theme call to commerce-product-status.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-status.tpl.phpView source
<?php
/**
* @file
* Default theme implementation to present the status on a product page.
*
* Available variables:
* - $status: The string representation of a product's status to render.
* - $label: If present, the string to use as the status label.
*
* Helper variables:
* - $product: The fully loaded product object the status belongs to.
*/
if ($status) {
?>
<div class="commerce-product-status">
<?php
if ($label) {
?>
<div class="commerce-product-status-label">
<?php
print $label;
?>
</div>
<?php
}
?>
<?php
print $status;
?>
</div>
<?php
}