| @@ -1,47 +1,47 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -namespace Getwid; | |
| 4 | - | |
| 5 | -class Settings { | |
| 6 | - | |
| 7 | - private $version; | |
| 8 | - private $prefix; | |
| 9 | - private $pluginName; | |
| 10 | - private $pluginData; | |
| 11 | - | |
| 12 | - /** | |
| 13 | - * Settings constructor. | |
| 14 | - */ | |
| 15 | - public function __construct() { | |
| 16 | - | |
| 17 | - if( !function_exists('get_plugin_data') ){ | |
| 18 | - require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
| 19 | - } | |
| 20 | - | |
| 21 | - $this->pluginData = get_plugin_data(GETWID_PLUGIN_FILE); | |
| 22 | - $this->version = $this->pluginData['Version']; | |
| 23 | - $this->prefix = $this->pluginData['TextDomain']; | |
| 24 | - $this->pluginName = $this->pluginData['Name']; | |
| 25 | - } | |
| 26 | - | |
| 27 | - /** | |
| 28 | - * @return string | |
| 29 | - */ | |
| 30 | - public function getVersion() { | |
| 31 | - return $this->version; | |
| 32 | - } | |
| 33 | - | |
| 34 | - /** | |
| 35 | - * @return string | |
| 36 | - */ | |
| 37 | - public function getPrefix() { | |
| 38 | - return $this->prefix; | |
| 39 | - } | |
| 40 | - | |
| 41 | - /** | |
| 42 | - * @return string | |
| 43 | - */ | |
| 44 | - public function getPluginName() { | |
| 45 | - return $this->pluginName; | |
| 46 | - } | |
| 47 | -} | |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace Getwid; | |
| 4 | + | |
| 5 | +class Settings { | |
| 6 | + | |
| 7 | + private $version; | |
| 8 | + private $prefix; | |
| 9 | + private $pluginName; | |
| 10 | + private $pluginData; | |
| 11 | + | |
| 12 | + /** | |
| 13 | + * Settings constructor. | |
| 14 | + */ | |
| 15 | + public function __construct() { | |
| 16 | + | |
| 17 | + if( !function_exists('get_plugin_data') ){ | |
| 18 | + require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
| 19 | + } | |
| 20 | + | |
| 21 | + $this->pluginData = get_plugin_data(GETWID_PLUGIN_FILE); | |
| 22 | + $this->version = $this->pluginData['Version']; | |
| 23 | + $this->prefix = $this->pluginData['TextDomain']; | |
| 24 | + $this->pluginName = $this->pluginData['Name']; | |
| 25 | + } | |
| 26 | + | |
| 27 | + /** | |
| 28 | + * @return string | |
| 29 | + */ | |
| 30 | + public function getVersion() { | |
| 31 | + return $this->version; | |
| 32 | + } | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * @return string | |
| 36 | + */ | |
| 37 | + public function getPrefix() { | |
| 38 | + return $this->prefix; | |
| 39 | + } | |
| 40 | + | |
| 41 | + /** | |
| 42 | + * @return string | |
| 43 | + */ | |
| 44 | + public function getPluginName() { | |
| 45 | + return $this->pluginName; | |
| 46 | + } | |
| 47 | +} | |