Your IP : 216.73.216.231


Current Path : /home/digilove/public_html/modules/mod_collection/tmpl/
Upload File :
Current File : /home/digilove/public_html/modules/mod_collection/tmpl/default.php

<?php
/**
 * Marketplace Menus module
 *
 * 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();
if (!class_exists('MarketplaceHelper')) {
    include JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.'components'.
    DIRECTORY_SEPARATOR.'com_marketplace'.DIRECTORY_SEPARATOR.'helpers'.
    DIRECTORY_SEPARATOR.'marketplace.php';
}
$jinput=JFactory::getApplication()->input;
$method=$jinput->getMethod();
$seller_id=$jinput->get('seller_id', 0, 'INT');
$show_myprofile = $params->get('show_myprofile');
$show_prolist = $params->get('show_prolist');
$show_follow = $params->get('show_follow');
if ($show_follow === null) {
    $show_follow=1;
}
if ($show_prolist === null) {
    $show_prolist=1;
}
if ($show_myprofile === null) {
    $show_myprofile=1;
}
?>
<style type="text/css">
.wk_seller_coll_block<?php $class_sfx; ?> *{
    font-size: 15px!important;
}
</style>
<div class="wk_seller_coll_block<?php echo $class_sfx; ?>">
    <div class="wk_coll_blk<?php echo $class_sfx; ?>">
        <h5><?php echo JText::_('VIEW_COLLECTION');?></h5><hr>
        <?php
        if (!$seller_id) {
            $seller_id=$jinput->get('sel_id', 0, 'INT');

            if (!$seller_id) {
                $user = JFactory::getUser();
                $seller_id=$user->id;
            }
        }
        require_once JPATH_SITE."/components/com_marketplace/models/profilesave.php";
        $model = new MarketplaceModelProfilesave();
        $data = $model->getItem($seller_id, "countrylogo");
        $is_seller = $model->getItem($seller_id, "is_seller");
        if ($is_seller==1) {
            $menu_item_productlist = MarketplaceHelper::getMpMenuItem('productlist');
            $menu_item_sellerprofile = MarketplaceHelper::getMpMenuItem('sellerprofile');
            $menu_item_followers = MarketplaceHelper::getMpMenuItem('follow');
            if ($show_prolist) :
            ?>
            <div class="coll_mp_left_details<?php echo $class_sfx; ?>">
                <a href='<?php 
                echo JRoute::_(
                    "index.php?option=com_marketplace&view=productlist&seller_id="
                    .$seller_id."&Itemid=".$menu_item_productlist->id,
                    false
                );
                ?>'><?php echo JText::_('VIEW_COLLECTION_') ?>
                </a>
            </div>
            <?php
            endif;
            if ($show_myprofile) :
            ?>
            <div class="coll_mp_left_details<?php echo $class_sfx; ?>">
                <a href='<?php
                    echo JRoute::_(
                        "index.php?option=com_marketplace&view=sellerprofile&seller_id=".
                        $seller_id."&Itemid=".$menu_item_sellerprofile->id,
                        false
                    );
                ?>'><?php echo JText::_('VIEW_PROFILE');?>
                </a>
            </div>
            <?php
            endif;
            if ($show_follow) :
            ?>
            <div class="coll_mp_left_details<?php echo $class_sfx; ?>">
                <a href='<?php 
                echo JRoute::_(
                    "index.php?option=com_marketplace&view=follow&seller_id="
                    .$seller_id."&Itemid=".$menu_item_followers->id,
                    false
                );
                ?>'><?php echo JText::_('VIEW_FOLLOWERS_') ?>
                </a>
            </div>
        <?php
            endif;
        } else {
            echo"<h7>".JText::_('NOT_SELLER')."</h7>";
        }
        ?>
    </div>
</div>
<style type="text/css">
.coll_mp_left_details<?php $class_sfx; ?>{
    margin: 0;
    padding: 5px;
}
.coll_mp_left_details<?php $class_sfx; ?> a{
    text-decoration: none;
}
.wk_seller_coll_block<?php $class_sfx; ?>{
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    margin: 2% 0;
}
</style>