if(($this->current_controller=='profile' && $this->current_action=='index') or ($this->current_controller=='user' && $this->current_action=='register') or ($this->current_controller=='search' && $this->current_action=='index')){ ?> } ?> echo $this->render("analyticstracking.phtml"); ?> $container='container'; $style='margin-top:0px !important; padding-top:30px; padding-bottom:30px; padding-left:0px; padding-right:0px;'; if(($this->current_controller=='index' && $this->current_action=='index')or ($this->current_controller=='profile' && ($this->current_action=='dashboard' or $this->current_action=='userdashboard' or $this->current_action=='favorite')) or ($this->current_controller=='search' && $this->current_action=='index') or ($this->current_controller=='static' && ($this->current_action=='index' or $this->current_action=='contact' or $this->current_action=='faqs'))) { $container=''; $style='margin-top:0px !important;'; } ?>
if($this->current_action=='login' or $this->current_action=='register' or $this->current_action=='forgotpass' or $this->current_action=='resetpassword'){ ?> global $objSession; $myControllerName=Zend_Controller_Front::getInstance()->getRequest()->getControllerName(); $myActionName=Zend_Controller_Front::getInstance()->getRequest()->getActionName(); $notifications=''; if($this->user){ $modelUser = new Application_Model_User(); $notifications = $modelUser->getNotifications(@$this->user->user_id); } if(!empty($this->user) && $this->user->user_type=='specialist') { if($myActionName!='subscription') { if($this->user->user_subscribed_status=='0') { header("location:".APPLICATION_URL."/user-subscription"); } } /*elseif($myControllerName!='profile' && $myActionName!='index' ) { if($this->user->user_subscribed_status=='0') { header("location:".APPLICATION_URL."/user-subscription"); } }*/ } ?> }else{ ?> global $objSession; $myControllerName=Zend_Controller_Front::getInstance()->getRequest()->getControllerName(); $myActionName=Zend_Controller_Front::getInstance()->getRequest()->getActionName(); $notifications=''; if($this->user){ $modelUser = new Application_Model_User(); $modelSuper = new Application_Model_SuperModel(); $notifications = $modelUser->getNotifications(@$this->user->user_id); //prn($notifications); } if(!empty($this->user) && $this->user->user_type=='specialist') { if($myActionName!='subscription') { if($this->user->user_subscribed_status=='0') { header("location:".APPLICATION_URL."/user-subscription"); } else { $subscribe_chk = $modelSuper->Super_Get('subscribed_users','subscribed_user_id="'.$this->user->user_id.'"','fetch'); if($subscribe_chk['subscribed_user_expire_date']!='0000-00-00' && $subscribe_chk['subscribed_user_expire_date']<=date('Y-m-d')) { header("location:".APPLICATION_URL."/user-subscription"); } } } } ?>