| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class DeveloperThemesController extends Controller |
||
| 11 | { |
||
| 12 | private $view = "crudbooster::dev_layouts.modules.themes"; |
||
| 13 | |||
| 14 | public function __construct() |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getIndex() { |
||
| 20 | $themes = (new Plugin())->getAllThemes(); |
||
| 21 | $data = []; |
||
| 22 | $data['result'] = $themes; |
||
| 23 | return view($this->view.".index",$data); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getActiveTheme($theme_path) { |
||
| 27 | $theme_path = base64_decode($theme_path); |
||
| 28 | putSetting("theme_path", $theme_path); |
||
| 29 | return cb()->redirectBack("Theme has been activated!","success"); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function postSaveConfig() { |
||
| 39 | } |
||
| 40 | } |