Your IP : 216.73.216.251


Current Path : /home/digilove/public_html/components/com_marketplace/views/customer/tmpl/
Upload File :
Current File : /home/digilove/public_html/components/com_marketplace/views/customer/tmpl/default.php

<?php
/**
 * Marketplace Layout - Component Marketplace 
 *
 * PHP version 7.0
 *
 * @category   Module
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 */
// no direct access

defined('_JEXEC') or die('Restricted access');
if (!class_exists('MarketplaceHelper')) {
    include JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.
    'components'.DIRECTORY_SEPARATOR.'com_marketplace'.
    DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'marketplace.php';
}
$doc = JFactory::getDocument();
$user = JFactory::getUser();
JHTML::_('jquery.framework');
$param  = JComponentHelper::getParams('com_marketplace');
$bgcolor=trim($param->get('head_bg_color'));
$textcolor=trim($param->get('head_txt_color'));

$doc->addStyleSheet(JURI::root().'components/com_marketplace/css/easy-responsive-tabs.css');
$doc->addStyleSheet(JURI::root().'components/com_marketplace/css/easy-responsive-tabs.css');
$doc->addScript(JURI::root().'components/com_marketplace/js/easy-responsive-tabs.js');
$doc->addStyleSheet('//cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css');
$doc->addScript('//cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert-dev.min.js');
$doc->addStyleSheet(JUri::root() . "components/com_marketplace/css/mp_general.css");

if (!$user->guest) {
?>
<div class="mp_buyer">
    <div class="mp_buyer_view">
        <div class="buyer_head">
            <span class="detail_design"></span>
            <span class="detail_text"><?php echo JText::_('INFORMATION')?></span>
        </div>
        <div class="resp-vtabs" id="horizontalTab" >
            <ul class="resp-tabs-list" >
                <li class="resp-tab-item resp-tab-active" aria-controls="tab_item-0" role="tab"><?php echo JText::_('FOLLOWING'); ?></li>
            </ul>
            <div class="resp-tabs-container">
                <div class="panel-body contentbar resp-tab-content-active resp-tab-content" id="recent-product">
                    <div class="foll-results">
                        <?php
                        $seller_ids = MarketplaceHelper::getFollowingSellers(
                            $user->email
                        );
                        $seller_list_html = MarketplaceHelper::getSellersBlockHtml(
                            $seller_ids
                        );
                        echo $seller_list_html;
                        ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php
    $style = "
    .buyer_head {
        background-color: ".$bgcolor.";
        width: 99.5%;
        height: 40px;
        font-size: 18px;
        font-weight: bold;
        text-transform: uppercase;
        color: ".$textcolor.";
    }
    .detail_design {
        height: inherit;
        width: 5px;
        background-color: #E8534F;
        display: block;
        float: left;
    }
    .detail_text {
        color: ".$textcolor.";
        display: block;
        float: left;
        margin: 12px 5%;
    }
    #horizontalTab {
        overflow: hidden;
        display: block;
        width: 100%;
        margin: 0px;
    }
    #wk_seller_list th {
        background: #E7E7E7;
        color: #404040;
    }
    .foll-results {
        overflow: auto;
        max-height: 500px;
    }
    ";
    $doc->addStyleDeclaration($style);
} else {
    JFactory::getApplication()->enqueueMessage(JText::_("LOGIN_TO_VIEW"), "error");
}
?>