This repository has been archived by the owner on May 22, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b2ca78
commit 10cf453
Showing
14 changed files
with
165 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git*/ export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
# CHANGELOG | ||
|
||
## 1.0.0 - 2017-03-05 | ||
## 1.0.0 - 2017-03-09 | ||
|
||
* Added `App\Modules\ForkMeGitHub\Controller\ForkMeGitHub` class. | ||
* Added `App\Modules\ForkMeGitHub\Controller\ForkMeGitHub::css()` method. | ||
* Added `App\Modules\ForkMeGitHub\Controller\ForkMeGitHub::top()` method. | ||
* Added `App\Modules\ForkMeGitHub\Controller\ForkMeGitHub::render()` method. | ||
|
||
* Added `App\Modules\ForkMeGitHub\Model\ForkMeGitHub` class. | ||
|
||
* Added `config/hooks.php` settings file. | ||
* Added `config/routes.php` settings file. | ||
* Added `App\Modules\ForkMeGitHub\Hooks` class. | ||
* Added `App\Modules\ForkMeGitHub\Hooks::add()` method. | ||
|
||
* Added `src/strip.php` file. | ||
* Added `App\Modules\ForkMeGitHub\Routes` class. | ||
* Added `App\Modules\ForkMeGitHub\Routes::add()` method. | ||
|
||
* Added `src/template/view/strip.php` file. | ||
|
||
* Added `assets/style.css` file. | ||
|
||
* Added `fork-me-github.php` file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Eliasis PHP Framework application module | ||
* | ||
* @author Josantonius - [email protected] | ||
* @copyright Copyright (c) 2017 | ||
* @license https://opensource.org/licenses/MIT - The MIT License (MIT) | ||
* @link https://github.com/Eliasis-Framework/fork-me-github | ||
* @since 1.0.0 | ||
*/ | ||
|
||
return [ | ||
|
||
'name' => 'ForkMeGitHub', | ||
'version' => '1.0.0', | ||
'description' => 'Add a strip "Fork me on GitHub" at the top of the page.', | ||
'uri' => 'https://github.com/Eliasis-Framework/fork-me-github', | ||
'author' => 'Josantonius', | ||
'author-uri' => 'https://josantonius.com/', | ||
'license' => 'MIT', | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,14 @@ | |
* @author Josantonius - [email protected] | ||
* @copyright Copyright (c) 2017 | ||
* @license https://opensource.org/licenses/MIT - The MIT License (MIT) | ||
* @link https://github.com/Eliasis-Framework/Modules | ||
* @link https://github.com/Eliasis-Framework/fork-me-github | ||
* @since 1.0.0 | ||
*/ | ||
|
||
namespace App\Modules\ForkMeGitHub\Controller; | ||
|
||
use Josantonius\Asset\Asset, | ||
Eliasis\Module\Module, | ||
Eliasis\Controller\Controller; | ||
|
||
/** | ||
|
@@ -21,25 +22,25 @@ | |
*/ | ||
class ForkMeGitHub extends Controller { | ||
|
||
const ASSETS_URL = MODULES_URL . 'fork-me-github' . DS . 'assets' . DS; | ||
|
||
/** | ||
* Actions for css hook. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public function css() { | ||
|
||
Asset::css(self::ASSETS_URL . 'css' . DS . 'style.css'); | ||
Asset::css(Module::ForkMeGitHub('getUrl', 'css') . 'style.css'); | ||
} | ||
|
||
/** | ||
* Actions for top hook. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public function top() { | ||
public function render() { | ||
|
||
$path = Module::ForkMeGitHub('getPath', 'view'); | ||
|
||
self::$view->renderizate(dirname(__DIR__) . DS . 'view' . DS . 'strip'); | ||
self::$view->renderizate($path . 'strip'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
/** | ||
* Eliasis PHP Framework application module | ||
* | ||
* @author Josantonius - [email protected] | ||
* @copyright Copyright (c) 2017 | ||
* @license https://opensource.org/licenses/MIT - The MIT License (MIT) | ||
* @link https://github.com/Eliasis-Framework/fork-me-github | ||
* @since 1.0.0 | ||
*/ | ||
|
||
namespace App\Modules\ForkMeGitHub; | ||
|
||
use Eliasis\Hook\Hook, | ||
Eliasis\Module\Module; | ||
|
||
/** | ||
* Hooks handler. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
class Hooks { | ||
|
||
/** | ||
* Add hooks to the application. | ||
* | ||
* @param array $hooks | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public static function add() { | ||
|
||
$controller = Module::ForkMeGitHub('getNamespace', 'controller'); | ||
|
||
$hooks = [ | ||
|
||
'css' => $controller . 'ForkMeGitHub' . '@css', | ||
'afterBody' => $controller . 'ForkMeGitHub' . '@render', | ||
|
||
]; | ||
|
||
Hook::addHook($hooks); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @author Josantonius - [email protected] | ||
* @copyright Copyright (c) 2017 | ||
* @license https://opensource.org/licenses/MIT - The MIT License (MIT) | ||
* @link https://github.com/Eliasis-Framework/Modules | ||
* @link https://github.com/Eliasis-Framework/fork-me-github | ||
* @since 1.0.0 | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* Eliasis PHP Framework application module | ||
* | ||
* @author Josantonius - [email protected] | ||
* @copyright Copyright (c) 2017 | ||
* @license https://opensource.org/licenses/MIT - The MIT License (MIT) | ||
* @link https://github.com/Eliasis-Framework/fork-me-github | ||
* @since 1.0.0 | ||
*/ | ||
|
||
namespace App\Modules\ForkMeGitHub; | ||
|
||
use Eliasis\Route\Route, | ||
Eliasis\Module\Module; | ||
|
||
/** | ||
* Routes handler. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
class Routes { | ||
|
||
/** | ||
* Add routes to the application. | ||
* | ||
* @param array $routes | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public static function add() { } | ||
} |
File renamed without changes.