public function index() { $view = new \Zewa\View(); $view->setView('privacy'); $view->setLayout('marketplace'); $view->setProperty($this->data); return $view->render(); }
public function index($complete = false) { $view = new \Zewa\View(); $view->setView('contact'); $view->setLayout('marketplace'); $this->data['complete'] = $complete; $view->setProperty($this->data); return $view->render(); }
public function index() { $this->data['featured'] = json_decode($this->rewards->getRewards(1, 5, ['featured' => true]))->result; $view = new \Zewa\View(); $view->setView('home'); $view->setLayout('marketplace'); $view->setProperty($this->data); return $view->render(); }
public function review() { if (!$this->logged) { $this->request->setFlashdata('notice', (object) ['type' => 'warning', 'message' => _("You must be logged in to checkout") . ' <a data-target="#loginModal" data-toggle="modal" href="javascript:void(0)">' . _("Click here to login") . '</a>']); $this->router->redirect($this->router->baseURL('?r=' . base64_encode(urlencode($this->router->uri)))); } $this->user = $this->request->session('user'); $stripe = $this->configuration->stripe; \Stripe\Stripe::setApiKey($stripe->secret_key); if ($this->request->post()) { $this->processCartCheckout(); } $this->data['shipping'] = $this->user->shipping; $view = new \Zewa\View(); $view->setProperty($this->data); $view->setLayout('marketplace'); $view->setModule('checkout'); $view->setView('review'); return $view->render(); }
</p> </div> <div class="col-md-5"> <?php if (!empty($complete) && $complete == true) { ?> <p class="alert alert-success text-center">Your inquiry has been submitted!</p> <?php } else { ?> <?php $view = new \Zewa\View(); $view->setView('includes/contact'); $view->setLayout(false); echo $view->render(); ?> <?php } ?> </div> </div> </div> <!-- ./reward--> </div> </div>