| @version 0.1.2 [0.1.0] - Alpha | | @website https://github.com/pytesNET/snicker | @license X11 / MIT License | @copyright Copyright © 2019 SamBrishes, pytesNET */ if(!defined("BLUDIT")){ die("Go directly to Jail. Do not pass Go. Do not collect 200 Cookies!"); } class Default_SnickerTemplate extends CommentsTheme{ const SNICKER_NAME = "Default Theme"; const SNICKER_JS = "snicker.js"; const SNICKER_CSS = "snicker.css"; /* | RENDER :: COMMENT FORM | @since 0.1.0 | @update 0.1.1 */ public function form($username = "", $email = "", $title = "", $message = ""){ global $comments, $login, $page, $security, $Snicker; // User Logged In if(!is_a($login, "Login")){ $login = new Login; } $user = $login->isLogged(); // Get Data if(empty($security->getTokenCSRF())){ $security->generateTokenCSRF(); } $captcha = ($user)? "disabled": sn_config("frontend_captcha"); $terms = ($user)? "disabled": sn_config("frontend_terms"); // Is Reply $reply = isset($_GET["snicker"]) && $_GET["snicker"] == "reply"; if($reply && isset($_GET["uid"]) && $comments->exists($_GET["uid"])){ $reply = new Comment($_GET["uid"], $page->uuid()); } ?>
" . $username[2] . "", $username[0])); ?>
" />
" />

" />

username(); ?> :
comment(); ?>
uri() . "?cpage=%d#snicker-comments-list"; $maxpages = (int) ceil($count / $limit); $prev = ($cpage === 1)? false: $cpage - 1; $next = ($cpage === $maxpages)? false: $cpage + 1; // Top Position if($location === "top"){ ?> page_key()); $user = $SnickerUsers->getByString($comment->getValue("author")); // Render $token = $security->getTokenCSRF(); $maxdepth = (int) sn_config("comment_depth"); $url = $page->permalink() . "?action=snicker&snicker=rate&&uid=%s&tokenCSRF=%s"; $url = sprintf($url, $comment->uid(), $token); ?>
avatar(90); ?> username()){ echo 'Author'; } else if(isset($user["role"]) && $user["role"] === "admin"){ echo 'Admin'; } ?>
title())){ ?>
title(); ?> status() === "pending"){ ?>
status() === "pending"){ ?>
'.$user["username"].'')); ?> date())); ?>
comment(); ?>
$comment->depth()){ ?>