summaryrefslogtreecommitdiffstats
path: root/includes/giglog_visitor_display.php
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2021-09-05 20:04:58 +0200
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2021-09-05 20:04:58 +0200
commit865498b7abc8c16a586544cdf7be1885695593ff (patch)
tree48156396d002d6cf0a30a5806bde827ee0f19d7f /includes/giglog_visitor_display.php
parent7118a666e6833d9ef2dfe517ce17ad4883c2ccab (diff)
downloadgigologadmin-865498b7abc8c16a586544cdf7be1885695593ff.tar.gz
gigologadmin-865498b7abc8c16a586544cdf7be1885695593ff.tar.bz2
gigologadmin-865498b7abc8c16a586544cdf7be1885695593ff.zip
File to display concerts inside a page by calling getconcerts code
Diffstat (limited to 'includes/giglog_visitor_display.php')
-rw-r--r--includes/giglog_visitor_display.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/includes/giglog_visitor_display.php b/includes/giglog_visitor_display.php
new file mode 100644
index 0000000..8177cb8
--- /dev/null
+++ b/includes/giglog_visitor_display.php
@@ -0,0 +1,14 @@
+<?php declare(strict_types=1);
+function display_giglog()
+{
+ require_once __DIR__ . '/admin/views/_concerts_table.php';
+ require_once __DIR__ . '/view-helpers/select_field.php';
+ require_once __DIR__ . '/venue.php';
+ require_once __DIR__ . '/concert.php';
+ $c = new GiglogAdmin_ConcertsTable();
+ $html = $c->render();
+ return ($html);
+}
+
+add_shortcode('getconcerts', 'display_giglog');
+?>