this is part of the code
// For related items loop
$list = 'active';
$gallery = '';
$listClass = 'col-sm-12 list-item';
if (benderbs_show_as() == 'gallery') {
$list = '';
$gallery = 'active';
$listClass = 'col-sm-4';
}
$location = array();
if( osc_item_city_area() !== '' ) {
$location[] = osc_item_city_area();
}
if( osc_item_city() !== '' ) {
$location[] = osc_item_city();
}
if( osc_item_region() !== '' ) {
$location[] = osc_item_region();
}
if( osc_item_country() !== '' ) {
$location[] = osc_item_country();
}
function js_item() {
CustomCommentForm::js_validation();
}
osc_add_hook('footer', 'js_item');
osc_current_web_theme_path('header.php'); ?>
<?php osc_current_web_theme_path('item-sidebar.php'); ?>
<article id="item-content" class="col-md-8 order-1 pb-3 item">
<h1>
<?php if (osc_price_enabled_at_items()) : ?>
<span id="price-item-<?php echo osc_item_id(); ?>" class="price<?php if (osc_item_price() !== null) echo ' cursor-pointer'; ?>"
<?php if (osc_item_price() !== null) : ?>
data-toggle="tooltip" data-placement="top" title="<?php _e('Copy to Clipboard', BENDERBS_THEME_FOLDER); ?>" onclick="copyPriceToClipboard(<?php echo osc_item_id(); ?>, 'item');return false;"
<?php endif; ?>
>
<?php echo osc_item_formatted_price(); ?>
</span>
<?php endif; ?>
<strong><?php echo osc_item_title() . ', ' . osc_item_city(); ?></strong>
</h1>
<section class="bg-gray-bender small mt-3 p-1 rounded">
<?php if (osc_item_pub_date() !== '') : ?>
<div><?php printf(__('<strong class="publish">Published date</strong>: %1$s', BENDERBS_THEME_FOLDER), osc_format_date( osc_item_pub_date())); ?></div>
<?php endif; ?>
<?php if (osc_item_mod_date() !== '') : ?>
<div><?php printf(__('<strong class="update">Modified date:</strong> %1$s', BENDERBS_THEME_FOLDER), osc_format_date( osc_item_mod_date())); ?></div>
<?php endif; ?>
<?php if (count($location)>0) : ?>
<div id="item_location"><strong><?php _e('Location', BENDERBS_THEME_FOLDER); ?></strong>: <?php echo implode(', ', $location); ?></div>
<?php endif; ?>
</section>
<?php if (osc_is_web_user_logged_in() && osc_logged_user_id()==osc_item_user_id()) : ?>
<div id="edit_item_view" class="mt-1 text-right"><a href="<?php echo osc_item_edit_url(); ?>" rel="nofollow"><?php _e('Edit item', BENDERBS_THEME_FOLDER); ?></a></div>
<?php endif; ?>
<?php if (osc_images_enabled_at_items()) : ?>
<?php if (osc_count_item_resources() > 0) : ?>
<div id="itemCarousel" class="carousel slide mt-3" data-ride="carousel">
<div class="carousel-inner">
<?php $num = 0; while (osc_has_item_resources()) : $num++; ?>
<div class="carousel-item<?php if ($num == 1) echo ' active'; ?>">
<a href="<?php echo osc_resource_original_url(); ?>" target="_blank">
<img src="<?php echo osc_resource_url(); ?>" class="img-fluid" alt="<?php echo osc_resource_name(); ?>">
</a>
</div>
<?php endwhile; ?>
</div>
<?php if (osc_count_item_resources() > 1) : ?>
<a class="carousel-control-prev" href="#itemCarousel" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
</a>
<a class="carousel-control-next" href="#itemCarousel" data-slide="next">
<span class="carousel-control-next-icon"></span>
</a>
<?php endif; ?>
</div>