Changeset 2224434
- Timestamp:
- 01/08/2020 06:50:58 PM (6 years ago)
- Location:
- essential-performance/trunk
- Files:
-
- 8 added
- 6 edited
-
. (modified) (1 prop)
-
.htaccess (added)
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
src/.htaccess (added)
-
src/application/Config/Config.php (modified) (2 diffs)
-
src/application/Controller/BackendController.php (added)
-
src/application/Model (added)
-
src/application/Model/ApacheModel.php (added)
-
src/application/View (added)
-
src/application/View/Backend (added)
-
src/application/View/Backend/settings_page.php (added)
-
src/framework/Core/App.php (modified) (3 diffs)
-
src/framework/Core/Template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
essential-performance/trunk
-
Property
svn:global-ignores
set to
.git
-
Property
svn:global-ignores
set to
-
essential-performance/trunk/plugin.php
r2205843 r2224434 14 14 * Plugin Name: Essential Performance 15 15 * Description: Essential Performance plugin for Wordpress. 16 * Version: 0.0. 116 * Version: 0.0.2 17 17 * Requires at least: 5.2 18 18 * Requires PHP: 7.0 -
essential-performance/trunk/readme.txt
r2205843 r2224434 49 49 * Initial plugin 50 50 51 = 0.0.2 = 52 * Added Leverage browser caching for static files 53 51 54 == Upgrade Notice == 52 55 .... -
essential-performance/trunk/src/application/Config/Config.php
r2205843 r2224434 23 23 { 24 24 public $version = '0.0.1'; 25 26 public $textDomain = 'essential-performance'; 25 27 26 28 public $actions = []; … … 55 57 ]; 56 58 59 60 // Backend actions 61 $this->actions[] = [ 62 'name' => 'admin_init', 63 'callback' => [ 64 'controller' => 'BackendController', 65 'action' => 'initCallback' 66 ] 67 ]; 68 69 $this->actions[] = [ 70 'name' => 'admin_menu', 71 'callback' => [ 72 'controller' => 'BackendController', 73 'action' => 'settingsMenuCallback' 74 ] 75 ]; 57 76 } 58 77 -
essential-performance/trunk/src/framework/Core/App.php
r2205843 r2224434 63 63 $this->load->config('Config'); 64 64 65 $this->registerPostTypes();66 $this->addHooks();67 $this->loadShortcodes();68 69 65 if (is_admin()) { 70 66 // Backend Controller … … 82 78 } 83 79 } 80 81 $this->registerPostTypes(); 82 $this->addHooks(); 83 $this->loadShortcodes(); 84 84 } catch (AppException $exception) { 85 85 $this->exception = $exception; … … 188 188 189 189 if (!isset($this->$controllerName)) { 190 $this->load->controller($ action['callback']['controller']);190 $this->load->controller($controllerName); 191 191 } 192 192 -
essential-performance/trunk/src/framework/Core/Template.php
r2205843 r2224434 102 102 public function getViewFile($extension = 'php') 103 103 { 104 $viewPath = $this-> registry->get('config')->path. DIRECTORY_SEPARATOR . 'application' . DIRECTORY_SEPARATOR . 'View';104 $viewPath = $this->appPath . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'application' . DIRECTORY_SEPARATOR . 'View'; 105 105 106 106 $path[] = realpath($viewPath . DIRECTORY_SEPARATOR . $this->template . '_custom.' . $extension);
Note: See TracChangeset
for help on using the changeset viewer.