You are here

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.

File

modules/product/theme/commerce-product-status.tpl.php
View 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

}