Skip to content
This repository was archived by the owner on Aug 20, 2022. It is now read-only.

Commit c3a1bfe

Browse files
committed
Updated to 1.0.3 version
1 parent 6cd3722 commit c3a1bfe

File tree

44 files changed

+1300
-1130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1300
-1130
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# CHANGELOG
22

3-
## 1.0.0 - 2017-05-04
3+
## 1.0.3 - 2017-06-27
4+
5+
* Eliasis Framework has been updated to version 1.1.0.
6+
7+
## 1.0.2 - 2017-05-04
48

59
* Eliasis Framework has been updated to version 1.0.5.
610

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ This project is licensed under **GPL-2.0+**. See the [LICENSE](LICENSE) file for
9898

9999
If you find it useful, let me know :wink:
100100

101-
You can contact me on [Twitter](https://twitter.com/Josantonius) or through my [email](mailto:hello@josantonius.com).
101+
You can contact me on [Twitter](https://twitter.com/Josantonius) or through my [email](mailto:hello@josantonius.com).

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eliasis-framework/wordpress-plugin",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Skeleton for create WordPress plugins with Eliasis Framework",
55
"type": "wordpress-plugin",
66
"keywords": [
@@ -31,11 +31,11 @@
3131
},
3232
"require": {
3333
"php": "^5.3 || ^7.0",
34-
"eliasis-framework/eliasis" : "^1.0.5",
35-
"Josantonius/Json" : "^1.1.1",
36-
"Josantonius/Hook" : "^1.0.1",
37-
"Josantonius/WP_Register" : "^1.0.0",
38-
"Josantonius/WP_Menu" : "^1.0.0",
34+
"eliasis-framework/eliasis" : "^1.1.0",
35+
"Josantonius/Json" : "^1.1.2",
36+
"Josantonius/Hook" : "^1.0.5",
37+
"Josantonius/WP_Register" : "^1.0.2",
38+
"Josantonius/WP_Menu" : "^1.0.3",
3939
"composer/installers" : "master"
4040
},
4141
"autoload": {

config/assets.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
use Eliasis\App\App;
1313

14-
$css = App::EliasisWordPress('url', 'css');
15-
$js = App::EliasisWordPress('url', 'js');
14+
$css = App::EliasisWordPress()->get('url', 'css');
15+
$js = App::EliasisWordPress()->get('url', 'js');
1616

1717
return [
1818

config/info.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

config/menu.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
use Eliasis\App\App;
1313

14-
$textdomain = App::EliasisWordPress('plugin', 'name');
15-
16-
$iconsUrl = App::EliasisWordPress('url', 'icons');
14+
$iconsUrl = App::EliasisWordPress()->get('url', 'icons');
1715

1816
return [
1917

config/namespaces.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
* @since 1.0.0
1010
*/
1111

12+
$pluginName = 'EliasisWordPress';
13+
1214
return [
1315

14-
'namespace' => [
16+
'namespaces' => [
1517

16-
'admin-page' => 'EliasisWordPress\\Controller\\Admin\\Page\\',
17-
'controller' => 'EliasisWordPress\\Controller\\',
18+
'admin-page' => $pluginName . '\\Controller\\Admin\\Page\\',
19+
'controller' => $pluginName . '\\Controller\\',
1820
],
1921
];

config/paths.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818

1919
'path' => [
2020

21-
'public' => $ROOT.'public' .$DS,
22-
'json' => $ROOT.'public' .$DS.'json' .$DS,
23-
'layout' => $ROOT.'src' .$DS.'template'.$DS.'layout' .$DS,
24-
'pages' => $ROOT.'src' .$DS.'template'.$DS.'pages' .$DS,
25-
'elements' => $ROOT.'src' .$DS.'template'.$DS.'elements'.$DS,
21+
'public' => $ROOT.'public'.$DS,
22+
'json' => $ROOT.'public'.$DS.'json' .$DS,
23+
'layout' => $ROOT.'src' .$DS.'template'.$DS.'layout' .$DS,
24+
'page' => $ROOT.'src' .$DS.'template'.$DS.'page' .$DS,
2625
],
2726
];
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@
66
* @copyright Copyright (c) 2017
77
* @license GPL-2.0+
88
* @link https://github.com/Eliasis-Framework/WordPress-Plugin.git
9-
* @since 1.0.0
9+
* @since 1.0.3
1010
*/
1111

1212
use Eliasis\App\App;
1313

14-
require(App::EliasisWordPress('path', 'elements') . 'header.php');
15-
require(App::EliasisWordPress('path', 'pages') . 'options.php');
16-
require(App::EliasisWordPress('path', 'elements') . 'footer.php');
14+
$namespace = App::EliasisWordPress()->get('namespaces', 'admin-page');
15+
16+
$Options = $namespace . 'Options\Options';
17+
18+
return [
19+
20+
'hooks' => [
21+
22+
['example', [$Options, 'example'], 8, 0],
23+
]
24+
];

config/hooks.php renamed to config/settings.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
* @copyright Copyright (c) 2017
77
* @license GPL-2.0+
88
* @link https://github.com/Eliasis-Framework/WordPress-Plugin.git
9-
* @since 1.0.0
9+
* @since 1.0.3
1010
*/
1111

1212
return [
1313

14-
'hooks' => [
15-
'example',
16-
],
14+
'slug' => dirname(dirname(plugin_basename( __FILE__))),
15+
'version' => '1.0.3',
16+
'minimum_wp_version' => '3.8',
17+
'minimum_php_version' => '5.3',
1718
];

0 commit comments

Comments
 (0)