From 00f16c69386956648bd2bd1cbe1179ba621e1814 Mon Sep 17 00:00:00 2001 From: Adam Patterson Date: Sat, 3 Dec 2016 16:37:12 -0700 Subject: [PATCH] ACF, and API endpoints that were in Axe --- .gitignore | 6 ++++++ acf-json/.gitkeep | 0 composer.json | 5 +++++ functions.php | 14 ++++---------- lib/custom.php | 10 ++++++++++ lib/theme-api.php | 27 +++++++++++++++++++++++++++ 6 files changed, 52 insertions(+), 10 deletions(-) create mode 100644 .gitignore create mode 100644 acf-json/.gitkeep create mode 100644 composer.json create mode 100644 lib/theme-api.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0159ec5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/_design/ +/.idea +.sass-cache +/vendor +/assets/vendor +/node_modules diff --git a/acf-json/.gitkeep b/acf-json/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..8c8051f --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "require": { + + } +} diff --git a/functions.php b/functions.php index 04491ee..f187350 100644 --- a/functions.php +++ b/functions.php @@ -1,17 +1,11 @@ - h1 a { background-image: url(' . get_bloginfo( 'template_directory' ) . '/assets/img/adminlogo.png) !important; height: auto;} - body.login{ background: #fff; } - '; -} - -add_action( 'login_head', 'custom_login_logo' ); +require_once( 'lib/theme-api.php' ); +require_once( 'lib/theme-rewrite.php' ); /* add_filter('acf/settings/load_json', function($paths) { diff --git a/lib/custom.php b/lib/custom.php index 3a0e5b3..7f6ee24 100644 --- a/lib/custom.php +++ b/lib/custom.php @@ -2,3 +2,13 @@ /**************************************** * Misc Theme Functions *****************************************/ + +// Custom admin login logo +function custom_login_logo() { + echo ''; +} + +add_action( 'login_head', 'custom_login_logo' ); \ No newline at end of file diff --git a/lib/theme-api.php b/lib/theme-api.php new file mode 100644 index 0000000..9f2f848 --- /dev/null +++ b/lib/theme-api.php @@ -0,0 +1,27 @@ + 'GET', + 'callback' => array( + $this, + 'sampleEndPoint' + ), + )); + }); + } + + public function sampleEndPoint() + { + return ['one', 'two']; + } +} + +new AxeAPI; \ No newline at end of file