diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..749c9ee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +themes/grav/.sass-cache diff --git a/admin.php b/admin.php index 190350e0..59236b05 100644 --- a/admin.php +++ b/admin.php @@ -20,6 +20,11 @@ class AdminPlugin extends Plugin */ protected $template; + /** + * @var string + */ + protected $theme; + /** * @var string */ @@ -51,49 +56,16 @@ class AdminPlugin extends Plugin */ public function onPluginsInitialized() { - $route = $this->config->get('plugins.admin.route'); - if (!$route) { - return; - } + // Check for Pro version and disable this plugin if found + // if (file_exists(PLUGINS_DIR . 'admin_pro/admin_pro.php')) { + // $this->enabled = false; + // return; + // } - $this->uri = $this->grav['uri']; - $base = '/' . trim($route, '/'); + // echo "
You can easily modify the order of page items by dragging-and-dropping the page items in this list.
+ +