show )) $this->show = TRUE;
if (!isset( $this->from_cart )) $this->from_cart = FALSE;
if (!isset( $this->order )) $this->order = FALSE ;
if(!class_exists('shopFunctionsF')) require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php');
$comUserOption=shopFunctionsF::getComUserOption();
if (empty($this->url)){
$url = vmURI::getCleanUrl();
} else{
$url = $this->url;
}
$user = JFactory::getUser();
if ($this->show and $user->id == 0 ) {
JHtml::_('behavior.formvalidation');
JHTML::_ ( 'behavior.modal' );
//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 = '
//
';
$document = JFactory::getDocument();
$document->addScriptDeclaration($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 ) {
?>