aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor_profile_page.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/actor_profile_page.php')
-rw-r--r--templates/actor_profile_page.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/actor_profile_page.php b/templates/actor_profile_page.php
new file mode 100644
index 0000000..e745433
--- /dev/null
+++ b/templates/actor_profile_page.php
@@ -0,0 +1,16 @@
+<?php
+
+use Digitigrade\Model\Note;
+
+call_template('skeleton', [
+ 'pageTitle' => "$actor->displayName - @" . $actor->getFullHandle(),
+ 'renderTitleHeading' => false
+], function () {
+ global $actor;
+ call_template('actor_profile', ['actor' => $actor]);
+ echo '<hr>';
+ $notes = Note::findAllWithAuthor($actor, 50);
+ foreach ($notes as $n) {
+ call_template('note', ['note' => $n]);
+ }
+}); \ No newline at end of file