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(); }
private function transactionSingle($transactionId) { $this->data['transaction'] = json_decode($this->rewards->getUserTransaction($this->data['user']->unique_id, $transactionId)); $view = new \Zewa\View(); $view->setProperty($this->data); $view->setLayout(false); $view->setView('transaction'); return $view; }
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(); }
private function paginateRewards() { $page = $this->request->get('rewardPage'); $offset = $this->request->get('rewardOffset'); $filters = ['title' => $this->request->get('title'), 'priceMin' => $this->request->get('minPrice'), 'priceMax' => $this->request->get('maxPrice')]; $categoryIds = $this->request->get('categoryIds'); if ($categoryIds) { $filters['categoryIds'] = array_values((array) $categoryIds); } $rewards = json_decode($this->rewards->getRewards($page, $offset, $filters)); $this->data['rewards'] = $rewards->result; $this->data['count'] = (int) $rewards->count; $this->data['last'] = $page * $offset >= $this->data['count']; //($this->data['count'] - $offset); $this->data['first'] = $page == 1; $this->data['feedURL'] = $this->configuration->api->feed_url; $view = new \Zewa\View(); $view->setView('reward-set'); $view->setLayout(false); $view->setProperty($this->data); return $view; }
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(); }
Lake Havasu City, AZ 96403 </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>