show )) $this->show = TRUE;
if (!isset( $this->from_cart )) $this->from_cart = FALSE;
if (!isset( $this->order )) $this->order = FALSE ;
if (empty($this->url)){
$url = vmURI::getCurrentUrlBy('request');
} else{
$url = $this->url;
}
//$url = JRoute::_($url, $this->useXHTML, $this->useSSL);
vmdebug('My Url in loginform',$url);
$user = JFactory::getUser();
if ($this->show and $user->id == 0 ) {
vmJsApi::vmValidator();
//Extra login stuff, systems like openId and plugins HERE
if (JPluginHelper::isEnabled('authentication', 'openid')) {
$lang = JFactory::getLanguage();
$lang->load('plg_authentication_openid', JPATH_ADMINISTRATOR);
$langScript = '
//
';
vmJsApi::addJScript('login_openid',$langScript);
JHtml::_('script', 'openid.js');
}
$html = '';
JPluginHelper::importPlugin('vmpayment');
$dispatcher = JDispatcher::getInstance();
$returnValues = $dispatcher->trigger('plgVmDisplayLogin', array($this, &$html, $this->from_cart));
if (is_array($html)) {
foreach ($html as $login) {
echo $login.'
';
}
}
else {
echo $html;
}
//end plugins section
//anonymous order section
if ($this->order ) {
?>