• Курсы Академии Кодебай, стартующие в мае - июне, от команды The Codeby

    1. Цифровая криминалистика и реагирование на инциденты
    2. ОС Linux (DFIR) Старт: 16 мая
    3. Анализ фишинговых атак Старт: 16 мая Устройства для тестирования на проникновение Старт: 16 мая

    Скидки до 10%

    Полный список ближайших курсов ...

Разделить вывод объявлений по типу

Tip Top

New member
20.01.2024
2
0
BIT
25
Привет всем, первым делом спешу поздравить с праздниками!)
Помогите пожалуйста с некой проблемой.

Пока объявление делятся на 2 типа ( объявления со скидкой и без неё), дальше еще добавятся.
И на личной странице магазина эти объявления показываются в одной колонке. Очень хочется их разделить.

Нашла файлы которые за это отвечают. Если кому не сложно, помогите пожалуйста.


default_style_7.php личная страница магазина. Кусочек кода дополнительно вынесен отдельно, который выводит объявления на странице.

Код:
<?php

/**
 * @package    J-BusinessDirectory
 *
 * @author     CMSJunkie http://www.cmsjunkie.com/
 * [member=126442]copyright[/member]  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';
$db = JFactory::getDBO();
$hideMapDirections = false;
$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="company-style-7-container" class="listing-style-7" itemscope itemtype="http://schema.org/LocalBusiness">
    <span style="display:none;" itemprop="image"><?php echo BD_PICTURES_PATH . $this->company->logoLocation ?></span>

    <?php if ((isset($this->package->features) && in_array(IMAGE_UPLOAD, $this->package->features) || !$appSettings->enable_packages)
                                && !empty($this->pictures)
                            ) { ?>
        <?php require_once JPATH_COMPONENT_SITE . "/include/image_slick_gallery.php";  ?>
    <?php } ?>

    <div class="container">
        <div class="style-7-header">
            <div class="row">
                <div class="col-md-8 col-12">
                    <?php require_once 'breadcrumbs.php'; ?>
                    <h1 itemprop="name">
                        <?php echo !empty($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 (!empty($this->company->userId) && $appSettings->show_claimed) { ?><span class="claimed"><i class="la la-check"></i> <?php echo JText::_("LNG_CLAIMED") ?></span><?php } ?>
                    </h1>
                    <p><?php echo $this->company->slogan ?></p>
                </div>
                <div class="col-md-4 col-12">
                    <div class="listing-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 ) {  ?>
                            <div class="rating">
                                <div class="rated-module">
                                    <div class="rated-overall"><?php echo $this->company->review_score ?></div>
                                    <div class="rated-small">
                                        <div class="rated-max">5</div>
                                        <div class="rated-reviews"><?php echo count($this->totalReviews) . " " . JText::_("LNG_REVIEWS") ?> </div>
                                    </div>
                                </div>
                            </div>
                            <?php if (count($this->totalReviews) > 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 } ?>

                        <?php } ?>
                        <div class="listing-quick-links ml-3">
                            <div class="mb-1 d-flex">
                                <?php if ($this->appSettings->enable_bookmarks) { ?>
                                    <?php if (!empty($this->company->bookmark)) { ?>
                                        <!-- Business Bookmarks -->
                                        <a id="bookmark-<?php echo $this->company->id ?>" class="btn btn-outline mr-2" 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") ?>" class=""><i class="la la-heart"></i> <?php echo JText::_("LNG_UPDATE") ?></a>
                                    <?php } else { ?>
                                        <a id="bookmark-<?php echo $this->company->id ?>" class="btn btn-outline mr-2" 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_SAVE") ?>" class=""><i class="la la-heart-o"></i> <?php echo JText::_("LNG_SAVE") ?></a>
                                    <?php } ?>
                                <?php } ?>

                                <?php if ($appSettings->enable_socials) { ?>
                                    <a id="open_socials" class="btn btn-outline"><i class="icon share"></i> <?php echo JText::_("LNG_SHARE") ?> </a>
                                    <?php $disableButton = true; ?>
                                    <?php require_once JPATH_COMPONENT_SITE . "/include/social_share.php"; ?>
                                <?php } ?>
                            </div>
                            <?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>
                                    <a class="btn btn-outline-dark w-100 p-3 mt-2" href="javascript:void(0)" onclick="jbdReviews.addNewReviewOnTabs(<?php echo ($appSettings->enable_reviews_users && $user->id == 0) ? "1" : "0" ?>)"><i class="la la-star"></i> <?php echo JText::_("LNG_SUBMIT_REVIEW") ?></a>
                                </div>
                            <?php } ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="listing-content">
            <div class="row">
                <!-- BODY -->
                <div class="col-md-8">
                    <div class="company-style-box">
                        <div class="row">
                            <div class="col-md">
                                <h3><i class="la la-file"></i> <?php echo JText::_("LNG_DESCRIPTION"); ?></h3>
                            </div>
                        </div>

                        <!-- Business Description -->
                        <div class="row">
                            <div class="col-md">
                                <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>
                        </div>
                        <div class="row">
                            <div class="col-md">
                                <dl>
                                    <!-- Business Type -->
                                    <?php if (!empty($this->company->typeName)) { ?>
                                        <dt><?php echo JText::_('LNG_TYPE'); ?>:</dt>
                                        <dd><?php echo $this->escape($this->company->typeName); ?></dd>
                                    <?php } ?>

                                    <!-- Listing Categories -->
                                    <?php if (!empty($this->company->categoriesDetails)) { ?>
                                        <dt class="listing-category-title"><?php echo JText::_('LNG_CATEGORIES') ?>:</dt>
                                        <dd class="listing-category-content">
                                            <?php require_once 'listing_categories.php'; ?>
                                        </dd>
                                    <?php } ?>

                                    <?php if (!empty($this->company->establishment_year)) { ?>
                                        <dt><?php echo JText::_('LNG_ESTABLISHMENT_YEAR'); ?>:</dt>
                                        <dd><?php echo $this->company->establishment_year; ?></dd>
                                    <?php } ?>

                                    <?php if (!empty($this->company->employees)) { ?>
                                        <dt><?php echo JText::_('LNG_EMPLOYEES'); ?>:</dt>
                                        <dd><?php echo $this->company->employees; ?></dd>
                                    <?php } ?>

                                    <!-- Business Keywords -->
                                    <?php if (!empty($this->company->keywords)) { ?>
                                        <dt><?php echo JText::_('LNG_KEYWORDS'); ?>:</dt>
                                        <dd>
                                            <ul class="dir-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=' . $this->escape($keywords[$i]) . $menuItemId) ?>"><?php echo $this->escape($keywords[$i]) ?><?php echo $i < (count($keywords) - 1) ? ',&nbsp;' : '' ?></a>
                                                    </li>
                                                <?php
                                                } ?>
                                            </ul>
                                        </dd>
                                    <?php } ?>

                                    <!-- Business Locations -->
                                    <?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)
                                    ) { ?>
                                        <dt><?php echo JText::_("LNG_COMPANY_LOCATIONS"); ?>:</dt>
                                        <dd><?php require_once 'locations.php'; ?></dd>
                                    <?php } ?>

                                    <!-- Business Attachments -->
                                    <?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)) { ?>
                                            <dt><?php echo JText::_("LNG_ATTACHMENTS"); ?>:</dt>
                                            <dd>
                                                <?php require "listing_attachments.php" ?>
                                            </dd>
                                        <?php } ?>
                                    <?php } ?>
                                </dl>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md">
                                <div class="classification">
                                    <?php require_once 'listing_attributes.php'; ?>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Business announcements -->
                    <?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 id="company-announcements-list" class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-list-alt"></i> <?php echo JText::_("LNG_ANNOUNCEMENTS"); ?></h3>
                                    <div id="company-reviews">
                                        <?php require_once 'listing_announcements.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php } ?>


                    <?php if ((isset($this->package->features) && in_array(CUSTOM_TAB, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->company->custom_tab_name)
                    ) { ?>
                        <div class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3> <?php echo $this->company->custom_tab_name; ?></h3>
                                    <div>
                                        <?php echo JHTML::_("content.prepare", $this->company->custom_tab_content); ?>
                                    </div>
                                </div>
                            </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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-video-camera"></i> <?php echo JText::_("LNG_VIDEOS") ?></h3>
                                    <div id="company-videos">
                                        <?php require_once 'listing_videos.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php }    ?>

                    <!-- Business Sounds -->
                    <?php if ((isset($this->package->features) && in_array(SOUNDS_FEATURE, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->sounds)
                    ) { ?>
                        <div class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-music"></i> <?php echo JText::_("LNG_SOUNDS") ?></h3>
                                    <div id="company-sounds">
                                        <?php require_once 'listing_sounds.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php }    ?>

                     <!-- Custom Gallery -->
                     <?php
                        if ((isset($this->package->features) && in_array(IMAGE_UPLOAD, $this->package->features) || !$appSettings->enable_packages)
                            && ((isset($this->extraPictures) && count($this->extraPictures) > 0))
                        ) {
                        ?>
                        <div class="company-style-box">
                            <div class="row">
                            <div id="gallery" class="company-cell">
                            <h3><i class="la la-photo"></i> <?php echo JText::_("LNG_CUSTOM_GALLERY") ?></h3>
                                <?php require_once JPATH_COMPONENT_SITE.'/include/extra_gallery.php'; ?>
                            </div>
                            <div class="clear"></div>
                            </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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-tag"></i> <?php echo JText::_("LNG_COMPANY_OFFERS"); ?></h3>
                                    <div id="company-offers" itemprop="hasOfferCatalog" itemscope itemtype="http://schema.org/OfferCatalog">
                                        <?php require_once 'listing_offers.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-tag"></i> <?php echo JText::_("LNG_PRODUCTS"); ?></h3>
                                    <div id="company-products">
                                        <?php require_once 'listing_product_categories.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Related Companies -->
                    <?php if ((isset($this->package->features) && in_array(RELATED_COMPANIES, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->realtedCompanies)
                    ) { ?>
                        <div class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-tag"></i> <?php echo JText::_("LNG_RELATED_COMPANIES"); ?></h3>
                                    <div id="company-related" class="company-cell">
                                        <?php require_once 'related_business.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php } ?>

                    <?php if (!empty($this->associatedCompanies) && $appSettings->enable_linked_listings) { ?>
                        <div class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-tag"></i> <?php echo JText::_("LNG_LINKED_COMPANIES"); ?></h3>
                                    <div id="company-associated" class="company-cell">
                                        <?php require_once 'listing_associated_companies.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-th-list"></i> <?php echo JText::_("LNG_SERVICES"); ?></h3>
                                    <div id="company-services">
                                        <?php require_once 'listing_services.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-calendar"></i> <?php echo JText::_("LNG_COMPANY_EVENTS"); ?></h3>
                                    <div id="company-events">
                                        <?php require_once 'listing_events.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-calendar"></i> <?php echo JText::_("LNG_ASSOCIATED_EVENTS"); ?></h3>
                                    <div id="associated-events">
                                        <?php require_once 'listing_associated_events.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-quote-left"></i> <?php echo JText::_("LNG_TESTIMONIALS") ?></h3>
                                    <div id="company-testimonials">
                                        <?php require_once 'listing_testimonials.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </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 id="company-price-list" class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-list-alt"></i> <?php echo JText::_("LNG_PRICE_LIST"); ?></h3>
                                    <div id="company-reviews">
                                        <?php require_once 'listing_price_list.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php } ?>

                    <!-- Business Projects -->
                    <?php 
                    if((isset($this->package->features) && in_array(PROJECTS,$this->package->features) || !$appSettings->enable_packages) 
                        && !empty($this->companyProjects)){ ?>
                        <div id="company-projects" class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3 onclick="jbdListings.returnToProjects();" onmouseover="this.style.cursor='hand';this.style.cursor='pointer'" onmouseout="this.style.cursor='default'">
                                        <i class="la la-briefcase"></i> <?php echo JText::_("LNG_PROJECTS"); ?>
                                    </h3>
                                    <div>
                                        <?php require_once 'listing_projects.php'; ?>
                                    </div>
                                </div>
                            </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="content-box" id="company-offers-price-list">
                            <div class="content-box-title">
                                <h3><?php echo JText::_("LNG_OFFERS_PRICE_LIST"); ?></h3>
                            </div>
                            <div class="content-box-body">
                                <?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 } ?>

                    <!-- 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 id="company-team" class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-user"></i> <?php echo JText::_("LNG_TEAM"); ?></h3>
                                    <div>
                                        <?php require_once 'listing_team.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </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 id="go-company-reviews" class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-comments"></i> <?php echo JText::_("LNG_BUSINESS_REVIEWS"); ?></h3>
                                    <div id="company-reviews">
                                        <?php require_once 'listing_reviews.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php if(!$appSettings->enable_reviews_users || !$user->id ==0) { ?>
                            <div class="company-style-box">
                                <?php require_once 'default_addreview.php'; ?>
                            </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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-user"></i> <?php echo JText::_("LNG_COMMUNITY_OWNER_PROFILE"); ?></h3>
                                    <?php
                                    require JPATH_COMPONENT_SITE . '/include/profile/listing_profile.php';
                                    ?>
                                </div>
                            </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($this->company->phone))
                        || ($showData && (isset($this->package->features) && in_array(WEBSITE_ADDRESS, $this->package->features) || !$appSettings->enable_packages) && !empty($this->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($this->company->email) && $appSettings->show_contact_form))
                    ) {
                    ?>

                    <div class="company-style-box">
                        <!-- Business Information -->
                        <div class="row">
                            <div class="col-md">
                                <h3><i class="la la-comments"></i> <?php echo JText::_("LNG_BUSINESS_INFO"); ?></h3>
                                <div class="company-info-details">
                                    <?php if(!empty($this->company->email) && $showData && $appSettings->show_email){?>
                                        <div class="info-detail">
                                            <span itemprop="email">
                                                <i class="icon envelope"></i> <a href="mailto:<?php echo $this->escape($this->company->email) ?>"><?php echo $this->escape($this->company->email) ?></a>
                                            </span>
                                           </div>
                                    <?php } ?>
    
                                    <?php if($showData && (isset($this->package->features) && in_array(PHONE, $this->package->features) || !$appSettings->enable_packages )) { ?>
                                        <?php if(!empty($this->company->phone)) { ?>
                                            <div class="info-detail">
                                                <span class="phone" itemprop="telephone">
                                                    <i class="icon phone"></i> <a href="tel:<?php echo $this->escape($this->company->phone); ?>"><?php echo $this->escape($this->company->phone); ?></a>
                                                </span>
                                            </div>
                                        <?php } ?>
                                            
                                        <?php if(!empty($this->company->mobile)) { ?>
                                            <div class="info-detail">
                                                <span class="phone" itemprop="telephone">
                                                    <i class="icon mobile"></i> <a href="tel:<?php echo $this->escape($this->company->mobile); ?>"><?php echo $this->escape($this->company->mobile); ?></a>
                                                </span>
                                            </div>
                                        <?php } ?>
                                    <?php } ?>
                                    
                                    <?php if($showData && (isset($this->package->features) && in_array(WEBSITE_ADDRESS, $this->package->features) || !$appSettings->enable_packages) && !empty($this->company->website)) {
                                        if ($appSettings->enable_link_following){
                                           $followLink = (isset($this->package->features) && in_array(LINK_FOLLOW,$this->package->features) && $appSettings->enable_packages)?'rel="follow noopener"' : 'rel="nofollow noopener"';
                                        }else{
                                            $followLink ='rel="noopener"';
                                        }?>
                                        <div class="info-detail">
                                            <i class="icon link-square"></i> 
                                            <a <?php echo $followLink ?> itemprop="url" class="website" title="<?php echo $this->escape($this->company->name) ?> Website" target="_blank" onclick="jbdUtils.registerStatAction(<?php echo $company->id ?>,<?php echo STATISTIC_ITEM_BUSINESS ?>,<?php echo STATISTIC_TYPE_WEBSITE_CLICK ?>)" href="<?php echo $this->escape($this->company->website) ?>">
                                                <?php echo JText::_('LNG_WEBSITE') ?>
                                            </a>
                                        </div>
                                        
                                    <?php } else { ?>
                                        <span style="display:none;" itemprop="url">
                                            <?php echo JBusinessUtil::getCompanyLink($this->company); ?>
                                        </span>
                                    <?php } ?>
                                  
                                    <?php if($showData && !empty($address)) { ?>
                                        <div class="info-detail d-flex align-items-center">
                                            <div><i class="icon map-marker"></i></div>
                                            <div><?php echo JBusinessUtil::getAddressText($this->company); ?></div>
                                        </div>
                                    <?php }?>
                                
                                    <?php if(($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)))))){ ?>
                                            <div class="info-detail">
                                                <?php require_once 'listing_social_networks.php'; ?>
                                              </div>
                                    <?php } ?>
                                          
                                    <?php if((isset($this->package->features) && in_array(CONTACT_FORM,$this->package->features) || !$appSettings->enable_packages) && !empty($this->company->email) && $appSettings->show_contact_form) { ?>
                                        <div>
                                            <a href="javascript:jbdListings.contactCompany(<?php echo $showData?"1":"0"?>)" class="btn btn-outline w-100">
                                                <i class="icon envelope"></i> <?php echo !empty($this->company->userId)?JText::_("LNG_CONTACT_COMPANY"):JText::_("LNG_REQUEST_MORE_INFO") ?>
                                            </a>
                                        </div>
                                    <?php } ?>

                                        <?php if ($this->showListLinkButton && $appSettings->enable_linked_listings) { ?>
                                            <div>
                                                <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 w-100">
                                                    <i class="la la-user"></i> <?php echo JText::_("LNG_JOIN_LEAVE") ?>
                                                </a>
                                            </div>
                                        <?php } ?>

                                    </div>
                                </div>
                            </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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <?php require_once 'listing_hours.php'; ?>
                                </div>
                            </div>
                        </div>
                    <?php } ?>


                    <?php if (((isset($this->package->features) && in_array(CONTACT_FORM, $this->package->features) || !$appSettings->enable_packages)
                            && !empty($this->company->email) && $appSettings->enable_request_quote)
                        || $appSettings->enable_reporting
                        || !empty($appSettings->content_responsible)
                    ) { ?>
                        <div class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <?php if (
                                        $showData && (isset($this->package->features) && in_array(CONTACT_FORM, $this->package->features) || !$appSettings->enable_packages)
                                        && !empty($this->company->email) && $appSettings->enable_request_quote
                                    ) { ?>
                                        <div class="info-detail">
                                            <a href="javascript:jbdListings.showQuoteCompany('<?php echo $this->company->id ?>','<?php echo $showData ? "1" : "0" ?>')" class="">
                                                <i class="icon envelope"></i> <span class="ui-button-text"><?php echo JText::_("LNG_REQUEST_QUOTE") ?></span>
                                            </a>
                                        </div>
                                    <?php } ?>
                                    <?php if ($appSettings->enable_reporting) { ?>
                                        <div class="info-detail">
                                            <a href="javascript:jbdListings.showReportAbuse()" style="padding:0px;"><i class="la la-flag-o la-fw"></i> <?php echo JText::_('LNG_REPORT_LISTING'); ?></a>
                                        </div>
                                    <?php } ?>
                                    <?php if (!empty($appSettings->content_responsible)) { ?>
                                        <div class="info-detail">
                                            <i class="icon info-circle  la-fw"></i> <a href="javascript:void(0)" id="content-responsible-link"><?php echo JText::_('LNG_CONTENT_RESPONSIBLE_PERSON') ?></a>
                                            <div id="content_responsible_text" style="display: none;">
                                                <?php echo JHTML::_("content.prepare", $appSettings->content_responsible); ?>
                                            </div>
                                        </div>
                                    <?php } ?>
                                </div>
                            </div>
                        </div>
                    <?php } ?>
                    <?php if ((!isset($this->company->userId) || $this->company->userId == 0) && $appSettings->claim_business) { ?>
                        <div class="company-style-box">
                            <!-- Business Claim -->
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-check-square"></i> <?php echo JText::_("LNG_CLAIM_COMPANY"); ?></h3>
                                    <div><?php echo JText::_('LNG_CLAIM_COMPANY_TEXT') ?></div><br />
                                    <!-- javascript:jbdListings.claimCompany(false) -->
                                    <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>
                        </div>
                    <?php } ?>

                    <!-- Business Map Location -->
                    <?php if (
                        $showData && (isset($this->package->features) && in_array(GOOGLE_MAP, $this->package->features) || !$appSettings->enable_packages)
                        && !empty($this->company->latitude) && !empty($this->company->longitude)
                    ) { ?>
                        <div class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="icon map-marker"></i> <?php echo JText::_("LNG_BUSINESS_MAP_LOCATION"); ?></h3>
                                    <div>
                                        <?php require_once 'map.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </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="company-style-box">
                                <div class="row">
                                    <div class="col-md">
                                        <h3><i class="la la-user"></i> <?php echo JText::_("LNG_CONTACT_PERSONS"); ?></h3>
                                        <?php require_once 'contact_details.php'; ?>
                                    </div>
                                </div>
                            </div>
                        <?php } ?>
                    <?php  } ?>

                    <?php if ($this->appSettings->enable_bookmarks) { ?>
                        <div class="col-md clear" style="display:none">
                            <!-- Business Add/Remove Bookmark -->
                            <?php if (!empty($this->company->bookmark)) { ?>
                                <a href="javascript:jbdUtils.removeBookmark('companies')" title="<?php echo JText::_("LNG_REMOVE_BOOKMARK") ?>" class="btn btn-red">
                                    <span class="ui-button-text"><?php echo JText::_('LNG_REMOVE_BOOKMARK'); ?></span>
                                </a>
                            <?php } else { ?>
                                <a href="javascript:jbdUtils.addBookmark(<?php echo $user->id == 0 ? "1" : "0" ?>)" title="<?php echo JText::_("LNG_ADD_BOOKMARK") ?>" class="btn btn-blue">
                                    <span class="ui-button-text"><?php echo JText::_('LNG_ADD_BOOKMARK'); ?></span>
                                </a>
                            <?php } ?>
                        </div>
                    <?php } ?>

                    <!-- Business Articles -->
                    <?php if (!empty($this->companyArticles) && file_exists(JPATH_SITE . '/plugins/content/business/business.php')) { ?>
                        <div class="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-newspaper"></i> <?php echo JText::_("LNG_LISTING_ARTICLES"); ?></h3>
                                    <?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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <?php require_once 'listing_memberships.php'; ?>
                                </div>
                            </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>
</div>

<form name="tabsForm" action="<?php echo JRoute::_('index.php?option=com_jbusinessdirectory' . $menuItemId) ?>" id="tabsForm" method="post">
    <input type="hidden" name="option" value="<?php echo JBusinessUtil::getComponentName() ?>" />
    <input type="hidden" name="task" value="companies.displayCompany" />
    <input type="hidden" name="tabId" id="tabId" value="<?php echo $this->tabId ?>" />
    <input type="hidden" name="view" value="companies" />
    <input type="hidden" name="layout2" id="layout2" value="" />
    <input type="hidden" name="companyId" value="<?php echo $this->company->id ?>" />
    <input type="hidden" name="controller" value="companies" />
</form>

<script>
    window.addEventListener('load', function() {
        <?php if (
            $showData && (isset($this->package->features) && in_array(GOOGLE_MAP, $this->package->features) || !$appSettings->enable_packages)
            && !empty($this->company->latitude) && !empty($this->company->longitude)
        ) { ?>
            loadDetailsViewMap();
        <?php }    ?>

        <?php if (!empty($this->company->business_cover_image)) { ?>
            jQuery(".company-style-7-header-image").css({
                "background-image": "url('<?php echo BD_PICTURES_PATH . $this->company->business_cover_image ?>')",
                "background-repeat": "no-repeat",
                "background-size": "cover",
                "background-position": "center"
            });
        <?php } ?>
    });
</script>

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

вот этот кусочек кода. Ссылается на другой файл. Создан был дубль listing_offers.php с именем listing_offers1.php. И продублирован этот кусочек кода (только ссылается на listing_offers1.php). Этим самым теперь две одинаковых колонок с выводом объявлений. Вот как вывести объявления с определенным id типа объявления.

Код:
<!-- 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="company-style-box">
                            <div class="row">
                                <div class="col-md">
                                    <h3><i class="la la-tag"></i> <?php echo JText::_("LNG_COMPANY_OFFERS"); ?></h3>
                                    <div id="company-offers" itemprop="hasOfferCatalog" itemscope itemtype="http://schema.org/OfferCatalog">
                                        <?php require_once 'listing_offers.php'; ?>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php } ?>




Вот далее следующий файл listing_offers.php

Код:
<?php
/**
 * @package    J-BusinessDirectory
 *
 * @author     CMSJunkie http://www.cmsjunkie.com/
 * [member=126442]copyright[/member]  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');
$offerAttributeConfig = JBusinessUtil::getAttributeConfiguration(DEFAULT_ATTRIBUTE_TYPE_OFFER);
?>
<div class="row">
    <?php
        if(isset($this->offers) && !empty($this->offers)){
            $index = 0;
            foreach ($this->offers as $offer){
                $index++;
    ?>
        <div class="col-lg-4 col-sm-6 col-12">
            <div class="jitem-card">
                <div class="jitem-img-wrap small">
                    <a href="<?php echo $offer->link ?>"></a>
                    <?php if(!empty($offer->picture_path) ){?>
                        <img title="<?php echo $this->escape($offer->subject) ?>" alt="<?php echo $this->escape($offer->subject) ?>" src="<?php echo BD_PICTURES_PATH.$offer->picture_path ?>" >
                    <?php }else{ ?>
                        <img title="<?php echo $this->escape($offer->subject) ?>" alt="<?php echo $this->escape($offer->subject) ?>" src="<?php echo BD_PICTURES_PATH.'/no_image.jpg' ?>" >
                    <?php } ?>
                </div>
                <div class="jitem-body">
                    <div class="jitem-body-content">
                        <div class="jitem-title">
                            <a href="<?php echo  $offer->link ?>"><span ><?php echo $offer->subject?></span></a>
                        </div>
                        <div class="jitem-desc text-small">
                            <?php if (!empty(JBusinessUtil::composeAddress($offer->address, $offer->city))){ ?>
                                <div><i class="icon map-marker"></i> <?php echo JBusinessUtil::composeAddress($offer->address, $offer->city) ?></div>
                            <?php } ?>

                            <?php if(!JBusinessUtil::emptyDate($offer->startDate) || !JBusinessUtil::emptyDate($offer->endDate)){ ?>
                                <div class="offer-dates">
                                    <i class="icon calendar"></i>
                                    <?php
                                        echo JBusinessUtil::getDateGeneralFormat($offer->startDate);
                                    ?>
                                </div>
                            <?php } ?>

                            <div class="offer-price">
                                <div>
                                    <?php if(!empty($offer->specialPrice)){?>
                                        <span class="price"><?php echo JBusinessUtil::getPriceFormat($offer->specialPrice, $offer->currencyId); ?></span>
                                    <?php }?>

                                    <?php if(!empty($offer->price) ){ ?>
                                        <span class="price <?php echo $offer->specialPrice>0 ?"old-price":"" ?>"><?php echo JBusinessUtil::getPriceFormat($offer->price, $offer->currencyId) ?></span>
                                        <?php if(!empty($offer->specialPrice) && !empty($offer->price) && $offer->specialPrice < $offer->price){ ?>
                                            <span class="discount">(-<?php echo JBusinessUtil::getPriceDiscount($offer->specialPrice, $offer->price) ?>%)</span>    
                                        <?php } ?>
                                    <?php } ?>
                                </div>
                                
                                <?php if ($this->defaultAttributes["price_text"]!=ATTRIBUTE_NOT_SHOW) { ?>
                                    <div class="price-text-list">
                                        <?php if (!empty($offer->price_text)) { ?>
                                            <span class="price-text"><?php echo $offer->price_text ?></span>
                                        <?php }elseif (empty($offer->price) && empty($offer->specialPrice) && ($appSettings->show_offer_free)){ ?>
                                            <span class="price-text"><?php echo JText::_('LNG_FREE') ?></span>
                                        <?php } ?>
                                    </div>
                                <?php } ?>
                            </div>

                            <?php if($this->appSettings->enable_bookmarks && false) { ?>
                                <?php if(!empty($offer->bookmark)){?>
                                    <a href="javascript:jbdUtils.showUpdateBookmarkDialog(<?php echo $user->id==0?"1":"0"?>, <?php echo $offer->id ?>')"  title="<?php echo JText::_("LNG_UPDATE_BOOKMARK")?>" class="bookmark right"><i class="la la-heart"></i></a>
                                <?php }else{?>
                                    <a href="javascript:jbdUtils.addBookmark(<?php echo $user->id==0?"1":"0"?>, 'add-bookmark-offer-<?php echo $offer->id ?>')" title="<?php echo JText::_("LNG_ADD_BOOKMARK")?>" class="bookmark right"><i class="la la-heart-o"></i></a>
                                <?php } ?>
                            <?php } ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php if($user->id>0 && false){?>
            <div id="add-bookmark-offer-<?php echo $offer->id ?>" class="jbd-container" style="display: none">    
                <div class="jmodal-sm">
                    <div class="jmodal-header">
                        <p class="jmodal-header-title"><?php echo JText::_('LNG_ADD_BOOKMARK') ?></p>
                        <a href="#close-modal" rel="modal:close" class="close-btn"><i class="la la-close "></i></a>
                    </div>
                    <div class="jmodal-body">
                    <form id="bookmarkFrm" name="bookmarkFrm" action="<?php echo JRoute::_('index.php?option=com_jbusinessdirectory') ?>" method="post">
                                <div class="review-repsonse">
                                    <fieldset>
                                        <div class="form-item">
                                            <label><?php echo JText::_('LNG_NOTE')?>:</label>
                                            <div class="outer_input">
                                                <textarea rows="5" name="note" id="note" cols="50" ></textarea><br>
                                            </div>
                                        </div>
    
                                        <div class="clearfix clear-left">
                                            <div class="button-row ">
                                                <button type="submit" class="btn btn-success">
                                                    <span class="ui-button-text"><?php echo JText::_("LNG_ADD")?></span>
                                                </button>
                                                <button type="button" class="btn btn-dark" onclick="jQuery.jbdModal.close()">
                                                    <span class="ui-button-text"><?php echo JText::_("LNG_CANCEL")?></span>
                                                </button>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
    
                            <?php echo JHTML::_( 'form.token' ); ?>
                            <input type='hidden' name='task' value='offer.addBookmark'/>
                            <input type='hidden' name='user_id' value='<?php echo $user->id?>'/>
                            <input type='hidden' name='item_type' value='<?php echo BOOKMARK_TYPE_OFFER ?>'/>
                            <input type='hidden' name='item_link' value='<?php echo JBusinessUtil::getCompanyLink($this->company) ?>'/>
                            <input type="hidden" name='item_id' value="<?php echo $offer->id?>" />
                    </form>         
                </div>
            </div>
        <?php } ?>
    
        <?php if($user->id>0 && false){?>
            <div id="update-bookmark-offer-<?php echo $offer->id ?>" class="jbd-container" style="display: none">    
                <div class="jmodal-sm">
                    <div class="jmodal-header">
                        <p class="jmodal-header-title"><?php echo JText::_('LNG_UPDATE_BOOKMARK') ?></p>
                        <a href="#close-modal" rel="modal:close" class="close-btn"><i class="la la-close "></i></a>
                    </div>
                    <div class="jmodal-body">
                    <form id="updateBookmarkFrm" name="bookmarkFrm" action="<?php echo JRoute::_('index.php?option=com_jbusinessdirectory') ?>" method="post">
                                <div class="review-repsonse">
                                    <fieldset>
                                        <div class="form-item">
                                            <a href="javascript:jbdUtils.removeBookmark('offer')" class="red"> <?php echo JText::_("LNG_REMOVE_BOOKMARK")?></a>
                                        </div>
                                        <div class="form-item">
                                            <label><?php echo JText::_('LNG_NOTE')?>:</label>
                                            <div class="outer_input">
                                                <textarea rows="5" name="note" id="note" cols="50" ><?php echo isset($offer->bookmark)?$offer->bookmark->note:"" ?></textarea>
                                            </div>
                                        </div>
    
                                        <div class="clearfix clear-left">
                                            <div class="button-row ">
                                                <button type="submit" class="btn">
                                                    <span class="ui-button-text"><?php echo JText::_("LNG_UPDATE")?></span>
                                                </button>
                                                <button type="button" class="btn btn-dark" onclick="jQuery.jbdModal.close()">
                                                    <span class="ui-button-text"><?php echo JText::_("LNG_CANCEL")?></span>
                                                </button>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
    
                        <?php echo JHTML::_( 'form.token' ); ?>
                        <input type='hidden' id="task" name='task' value='offer.updateBookmark'/>
                        <input type='hidden' name='id' value='<?php echo $offer->bookmark->id ?>'/>
                        <input type='hidden' name='user_id' value='<?php echo $user->id?>'/>
                        <input type='hidden' name='item_type' value='<?php echo BOOKMARK_TYPE_OFFER ?>'/>
                        <input type='hidden' name='item_link' value='<?php echo JBusinessUtil::getCompanyLink($this->company) ?>'/>
                        <input type="hidden" name="item_id" value="<?php echo $offer->id?>" />
                    </form>      
                </div>
            </div>
        <?php } ?>
        <?php } ?>
    <?php } ?>
</div>


Еще в одном файле обращение к БД. Если нужно скину полностью

Код:
// Join over the company types
        $query->select('et.name as offerType');
        $query->join('LEFT', $db->quoteName('#__jbusinessdirectory_company_offer_types').' AS et ON co.offer_type=et.id');


Вот скрин в базе данных
12345.png
 
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!