<?php
namespace Claromentis\Blog\UI;

$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"] ?: array()) + array("_648575a3071d094f940" . "5dfd6451789c4" => base64_decode("YmxvZy9pbmNsdWR" . "lcy9uYXZfYnV0dG" . "9ucy5odG1s"), "_638953e062efa551822e8f8" . "6e4bf5e45" => base64_decode("bmF2X2Jsb2dfc2V0dGlu" . "Z3MudmlzaWJsZQ=="), "_4d707fab93bebb00bbe69e8159697c9" . "0" => base64_decode(""), "_8a7520eb9229cc1810018d" . "8037954ee2" => base64_decode("bmF2X2NyZWF0ZV9wb3N0LnZpc2libG" . "U="));
use BlogChannel;
use Claromentis\Core\Application;
use Claromentis\Core\Templater\Plugin\TemplaterComponentTmpl;







class NavigationButtons extends TemplaterComponentTmpl
{
    public function Show($attributes, Application $app)
    {
        if (!$app->security->GetUserId()) {
            return $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_4d707fab" . "93bebb00b" . "be69e8159" . "697c90"];
        }
        $args = [];
        $args[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_8a7520eb9229cc1810018" . "d8037954ee2"]] = BlogChannel::GetCount(PERM_EDIT, $app->security, -1) > 0;
        $args[$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_638953e" . "062efa55" . "1822e8f8" . "6e4bf5e4" . "5"]] = 1;
        $template = $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_648575a3071d094f9405df" . "d6451789c4"];
        return $this->CallTemplater($template, $args);
    }
}