From a9242224ed75c9933c7e64df147e546cd71de964 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sun, 18 Feb 2018 13:02:55 -0800 Subject: [PATCH] Prepare for options page --- camo-image-proxy.php | 7 +++++++ inc/class-options-page.php | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 inc/class-options-page.php diff --git a/camo-image-proxy.php b/camo-image-proxy.php index 3833b1d..5306018 100755 --- a/camo-image-proxy.php +++ b/camo-image-proxy.php @@ -26,6 +26,13 @@ require_once PLUGIN_PATH . '/inc/trait-singleton.php'; */ require_once PLUGIN_PATH . '/inc/class-options.php'; +/** + * Options page + */ +if ( is_admin() ) { + require_once PLUGIN_PATH . '/inc/class-options-page.php'; +} + /** * Assorted functions */ diff --git a/inc/class-options-page.php b/inc/class-options-page.php new file mode 100644 index 0000000..8cabe86 --- /dev/null +++ b/inc/class-options-page.php @@ -0,0 +1,12 @@ +<?php +/** + * Plugin options page + * + * @package Camo_Image_Proxy + */ + +namespace Camo_Image_Proxy; + +class Options_Page { + use Singleton; +} -- GitLab