This file contains hidden or 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
<?php | |
namespace ekandreas; | |
class Papi | |
{ | |
function __construct() | |
{ | |
add_filter( 'papi/settings/directories', function ( $directories ) { | |
$directories[] = dirname(__FILE__) . '/page-types'; | |
return $directories; |
This file contains hidden or 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
<?php | |
/** | |
* Options General Type for theme with Papi | |
* Andreas Ek, 2015-11-30 | |
*/ | |
class Options_General_Type extends Papi_Option_Type | |
{ | |
/** | |
* Where to register the option page to show |
This file contains hidden or 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
<?php | |
/*** step 1 ***/ | |
date_default_timezone_set('Europe/Stockholm'); | |
/*** step 2 ***/ | |
include_once 'vendor/deployer/deployer/recipe/common.php'; | |
/*** step 3 ***/ | |
server( 'production', 'andreasek.se', 22 ) | |
->env('deploy_path','/mnt/persist/www/aekab.se') |
This file contains hidden or 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
composer require deployer/deployer |
This file contains hidden or 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
dep deploy production |
This file contains hidden or 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
composer require ekandreas/bladerunner |
This file contains hidden or 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
wp-content | |
└── themes | |
└── your_theme | |
├── style.css <- standard theme style.css, mandatory | |
├── index.php <- standard index theme, mandatory | |
├── single.php <- standard index theme, mandatory | |
└── views <- folder for Blade view templates | |
├── index.blade.php <- the index page template | |
├── single.blade.php <- the single page template |
This file contains hidden or 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
/* | |
Theme Name: Minimal Bladerunner Theme | |
*/ |
This file contains hidden or 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
<?php | |
bladerunner('views.index'); |