| Current Path : /home/bijouxly/www/templates/carparts2/includes/ |
| Current File : /home/bijouxly/www/templates/carparts2/includes/shoppingcart_block_1.php |
<?php
function shoppingcart_block_1($caption, $content, $classes = '', $id = '')
{
$hasCaption = (null !== $caption && strlen(trim($caption)) > 0);
$hasContent = (null !== $content && strlen(trim($content)) > 0);
$isPreview = $GLOBALS['theme_settings']['is_preview'];
if (!$hasCaption && !$hasContent)
return '';
if (!empty($id))
$id = $isPreview ? (' data-block-id="' . $id . '"') : '';
ob_start();
?>
<div class=" bd-block-8 bd-no-margins bd-own-margins <?php echo $classes; ?>" <?php echo $id; ?>>
<?php if ($hasCaption) : ?>
<div class=" bd-blockheader bd-tagstyles bd-custom-blockquotes bd-custom-button bd-custom-image bd-custom-table">
<h4><?php echo $caption; ?></h4>
</div>
<?php endif; ?>
<?php if ($hasContent) : ?>
<div class=" bd-blockcontent bd-tagstyles bd-custom-blockquotes bd-custom-button bd-custom-image bd-custom-inputs bd-custom-table">
<?php echo funcPostprocessBlockContent($content); ?>
</div>
<?php endif; ?>
</div>
<?php
return ob_get_clean();
}