Plugin Directory

Changeset 2224434


Ignore:
Timestamp:
01/08/2020 06:50:58 PM (6 years ago)
Author:
vozubko
Message:

Added Leverage browser caching for static files

Location:
essential-performance/trunk
Files:
8 added
6 edited

Legend:

Unmodified
Added
Removed
  • essential-performance/trunk

    • Property svn:global-ignores set to
      .git
  • essential-performance/trunk/plugin.php

    r2205843 r2224434  
    1414 * Plugin Name:       Essential Performance
    1515 * Description:       Essential Performance plugin for Wordpress.
    16  * Version:           0.0.1
     16 * Version:           0.0.2
    1717 * Requires at least: 5.2
    1818 * Requires PHP:      7.0
  • essential-performance/trunk/readme.txt

    r2205843 r2224434  
    4949* Initial plugin
    5050
     51= 0.0.2 =
     52* Added Leverage browser caching for static files
     53
    5154== Upgrade Notice ==
    5255....
  • essential-performance/trunk/src/application/Config/Config.php

    r2205843 r2224434  
    2323{
    2424    public $version = '0.0.1';
     25
     26    public $textDomain = 'essential-performance';
    2527
    2628    public $actions = [];
     
    5557        ];
    5658
     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        ];
    5776    }
    5877
  • essential-performance/trunk/src/framework/Core/App.php

    r2205843 r2224434  
    6363            $this->load->config('Config');
    6464
    65             $this->registerPostTypes();
    66             $this->addHooks();
    67             $this->loadShortcodes();
    68 
    6965            if (is_admin()) {
    7066                // Backend Controller
     
    8278                }
    8379            }
     80
     81            $this->registerPostTypes();
     82            $this->addHooks();
     83            $this->loadShortcodes();
    8484        } catch (AppException $exception) {
    8585            $this->exception = $exception;
     
    188188
    189189                    if (!isset($this->$controllerName)) {
    190                         $this->load->controller($action['callback']['controller']);
     190                        $this->load->controller($controllerName);
    191191                    }
    192192
  • essential-performance/trunk/src/framework/Core/Template.php

    r2205843 r2224434  
    102102    public function getViewFile($extension = 'php')
    103103    {
    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';
    105105
    106106        $path[] = realpath($viewPath . DIRECTORY_SEPARATOR . $this->template . '_custom.' . $extension);
Note: See TracChangeset for help on using the changeset viewer.