summaryrefslogtreecommitdiff
path: root/api/sidebar.php
diff options
context:
space:
mode:
authorMax2018-11-05 12:47:47 +0100
committerMax2018-11-05 12:47:47 +0100
commit1373956529cd4c5f7a5bdfaefad407b24c8bb828 (patch)
tree98f6cee101b6a77a723f5796291b8128af396180 /api/sidebar.php
parent89bcafe654844367ea3a730c8c03b8e63047db06 (diff)
downloadfuselkoenig_de-1373956529cd4c5f7a5bdfaefad407b24c8bb828.tar.gz
Adds first version of an API to get the top navigation menu and the sidebar.
Diffstat (limited to 'api/sidebar.php')
-rw-r--r--api/sidebar.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/sidebar.php b/api/sidebar.php
new file mode 100644
index 0000000..75c8b36
--- /dev/null
+++ b/api/sidebar.php
@@ -0,0 +1,12 @@
+<?php
+
+function fk_get_sidebar() {
+ ob_start();
+ get_template_part( 'sidebar-templates/sidebar', 'right' );
+ $content = ob_get_contents();
+ $content = array("sidebar-right" => $content);
+ ob_end_clean();
+
+ return $content;
+}
+