| Current Path : /home/digilove/public_html/components/com_marketplace/views/mpregistration/tmpl/ |
| Current File : /home/digilove/public_html/components/com_marketplace/views/mpregistration/tmpl/regmp.php |
<?php
/**
* Marketplace - Component Marketplace
* ******************************************************************
*
* PHP version 7.0
*
* @category Component
* @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.
'/components/com_marketplace/helpers/marketplace.php';
}
$app=JFactory::getApplication();
$jInput=$app->input;
$cus_id=$jInput->get("customer_id", 0, 'INT');
if ($cus_id==0) {
$app->redirect(JRoute::_("index.php?option=com_marketplace&view=mpregistration", false));
}
$user=JFactory::getUser($cus_id);
?>
<div class="mp-reg-seller-succ">
<div class="mp-reg-head">
<?php echo JText::_("SUCCESS_SELLER"); ?>
</div>
<div class="mp-reg-content">
<?php echo JText::_("SUCCESS_SELLER_REG"); ?>
</div>
<?php
$params = JComponentHelper::getParams('com_marketplace');
$create_seller = trim($params->get('create_seller'));
$block=$user->block;
$activation=$user->activation;
if ($activation) { ?>
<div class="mp-reg-status">
<?php echo JText::_("ACCOUNT_ACTIVATE"); ?>
</div>
<?php } elseif ($block) { ?>
<div class="mp-reg-status">
<?php echo JText::_("ACCOUNT_BLOCK"); ?>
</div>
<?php } elseif (!MarketplaceHelper::checkSeller($cus_id)) { ?>
<div class="mp-reg-status">
<?php echo JText::_("ACCOUNT_SELLER"); ?>
</div>
<?php
} else { ?>
<div class="mp-reg-status">
<?php echo JText::_("ACCOUNT_ACTIVATED"); ?>
</div>
<?php
jimport('joomla.application.module.helper');
$module = JModuleHelper::getModule('mod_login', 'HERE');
$style="<style>
.loginmod {
box-sizing: border-box;
margin: 10px auto;
padding: 10px;
min-width: 300px;
width:40%;
position: relative;
top: 10px;
}
.loginmod .unstyled{
display:none;
}
.loginmod .input-small{
width:100%;
}
</style>";
echo '<div class="loginmod">'.JModuleHelper::renderModule($module).
"</div>".$style;
}
?>
</div>
<style>
.mp-reg-seller-succ {
border: 1px solid #ccc;
border-radius: 10px;
min-height:200px;
font-size: 15px;
/*font-family: 'roboto', sans-serif;*/
}
.mp-reg-head {
font-weight: bold;
color: white;
background: #404040;
padding: 10px;
border-left: 5px solid red;
}
.mp-reg-content, .mp-reg-status {
text-align: center;
padding: 10px;
position: relative;
top: 30px;
}
</style>