aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor_profile_page.php
blob: ffa94e3b183365e2ff2494943c953502a5e54b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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);
    if (count($notes) == 0) {
        call_template('placeholder_text', ['message' => "This user hasn't posted anything yet."]);
    }
    foreach ($notes as $n) {
        call_template('note', ['note' => $n]);
    }
});