Your IP : 216.73.216.231


Current Path : /home/digilove/public_html/components/com_marketplace/views/login/tmpl/
Upload File :
Current File : /home/digilove/public_html/components/com_marketplace/views/login/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');
jimport('joomla.application.module.helper');
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();
$user_status = MarketplaceHelper::checkSeller($user->id);

$module = JModuleHelper::getModule('mod_marketplacemenus');
echo '<div class="loginmod well"><div class="child-loginmod">'.JModuleHelper::renderModule($module).
    "</div></div>";

$style = '
.loginmod {
    width: 100%;
    margin: 0 auto;
    padding: 5px;
}
.child-loginmod ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.child-loginmod ul li {
    margin: 1px 0;
    border: 1px solid #dedede;
    text-align: center;
    padding: 5px 3px;
}
.child-loginmod ul li:hover {
    background: #eee;
}
.child-loginmod ul li a {
    text-decoration: none;
}
.loginmod .input-prepend {
    display: block;
}
';
if ($user_status) {
    $style.="
        .child-loginmod {
        min-width: 200px;
        width:50%;
    }
    ";
} else {
    $style.="
        .child-loginmod {
        min-width: 200px;
        width:50%;
        margin: 0 auto;
    }
    ";
}
$doc->addStyleDeclaration($style);