aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor_profile_page.php
diff options
context:
space:
mode:
authorwinter2024-12-23 22:17:41 +0000
committerwinter2024-12-23 22:17:41 +0000
commit916d4521cb595493bc5df8b7f9ef52310b6d013a (patch)
treed12b54f32339c2e6ae0bafc12bd4c30262615a5d /templates/actor_profile_page.php
parent8f1f84d92cabf3a606585bc79eba14e63c149b60 (diff)
actor profile page
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