summaryrefslogtreecommitdiffstats
path: root/core/include
diff options
context:
space:
mode:
Diffstat (limited to 'core/include')
-rw-r--r--core/include/page/main.php5
-rw-r--r--core/include/post/main.php5
-rw-r--r--core/include/user/main.php4
3 files changed, 14 insertions, 0 deletions
diff --git a/core/include/page/main.php b/core/include/page/main.php
index e50445a..7f1aa02 100644
--- a/core/include/page/main.php
+++ b/core/include/page/main.php
@@ -52,6 +52,11 @@ try {
'OG_IMAGES' => $page_data['FILE']['LIST']
]);
+ # Get access to the current item data from main template
+ $MainTemplate->set('TYPE', 'PAGE');
+ $MainTemplate->set('PAGE', $page_data);
+ $MainTemplate->set('USER', $user_data);
+
echo $MainTemplate;
}
diff --git a/core/include/post/main.php b/core/include/post/main.php
index 3cdb792..aa5dc50 100644
--- a/core/include/post/main.php
+++ b/core/include/post/main.php
@@ -52,6 +52,11 @@ try {
'OG_IMAGES' => $post_data['FILE']['LIST']
]);
+ # Get access to the current item data from main template
+ $MainTemplate->set('TYPE', 'POST');
+ $MainTemplate->set('POST', $post_data);
+ $MainTemplate->set('USER', $user_data);
+
echo $MainTemplate;
}
diff --git a/core/include/user/main.php b/core/include/user/main.php
index 1028a2e..4f30020 100644
--- a/core/include/user/main.php
+++ b/core/include/user/main.php
@@ -67,6 +67,10 @@ try {
'OG_IMAGES' => $User->getFiles()
]);
+ # Get access to the current item data from main template
+ $MainTemplate->set('TYPE', 'USER');
+ $MainTemplate->set('USER', $user_data);
+
echo $MainTemplate;
}