Exemplo n.º 1
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("gallery", "albums");
     $this->registerScript("gallery", "albums");
     $this->show();
 }
Exemplo n.º 2
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("search", "searchresults");
     $this->assign("queryString", $_GET['q']);
     $this->show();
 }
Exemplo n.º 3
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("messages", "inbox");
     $this->registerCss("messages", "inbox");
     $this->render();
 }
Exemplo n.º 4
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("forums", "forum");
     $this->registerScript("forums", "forum");
     $this->registerScript("forums", "category-cloud");
 }
Exemplo n.º 5
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("friends", "friendslist");
     $this->registerCss("friends", "friends");
     $this->show();
 }
Exemplo n.º 6
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("forums", "board");
     $this->registerScript("forums", "board");
     $this->registerCunityPlugin("summernote", ["css/summernote.css", "js/summernote.min.js"]);
     $this->registerScript("forums", "category-cloud");
 }
Exemplo n.º 7
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("profile", "jquery.imgareaselect.pack");
     $this->registerScript("profile", "profile-crop");
     $this->registerCss("profile", "profile");
     $this->registerCss("profile", "imgareaselect-animated");
     $this->registerCss("profile", "profile-crop");
 }
Exemplo n.º 8
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("events", "event");
     $this->registerCss("events", "event-edit");
     $this->registerScript("events", "event-edit");
     $this->assign("max_filesize", ini_get('upload_max_filesize'));
     $this->assign("upload_limit", Cunity::get("config")->site->upload_limit);
 }
Exemplo n.º 9
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("newsfeed", "newsfeed");
     $this->registerCss("newsfeed", "newsfeed");
     $this->registerCss("gallery", "lightbox");
     $this->registerScript("gallery", "jquery.blueimp-gallery");
     $this->registerScript("gallery", "lightbox");
     $this->show();
 }
Exemplo n.º 10
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("profile", "jquery.imgareaselect.pack");
     $this->registerScript("events", "event-crop");
     $this->registerCss("events", "event");
     $this->registerCss("profile", "imgareaselect-animated");
     $this->registerCss("events", "event-crop");
     $this->assign("eventid", $_GET['y']);
 }
Exemplo n.º 11
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("register", "registration");
     $this->registerCss("register", "style");
     $this->registerCunityPlugin("bootstrap-datepicker", ["css/bootstrap-datepicker.css", "js/bootstrap-datepicker.js"]);
     $profileFields = new ProfileFields();
     $this->assign('profileFields', $profileFields->getRegistrationFields());
     $this->assign('success', false);
 }
Exemplo n.º 12
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("gallery", "album");
     $this->registerCss("gallery", "lightbox");
     $this->registerScript("gallery", "uploader");
     $this->registerScript("gallery", "jquery.blueimp-gallery");
     $this->registerScript("gallery", "album");
     $this->registerScript("gallery", "lightbox");
     $this->registerCunityPlugin("plupload", ["js/plupload.full.min.js"]);
 }
Exemplo n.º 13
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("events", "events");
     $this->registerScript("events", "events");
     $this->registerCunityPlugin("bootstrap-datepicker", ["css/bootstrap-datepicker.css", "js/bootstrap-datepicker.js"]);
     $this->registerCunityPlugin("bootstrap-timepicker", ["css/bootstrap-timepicker.css", "js/bootstrap-timepicker.min.js"]);
     $this->registerCunityPlugin("calendar", ["css/calendar.css", "js/calendar.min.js"]);
     $this->registerCunityPlugin("js", ["underscore-min.js"]);
     $this->show();
 }
Exemplo n.º 14
0
 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("profile", "profile-edit");
     $this->registerScript("profile", "profile");
     $this->registerCss("profile", "profile");
     $this->registerCss("profile", "profile-edit");
     $this->registerCunityPlugin("js", ["jquery-ui-1.10.4.custom.min.js"]);
     $this->registerCunityPlugin("summernote", ["css/summernote.css", "js/summernote.min.js"]);
     $this->assign("upload_limit", Cunity::get("config")->site->upload_limit);
 }
Exemplo n.º 15
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     if (Login::loggedIn()) {
         $user = $_SESSION['user'];
         $userData = ["firstname" => $user->firstname, "lastname" => $user->lastname, "email" => $user->email];
     } else {
         $userData = ["firstname" => "", "lastname" => "", "email" => ""];
     }
     $this->registerScript("contact", "contactform");
     $this->assign("userData", $userData);
     $this->show();
 }
Exemplo n.º 16
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("profile", "profile");
     $this->registerScript("gallery", "albums");
     $this->registerScript("newsfeed", "newsfeed");
     $this->registerCss("profile", "profile");
     $this->registerCss("newsfeed", "newsfeed");
     $this->registerCss("gallery", "albums");
     $this->registerCss("friends", "friends");
     $this->registerCss("gallery", "lightbox");
     $this->registerScript("gallery", "jquery.blueimp-gallery");
     $this->registerScript("gallery", "lightbox");
 }
Exemplo n.º 17
0
 /**
  * @param View $view
  * @param $error_messages
  */
 private function assignErrors(View $view, $error_messages)
 {
     if (!empty($this->errors)) {
         foreach ($this->errors as $error => $message) {
             if (!empty($message)) {
                 $error_messages[$error] = $view->translate($message);
             }
         }
         $view->assign("error_messages", $error_messages);
         $view->assign('success', false);
         $view->assign("values", $_POST);
     }
 }
Exemplo n.º 18
0
 /**
  * @param $adminModule
  * @param $file
  * @throws \Cunity\Core\Exception
  */
 public function registerCss($adminModule, $file)
 {
     parent::registerCss("admin", "../" . $adminModule . "/css/" . $file);
 }
Exemplo n.º 19
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("pages", "page");
 }
Exemplo n.º 20
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("register", "resetpw");
 }
Exemplo n.º 21
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("messages", "conversation");
     $this->registerCss("messages", "conversation");
 }
Exemplo n.º 22
0
 /**
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     \Cunity\Admin\Models\Login::loginRequired();
     $this->show();
 }
Exemplo n.º 23
0
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("memberlist", "memberlist");
     $this->show();
 }
Exemplo n.º 24
0
 /**
  * @param $albumid
  * @return array|bool
  */
 public function getAlbumData($albumid)
 {
     $result = $this->fetchRow($this->select()->setIntegrityCheck(false)->from(["a" => $this->getTableName()])->joinLeft(["u" => $this->_dbprefix . "users"], "a.owner_type IS NULL AND a.owner_id=u.userid", ["name", "username"])->joinLeft(["e" => $this->_dbprefix . "events"], "a.owner_type = 'event' AND a.owner_id=e.id", ["title AS eventTitle"])->joinLeft(["i" => $this->_dbprefix . "gallery_images"], "i.id=u.profileImage AND a.owner_type IS NULL", "filename")->where("a.id=?", $albumid));
     if ($result instanceof Zend_Db_Table_Row_Abstract) {
         if ($result->type == 'profile') {
             $result->title = View::translate("Profile Images");
         } elseif ($result->type == "newsfeed") {
             $result->title = View::translate("Posted Images");
         }
         return $result->toArray();
     }
     return false;
 }
Exemplo n.º 25
0
 /**
  * @param $e
  * @throws \Exception
  */
 public function __construct(\Exception $e)
 {
     parent::__construct();
     $this->assign('MESSAGE', $e->getMessage());
     $this->show();
 }
Exemplo n.º 26
0
 /**
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
 }