Your IP : 216.73.216.231


Current Path : /home/digilove/public_html/modules/mod_sellerview/
Upload File :
Current File : /home/digilove/public_html/modules/mod_sellerview/mod_sellerview.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('Restricted access');
jimport('joomla.filter.output');
$doc = JFactory::getDocument();
$doc->addStyleSheet(JURI::base() .'modules/mod_sellerview/css/sellerview.css');
$show_listtype = $params->get('show_listtype');
$module_height = $params->get('module_height');
$show_seller_name = $params->get('show_seller_name');
require_once "helper.php";
$helper_ins = new ModSellerViewHelper();
$menuid=plgSystemMarketplace::getMenuid(
    'index.php?option=com_marketplace&view=sellerprofile'
);
$style = '#sellerviewlist{
    height: '.$module_height .'px!important;
}
.image_g{
    background: none !important;
    color: #FFFFFF;
    text-decoration:none!important;
}
#sellerviewlist *{
    font-size: 15px!important;
}';
$doc->addStyleDeclaration($style);
?>

<?php 
$sellers = $helper_ins->getSellers();

$app = JFactory::getApplication();
?>
<div id="sellerviewlist">
<?php 
foreach ($sellers as $seller_data) { 
    $id=$seller_data["seller_id"];
    ?>
    <a style="overflow:hidden" href="<?php echo JRoute::_('index.php?option=com_marketplace&view=sellerprofile&Itemid='.$menuid.'&seller_id='.$seller_data['seller_id'], false);?>" >
        <div class="seller_list_view_row">
            <div class="mp_list_img">
            <?php
            if ($seller_data['companylogo'] ==''
                || !(strpos($seller_data['companylogo'], '.png')
                || strpos($seller_data['companylogo'], '.jpg')
                || strpos($seller_data['companylogo'], '.jpeg')
                || strpos($seller_data['companylogo'], '.gif'))
            ) { ?>
                    <img class="mp_grid_logo" style="height:50px;" src="<?php echo juri::root(); ?>components/com_marketplace/images/generic-pic.png" />
            <?php } else { ?>
                <img class="mp_grid_logo" style="height:50px;" src="<?php
                echo Juri::root().$seller_data['companylogo'];
                ?>">
            <?php } ?>
            </div>
            <?php if ($show_seller_name != '0') { ?>
                <?php if ($seller_data['screenname']!='') { ?>
                    <div class="mp_seller_details_main" >
                        <div class="mp_seller_details">
                            <a style="text-decoration:none!important;" href="<?php echo JRoute::_('index.php?option=com_marketplace&view=sellerprofile&Itemid='.$menuid.'&seller_id='.$seller_data['seller_id'], false);?>"><?php echo $seller_data['screenname']; ?></a>
                        </div>
                    </div>
                <?php } else { ?>
                    <div class="mp_seller_details_main" >
                        <div class="mp_seller_details">
                            <?php
                            echo JFactory::getUser(
                                $seller_data['seller_id']
                            )->name;
                            ?>
                        </div>
                    </div>
                <?php } ?>
            <?php }
            ?>
        </div>
        </a>
    <?php
} ?>
</div>