prepare( "SELECT d.*, u.username AS author_name FROM documents d LEFT JOIN users u ON d.author_id = u.id WHERE " . implode(' AND ', $where) . " ORDER BY d.updated_at DESC" ); $stmt->execute($params); $docs = $stmt->fetchAll(); $meta = build_meta([ 'title' => $topic['title'] . ' — ' . get_setting('site_title', SITE_NAME), 'og_title' => $topic['title'], 'og_desc' => $topic['description'] ?: get_setting('og_description'), 'og_image' => $topic['og_image'], 'og_type' => 'website', ]); include ROOT_PATH . '/includes/header.php'; ?>
= h($topic['description']) ?>
Browse the sub-topics above, or select an audience tag to filter.
No documents in this topic= $tagFilter ? ' for this audience' : '' ?>.