Your IP : 216.73.216.84


Current Path : /home/helpink/www/templates/tp_landing/html/com_jbusinessdirectory/companies/
Upload File :
Current File : /home/helpink/www/templates/tp_landing/html/com_jbusinessdirectory/companies/default_style_8.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');
require_once 'header.php';
require_once BD_CLASSES_PATH . '/attributes/attributeservice.php';
require_once HELPERS_PATH . '/listing_styles.php';

$address = JBusinessUtil::getAddressText($this->company);
?>

<style>
    #sp-main-body {
        padding: 0;
        margin: 0;
    }

    #sp-main-body>div {
        margin: 0;
        width: auto;
        max-width: none;
    }

    @media (min-width: 768px) {
        #sp-component {
            padding: 0;
        }
    }

    .slick-slider {
        margin-bottom: 0;
    }
</style>

<div id="listing-style-8" class="listing-style-8" itemscope itemtype="http://schema.org/LocalBusiness">
    <div id="company-style-8-header">
        <div class="company-style-8-header-image" style="background-image:<?php echo !empty($this->company->business_cover_image) ? ("url('" . BD_PICTURES_PATH . $this->company->business_cover_image . " ')") : ("url('" . BD_PICTURES_PATH . $appSettings->default_bg_listing . " ')"); ?>">
            <div class="dir-overlay"></div>
            <div class="container">
                <div class="row">
                    <div class="col-lg-8">
                        <div class="header-info">
                            <?php if (isset($this->package->features) && in_array(SHOW_COMPANY_LOGO, $this->package->features) || !$appSettings->enable_packages) { ?>
                                <span itemprop="image" style="display:none;"><?php echo (!empty($this->company->logoLocation)) ? BD_PICTURES_PATH . $this->company->logoLocation : BD_ASSETS_FOLDER_PATH . "no_image.jpg" ?></span>
                                <div class="business-logo-container" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
                                    <!-- Business Logo -->
                                    <?php if (!empty($this->company->logoLocation)) { ?>
                                        <img class="business-logo" title="<?php echo $this->escape($this->company->name) ?>" alt="<?php echo $this->escape($this->company->name) ?>" src="<?php echo BD_PICTURES_PATH . $this->company->logoLocation ?>" itemprop="contentUrl">
                                    <?php } else { ?>
                                        <img class="business-logo" title="<?php echo $this->escape($this->company->name) ?>" alt="<?php echo $this->escape($this->company->name) ?>" src="<?php echo BD_PICTURES_PATH . '/no_image.jpg' ?>" itemprop="contentUrl">
                                    <?php } ?>
                                </div>
                            <?php } ?>
                            <div>
                                <?php require_once 'breadcrumbs.php'; ?>
                                <!-- Business Name -->
                                <h1 itemprop="name">
                                    <?php echo isset($this->company->name) ? $this->escape($this->company->name) : ""; ?>
                                    <?php if ($this->company->recommended && $appSettings->show_recommended) { ?>
                                        <span class="recommended"><i class="la la-star"></i> <?php echo JText::_("LNG_RECOMMENDED") ?></span>
                                    <?php } ?>
                                    <?php if ($this->company->userId != 0 && $appSettings->show_claimed) { ?>
                                        <span class="claimed"><i class="la la-check"></i> <?php echo JText::_("LNG_CLAIMED") ?></span>
                                    <?php } ?>
                                </h1>
                                <?php if (isset($this->company->slogan) && strlen($this->company->slogan) > 2) { ?>
                                    <div class="business-slogan"><?php echo  $this->company->slogan ?></div>
                                <?php } ?>
                                <div class="company-info-review">
                                    <!-- Business Ratings -->
                                    <?php if (
                                        $appSettings->enable_packages && $appSettings->enable_reviews && isset($this->package->features) && in_array(REVIEWS, $this->package->features) || !$appSettings->enable_packages
                                        && $appSettings->enable_reviews
                                    ) { ?>
                                        <div class="company-info-rating" <?php echo !$appSettings->enable_ratings ? 'style="display:none"' : '' ?>>
                                            <?php if (!empty($this->reviews) > 0) { ?>
                                                <span style="display:none" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
                                                    <span>
                                                        <span itemprop="itemReviewed" itemscope itemtype="http://schema.org/LocalBusiness">
                                                            <span itemprop="name"><?php echo $this->company->name ?></span>
                                                            <span itemprop="image"><?php echo BD_PICTURES_PATH . $this->company->logoLocation ?></span>
                                                            <span itemprop="address"><?php echo $address ?></span>
                                                            <span itemprop="telephone"><?php echo $this->company->phone ?></span>
                                                        </span>
                                                        <span itemprop="ratingValue"><?php echo $this->company->review_score ?></span> <span itemprop="worstRating">0</span><span itemprop="bestRating">5</span>
                                                    </span>
                                                    <span itemprop="ratingCount"><?php echo count($this->totalReviews) ?></span>
                                                </span>
                                            <?php } ?>

                                            <div class="rating">
                                                <span class="user-rating-avg" id="rating-average" title="<?php echo $this->company->review_score ?>" alt="<?php echo $company->id ?>" style="display: block;"></span>
                                            </div>
                                        </div>
                                    <?php } ?>
                                    <div class="review-info">
                                        <?php if (
                                            $appSettings->enable_packages && $appSettings->enable_reviews && isset($this->package->features) && in_array(REVIEWS, $this->package->features) || !$appSettings->enable_packages
                                            && $appSettings->enable_reviews
                                        ) {
                                            if (GET_DATA_FROM_YELP) {
                                                $totalReview = isset($this->reviews->error) ? 0 : $this->reviews->total;
                                            } else {
                                                $totalReview = count($this->totalReviews);
                                            }
                                        ?>
                                            <a href="<?php echo $url ?>#go-company-reviews"><span><?php echo $totalReview ?> <?php echo JText::_('LNG_REVIEWS'); ?></span></a>
                                        <?php } ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4 listing-actions">
                        <?php if ($this->appSettings->enable_bookmarks) { ?>
                            <?php if (!empty($company->bookmark)) { ?>
                                <!-- Business Bookmarks -->
                                <a id="bookmark-<?php echo $company->id ?>" href="javascript:jbdUtils.showUpdateBookmarkDialog(<?php echo $user->id == 0 ? "1" : "0" ?>,<?php echo $company->id ?>,<?php echo BOOKMARK_TYPE_BUSINESS ?>)" title="<?php echo JText::_("LNG_UPDATE_BOOKMARK") ?>" class="btn btn-outline"><i class="la la-heart"></i> <span><?php echo JText::_('LNG_FAVORITE'); ?></span></a>
                            <?php } else { ?>
                                <a id="bookmark-<?php echo $company->id ?>" href="javascript:jbdUtils.showAddBookmark(<?php echo $user->id == 0 ? "1" : "0" ?>,<?php echo $company->id ?>,<?php echo BOOKMARK_TYPE_BUSINESS ?>)" title="<?php echo JText::_("LNG_ADD_BOOKMARK") ?>" class="btn btn-outline"><i class="la la-heart-o"></i> <span><?php echo JText::_('LNG_FAVORITE'); ?></span></a>
                            <?php } ?>
                        <?php } ?>

                        <!-- Business Socials -->
                        <?php if (
                            $appSettings->enable_packages && $appSettings->enable_reviews && isset($this->package->features) && in_array(REVIEWS, $this->package->features) || !$appSettings->enable_packages
                            && $appSettings->enable_reviews
                        ) { ?>
                            <!-- Business Add Review -->
                            <a href="<?php echo $url ?>#reviews" onclick="jbdListings.showReviewForm(<?php echo ($appSettings->enable_reviews_users && $user->id == 0) ? "1" : "0"; ?>);event.stopPropagation();" class="btn btn-outline">
                                <span class="ui-button-text"><?php echo JText::_("LNG_ADD_NEW_REVIEW") ?></span>
                            </a>
                        <?php } ?>

                        <?php if ((isset($this->package->features) && in_array(CONTACT_FORM, $this->package->features) || !$appSettings->enable_packages) && !empty($company->email) && $appSettings->show_contact_form) { ?>
                            <div>
                                <br />
                                <a href="javascript:jbdListings.contactCompany(<?php echo $showData ? "1" : "0" ?>)" class="btn btn-outline">
                                    <i class="la la-envelope"></i> <?php echo !empty($this->company->userId) ? JText::_("LNG_MESSAGE") : JText::_("LNG_REQUEST_MORE_INFO") ?>
                                </a>
                            </div>
                        <?php } ?>

                        <?php if ($this->showListLinkButton && $appSettings->enable_linked_listings) { ?>
                            <div>
                                <br />
                                <a href="javascript:jbdListings.joinListing(<?php echo count($this->joinedCompanies); ?>,<?php echo $this->company->id ?>,<?php echo ($user->id == 0) ? 0 : 1 ?>,<?php echo count($this->userCompanies) < 2 ? false : true; ?>)" class="btn btn-outline">
                                    <i class="la la-user"></i> <span class="ui-button-text"><?php echo JText::_("LNG_JOIN_LEAVE") ?></span>
                                </a>
                            </div>
                        <?php } ?>
                    </div>
                </div>

            </div>
        </div>
        <div class="company-menu">
            <div class="container">
                <nav>
                    <a id="business-link" href="javascript:jbdListings.showDetails('company-business');" class="active"><i class="la la-file"></i> <span><?php echo JText::_("LNG_BUSINESS_DETAILS") ?></span></a>
                    <?php
                    if ((isset($this->package->features) && in_array(IMAGE_UPLOAD, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->pictures) && count($this->pictures) > 0
                    ) {
                    ?>
                        <a id="gallery-link" href="javascript:jbdListings.showDetails('company-gallery');" class=""><i class="la la-image"></i> <?php echo JText::_("LNG_GALLERY") ?></a>
                    <?php } ?>

                    <?php
                    if ((isset($this->package->features) && in_array(VIDEOS, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->videos) && count($this->videos) > 0
                    ) {
                    ?>
                        <a id="videos-link" href="javascript:jbdListings.showDetails('company-videos');" class=""><i class="la la-video-camera"></i> <?php echo JText::_("LNG_VIDEOS") ?></a>
                    <?php } ?>

                    <?php
                    if ((isset($this->package->features) && in_array(SOUNDS_FEATURE, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->sounds) && count($this->sounds) > 0
                    ) {
                    ?>
                        <a id="sounds-link" href="javascript:jbdListings.showDetails('company-sounds');" class=""><i class="la la-music"></i> <?php echo JText::_("LNG_SOUNDS") ?></a>
                    <?php } ?>


                    <?php
                    if ((isset($this->package->features) && in_array(COMPANY_OFFERS, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->offers) && count($this->offers) && $appSettings->enable_offers
                    ) {
                    ?>
                        <a id="offers-link" href="javascript:jbdListings.showDetails('company-offers');" class=""><i class="la la-tag"></i> <?php echo JText::_("LNG_OFFERS") ?></a>
                    <?php } ?>

                    <?php if ((isset($this->package->features) && in_array(PRODUCTS, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->productCategories) && count($this->productCategories)
                    ) { ?>
                        <a id="products-link" href="javascript:jbdListings.showDetails('company-products');" class=""><i class="la la-tag"></i> <?php echo JText::_("LNG_PRODUCTS") ?></a>
                    <?php } ?>

                    <?php if ((isset($this->package->features) && in_array(COMPANY_SERVICES, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->services) && count($this->services) && $appSettings->enable_services
                    ) { ?>
                        <a id="services-link" href="javascript:jbdListings.showDetails('company-services');" class=""><i class="la la-th-list"></i><?php echo JText::_("LNG_SERVICES") ?></a>
                    <?php } ?>

                    <?php
                    if ((isset($this->package->features) && in_array(COMPANY_EVENTS, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->events) && count($this->events) && $appSettings->enable_events
                    ) {
                    ?>
                        <a id="events-link" href="javascript:jbdListings.showDetails('company-events');" class=""><i class="la la-calendar"></i> <?php echo JText::_("LNG_EVENTS") ?></a>
                    <?php } ?>

                    <?php
                    if ((isset($this->package->features) && in_array(TESTIMONIALS, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->companyTestimonials)
                    ) {
                    ?>
                        <a id="testimonials-link" href="javascript:jbdListings.showDetails('company-testimonials');" class=""><i class="la la-quote-left"></i> <?php echo JText::_("LNG_TESTIMONIALS") ?></a>
                    <?php } ?>

                    <?php if ((isset($this->package->features) && in_array(SERVICES_LIST, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->services_list) && count($this->services_list)
                    ) { ?>
                        <a id="price-list-link" href="javascript:jbdListings.showDetails('company-price-list');" class=""><i class="la la-list-alt"></i> <?php echo JText::_("LNG_PRICE_LIST") ?></a>
                    <?php } ?>

                    <?php
                    if ((isset($this->package->features) && in_array(PROJECTS, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->companyProjects)
                    ) { ?>
                        <a id="projects-link" href="javascript:jbdListings.showDetails('company-projects');" class=""><i class="la la-folder-open"></i> <?php echo JText::_("LNG_PROJECTS") ?></a>
                    <?php } ?>

                    <?php
                    if ((!empty($this->teamMembers['leadership']) || !empty($this->teamMembers['team'])) && (isset($this->package->features)
                        && in_array(TEAM_FEATURE, $this->package->features) || !$appSettings->enable_packages)) {
                    ?>
                        <a id="team-link" href="javascript:jbdListings.showDetails('company-team');" class=""><i class="la la-users"></i> <?php echo JText::_("LNG_TEAM") ?></a>
                    <?php } ?>

                    <?php if (
                        $appSettings->enable_packages && $appSettings->enable_reviews && isset($this->package->features) && in_array(REVIEWS, $this->package->features) || !$appSettings->enable_packages
                        && $appSettings->enable_reviews
                    ) { ?>
                        <a id="reviews-link" href="javascript:jbdListings.showDetails('company-reviews');" class=""><i class="la la-star"></i> <?php echo JText::_("LNG_REVIEWS") ?></a>
                    <?php } ?>

                    <?php if ((isset($this->package->features) && in_array(CONTACT_FORM, $this->package->features) || !$appSettings->enable_packages) && !empty($company->email) && $appSettings->show_contact_form) { ?>
                        <a href="javascript:jbdListings.showDetails('company-contact-details');" class="d-sm-none">
                            <i class="la la-envelope"></i> <?php echo !empty($this->company->userId) ? JText::_("LNG_CONTACT_US") : JText::_("LNG_REQUEST_MORE_INFO") ?>
                        </a>
                    <?php } ?>
                </nav>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="listing-content">
            <div class="row">
                <!-- BODY -->
                <div class="col-md-8">

                    <?php if ((isset($this->package->features) && in_array(GOOGLE_MAP, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->company->latitude) && !empty($this->company->longitude)
                    ) { ?>
                        <div id="company-map-holder" class="listing-section">
                            <div class="listing-section-title d-flex justify-content-between">
                                <div><i class="icon map-marker"></i> <?php echo JText::_("LNG_BUSINESS_MAP_LOCATION"); ?></div>
                                <a title="" class="" href="javascript:jbdUtils.hideMap()"><?php echo JText::_("LNG_CLOSE_MAP") ?></a>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'map.php'; ?>
                            </div>
                        </div>
                    <?php } ?>


                    <div id="company-details" class="listing-section">
                        <div class="listing-section-title">
                            <i class="la la-file"></i> <?php echo JText::_("LNG_DESCRIPTION"); ?>
                        </div>
                        <div class="listing-section-content">
                            <!-- Business Description -->
                            <div id="dir-listing-description" class="dir-listing-description" itemprop="description">
                                <?php if (!empty($this->company->description) && (isset($this->package->features) && in_array(HTML_DESCRIPTION, $this->package->features) || !$appSettings->enable_packages)) { ?>
                                    <?php echo JHTML::_("content.prepare", $this->company->description); ?>
                                <?php } else if (!empty($this->company->description) && (isset($this->package->features) && in_array(DESCRIPTION, $this->package->features) || !$appSettings->enable_packages)) { ?>
                                    <?php echo strip_tags($this->company->description); ?>
                                <?php } ?>
                            </div>
                            <div class="listing-details">
                                <?php if ((isset($this->package->features) && in_array(CUSTOM_TAB, $this->package->features) || !$appSettings->enable_packages)
                                    && !empty($this->company->custom_tab_name)
                                ) { ?>

                                    <div class="listing-detail">
                                        <div class="listing-detail-header"><?php echo $this->company->custom_tab_name ?></div>
                                        <?php echo JHTML::_("content.prepare", $this->company->custom_tab_content); ?>
                                    </div>
                                <?php } ?>

                                <?php require_once 'details.php'; ?>

                                <?php if ($showData && $appSettings->enable_attachments && (isset($this->package->features) && in_array(ATTACHMENTS, $this->package->features) || !$appSettings->enable_packages)) { ?>
                                    <?php if (!empty($this->company->attachments)) { ?>
                                        <div class="listing-detail">
                                            <div class="listing-detail-header"><?php echo JText::_('LNG_ATTACHMENTS') ?></div>
                                            <?php require "listing_attachments.php" ?>
                                        </div>
                                    <?php } ?>
                                <?php } ?>

                                <div class="classification">
                                    <?php require_once 'listing_attributes.php'; ?>
                                </div>

                                <?php if ((isset($this->package->features) && in_array(RELATED_COMPANIES, $this->package->features) || !$appSettings->enable_packages)
                                    && isset($this->realtedCompanies) && count($this->realtedCompanies)
                                ) {
                                ?>
                                    <div class="listing-detail related">
                                        <div class="listing-detail-header"><?php echo JText::_('LNG_RELATED') ?></div>
                                        <?php require_once 'related_business.php'; ?>
                                    </div>
                                <?php } ?>

                                <?php if (!empty($this->associatedCompanies) && $appSettings->enable_linked_listings) { ?>
                                    <div class="listing-detail associated">
                                        <div class="listing-detail-header"><?php echo JText::_('LNG_LINKED_COMPANIES') ?></div>
                                        <?php require_once 'listing_associated_companies.php'; ?>
                                    </div>
                                <?php } ?>

                            </div>
                        </div>
                    </div>

                    <?php if ((isset($this->package->features) && in_array(IMAGE_UPLOAD, $this->package->features) || !$appSettings->enable_packages)
                        && ((isset($this->pictures) && count($this->pictures) > 0) || (isset($this->videos) && count($this->videos) > 0))
                    ) { ?>
                        <div class="listing-section" id="company-gallery">
                            <div class="listing-section-title">
                                <i class="la la-video-camera"></i> <?php echo JText::_("LNG_GALLERY") ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once JPATH_COMPONENT_SITE . '/include/gallery/gallery_slider.php'; ?>			
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Videos -->
                    <?php if ((isset($this->package->features) && in_array(VIDEOS, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->videos)
                    ) { ?>
                        <div class="listing-section" id="company-videos">
                            <div class="listing-section-title">
                                <i class="la la-video-camera"></i> <?php echo JText::_("LNG_VIDEOS") ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_videos.php'; ?>
                            </div>
                        </div>
                    <?php }    ?>

                    <!-- Listing Sounds -->
                    <?php if ((isset($this->package->features) && in_array(SOUNDS_FEATURE, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->sounds)
                    ) { ?>
                        <div class="listing-section" id="company-sounds">
                            <div class="listing-section-title">
                                <i class="la la-music"></i> <?php echo JText::_("LNG_SOUNDS") ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_sounds.php'; ?>
                            </div>
                        </div>
                    <?php } ?>


                    <!-- Business Offers Price List -->
                    <?php if (isset($this->offers) && count($this->offers)  && in_array("1", array_column($this->offers, "add_to_price_list")) && $appSettings->enable_offers && $appSettings->show_offer_price_list) { ?>
                        <div class="listing-section" id="company-offers-price-list">
                            <div class="listing-section-title">
                                <?php echo JText::_("LNG_OFFERS_PRICE_LIST"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php if ($appSettings->offer_price_list_view_style == 1) {
                                    require_once 'listing_offers_price_list_style_2.php';
                                } else {
                                    require_once 'listing_offers_price_list.php';
                                }
                                ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Offers -->
                    <?php if ((isset($this->package->features) && in_array(COMPANY_OFFERS, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->offers) && $appSettings->enable_offers
                    ) { ?>
                        <div class="listing-section" id="company-offers">
                            <div class="listing-section-title">
                                <i class="la la-tag"></i> <?php echo JText::_("LNG_COMPANY_OFFERS"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_offers.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Products -->
                    <?php if ((isset($this->package->features) && in_array(PRODUCTS, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->productCategories) && count($this->productCategories)
                    ) { ?>
                        <div class="listing-section" id="company-products">
                            <div class="listing-section-title">
                                <i class="la la-tag"></i> <?php echo JText::_("LNG_PRODUCTS"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_product_categories.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Company Services -->
                    <?php if ((isset($this->package->features) && in_array(COMPANY_SERVICES, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->services) && count($this->services) && $appSettings->enable_services
                    ) {
                    ?>
                        <div class="listing-section" id="company-services">
                            <div class="listing-section-title">
                                <i class="la la-th-list"></i> <?php echo JText::_("LNG_SERVICES"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_services.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Events -->
                    <?php if ((isset($this->package->features) && in_array(COMPANY_EVENTS, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->events) && count($this->events) && $appSettings->enable_events
                    ) { ?>
                        <div class="listing-section" id="company-events">
                            <div class="listing-section-title">
                                <i class="la la-calendar"></i> <?php echo JText::_("LNG_COMPANY_EVENTS"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_events.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Associated Events -->
                    <?php if ((isset($this->package->features) && in_array(COMPANY_EVENTS, $this->package->features) || !$appSettings->enable_packages)
                        && isset($this->associatedEvents) && count($this->associatedEvents) && $appSettings->enable_events
                    ) { ?>
                        <div class="listing-section" id="events-associated">
                            <div class="listing-section-title">
                                <i class="la la-calendar"></i> <?php echo JText::_("LNG_ASSOCIATED_EVENTS"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_associated_events.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Company Testimonials -->
                    <?php if ((isset($this->package->features) && in_array(TESTIMONIALS, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->companyTestimonials)
                    ) { ?>
                        <div class="listing-section" id="company-testimonials">
                            <div class="listing-section-title">
                                <i class="la la-quote-left"></i> <?php echo JText::_("LNG_TESTIMONIALS"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_testimonials.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Price List -->
                    <?php if ((isset($this->package->features) && in_array(SERVICES_LIST, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->services_list) && count($this->services_list) && $appSettings->enable_price_list
                    ) { ?>
                        <div class="listing-section" id="company-price-list">
                            <div class="listing-section-title">
                                <i class="la la-list-alt"></i> <?php echo JText::_("LNG_PRICE_LIST"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_price_list.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Projects -->
                    <?php
                    if ((isset($this->package->features) && in_array(PROJECTS, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->companyProjects)
                    ) { ?>
                        <div class="listing-section" id="company-projects">
                            <div class="listing-section-title">
                                <i class="la la-briefcase"></i> <?php echo JText::_("LNG_PROJECTS"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_projects.php'; ?>
                            </div>
                        </div>
                    <?php } ?>


                    <!-- Listing Team -->
                    <?php if ((isset($this->package->features) && in_array(TEAM_FEATURE, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->teamMembers['leadership']) || !empty($this->teamMembers['team'])
                    ) { ?>
                        <div class="listing-section" id="company-team">
                            <div class="listing-section-title">
                                <i class="la la-user"></i> <?php echo JText::_("LNG_TEAM"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_team.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Reviews -->
                    <?php if (
                        $appSettings->enable_packages && $appSettings->enable_reviews && isset($this->package->features) && in_array(REVIEWS, $this->package->features) || !$appSettings->enable_packages
                        && $appSettings->enable_reviews
                    ) { ?>
                        <div class="listing-section" id="company-reviews">
                            <div class="listing-section-title">
                                <i class="la la-comments"></i> <?php echo JText::_("LNG_BUSINESS_REVIEWS"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_reviews.php'; ?>
                            </div>
                        </div>
                        <?php if (!$appSettings->enable_reviews_users || !$user->id == 0) { ?>
                            <div class="listing-section">
                                <div class="listing-section-content">
                                    <?php require_once 'default_addreview.php'; ?>
                                </div>
                            </div>
                        <?php } ?>
                    <?php } ?>
                </div>
                <!-- SIDEBAR -->
                <div class="col-md-4">
                    <?php if ($appSettings->social_profile && $this->company->userId != 0 && (empty($this->claimDetails) || isset($this->claimDetails) && ($this->claimDetails->status == 1))) { ?>
                        <div class="listing-section">
                            <div class="listing-section-title">
                                <i class="la la-user"></i> <?php echo JText::_("LNG_COMMUNITY_OWNER_PROFILE"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php
                                require JPATH_COMPONENT_SITE . '/include/profile/listing_profile.php';
                                ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Hours -->
                    <?php if (!empty($this->company->ad_image)) { ?>
                        <div class="listing-section">
                            <div class="listing-section-content">
                                <?php require_once 'ad_image.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <?php if ((!empty($this->company->email) && $showData && $appSettings->show_email)
                        || ($showData && (isset($this->package->features) && in_array(PHONE, $this->package->features) || !$appSettings->enable_packages) && !empty($company->phone))
                        || ($showData && (isset($this->package->features) && in_array(WEBSITE_ADDRESS, $this->package->features) || !$appSettings->enable_packages) && !empty($company->website)
                            || (!empty($address))
                            || (($showData && (isset($this->package->features) && in_array(SOCIAL_NETWORKS, $this->package->features) || !$appSettings->enable_packages)
                                && ((!empty($this->company->linkedin) || !empty($this->company->youtube) || !empty($this->company->facebook) || !empty($this->company->twitter)
                                    || !empty($this->company->linkedin) || !empty($this->company->skype) || !empty($this->company->instagram) || !empty($this->company->pinterest || !empty($this->company->whatsapp))))))
                            ||  ((isset($this->package->features) && in_array(CONTACT_FORM, $this->package->features) || !$appSettings->enable_packages) && !empty($company->email) && $appSettings->show_contact_form))
                    ) {
                    ?>

                        <div class="listing-section">
                            <div class="listing-section-content">
                                <div class="listing-info-container">
                                    <?php echo JBDListingStyles::getCompanyContactInfo($this->company, $appSettings, $showData); ?>
                                </div>
                                <?php echo JBDListingStyles::getCompanyActions($this->company, $appSettings, $user, $showData); ?>
                                <?php require_once 'listing_social_networks.php'; ?>
                            </div>
                        </div>

                    <?php } ?>

                    <!-- Business Available dates -->
                    <?php if (!empty($this->company->available_dates)) { ?>
                        <div class="listing-section">
                            <div class="listing-section-content">
                                <?php require "listing_availability.php" ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Hours -->
                    <?php if ((isset($this->package->features) && in_array(OPENING_HOURS, $this->package->features) || !$appSettings->enable_packages)
                        && (!empty($this->company->business_hours) && $this->company->enableWorkingStatus) || $this->company->opening_status != COMPANY_OPEN_BY_TIMETABLE
                    ) { ?>
                        <div class="listing-section">
                            <div class="listing-section-content">
                                <?php require_once 'listing_hours.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Announcemetns -->
                    <?php if ((isset($this->package->features) && in_array(ANNOUNCEMENTS, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->companyAnnouncements) && count($this->companyAnnouncements) && $appSettings->enable_announcements
                    ) { ?>
                        <div class="listing-section">
                            <div class="listing-section-content">
                                <?php require_once 'listing_announcements.php'; ?>
                            </div>
                        </div>
                    <?php } ?>

                    <?php if ((!isset($this->company->userId) || $this->company->userId == 0) && $appSettings->claim_business) { ?>
                        <div class="listing-section">
                            <div class="listing-section-content">
                                <div><?php echo JText::_('LNG_CLAIM_COMPANY_TEXT') ?></div><br />
                                <a href="<?php echo JRoute::_('index.php?option=com_jbusinessdirectory&task=businessuser.checkUser&view=businessuser&claim_listing_id=' . $this->company->id . $menuItemId) ?>" class="btn btn-primary">
                                    <i class="la la-pencil"></i>
                                    <span class="ui-button-text"><?php echo JText::_("LNG_CLAIM_COMPANY") ?></span>
                                </a>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Contact Persons Informations -->
                    <?php if ($showData && (isset($this->package->features) && in_array(CONTACT_FORM, $this->package->features) || !$appSettings->enable_packages)) { ?>
                        <?php if (!empty($this->companyContacts) && (!empty($this->companyContacts[0]->contact_name) || !empty($this->companyContacts[0]->contact_phone))) { ?>
                            <div class="listing-section">
                                <div class="listing-section-title">
                                    <i class="la la-user"></i> <?php echo JText::_("LNG_CONTACT_PERSONS"); ?>
                                </div>
                                <div class="listing-section-content">
                                    <?php require_once 'contact_details.php'; ?>
                                </div>
                            </div>
                        <?php } ?>
                    <?php  } ?>


                    <!-- Business Articles -->
                    <?php if (!empty($this->companyArticles) && file_exists(JPATH_SITE . '/plugins/content/business/business.php')) { ?>
                        <div class="listing-section">
                            <div class="listing-section-title">
                                <i class="la la-newspaper"></i> <?php echo JText::_("LNG_LISTING_ARTICLES"); ?>
                            </div>
                            <div class="listing-section-content">
                                <?php require_once 'listing_articles.php'; ?>
                            </div>
                        </div>
                </div>
            <?php } ?>

            <?php if ((isset($this->package->features) && in_array(MEMBERSHIPS, $this->package->features) || !$appSettings->enable_packages) && !empty($this->memberships)) {  ?>
                <div class="content-box">
                    <div class="content-box-body">
                        <?php require_once 'listing_memberships.php'; ?>
                    </div>
                </div>
            <?php } ?>


            <div class="listing-banners">
                <?php
                jimport('joomla.application.module.helper');
                // this is where you want to load your module position
                $modules = JModuleHelper::getModules('dir-listing');
                $fullWidth = true;
                ?>
                <?php if (isset($modules) && count($modules) > 0) { ?>
                    <div class="dir-company-module company-style-box">
                        <?php
                        $fullWidth = false;
                        foreach ($modules as $module) {
                            echo JModuleHelper::renderModule($module, array("style" => "xhtml"));
                        } ?>
                    </div>
                <?php } ?>
            </div>
            </div>
        </div>
    </div>
</div>
<script>
    window.addEventListener('load', function() {
        <?php if ((isset($this->package->features) && in_array(GOOGLE_MAP, $this->package->features) || !$appSettings->enable_packages)
            && !empty($this->company->latitude) && !empty($this->company->longitude)
        ) { ?>
            loadDetailsViewMap();
        <?php } ?>
        jbdUtils.hideMap();
    });
</script>

<?php require_once 'listing_util.php'; ?>