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

Commit

Permalink
Updated to 1.0.3 version
Browse files Browse the repository at this point in the history
  • Loading branch information
josantonius committed Jun 27, 2017
1 parent 6cd3722 commit c3a1bfe
Show file tree
Hide file tree
Showing 44 changed files with 1,300 additions and 1,130 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# CHANGELOG

## 1.0.0 - 2017-05-04
## 1.0.3 - 2017-06-27

* Eliasis Framework has been updated to version 1.1.0.

## 1.0.2 - 2017-05-04

* Eliasis Framework has been updated to version 1.0.5.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ This project is licensed under **GPL-2.0+**. See the [LICENSE](LICENSE) file for

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

You can contact me on [Twitter](https://twitter.com/Josantonius) or through my [email](mailto:hello@josantonius.com).
You can contact me on [Twitter](https://twitter.com/Josantonius) or through my [email](mailto:hello@josantonius.com).
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eliasis-framework/wordpress-plugin",
"version": "1.0.2",
"version": "1.0.3",
"description": "Skeleton for create WordPress plugins with Eliasis Framework",
"type": "wordpress-plugin",
"keywords": [
Expand Down Expand Up @@ -31,11 +31,11 @@
},
"require": {
"php": "^5.3 || ^7.0",
"eliasis-framework/eliasis" : "^1.0.5",
"Josantonius/Json" : "^1.1.1",
"Josantonius/Hook" : "^1.0.1",
"Josantonius/WP_Register" : "^1.0.0",
"Josantonius/WP_Menu" : "^1.0.0",
"eliasis-framework/eliasis" : "^1.1.0",
"Josantonius/Json" : "^1.1.2",
"Josantonius/Hook" : "^1.0.5",
"Josantonius/WP_Register" : "^1.0.2",
"Josantonius/WP_Menu" : "^1.0.3",
"composer/installers" : "master"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions config/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

use Eliasis\App\App;

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

return [

Expand Down
21 changes: 0 additions & 21 deletions config/info.php

This file was deleted.

4 changes: 1 addition & 3 deletions config/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

use Eliasis\App\App;

$textdomain = App::EliasisWordPress('plugin', 'name');

$iconsUrl = App::EliasisWordPress('url', 'icons');
$iconsUrl = App::EliasisWordPress()->get('url', 'icons');

return [

Expand Down
8 changes: 5 additions & 3 deletions config/namespaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
* @since 1.0.0
*/

$pluginName = 'EliasisWordPress';

return [

'namespace' => [
'namespaces' => [

'admin-page' => 'EliasisWordPress\\Controller\\Admin\\Page\\',
'controller' => 'EliasisWordPress\\Controller\\',
'admin-page' => $pluginName . '\\Controller\\Admin\\Page\\',
'controller' => $pluginName . '\\Controller\\',
],
];
9 changes: 4 additions & 5 deletions config/paths.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@

'path' => [

'public' => $ROOT.'public' .$DS,
'json' => $ROOT.'public' .$DS.'json' .$DS,
'layout' => $ROOT.'src' .$DS.'template'.$DS.'layout' .$DS,
'pages' => $ROOT.'src' .$DS.'template'.$DS.'pages' .$DS,
'elements' => $ROOT.'src' .$DS.'template'.$DS.'elements'.$DS,
'public' => $ROOT.'public'.$DS,
'json' => $ROOT.'public'.$DS.'json' .$DS,
'layout' => $ROOT.'src' .$DS.'template'.$DS.'layout' .$DS,
'page' => $ROOT.'src' .$DS.'template'.$DS.'page' .$DS,
],
];
16 changes: 12 additions & 4 deletions src/template/layout/default.php → config/set-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@
* @copyright Copyright (c) 2017
* @license GPL-2.0+
* @link https://github.com/Eliasis-Framework/WordPress-Plugin.git
* @since 1.0.0
* @since 1.0.3
*/

use Eliasis\App\App;

require(App::EliasisWordPress('path', 'elements') . 'header.php');
require(App::EliasisWordPress('path', 'pages') . 'options.php');
require(App::EliasisWordPress('path', 'elements') . 'footer.php');
$namespace = App::EliasisWordPress()->get('namespaces', 'admin-page');

$Options = $namespace . 'Options\Options';

return [

'hooks' => [

['example', [$Options, 'example'], 8, 0],
]
];
9 changes: 5 additions & 4 deletions config/hooks.php → config/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
* @copyright Copyright (c) 2017
* @license GPL-2.0+
* @link https://github.com/Eliasis-Framework/WordPress-Plugin.git
* @since 1.0.0
* @since 1.0.3
*/

return [

'hooks' => [
'example',
],
'slug' => dirname(dirname(plugin_basename( __FILE__))),
'version' => '1.0.3',
'minimum_wp_version' => '3.8',
'minimum_php_version' => '5.3',
];
31 changes: 20 additions & 11 deletions eliasis-wordpress-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

use Eliasis\App\App;

$DS = DIRECTORY_SEPARATOR;

/**
* Don't expose information if this file called directly.
*/
Expand All @@ -24,23 +26,30 @@
echo 'I can do when called directly.'; die;
}

$DS = DIRECTORY_SEPARATOR;

define('ELIASIS_WP', 'EliasisWordPress');

/**
* Classloader.
*/
require 'lib' . $DS . 'vendor' . $DS .'autoload.php';

App::run(__DIR__, 'wordpress-plugin', ELIASIS_WP);

$namespace = App::EliasisWordPress('namespace', 'controller');

$method = $namespace . 'Launcher::getInstance';
/**
* Start application.
*/
App::run(__DIR__, 'wordpress-plugin', 'EliasisWordPress');

$Launcher = call_user_func($method);
/**
* Get main instance.
*/
$Launcher = App::instance('Launcher', 'controller');

/**
* Register hooks.
*/
register_activation_hook(__FILE__, [$Launcher, 'activation']);

register_deactivation_hook(__FILE__, [$Launcher, 'deactivation']);


/**
* Launch application.
*/
$Launcher->init();
?>
Loading

0 comments on commit c3a1bfe

Please sign in to comment.