aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor_profile_page.php
blob: e745433c7f8af5e1eb045c5253f34ffb2ee9f542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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]);
    }
});