aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor_profile_page.php
blob: e7d28b753a29c51c4cb43fd0ade79298a2970f00 (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' => __('user.notes.placeholder')]);
    }
    foreach ($notes as $n) {
        call_template('note', ['note' => $n]);
    }
});