コード例 #1
0
ファイル: Forum.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("forums", "forum");
     $this->registerScript("forums", "forum");
     $this->registerScript("forums", "category-cloud");
 }
コード例 #2
0
ファイル: Searchresults.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("search", "searchresults");
     $this->assign("queryString", $_GET['q']);
     $this->show();
 }
コード例 #3
0
ファイル: Albums.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("gallery", "albums");
     $this->registerScript("gallery", "albums");
     $this->show();
 }
コード例 #4
0
ファイル: FriendList.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("friends", "friendslist");
     $this->registerCss("friends", "friends");
     $this->show();
 }
コード例 #5
0
ファイル: Inbox.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("messages", "inbox");
     $this->registerCss("messages", "inbox");
     $this->render();
 }
コード例 #6
0
ファイル: Board.php プロジェクト: rcrrich/cunity
 /**
  * @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");
 }
コード例 #7
0
ファイル: EventEdit.php プロジェクト: rcrrich/cunity
 /**
  * @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);
 }
コード例 #8
0
ファイル: ProfileCrop.php プロジェクト: rcrrich/cunity
 /**
  * @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");
 }
コード例 #9
0
ファイル: EventCrop.php プロジェクト: rcrrich/cunity
 /**
  * @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']);
 }
コード例 #10
0
ファイル: Registration.php プロジェクト: rcrrich/cunity
 /**
  * @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);
 }
コード例 #11
0
ファイル: Newsfeed.php プロジェクト: rcrrich/cunity
 /**
  * @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();
 }
コード例 #12
0
ファイル: Album.php プロジェクト: rcrrich/cunity
 /**
  * @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"]);
 }
コード例 #13
0
ファイル: Events.php プロジェクト: rcrrich/cunity
 /**
  * @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();
 }
コード例 #14
0
ファイル: ProfileEdit.php プロジェクト: rcrrich/cunity
 /**
  *
  */
 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);
 }
コード例 #15
0
ファイル: ContactForm.php プロジェクト: rcrrich/cunity
 /**
  * @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();
 }
コード例 #16
0
ファイル: Profile.php プロジェクト: rcrrich/cunity
 /**
  * @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");
 }
コード例 #17
0
ファイル: View.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->_templateDir = "Admin";
 }
コード例 #18
0
ファイル: Admin.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     \Cunity\Admin\Models\Login::loginRequired();
     $this->show();
 }
コード例 #19
0
ファイル: Memberlist.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("memberlist", "memberlist");
     $this->show();
 }
コード例 #20
0
ファイル: View.php プロジェクト: rcrrich/cunity
 /**
  * @param $e
  * @throws \Exception
  */
 public function __construct(\Exception $e)
 {
     parent::__construct();
     $this->assign('MESSAGE', $e->getMessage());
     $this->show();
 }
コード例 #21
0
ファイル: MailView.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
 }
コード例 #22
0
ファイル: Page.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("pages", "page");
 }
コード例 #23
0
ファイル: ResetPassword.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerCss("register", "resetpw");
 }
コード例 #24
0
ファイル: Conversation.php プロジェクト: rcrrich/cunity
 /**
  * @throws \Cunity\Core\Exception
  * @throws \Exception
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerScript("messages", "conversation");
     $this->registerCss("messages", "conversation");
 }