-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.8.0: Added support to override block views from theme partials. Fix…
…ed StaticPage support, fixed Rainlab.Blog support.
- Loading branch information
1 parent
382dc9c
commit 5852aec
Showing
10 changed files
with
144 additions
and
91 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,8 +66,6 @@ public function prepareBlocks() | |
continue; | ||
} | ||
|
||
|
||
|
||
/** | ||
* @var string $block | ||
* @var array $section | ||
|
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 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,52 @@ | ||
<?php namespace ReaZzon\Editor\Console; | ||
|
||
use Illuminate\Console\Command; | ||
use Symfony\Component\Console\Input\InputOption; | ||
use Symfony\Component\Console\Input\InputArgument; | ||
|
||
/** | ||
* RefreshStaticPages Command | ||
*/ | ||
class RefreshStaticPages extends Command | ||
{ | ||
/** | ||
* @var string name is the console command name | ||
*/ | ||
protected $name = 'editor:refresh.static-pages'; | ||
|
||
/** | ||
* @var string description is the console command description | ||
*/ | ||
protected $description = 'Resaving all static pages'; | ||
|
||
/** | ||
* handle executes the console command | ||
*/ | ||
public function handle() | ||
{ | ||
$this->info('Start of resaving...'); | ||
$pages = \RainLab\Pages\Classes\Page::sortBy('title')->lists('title', 'baseFileName'); | ||
|
||
foreach($pages as $fileName => $fileTitle) { | ||
$page = \RainLab\Pages\Classes\Page::loadCached(\Cms\Classes\Theme::getActiveTheme(), $fileName); | ||
$page->save(); | ||
} | ||
$this->info('End of resaving...'); | ||
} | ||
|
||
/** | ||
* getArguments get the console command arguments | ||
*/ | ||
protected function getArguments() | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* getOptions get the console command options | ||
*/ | ||
protected function getOptions() | ||
{ | ||
return []; | ||
} | ||
} |
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
Large diffs are not rendered by default.
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
Oops, something went wrong.