mainURL; $textareaValue = "@<$profile->nick $profile->mainURL> "; // TODO: Move this to twtxt.php or base.php // and make nav for general timeline to filter on posts vs. replies + all // Filter posts vs. replies $pattern = "/\(#\w{7}\)/"; $twt_replies = array_filter($twts, function ($twt) use ($pattern) { return preg_match($pattern, $twt->originalTwtStr); }); $twt_posts = array_filter($twts, function ($twt) use ($pattern) { return !preg_match($pattern, $twt->originalTwtStr); }); // Get active view/filter $is_gallery = str_contains(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), "gallery"); $is_replies = str_contains(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), "replies"); if ($is_gallery) { $posts_active = ""; $replies_active = ""; $gallery_artive = "class='active'"; } elseif ($is_replies) { $twts = $twt_replies; $posts_active = ""; $replies_active = "class='active'"; $gallery_artive = ""; } else { $twts = $twt_posts; $posts_active = "class='active'"; $replies_active = ""; $gallery_artive = ""; } ?>
nick?>@mainURL, PHP_URL_HOST);?>

description?>

href="" >Posts href="/replies?profile=mainURL?>" >Replies href="/gallery?profile=mainURL?>" >Gallery mainURL?> (How to follow)