Changeset 2281335
- Timestamp:
- 04/11/2020 08:46:02 AM (6 years ago)
- Location:
- fantazy-sidebar
- Files:
-
- 2 deleted
- 20 edited
-
tags/1.5.1 (deleted)
-
tags/1.5.2 (deleted)
-
trunk/core/Framework.php (modified) (1 diff)
-
trunk/core/system/Plugin.php (modified) (3 diffs)
-
trunk/core/system/includes/Config.php (modified) (5 diffs)
-
trunk/core/system/includes/Get.php (modified) (1 diff)
-
trunk/core/system/includes/Post.php (modified) (1 diff)
-
trunk/core/system/includes/Response.php (modified) (1 diff)
-
trunk/core/system/includes/View.php (modified) (1 diff)
-
trunk/core/system/libraries/Admin.php (modified) (1 diff)
-
trunk/core/system/libraries/Ajax.php (modified) (1 diff)
-
trunk/core/system/libraries/Front.php (modified) (1 diff)
-
trunk/core/system/libraries/Menu.php (modified) (1 diff)
-
trunk/core/system/libraries/Page.php (modified) (1 diff)
-
trunk/core/system/libraries/Settings.php (modified) (1 diff)
-
trunk/core/system/libraries/interfaces/AdminInterface.php (modified) (1 diff)
-
trunk/core/system/libraries/interfaces/AjaxInterface.php (modified) (1 diff)
-
trunk/core/system/libraries/interfaces/ConfigInterface.php (modified) (1 diff)
-
trunk/core/system/libraries/interfaces/FrontInterface.php (modified) (1 diff)
-
trunk/core/system/libraries/interfaces/PluginInterface.php (modified) (1 diff)
-
trunk/core/system/libraries/interfaces/SettingsInterface.php (modified) (1 diff)
-
trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fantazy-sidebar/trunk/core/Framework.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/Plugin.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 … … 58 61 $this->config = new Config(); 59 62 // Define plugin Dir and plugin Name : plugin/plugin 60 $const = "{$this->config->root Name}/{$this->config->rootName}";63 $const = "{$this->config->root}/{$this->config->root}"; 61 64 // Define plugin main file 62 65 $root = $this->getRoot("/{$const}.php"); … … 148 151 public function addLink($links) 149 152 { 150 array_push($links,'<a href="options-general.php?page='. $this->config->root Name.'">' . __( 'Settings' ) . '</a>');153 array_push($links,'<a href="options-general.php?page='. $this->config->root .'">' . __( 'Settings' ) . '</a>'); 151 154 return $links; 152 155 } -
fantazy-sidebar/trunk/core/system/includes/Config.php
r2281327 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 … … 19 22 */ 20 23 public $root = '/fantazy-sidebar'; 21 public $rootName;22 24 public $baseUri; 23 25 public $ajaxUrl; … … 81 83 82 84 /** 85 * Update option 86 * 87 * @param array $var 88 * @return void 89 */ 90 public function update($var = []) 91 { 92 $json = File::read("{$this->root}/core/storage/config/global.json"); 93 $update = Json::decode($json); 94 foreach ($var as $option => $value) 95 { 96 if ( isset($update['option'][$option]) ) { 97 $update['option'][$option] = $value; 98 } 99 } 100 $update = Json::format($update); 101 File::write("{$this->root}/core/storage/config/global.json", $update); 102 } 103 104 /** 83 105 * init configuration 84 106 * … … 92 114 $this->baseUri = WP_PLUGIN_URL . $this->root; 93 115 $this->root = WP_PLUGIN_DIR . $this->root; 94 $this->file = new Json("{$this->root}/core/storage/config/global.json");116 $this->file = File::read("{$this->root}/core/storage/config/global.json"); 95 117 96 static::$global = $this->file->decode(true); 97 $this->rootName = static::$global->rootName; 118 static::$global = Json::decode($this->file, true); 98 119 $this->pluginName = static::$global->name; 99 120 $this->namespace = static::$global->namespace; … … 102 123 103 124 // activate debug 104 if ( static::$global->option->debug ) 105 { 125 if ( static::$global->option->debug ) { 106 126 ini_set('display_errors', 1); 107 127 ini_set('display_startup_errors', 1); -
fantazy-sidebar/trunk/core/system/includes/Get.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/includes/Post.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/includes/Response.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/includes/View.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/Admin.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/Ajax.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/Front.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/Menu.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/Page.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/Settings.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/interfaces/AdminInterface.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/interfaces/AjaxInterface.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/interfaces/ConfigInterface.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/interfaces/FrontInterface.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/interfaces/PluginInterface.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/core/system/libraries/interfaces/SettingsInterface.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13 -
fantazy-sidebar/trunk/uninstall.php
r2169878 r2281335 3 3 * @author : JIHAD SINNAOUR 4 4 * @package : VanillePlugin 5 * @version : 1. 0.06 * @copyright : (c) 2018 JIHAD SINNAOUR <[email protected]>5 * @version : 1.1.0 6 * @copyright : (c) 2018 - 2020 JIHAD SINNAOUR <[email protected]> 7 7 * @link : https://jakiboy.github.io/VanillePlugin/ 8 8 * @license : MIT 9 * 10 * This file if a part of VanillePlugin Framework 11 * Allowed to edit for plugin customization 9 12 */ 10 13
Note: See TracChangeset
for help on using the changeset viewer.