PluginProbe
Boxzilla – WordPress Popup Builder / 3.4.0
Boxzilla – WordPress Popup Builder v3.4.0
3.4.11 3.4.10 3.4.9 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 trunk 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 All 72 releases
← All changes | src/class-plugin.php +9 -8 3.1.13.4.0 View file →
@@ -3,8 +3,9 @@
3 3 namespace Boxzilla;
4 4
5 5 class Plugin {
6 6
7 +
7 8 /**
8 9 * @var string The current version of the plugin
9 10 */
10 11 protected $version = '1.0';
@@ -42,17 +43,17 @@
42 43 * @param string $version
43 44 * @param string $file
44 45 * @param string $dir (optional)
45 46 */
46 - public function __construct( $id, $name, $version, $file, $dir = '' ) {
47 - $this->id = $id;
48 - $this->name = $name;
47 + public function __construct( $id, $name, $version, $file, $dir = '' ) {
48 + $this->id = $id;
49 + $this->name = $name;
49 50 $this->version = $version;
50 - $this->file = $file;
51 - $this->dir = $dir;
52 - $this->slug = plugin_basename( $file );
51 + $this->file = $file;
52 + $this->dir = $dir;
53 + $this->slug = plugin_basename( $file );
53 54
54 - if( empty( $dir ) ) {
55 + if ( empty( $dir ) ) {
55 56 $this->dir = dirname( $file );
56 57 }
57 58 }
58 59
@@ -105,5 +106,5 @@
105 106 */
106 107 public function url( $path = '' ) {
107 108 return plugins_url( $path, $this->file() );
108 109 }
109 -}
110 +}