uc_ajax_cart_block_content.tpl.php in Ubercart AJAX Cart 7.2
Same filename and directory in other branches
Theme file for non empty cart.
2 theme calls to uc_ajax_cart_block_content.tpl.php
- uc_ajax_cart_block_view in ./
uc_ajax_cart.module - Implements hook_block_view().
- uc_ajax_cart_show_cart in ./
uc_ajax_cart.module - @todo Please document this function.
File
templates/uc_ajax_cart_block_content.tpl.phpView source
<?php
/**
* @file
*
* Theme file for non empty cart.
*/
?>
<div id="cart-block-contents-ajax">
<table class="cart-block-items">
<thead>
<tr>
<th colspan="4">
<?php
print t('Products');
?>
</th>
</tr>
</thead>
<tbody>
<?php
foreach ($items as $item) {
?>
<tr class="odd">
<td class="cart-block-item-qty">
<?php
print $item['qty'];
?>
</td>
<td class="cart-block-item-title">
<?php
print $item['title'];
print $item['descr'];
?>
</td>
<td>
<?php
print $item['total'];
?>
</td>
</tr>
<tr>
<td colspan="4" class="cart-block-item-desc">
<?php
print $item['remove_link'];
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<table>
<tbody>
<tr>
<td class="cart-block-summary-items">
<?php
print $items_text;
?>
</td>
<td class="cart-block-summary-total">
<label><?php
print t('Total');
?>: </label><?php
print $total;
?>
</td>
</tr>
<tr class="cart-block-summary-links">
<td colspan="2">
<?php
print $cart_links;
?>
</td>
</tr>
</tbody>
</table>