| Current Path : /home/helpink/www/components/com_jbusinessdirectory/views/companies/tmpl/ |
| Current File : /home/helpink/www/components/com_jbusinessdirectory/views/companies/tmpl/details.php |
<?php
/**
* @package J-BusinessDirectory
*
* @author CMSJunkie http://www.cmsjunkie.com/
* @copyright Copyright (C) 2007 - 2022 CMSJunkie. All rights reserved.
* @license https://www.gnu.org/licenses/agpl-3.0.en.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<div class="listing-details">
<!-- Listing Categories -->
<?php if (!empty($this->company->areas_served)) { ?>
<div class="listing-item">
<div class="listing-item-title"><?php echo JText::_('LNG_AREAS_SERVED') ?></div>
<div class="listing-item-content">
<?php echo $this->company->areas_served ?>
</div>
</div>
<?php } ?>
<!-- Listing Categories -->
<?php if (!empty($this->company->categoriesDetails)) { ?>
<div class="listing-item">
<div class="listing-item-content rounded">
<?php require_once 'listing_categories.php'; ?>
</div>
</div>
<?php } ?>
<div class="d-flex">
<?php echo JBDListingStyles::getCompanyDetails($this->company, $appSettings); ?>
</div>
<?php if (!empty($company->customAttributes) && $appSettings->show_custom_attributes) { ?>
<?php
$renderedContent = AttributeService::renderAttributesSearchResults($company->customAttributes, $enablePackages, $company->packageFeatures);
echo $renderedContent;
?>
<?php } ?>
<?php if (
!empty($this->company->locations) && $appSettings->show_secondary_locations == 1
&& (isset($this->package->features) && in_array(SECONDARY_LOCATIONS, $this->package->features) || !$appSettings->enable_packages)
) { ?>
<div class="listing-item">
<div class="listing-item-title"><?php echo JText::_('LNG_OTHER_LOCATIONS') ?></div>
<div class="listing-item-content">
<?php foreach ($this->company->locations as $location) {
if (isset($company->publish_only_city) && $company->publish_only_city) {
$location->publish_only_city = 1;
}
?>
<div class="company-location" id="location-<?php echo $location->id ?>">
<i class="icon map-marker"></i> <?php echo (!empty($location->name) ? strtoupper($location->name) . " - " : "") . JBusinessUtil::getAddressText($location); ?>
<?php echo !empty($location->phone) ? " <i class='la la-phone'></i> " . $location->phone : ''; ?>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
<?php if(!empty(($this->companyAttributes))) { ?>
<div class="listing-item">
<div class="listing-item-content">
<?php require_once 'listing_attributes.php'; ?>
</div>
</div>
<?php } ?>
<?php if(!empty($this->company->keywords)){?>
<div class="listing-item">
<div class="listing-item-content">
<ul class="business-keywords">
<?php
$keywords = explode(',', $this->company->keywords);
for($i=0; $i<count($keywords); $i++) { ?>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_jbusinessdirectory&view=search&searchkeyword='.$keywords[$i].$menuItemId) ?>"><i class="la la-tag"></i> <?php echo $keywords[$i]?></a>
</li>
<?php
} ?>
</ul>
</div>
</div>
<?php } ?>
</div>