doctype() ?> headMeta() ->appendHttpEquiv('content-type', 'text/html; charset=utf-8') ->appendHttpEquiv('X-UA-Compatible', 'IE=Edge') ->appendName('viewport', 'width=device-width, initial-scale=1.0'); // output title $this->headTitle() ->setSeparator(' - ') ->prepend('Swarm'); echo $this->headTitle(); // we extend the head link and head script helpers to add in our default css/scripts automatically // we will also include anything under public/custom/*.(js|css) or public/custom/*/*.(js|css) // link tags (icons, stylesheets) $this->headLink(array('rel' => 'shortcut icon', 'href' => $this->basePath() . '/favicon.ico?v2')); $this->headLink(array('rel' => 'apple-touch-icon', 'href' => $this->basePath() . '/apple-touch-icon.png')); echo $this->headLink(); // javascript echo $this->headScript(); ?> user(); $services = $this->getHelperPluginManager()->getServiceLocator(); $route = $services->get('application')->getMvcEvent()->getRouteMatch(); $this->bodyClass()->prepend('route-' . $route->getMatchedRouteName()); $this->bodyClass()->prepend($user->getId() ? 'authenticated' : 'anonymous'); $this->bodyClass()->prepend($this->permissions()->is('admin') ? 'admin' : 'non-admin'); // embed user info in data attr on body tag $userData = $user->getId() ? array( 'id' => $user->getId(), 'name' => $user->getFullName(), 'email' => $user->getEmail(), 'avatar' => $this->avatar($user, 64), ) : null; ?> bodyClass()->getValue())): ?>
bodyClass()->getValue())): ?>