basic_cart_cart_flat.tpl.php in Basic cart 7
Same filename and directory in other branches
Basic cart shopping cart html template
1 theme call to basic_cart_cart_flat.tpl.php
- basic_cart_checkout in ./
basic_cart.cart.inc - Checkout form implementation.
File
basic_cart_cart_flat.tpl.phpView source
<?php
/**
* @file
* Basic cart shopping cart html template
*/
?>
<?php
if (empty($cart)) {
?>
<p><?php
print t('Your shopping cart is empty.');
?></p>
<?php
}
else {
?>
<div class="basic-cart-cart basic-cart-grid">
<?php
if (is_array($cart) && count($cart) >= 1) {
?>
<?php
foreach ($cart as $nid => $node) {
?>
<div class="basic-cart-cart-contents row">
<div class="basic-cart-cart-quantity cell">
<div class="cell"><?php
print $node->basic_cart_quantity;
?></div>
<div class="cell basic-cart-cart-x">x</div>
</div>
<div class="basic-cart-cart-node-title cell">
<?php
print l($node->title, 'node/' . $node->nid);
?><br />
<span class="basic-cart-cart-node-summary">
<?php
if (isset($node->basic_cart_node_description)) {
?>
<?php
if (drupal_strlen($node->basic_cart_node_description) > 50) {
?>
<?php
print truncate_utf8($node->basic_cart_node_description, 50);
?> ...
<?php
}
else {
?>
<?php
print $node->basic_cart_node_description;
?>
<?php
}
?>
<?php
}
?>
</span>
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
<?php
}