protected function preAdmin() { parent::preAdmin(); \Dsc\Apps::registerPath($this->dir . "/src/Shop/MassUpdate", 'massupdate'); if (class_exists('\\Minify\\Factory')) { \Minify\Factory::registerPath($this->dir . "/src/"); $files = array('Shop/Assets/js/jquery.sortable.css', 'Shop/Assets/css/jquery.star-rating.css'); foreach ($files as $file) { \Minify\Factory::css($file); } $files = array('Shop/Assets/js/class.js', 'Shop/Assets/js/validation.js', 'Shop/Assets/js/jquery.star-rating.js'); foreach ($files as $file) { \Minify\Factory::js($file); } } \Shop\Models\Reports::register('\\Shop\\Reports\\CustomersExpiredCarts', array('title' => 'Expired Carts', 'icon' => 'fa fa-shopping-cart', 'type' => 'customers', 'slug' => 'customers-expired-carts')); \Shop\Models\Reports::register('\\Shop\\Reports\\OrdersByCouponCode', array('title' => 'Orders - by Coupon Code', 'icon' => 'fa fa-inbox', 'type' => 'orders', 'slug' => 'orders-coupon-code')); $path = $this->app->hive()['PATH']; if (strpos($path, '/admin/shop/reports') !== false) { // Bootstrap the reports \Shop\Models\Reports::bootstrap(); } if (class_exists('\\Search\\Factory')) { \Search\Factory::registerSource(new \Search\Models\Source(array('id' => 'shop.products', 'title' => 'Products', 'class' => '\\Shop\\Models\\Products', 'priority' => 20))); \Search\Factory::registerSource(new \Search\Models\Source(array('id' => 'shop.orders', 'title' => 'Orders', 'class' => '\\Shop\\Models\\Orders', 'priority' => 20))); } \Shop\Models\PaymentMethods::register('\\Shop\\PaymentMethods\\OmnipayPaypalExpress', array('title' => 'Paypal Express (via Omnipay)', 'identifier' => 'omnipay.paypal_express')); \Shop\Models\PaymentMethods::register('\\Shop\\PaymentMethods\\OmnipayCybersource', array('title' => 'Cybersource (via Omnipay)', 'identifier' => 'omnipay.cybersource')); \Shop\Models\PaymentMethods::register('\\Shop\\PaymentMethods\\CCAvenue', array('title' => 'CCAvenue', 'identifier' => 'ccavenue')); static::diagnostics(); }
protected function preAdmin() { parent::preAdmin(); if (class_exists('\\Search\\Factory')) { \Search\Factory::registerSource(new \Search\Models\Source(array('id' => 'users', 'title' => 'Users', 'class' => '\\Users\\Models\\Users', 'priority' => 20))); } static::setActive(); }
protected function preAdmin() { parent::preAdmin(); if (class_exists('\\Minify\\Factory')) { \Minify\Factory::registerPath($this->dir . "/src/"); $files = array('Support/Assets/js/poller.js', 'Support/Assets/js/admin.js'); foreach ($files as $file) { \Minify\Factory::js($file); } $files = array('Support/Assets/css/admin.css'); foreach ($files as $file) { \Minify\Factory::css($file); } } if ($op = \Support\Models\Operators::isOnline($this->auth->getIdentity())) { if (\Dsc\System::instance()->get('input')->get('ping', null, 'int') != 1) { $op->markActive(); } } \Dsc\System::instance()->getDispatcher()->addListener(\Support\Listeners\Users::instance()); \Support\Models\ChatSessions::throttledCleanup(); }
protected function preAdmin() { parent::preAdmin(); \Dsc\Apps::registerPath($this->dir . "/src/Redirect/MassUpdate", 'massupdate'); }
protected function preAdmin() { parent::preAdmin(); \Modules\Factory::registerPositions(array('left-invite-friend', 'right-invite-friend', 'above-invite-friend', 'below-invite-friend', 'above-affiliate-dashboard', 'right-affiliate-dashboard')); \Dsc\System::instance()->getDispatcher()->addListener(\Affiliates\Listeners\Shop::instance()); }
protected function preAdmin() { parent::preAdmin(); $this->setLang(); $this->app->route('POST /admin/log [ajax]', '\\DscBootstrap->log'); }