Phalcon Framework 2.0.12

Phalcon\Cache\Exception: Cache file /var/www/bepuppy.com/socialveo/bepuppy/cache/sveo___tt2445f7951e1fee079465419d78a23166 could not be written

/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/view/View.php (367)
#0Phalcon\Cache\Backend\File->save(___tt2445f7951e1fee079465419d78a23166, true)
/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/view/View.php (367)
<?php
/**
 * View.php
 * @author      {@link https://socialveo.com Socialveo}
 * @copyright   Copyright (C) 2017 Socialveo Sagl - All Rights Reserved
 * @license     Proprietary Software Socialveo (C) 2017, Socialveo Sagl {@link https://socialveo.com/legal Socialveo Legal Policies}
 * @package     Socialveo\Core\library\view
 * @category    Socialveo\Core\library\view
 * @since       1.0
 * @version     1.0
 */
 
namespace Socialveo\Core\library\view;
 
use Phalcon\Di;
use Phalcon\Di\InjectionAwareInterface;
use Phalcon\Mvc\View as BaseView;
use Phalcon\Mvc\View\EngineInterface;
 
/**
 * Class View
 * @package Socialveo\Core\library\view
 */
class View extends BaseView
{
    /**
     * Path aliases
     * @var array
     */
    protected $_aliases = [];
 
    /**
     * Fallback view paths
     * @var array
     */
    protected $_fallbackViewPaths = [];
 
    /**
     * The array with registered events
     * @var array
     */
    private $_registerEvents = [];
 
    /**
     * @var string|null
     */
    protected $_moduleView = null;
 
    /**
     * @var bool
     */
    protected $_origin = true;
 
    /**
     * @var array
     */
    protected $_originFallbackViewPaths = [];
 
    /**
     * Default domain
     * @var string
     */
    protected $_defaultDomain;
 
 
    /**
     * @return string
     */
    public function getOriginViewsDir()
    {
        if (!empty($this->_moduleView)) {
            return $this->_moduleView;
        }
        return $this->_moduleView = $this->_viewsDir;
    }
 
    /**
     * @return bool
     */
    public function isOrigin()
    {
        return $this->_origin;
    }
 
    /**
     * Set default domain
     * @param string $domain
     */
    public function setDefaultDomain($domain)
    {
        $this->_defaultDomain = $domain;
    }
 
    /**
     * Get default domain
     * @return string
     */
    public function getDefaultDomain()
    {
        return $this->_defaultDomain;
    }
 
    /**
     * Attach callback for register engine event
     * @param string $engine
     * @param callable $callback
     */
    public function onRegisterEngine($engine, $callback)
    {
        $engine = isset($engine{0}) && $engine{0} === '.' ? substr($engine, 1) : $engine;
        if (!isset($this->_registerEvents[$engine])) {
            $this->_registerEvents[$engine] = [];
        }
        $this->_registerEvents[$engine][] = $callback;
    }
 
    /**
     * @param string $name
     * @param EngineInterface $engine
     * @param InjectionAwareInterface $compiler
     */
    public function runRegisterEngineEvent($name, EngineInterface $engine, InjectionAwareInterface $compiler)
    {
        $name = isset($name{0}) && $name{0} === '.' ? substr($name, 1) : $name;
        if (isset($this->_registerEvents[$name])) {
            foreach ($this->_registerEvents[$name] as $callback) {
                call_user_func_array($callback, [$engine, $compiler]);
            }
        }
    }
 
    /**
     * Add path alias.
     * Example:
     * <code>
     *   $view->addPathAlias('module', '/path/to/module/views');
     * </code>
     * @param string $alias
     * @param string $path
     */
    public function addPathAlias($alias, $path)
    {
        $this->_aliases[$alias] = self::realpath($path);
    }
 
    /**
     * Set path aliases.
     * Example:
     * <code>
     *   $view->setPathAliases(['module' => '/path/to/module/views']);
     * </code>
     * @param array $aliases
     */
    public function setPathAliases(array $aliases)
    {
        foreach($aliases as $alias => $path) {
            $this->addPathAlias($alias, $path);
        }
    }
 
    /**
     * Get path aliases
     * @return array
     */
    public function getPathAliases()
    {
        return $this->_aliases;
    }
 
    /**
     * Add fallback path
     * @param string $path
     */
    public function addFallbackPath($path)
    {
        $this->_fallbackViewPaths[] = self::realpath($path);
    }
 
    /**
     * Get fallback paths
     * @return array
     */
    public function getFallbackPaths()
    {
        return $this->_fallbackViewPaths;
    }
 
    /**
     * Set fallback paths
     * @param array $paths
     * @return array
     */
    public function setFallbackPaths($paths)
    {
        return $this->_fallbackViewPaths = $paths;
    }
 
    /**
     * Get filemtime of all views of theme for recompile
     * @return bool
     */
    public function detectNeedRecompile()
    {
        $filemtime = 0;
        $scan = function ($path) use (&$filemtime, &$scan) {
            foreach (array_diff(scandir($path), ['.', '..']) as $name) {
                $filename = "$path/$name";
                if (is_dir($filename)) {
                    $scan($filename);
                } else {
                    $filemtime = max($filemtime, intval(filemtime($filename)));
                }
            }
        };
 
        $scan($this->_viewsDir);
        return  time() - $filemtime < 300;/* 5 min */
    }
 
    /**
     * Transforms relative path to full path.
     * Unlike native `realpath()` works correctly with the unix symlinks,
     * also this function doesn't check path existence.
     * @param string $path
     * @return string
     */
    protected static function realpath($path)
    {
        $path = trim($path, '/');
        $result = [];
        foreach (explode('/', $path) as $dir) {
            if ($dir === '..') {
                if (!empty($result)) {
                    array_pop($result);
                }
            } elseif (!empty($dir) && $dir !== '.') {
                $result[] = $dir;
            }
        }
        return '/' . implode('/', $result);
    }
 
    /**
     * Checks whether view exists on registered extensions and render it
     *
     * @param array $engines
     * @param string $viewPath
     * @param boolean $silence
     * @param boolean $mustClean
     * @param \Phalcon\Cache\BackendInterface $cache
     * @return null|void
     * @throws \Exception
     */
    protected function _engineRender($engines, $viewPath, $silence, $mustClean, \Phalcon\Cache\BackendInterface $cache = null)
    {
        $template = ltrim($viewPath, '/');
 
        if (isset($template{0}) && $template{0} === '@') { // alias
            $aliases = $this->_aliases;
            list($alias, $template) = explode('/', $template, 2);
            $alias = substr($alias, 1);
            if (isset($aliases[$alias])) {
                foreach ($engines as $ext => $engine) {
                    $viewEnginePath = preg_replace('#/{2,}#', '/', $aliases[$alias] . '/' . $template);
                    if ($this->templateExists($viewEnginePath, $ext)) {
                        $engine->render($viewEnginePath . $ext, $this->_viewParams, $mustClean);
                        return;
                    }
                }
            }
            throw new \Exception(sprintf('View \'%s\' was not found in the views directory', $template));
        }
 
        foreach (array_merge([$this->_viewsDir], $this->_fallbackViewPaths) as $path) {
            if ($this->_cacheRender($viewPath, $cache)) {
                return null;
            }
//            if (strlen($viewPath) >= ($pathLen = strlen($path))) {
//                if (substr($viewPath, 0, $pathLen) == $path) {
//                    $template = ltrim(substr($template, $pathLen-1), '/');
//                }
//            }
            $viewEnginePath = preg_replace('#/{2,}#', '/', $path . '/' . $template);
            foreach ($engines as $ext => $engine) {
                if ($this->templateExists($viewEnginePath, $ext)) {
                    $engine->render($viewEnginePath . $ext, $this->_viewParams, $mustClean);
                    return;
                }
            }
        }
 
        parent::_engineRender($engines, $viewPath, true, $mustClean, $cache);
    }
 
    /**
     * Render from cache
     *
     * @param string $viewPath
     * @param \Phalcon\Cache\BackendInterface $cache
     * @return bool
     */
    protected function _cacheRender($viewPath, \Phalcon\Cache\BackendInterface $cache = null)
    {
        if (is_object($cache)) {
            if ($this->_renderLevel >= $this->_cacheLevel) {
                if ($cache->isStarted() == false) {
                    $key = null;
                    $lifetime = null;
 
                    if (is_array($this->_options)) {
                        if (isset($viewOptions['cache']['key'])) {
                            $key = isset($viewOptions['cache']['key']);
                        }
                        if (isset($viewOptions['cache']['lifetime'])) {
                            $lifetime = isset($viewOptions['cache']['lifetime']);
                        }
                    }
 
                    if ($key === null) {
                        $key = md5($viewPath);
                    }
 
                    $cachedView = $cache->start($key, $lifetime);
                    if ($cachedView !== null) {
                        $this->_content = $cachedView;
                        return true;
                    }
                }
 
                if (!$cache->isFresh()) {
                    return true;
                }
            }
        }
        return false;
    }
 
    /**
     * Checks the template existence
     *
     * @param string $templatePath
     * @param array|string|false|null $extensions
     * @return bool
     */
    public function templateExists($templatePath, $extensions = null)
    {
        $templatePath = preg_replace('#/{2,}#', '/', $templatePath);
 
        /** @var \Phalcon\Cache\BackendInterface $cache */
        $cache = Di::getDefault()->get('cache');
        $key = '___tt' . md5($templatePath);
        $data = $cache->get($key);
        if ($data !== null) {
            return $data;
        }
 
        if ($extensions === null) {
            $extensions = array_keys($this->getRegisteredEngines());
        }
 
        if ($extensions) {
            if (!is_array($extensions)) {
                $extensions = [$extensions];
            }
            foreach ($extensions as $ext) {
                if (file_exists("$templatePath$ext")) {
                    $cache->save($key, true);
                    return true;
                }
            }
        } else {
            if (file_exists($templatePath)) {
                $cache->save($key, true);
                return true;
            }
        }
 
        $cache->save($key, false);
        return false;
    }
 
    /**
     * Pick view and return string content
     * @param string $renderView
     * @return string
     */
    public function getPick($renderView)
    {
        $this->pick($renderView);
        ob_start();
        $this->render('', '', null);
        return ob_get_clean();
    }
}
#1Socialveo\Core\library\view\View->templateExists(/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/views/default/partials/banners/adsense, .volt)
/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/view/View.php (285)
<?php
/**
 * View.php
 * @author      {@link https://socialveo.com Socialveo}
 * @copyright   Copyright (C) 2017 Socialveo Sagl - All Rights Reserved
 * @license     Proprietary Software Socialveo (C) 2017, Socialveo Sagl {@link https://socialveo.com/legal Socialveo Legal Policies}
 * @package     Socialveo\Core\library\view
 * @category    Socialveo\Core\library\view
 * @since       1.0
 * @version     1.0
 */
 
namespace Socialveo\Core\library\view;
 
use Phalcon\Di;
use Phalcon\Di\InjectionAwareInterface;
use Phalcon\Mvc\View as BaseView;
use Phalcon\Mvc\View\EngineInterface;
 
/**
 * Class View
 * @package Socialveo\Core\library\view
 */
class View extends BaseView
{
    /**
     * Path aliases
     * @var array
     */
    protected $_aliases = [];
 
    /**
     * Fallback view paths
     * @var array
     */
    protected $_fallbackViewPaths = [];
 
    /**
     * The array with registered events
     * @var array
     */
    private $_registerEvents = [];
 
    /**
     * @var string|null
     */
    protected $_moduleView = null;
 
    /**
     * @var bool
     */
    protected $_origin = true;
 
    /**
     * @var array
     */
    protected $_originFallbackViewPaths = [];
 
    /**
     * Default domain
     * @var string
     */
    protected $_defaultDomain;
 
 
    /**
     * @return string
     */
    public function getOriginViewsDir()
    {
        if (!empty($this->_moduleView)) {
            return $this->_moduleView;
        }
        return $this->_moduleView = $this->_viewsDir;
    }
 
    /**
     * @return bool
     */
    public function isOrigin()
    {
        return $this->_origin;
    }
 
    /**
     * Set default domain
     * @param string $domain
     */
    public function setDefaultDomain($domain)
    {
        $this->_defaultDomain = $domain;
    }
 
    /**
     * Get default domain
     * @return string
     */
    public function getDefaultDomain()
    {
        return $this->_defaultDomain;
    }
 
    /**
     * Attach callback for register engine event
     * @param string $engine
     * @param callable $callback
     */
    public function onRegisterEngine($engine, $callback)
    {
        $engine = isset($engine{0}) && $engine{0} === '.' ? substr($engine, 1) : $engine;
        if (!isset($this->_registerEvents[$engine])) {
            $this->_registerEvents[$engine] = [];
        }
        $this->_registerEvents[$engine][] = $callback;
    }
 
    /**
     * @param string $name
     * @param EngineInterface $engine
     * @param InjectionAwareInterface $compiler
     */
    public function runRegisterEngineEvent($name, EngineInterface $engine, InjectionAwareInterface $compiler)
    {
        $name = isset($name{0}) && $name{0} === '.' ? substr($name, 1) : $name;
        if (isset($this->_registerEvents[$name])) {
            foreach ($this->_registerEvents[$name] as $callback) {
                call_user_func_array($callback, [$engine, $compiler]);
            }
        }
    }
 
    /**
     * Add path alias.
     * Example:
     * <code>
     *   $view->addPathAlias('module', '/path/to/module/views');
     * </code>
     * @param string $alias
     * @param string $path
     */
    public function addPathAlias($alias, $path)
    {
        $this->_aliases[$alias] = self::realpath($path);
    }
 
    /**
     * Set path aliases.
     * Example:
     * <code>
     *   $view->setPathAliases(['module' => '/path/to/module/views']);
     * </code>
     * @param array $aliases
     */
    public function setPathAliases(array $aliases)
    {
        foreach($aliases as $alias => $path) {
            $this->addPathAlias($alias, $path);
        }
    }
 
    /**
     * Get path aliases
     * @return array
     */
    public function getPathAliases()
    {
        return $this->_aliases;
    }
 
    /**
     * Add fallback path
     * @param string $path
     */
    public function addFallbackPath($path)
    {
        $this->_fallbackViewPaths[] = self::realpath($path);
    }
 
    /**
     * Get fallback paths
     * @return array
     */
    public function getFallbackPaths()
    {
        return $this->_fallbackViewPaths;
    }
 
    /**
     * Set fallback paths
     * @param array $paths
     * @return array
     */
    public function setFallbackPaths($paths)
    {
        return $this->_fallbackViewPaths = $paths;
    }
 
    /**
     * Get filemtime of all views of theme for recompile
     * @return bool
     */
    public function detectNeedRecompile()
    {
        $filemtime = 0;
        $scan = function ($path) use (&$filemtime, &$scan) {
            foreach (array_diff(scandir($path), ['.', '..']) as $name) {
                $filename = "$path/$name";
                if (is_dir($filename)) {
                    $scan($filename);
                } else {
                    $filemtime = max($filemtime, intval(filemtime($filename)));
                }
            }
        };
 
        $scan($this->_viewsDir);
        return  time() - $filemtime < 300;/* 5 min */
    }
 
    /**
     * Transforms relative path to full path.
     * Unlike native `realpath()` works correctly with the unix symlinks,
     * also this function doesn't check path existence.
     * @param string $path
     * @return string
     */
    protected static function realpath($path)
    {
        $path = trim($path, '/');
        $result = [];
        foreach (explode('/', $path) as $dir) {
            if ($dir === '..') {
                if (!empty($result)) {
                    array_pop($result);
                }
            } elseif (!empty($dir) && $dir !== '.') {
                $result[] = $dir;
            }
        }
        return '/' . implode('/', $result);
    }
 
    /**
     * Checks whether view exists on registered extensions and render it
     *
     * @param array $engines
     * @param string $viewPath
     * @param boolean $silence
     * @param boolean $mustClean
     * @param \Phalcon\Cache\BackendInterface $cache
     * @return null|void
     * @throws \Exception
     */
    protected function _engineRender($engines, $viewPath, $silence, $mustClean, \Phalcon\Cache\BackendInterface $cache = null)
    {
        $template = ltrim($viewPath, '/');
 
        if (isset($template{0}) && $template{0} === '@') { // alias
            $aliases = $this->_aliases;
            list($alias, $template) = explode('/', $template, 2);
            $alias = substr($alias, 1);
            if (isset($aliases[$alias])) {
                foreach ($engines as $ext => $engine) {
                    $viewEnginePath = preg_replace('#/{2,}#', '/', $aliases[$alias] . '/' . $template);
                    if ($this->templateExists($viewEnginePath, $ext)) {
                        $engine->render($viewEnginePath . $ext, $this->_viewParams, $mustClean);
                        return;
                    }
                }
            }
            throw new \Exception(sprintf('View \'%s\' was not found in the views directory', $template));
        }
 
        foreach (array_merge([$this->_viewsDir], $this->_fallbackViewPaths) as $path) {
            if ($this->_cacheRender($viewPath, $cache)) {
                return null;
            }
//            if (strlen($viewPath) >= ($pathLen = strlen($path))) {
//                if (substr($viewPath, 0, $pathLen) == $path) {
//                    $template = ltrim(substr($template, $pathLen-1), '/');
//                }
//            }
            $viewEnginePath = preg_replace('#/{2,}#', '/', $path . '/' . $template);
            foreach ($engines as $ext => $engine) {
                if ($this->templateExists($viewEnginePath, $ext)) {
                    $engine->render($viewEnginePath . $ext, $this->_viewParams, $mustClean);
                    return;
                }
            }
        }
 
        parent::_engineRender($engines, $viewPath, true, $mustClean, $cache);
    }
 
    /**
     * Render from cache
     *
     * @param string $viewPath
     * @param \Phalcon\Cache\BackendInterface $cache
     * @return bool
     */
    protected function _cacheRender($viewPath, \Phalcon\Cache\BackendInterface $cache = null)
    {
        if (is_object($cache)) {
            if ($this->_renderLevel >= $this->_cacheLevel) {
                if ($cache->isStarted() == false) {
                    $key = null;
                    $lifetime = null;
 
                    if (is_array($this->_options)) {
                        if (isset($viewOptions['cache']['key'])) {
                            $key = isset($viewOptions['cache']['key']);
                        }
                        if (isset($viewOptions['cache']['lifetime'])) {
                            $lifetime = isset($viewOptions['cache']['lifetime']);
                        }
                    }
 
                    if ($key === null) {
                        $key = md5($viewPath);
                    }
 
                    $cachedView = $cache->start($key, $lifetime);
                    if ($cachedView !== null) {
                        $this->_content = $cachedView;
                        return true;
                    }
                }
 
                if (!$cache->isFresh()) {
                    return true;
                }
            }
        }
        return false;
    }
 
    /**
     * Checks the template existence
     *
     * @param string $templatePath
     * @param array|string|false|null $extensions
     * @return bool
     */
    public function templateExists($templatePath, $extensions = null)
    {
        $templatePath = preg_replace('#/{2,}#', '/', $templatePath);
 
        /** @var \Phalcon\Cache\BackendInterface $cache */
        $cache = Di::getDefault()->get('cache');
        $key = '___tt' . md5($templatePath);
        $data = $cache->get($key);
        if ($data !== null) {
            return $data;
        }
 
        if ($extensions === null) {
            $extensions = array_keys($this->getRegisteredEngines());
        }
 
        if ($extensions) {
            if (!is_array($extensions)) {
                $extensions = [$extensions];
            }
            foreach ($extensions as $ext) {
                if (file_exists("$templatePath$ext")) {
                    $cache->save($key, true);
                    return true;
                }
            }
        } else {
            if (file_exists($templatePath)) {
                $cache->save($key, true);
                return true;
            }
        }
 
        $cache->save($key, false);
        return false;
    }
 
    /**
     * Pick view and return string content
     * @param string $renderView
     * @return string
     */
    public function getPick($renderView)
    {
        $this->pick($renderView);
        ob_start();
        $this->render('', '', null);
        return ob_get_clean();
    }
}
#2Socialveo\Core\library\view\View->_engineRender(Array([.volt] => Object(Socialveo\Core\library\view\Volt)), partials/banners/adsense, false, false)
#3Phalcon\Mvc\View->partial(banners/adsense, Array([slot] => (empty string)))
#4Phalcon\Mvc\View\Engine->partial(banners/adsense, Array([slot] => (empty string)))
/var/www/bepuppy.com/socialveo/bepuppy/cache/%%var%%www%%bepuppy.com%%socialveo%%bepuppy%%frontend%%views%%bepuppy%%users%%view.volt.php (2680)
<!DOCTYPE html>
<!-- # @bepuppy/layouts/user-profile.volt # { -->
<!-- # @bepuppy/users/view.volt # { -->
<html itemscope itemtype="http://schema.org/Person">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>
    <?php if ($profileUser && $profileUser->id == $this->user->id) { ?><?php echo $this->escaper->escapeHtml($t->_('My profile')); ?>
    <?php } elseif ($this->user->getUser() && $this->user->getUser()->getIsProfessional()) { ?><?php echo $this->escaper->escapeHtml($profileUser->getFullName()); ?> |
        <?php foreach ($dataWorkWithPets['category'] as $category_meta) { ?> <?php echo $this->escaper->escapeHtml($category_meta); ?>, <?php } ?> | BEPUPPY
    <?php } else { ?>
        <?php echo $this->escaper->escapeHtml($t->query('%userFullName% | BEPUPPY', 'bepuppy', array('userFullName' => $profileUser->getFullName()))); ?>
    <?php } ?>
</title>
  <meta name="description" content="
    <?php if ($this->user->getUser() && $this->user->getUser()->getIsProfessional()) { ?>
        <?php foreach ($dataWorkWithPets['category'] as $category_meta) { ?> <?php echo $category_meta; ?>, <?php } ?> <?php echo $this->escaper->escapeHtml($profileUser->location_city); ?>. <?php echo $this->escaper->escapeHtml($profileUser->getFullName()); ?>: <?php echo mb_strlen($this->escaper->escapeHtml($profileUser->about)) < 80 ? mb_substr($this->escaper->escapeHtml($profileUser->about),0,80) : mb_substr($this->escaper->escapeHtml($profileUser->about),0,80) .'...'; ?>
    <?php } else { ?><?php echo $t->query('Connect with %userFullName%: %userAbout%', array('userFullName' => $this->escaper->escapeHtml($profileUser->getFullName()), 'userAbout' => mb_strlen($this->escaper->escapeHtml($profileUser->about)) < 110 ? mb_substr($this->escaper->escapeHtml($profileUser->about),0,110) : mb_substr($this->escaper->escapeHtml($profileUser->about),0,110) .'...')); ?>
    <?php } ?>
" />
  
    <?php if ($profileUser) { ?>
        <?php if ($this->user->getUser() && $this->user->getUser()->getIsProfessional()) { ?>
 
            <?php $_categories = ''; ?>
            <?php $v125968444111487844081iterator = $dataWorkWithPets['category']; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $category_meta) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
                <?php $_categories = $_categories . $category_meta; ?>
                <?php if (!$v125968444111487844081loop->last) { ?>
                    <?php $_categories = $_categories . ', '; ?>
                <?php } ?>
            <?php $v125968444111487844081incr++; } ?>
 
            <?php $_title = $profileUser->getFullName() . ' • ' . $_categories . $this->escaper->escapeHtml(' | BEPUPPY'); ?>
            <?php $_description = $_categories . ', ' . $profileUser->location_city . '. ' . $profileUser->getFullName() . ': ' . $this->escaper->escapeHtml(mb_strlen($profileUser->about) < 80 ? mb_substr($profileUser->about,0,80) : mb_substr($profileUser->about,0,80) .'...'); ?>
 
            <!-- Google+ -->
            <meta itemprop="name" content="<?php echo $_title; ?>">
            <meta itemprop="description" content="<?php echo $_description; ?>">
            <meta itemprop="image" content="<?php echo $profileUser->getAvatar(); ?>">
 
            <!-- Twitter -->
            <meta name="twitter:card" content="summary_large_image">
            <?php if ($this->config->twitter->username) { ?><meta name="twitter:site" content="@<?php echo $this->config->twitter->username; ?>"><?php } ?>
            <meta name="twitter:title" content="<?php echo $_title; ?>">
            <meta name="twitter:description" content="<?php echo $_description; ?>">
            <meta name="twitter:image:src" content="<?php echo $profileUser->getAvatar(); ?>">
 
            <!-- Facebook -->
            <meta property="fb:app_id" content="1870150839913437" />
            <meta property="og:title" content="<?php echo $_title; ?>" />
            <meta property="og:type" content="profile" />
            <meta property="og:url" content="<?php echo $profileUser->viewUrl; ?>?language=<?php echo $language; ?>" />
            <meta property="og:image" content="<?php echo $profileUser->getAvatar(); ?>" />
            <meta property="og:description" content="<?php echo $_description; ?>" />
            <meta property="og:site_name" content="<?php echo $this->config->api->communityName; ?>" />
 
        <?php } else { ?>
 
            <?php $_title = $this->escaper->escapeHtml($t->query('%userFullName% | BEPUPPY', 'bepuppy', array('userFullName' => $profileUser->getFullName()))); ?>
            <?php $_description = $this->escaper->escapeHtml($t->query('Connect with %userFullName%: %userAbout%', array('userFullName' => $profileUser->getFullName(), 'userAbout' => mb_strlen($profileUser->about) < 110 ? mb_substr($profileUser->about,0,110) : mb_substr($profileUser->about,0,110) .'...'))); ?>
 
            <!-- Google+ -->
            <meta itemprop="name" content="<?php echo $_title; ?>">
            <meta itemprop="description" content="<?php echo $_description; ?>">
            <meta itemprop="image" content="<?php echo $profileUser->getAvatar(); ?>">
 
            <!-- Twitter -->
            <meta name="twitter:card" content="summary_large_image">
            <?php if ($this->config->twitter->username) { ?><meta name="twitter:site" content="@<?php echo $this->config->twitter->username; ?>"><?php } ?>
            <meta name="twitter:title" content="<?php echo $_title; ?>">
            <meta name="twitter:description" content="<?php echo $_description; ?>">
            <meta name="twitter:image:src" content="<?php echo $profileUser->getAvatar(); ?>">
 
            <!-- Facebook -->
            <meta property="fb:app_id" content="1870150839913437" />
            <meta property="og:title" content="<?php echo $_title; ?>" />
            <meta property="og:type" content="profile" />
            <meta property="og:url" content="<?php echo $profileUser->viewUrl; ?>?language=<?php echo $language; ?>" />
            <meta property="og:image" content="<?php echo $profileUser->getAvatar(); ?>" />
            <meta property="og:description" content="<?php echo $_description; ?>" />
            <meta property="og:site_name" content="<?php echo $this->config->api->communityName; ?>" />
        <?php } ?>
    <?php } ?>
 
  
    
<!-- # @bepuppy/includes/favicon.volt # { -->
<link rel="apple-touch-icon" sizes="57x57" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/apple-icon-57x57.png'); ?>">
<link rel="apple-touch-icon" sizes="57x57" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/apple-icon-57x57.png'); ?>">
<link rel="apple-touch-icon" sizes="60x60" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/apple-icon-60x60.png'); ?>">
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/apple-icon-72x72.png'); ?>">
<link rel="apple-touch-icon" sizes="76x76" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/apple-icon-76x76.png'); ?>">
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/apple-icon-114x114.png'); ?>">
<link rel="apple-touch-icon" sizes="120x120" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/apple-icon-120x120.png'); ?>">
<link rel="apple-touch-icon" sizes="144x144" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/apple-icon-144x144.png'); ?>">
<link rel="apple-touch-icon" sizes="152x152" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/apple-icon-152x152.png'); ?>">
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/apple-icon-180x180.png'); ?>">
<link rel="icon" type="image/png" sizes="192x192"  href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/android-icon-192x192.png'); ?>">
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/favicon-32x32.png'); ?>">
<link rel="icon" type="image/png" sizes="96x96" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/favicon-96x96.png'); ?>">
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo $this->url->getStatic('bepuppy/assets/favicon/favicon-16x16.png'); ?>">
<!-- } # @bepuppy/includes/favicon.volt # -->
  
  
    
<!-- # @frontend/includes/css.volt # { -->
<?php echo $this->assets->outputCss(); ?>
<!-- } # @frontend/includes/css.volt # -->
  
  
<!-- # @bepuppy/includes/analytics.volt # { -->
<?php if (($this->config->analytics->type == 'piwik')) { ?>
 
    <!-- Piwik -->
    <script type="text/javascript">
        var _paq = _paq || [];
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
 
        (function() {
            var u="<?php echo $this->config->analytics->piwik->site; ?>";
            _paq.push(['setTrackerUrl', u+'piwik.php']);
            _paq.push(['setSiteId', <?php echo $this->config->analytics->piwik->site_id; ?>]);
            var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
            g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
        })();
    </script>
    <noscript><p><img src="<?php echo $this->config->analytics->piwik->site; ?>piwik.php?idsite=<?php echo $this->config->analytics->piwik->site_id; ?>" style="border:0;" alt="" /></p></noscript>
    <!-- End Piwik Code -->
 
<?php } elseif (($this->config->analytics->type == 'google')) { ?>
 
    <!-- Google Analytics -->
    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', '<?php echo $this->config->analytics->google->tracking_id; ?>']);
        _gaq.push(['_trackPageview']);
 
        (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    </script>
    <!-- End Google Analytics Code -->
 
<?php } elseif (($this->config->analytics->type == 'custom')) { ?>
 
    <?php echo $this->config->analytics->custom; ?>
 
<?php } ?>
 
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
    (adsbygoogle = window.adsbygoogle || []).push({
        google_ad_client: "ca-pub-4879723270326562",
        enable_page_level_ads: true
    });
</script>
<!-- } # @bepuppy/includes/analytics.volt # -->
</head>
<body class="layout-user-profile user-type-<?php echo ($this->user->getIsGuest() ? 'guest' : 'logged'); ?> module-<?php echo $this->router->getModuleName(); ?> controller-<?php echo $this->router->getControllerName(); ?> action-<?php echo $this->router->getActionName(); ?> ">
  <div id="wrapper">
    
<!-- # @frontend/includes/notice-verify-account.volt # { -->
<?php if (isset($user) && $this->user->getUser()->getIsEmailVerify() == false) { ?>
<div id="notice-verify-account">
    <p><?php echo $t->query('Go to %userEmail% to complete the signup process.', array('userEmail' => $this->user->getUser()->email)); ?> <a href="<?php echo $this->url->get(array('for' => 'userConfirmEmailRepeat')); ?>"><?php echo $t->_('Re-send email'); ?></a> <?php echo $t->_('or'); ?>  <a href="<?php echo $this->url->get(array('for' => 'userMySettings')); ?>/#formChangeEmail"><?php echo $t->_('Change email'); ?></a></p>
</div>
<?php } ?>
<!-- } # @frontend/includes/notice-verify-account.volt # -->
    
<!-- # @frontend/includes/navbar-holder.volt # { -->
<div class="navbar-holder">
    <div class="w2 clearfix">
        <nav class="navbar-default scrollable-menu" data-dropdown="menu-burger-dropdown">
            <?php if (isset($user)) { ?>
            <a href="#" class="menu-icon" id="menuMobileButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span></span></a>
            <?php } else { ?>
                <a href="#" class="menu-icon menu-open"><span></span></a>
            <?php } ?>
            
<!-- # @bepuppy/includes/navbar-brand.volt # { -->
<a class="navbar-brand" href="<?php echo $this->url->get('/'); ?>">
  <img class="white-logo" src="<?php echo $this->url->getStatic('bepuppy/assets/images/logo.png'); ?>" alt="BEPUPPY">
</a>
<!-- } # @bepuppy/includes/navbar-brand.volt # -->
            <?php if (isset($user)) { ?>
                
<!-- # @frontend/includes/search-form.volt # { -->
<?php echo \Phalcon\DI::getDefault()->get('widgets')->render('search', []); ?>
<!-- } # @frontend/includes/search-form.volt # -->
                
<!-- # @frontend/includes/user-nav.volt # { -->
<div class="nav-elements-holder" id="user-nav">
  <ul class="nav-elements list-inline user-nav">
    
<!-- # @frontend/includes/notifications-message.volt # { -->
<?php echo \Phalcon\DI::getDefault()->get('widgets')->render('notificationsMessages', []); ?>
<!-- } # @frontend/includes/notifications-message.volt # -->
    
<!-- # @frontend/includes/notifications-generic.volt # { -->
<?php echo \Phalcon\DI::getDefault()->get('widgets')->render('notificationsGeneric', []); ?>
<!-- } # @frontend/includes/notifications-generic.volt # -->
    
<!-- # @frontend/includes/notifications-connection.volt # { -->
<?php echo \Phalcon\DI::getDefault()->get('widgets')->render('notificationsConnection', []); ?>
<!-- } # @frontend/includes/notifications-connection.volt # -->
    <li class="menu-burger dropdown">
      <a href="#" class="icon-menu-burger dropdown-toggle" id="menuDesktopButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <em class="fa fa-bars"></em>
      </a>
      <div id="menu-burger-dropdown" class="dropdown-menu" aria-labelledby="menuDesktopButton menuMobileButton">
        <div class="scrollable">
          
<!-- # @bepuppy/includes/main-nav.volt # { -->
<?php if (isset($user)) { ?>
<div class="main-nav bepuppy-main-nav">
  <div class="network-box pet-links">
    <div class="date-box">
      <span class="value"><?php echo $t->_('Pets'); ?></span>
    </div>
    <ul class="list-unstyled network-list">
      <li>
        <a href="#" data-toggle="modal" data-target="#modalCreatePet"><?php echo $t->_('Register a pet'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'userPets', 'uuid' => $profileUser->uuid)); ?>"><?php echo $t->_('My pets'); ?></a>
      </li>
    </ul>
  </div>
  <div class="network-box group-links">
    <div class="date-box">
      <span class="value"><?php echo $t->_('Groups'); ?></span>
    </div>
    <ul class="list-unstyled network-list">
      <li>
        <a href="#" data-toggle="modal" data-target="#modalCreateGroup"><?php echo $t->_('Create group'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'networkGroupAdmin')); ?>"><?php echo $t->_('My groups'); ?></a>
      </li>
      <li class="visible-xs">
        <a href="<?php echo $this->url->get('/networks'); ?>"><?php echo $t->_('Find groups'); ?></a>
      </li>
    </ul>
  </div>
  <div class="network-box noprofit-links">
    <div class="date-box">
      <span class="value"><?php echo $t->_('Nonprofits'); ?></span>
    </div>
    <ul class="list-unstyled network-list">
      <li>
        <a href="#" data-toggle="modal" data-target="#modalCreateNoProfit"><?php echo $t->_('Register a nonprofit'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'networkNoProfitAdmin')); ?>"><?php echo $t->_('My nonprofits'); ?></a>
      </li>
    </ul>
  </div>
  <div class="network-box business-links">
    <div class="date-box">
      <span class="value"><?php echo $t->_('Business'); ?></span>
    </div>
    <ul class="list-unstyled network-list">
      <li>
        <a href="#" data-toggle="modal" data-target="#modalCreateBusinessNetwork"><?php echo $t->_('Register a business'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'networkBusinessAdmin')); ?>"><?php echo $t->_('My business'); ?></a>
      </li>
    </ul>
  </div>
 
  <div class="network-box discovery-box visible-xs">
    <div class="date-box">
      <span class="value"><?php echo $t->_('Discovery'); ?></span>
    </div>
    <ul class="list-unstyled network-list">
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'networkPetsSearch')); ?>"><?php echo $t->_('Find pets in adoption'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'networkNoProfitSearch')); ?>"><?php echo $t->_('Find nonprofits'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'usersProfessionalSearch')); ?>"><?php echo $t->_('Find professionals'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'networkBusinessSearch')); ?>"><?php echo $t->_('Find locations and services'); ?></a>
      </li>
    </ul>
  </div>
 
  <div class="network-box emergencies-box visible-xs">
    <div class="date-box">
      <span class="value"><?php echo $t->_('Emergencies'); ?></span>
    </div>
    <ul class="list-unstyled network-list">
      <li>
        <a href="#" data-toggle="modal" data-target="#modalNotificationMissedPet"><?php echo $t->_('Report pet as lost'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'userNotificationsMissedPet')); ?>"><?php echo $t->_('My lost pets'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'notificationsMissedPet')); ?>"><?php echo $t->_('Pets lost near me'); ?></a>
      </li>
      <li>
        <a href="#" data-toggle="modal" data-target="#modalNotificationAlert"><?php echo $t->_('Send alerts'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'userNotificationsAlert')); ?>"><?php echo $t->_('My alerts'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'notificationsAlert')); ?>"><?php echo $t->_('Alerts near me'); ?></a>
      </li>
    </ul>
  </div>
 
 
  <div class="network-box account-links">
    <div class="date-box">
      <span class="value"><?php echo $t->_('Account'); ?></span>
    </div>
    <ul class="list-unstyled network-list">
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'userMyProfile')); ?>"><?php echo $t->_('My Profile'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'messages')); ?>"><?php echo $t->_('Private Messages'); ?></a>
      </li>
      <?php if ($this->user->getUser()->getIsPaidProfessional() == false) { ?>
      <li>
        <a href="#modalWorkWithPets" data-toggle="modal" data-target="#modalWorkWithPets"><?php echo $t->_('Be professional'); ?></a>
      </li>
      <?php } else { ?>
        <li>
          <a href="#modalWorkWithPets" data-toggle="modal" data-target="#modalWorkWithPets"><?php echo $t->_('Professional Settings'); ?></a>
        </li>
      <?php } ?>
      <li class="visible-xs">
        <a href="<?php echo $this->url->get('/users'); ?>"><?php echo $t->_('Find friends'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'userMySettings')); ?>"><?php echo $t->_('Settings'); ?></a>
      </li>
      <li>
        <a href="<?php echo $this->url->get(array('for' => 'logout')); ?>"><?php echo $t->_('Logout'); ?></a>
      </li>
    </ul>
  </div>
 
</div>
<?php } ?>
<!-- } # @bepuppy/includes/main-nav.volt # -->
        </div>
      </div>
    </li>
    <li class="search visible-xs-inline-block">
      <a href="#" class="search-open"><em class="im icon-search"></em></a>
    </li>
    <li class="last visible-xs-inline-block"><a href="#" class="menu-open"><em></em></a></li>
  </ul>
  <ul class="item-nav list-unstyled">
    <li class="first"><a href="#" class="menu-open"><em></em></a></li>
    <li><a class="open1" href="#"><?php echo $t->_('My account'); ?></a></li>
    <li><a class="open2" href="#"><?php echo $t->_('Online users'); ?></a></li>
  </ul>
</div>
<!-- } # @frontend/includes/user-nav.volt # -->
            <?php } else { ?>
                
<!-- # @frontend/includes/nav-guest.volt # { -->
<span id="nav-guest">
    <a class="btn btn-primary navbar-btn hidden-xs" href="<?php echo $this->url->get(array('for' => 'login')); ?>"><?php echo $t->_('Sign in'); ?></a>
    <a class="btn btn-success navbar-btn" href="<?php echo $this->url->get(array('for' => 'registration')); ?>"><?php echo $t->_('Sign up'); ?></a>
</span>
<!-- } # @frontend/includes/nav-guest.volt # -->
            <?php } ?>
        </nav>
    </div>
</div><!-- //.navbar-holder -->
<!-- } # @frontend/includes/navbar-holder.volt # -->
    
    <div class="w1 clearfix">
      <div id="content">
        <div class="content-holder">
          <main role="main" id="main" class="clearfix">
            <div class="main-content">
              <div class="main-holder">
                
    
<!-- # @frontend/includes/user-cover.volt # { -->
<?php if (($this->user->getUser() && $profileUser->id == $this->user->id) || ($network && $network->getCover())) { ?>
  <?php if (!isset($userCoverClassName)) { ?>
    <?php $userCoverClassName = 'visual-box hidden-xs'; ?>
  <?php } ?>
  <?php if (!isset($userCoverAttrId)) { ?>
    <?php $userCoverAttrId = 'user-cover'; ?>
  <?php } ?>
  <div class="<?php echo $userCoverClassName; ?> bg-stretch" id="<?php echo $userCoverAttrId; ?>">
    <?php if ($network->getCover()) { ?>
      <img src="<?php echo $network->getCover(); ?>" alt="<?php echo $this->escaper->escapeHtml($t->query('%userFullName%\'s cover', array('userFullName' => $profileUser->getFullName()))); ?>">
    <?php } ?>
    <?php if ($profileUser->id == $this->user->id) { ?>
      <?php echo $this->tag->form(array($this->url->get(array('for' => 'networkChangeCover', 'uuid' => $this->user->network_uuid)), 'method' => 'post', 'enctype' => 'multipart/form-data', 'data-pjax' => 'true', 'data-pjax-id' => '#' . $userCoverAttrId)); ?>
      <?php echo $formNetworkChangeCover->render('cover'); ?>
      <a href="#" data-click="form-changeCover-file" class="btn btn-sm text-uppercase btn-white"><?php echo $t->_('change photo'); ?></a>
      <?php echo $this->tag->endForm(); ?>
    <?php } ?>
  </div>
<?php } ?>
<!-- } # @frontend/includes/user-cover.volt # -->
    <div class="main-wrap page-block">
        <div class="page-topic">
            <div class="row">
                <?php echo $this->flashSession->output(); ?>
 
                <div class="col-lg-6 col-md-6 col-sm-6 hidden-xs">
                    <?php if (!$profileUser) { ?>
                        <h1><?php echo $t->_('Posts'); ?></h1>
                    <?php } elseif ($profileUser->id == $this->user->id) { ?>
                        <h1><?php echo $t->_('My posts'); ?></h1>
                    <?php } else { ?>
                        <h1><?php echo $t->_('%userFullName%\'s posts', array('userFullName' => $this->escaper->escapeHtml($profileUser->getFullName()))); ?></h1>
                    <?php } ?>
                </div>
 
                <?php if ($posts) { ?>
                    <div class="col-md-6 col-md-6 col-sm-6 hidden-xs">
                        <span class="fake-select gray">
                            <select data-link="true">
                                <option value="<?php echo $profileUser->viewUrl; ?>?column=1" <?php if ($column == '1') { ?>selected<?php } ?>><?php echo $t->_('1 column'); ?></option>
                                <option value="<?php echo $profileUser->viewUrl; ?>?column=2" <?php if ($column == '2') { ?>selected<?php } ?>><?php echo $t->_('2 columns'); ?></option>
                            </select>
                        </span>
                    </div>
                <?php } ?>
            </div>
        </div>
 
        
<!-- # @frontend/includes/posts/post-form.volt # { -->
<?php if ($this->user->getUser() && $profileUser && $network && $network->getIsAllowedPost()) { ?>
    <?php if ($profileUser->id == $this->user->id || $network->userPostHasAccess($this->user->getUser())) { ?>
        <div class="add-post clearfix" id="add-post-box" data-uuid="<?php echo $postNetworkUuid; ?>">
            <?php if (!isset($createPostFormAction)) { ?>
                <?php $createPostFormAction = $this->url->get(array('for' => 'postCreate', 'uuid' => $postNetworkUuid)); ?>
            <?php } ?>
            <?php echo $this->tag->form(array($createPostFormAction, 'method' => 'post', 'enctype' => 'multipart/form-data', 'data-pjax' => 'true', 'data-pjax-type' => 'json', 'data-form-share-post' => 'true')); ?>
                <div class="white-wrap">
                    <div class="textarea-wrapper">
                        <textarea name="body" class="add-comment-input emojionearea-fake" data-submitonenter="false" placeholder="<?php echo $t->_('What\'s new with you?'); ?>" style="display: none;"></textarea>
                        <div class="emojionearea add-comment-input" role="application">
                            <div class="emojionearea-editor" contenteditable="true" placeholder="<?php echo $t->_('What\'s new with you?'); ?>" tabindex="0"
                                 dir="ltr" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></div>
                            <div class="emojionearea-button">
                                <div class="emojionearea-button-open"></div>
                                <div class="emojionearea-button-close"></div>
                            </div>
                            <div class="emojionearea-picker emojionearea-picker-position-bottom emojionearea-filters-position-top hidden"></div>
                        </div>
                    </div>
                    <input type="hidden" name="post_type" value="post">
                    <input type="hidden" name="embed" value="">
 
                    <div class="attachment-buttons">
                        <a href="#" data-click="form-post-photo" class="attach attach-photo pull-left"><?php echo $t->_('Photo'); ?></a>
                        <a href="#" data-click="form-post-video" class="attach attach-video pull-left"><?php echo $t->_('Video'); ?></a>
                        <a href="#" data-click="form-post-file" class="attach attach-file pull-left"><?php echo $t->_('File'); ?></a>
                    </div>
 
                    <div class="photo-preview" style="display:none"></div>
                    <div class="embed-data" style="display:none"></div>
 
                </div>
                <button class="btn btn-primary ladda-button pull-right" id="submit-post" data-style="expand-right" type="submit"><?php echo $t->_('Post'); ?></button>
 
                <br style="clear:both">
                <div>
                    <input class="file-input" id="form-post-photo" data-attachment="photo" type="file" data-file="1" name="file[]" multiple="multiple" accept=".jpg,.jpeg,.png,.bmp,.gif" style="display:none">
                    <input class="file-input" id="form-post-video" data-attachment="video" type="file" data-file="1" name="file2[]" accept=".avi,.mpeg,.mpg,.mp4,.mov,.wmv,.flv,.ogg,.ogv,.webm,.3gp" style="display:none">
                    <input class="file-input" id="form-post-file" data-attachment="file" type="file" data-file="1" name="file3[]" accept=".pdf,.csv,.doc,.docx,.xls,.xlsx,.zip,.rar" style="display:none">
                </div>
            <?php echo $this->tag->endForm(); ?>
        </div>
    <?php } ?>
<?php } ?>
 
 
<!-- # @frontend/includes/posts/post-edit.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <?php echo $this->tag->form(array($this->url->get(array('for' => 'postUpdate')), 'method' => 'post', 'data-pjax' => 'true', 'data-pjax-id' => 'update-post', 'data-pjax-type' => 'json', 'class' => 'update-post-form hidden clearfix', 'id' => 'updatePostForm')); ?>
        <div class="clearfix">
            <div class="box white-wrap">
                <div class="textarea-wrapper">
                    <textarea name="body" class="emojionearea-fake" data-submitonenter="false" placeholder="<?php echo $t->_('What\'s new with you?'); ?>" style="display: none;"></textarea>
                    <div class="emojionearea" role="application">
                        <div class="emojionearea-editor" contenteditable="true" placeholder="<?php echo $t->_('What\'s new with you?'); ?>" tabindex="0"
                             dir="ltr" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></div>
                        <div class="emojionearea-button">
                            <div class="emojionearea-button-open"></div>
                            <div class="emojionearea-button-close"></div>
                        </div>
                        <div class="emojionearea-picker emojionearea-picker-position-bottom emojionearea-filters-position-top hidden"></div>
                    </div>
                </div>
                <input type="hidden" name="uuid" value="">
                <div class="btns-right clearfix">
                    <span role="button" class="btn btn-link btn-cancel"><?php echo $t->_('Cancel'); ?></span>
                    <button class="btn btn-primary ladda-button" data-style="zoom-in" type="submit"><?php echo $t->_('Update'); ?></button>
                </div>
            </div>
        </div>
    <?php echo $this->tag->endForm(); ?>
<?php } ?>
<!-- } # @frontend/includes/posts/post-edit.volt # -->
 
<!-- # @frontend/includes/posts/post-report-form.volt # { -->
<div class="report-form hidden" id="postReportForm">
    <div class="report-form-content">
        <?php echo $this->tag->form(array($this->url->get(array('for' => 'postReport')), 'method' => 'post', 'data-pjax' => 'true', 'data-pjax-id' => 'post-report')); ?>
        <input type="hidden" name="uuid" />
            <div class="report-head"><?php echo $t->_('What\'s wrong with this post?'); ?></div>
            <div class="report-body">
                <?php $v125968444111487844081iterator = $spamOptions; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $value => $label) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
                    <p>
                        <label class="radio-box">
                            <input type="radio" name="type" value="<?php echo $value; ?>" />
                            <span><?php echo $t->_($label); ?></span>
                        </label>
                    </p>
                <?php $v125968444111487844081incr++; } ?>
            </div>
            <div class="report-footer">
                <button class="btn btn-primary btn-spin ladda-button" data-style="zoom-in" type="submit" disabled><?php echo $t->_('Report'); ?></button>
                <span role="button" class="btn btn-link btn-cancel"><?php echo $t->_('Cancel'); ?></span>
            </div>
        <?php echo $this->tag->endForm(); ?>
    </div>
</div>
<!-- } # @frontend/includes/posts/post-report-form.volt # -->
 
<!-- # @frontend/includes/comments/comment-edit-form.volt # { -->
<?php echo $this->tag->form(array($this->url->get(array('for' => 'updateComment')), 'method' => 'post', 'data-pjax' => 'true', 'data-pjax-id' => 'update-comment', 'data-pjax-type' => 'json', 'class' => 'write-comment clearfix update-comment-form hidden', 'id' => 'updateCommentForm')); ?>
    <div class="comment-row comment-edit-row">
        <div class="box">
            <textarea name="body" class="add-comment-input emojionearea-fake" placeholder="<?php echo $t->_('Write a comment...'); ?>" style="display: none;"></textarea>
            <div class="emojionearea add-comment-input" role="application">
                <div class="emojionearea-editor" contenteditable="true" placeholder="<?php echo $t->_('Write a comment...'); ?>" tabindex="0"
                     dir="ltr" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></div>
                <?php if ($allowedCommentAttachments) { ?>
                    <div class="comment-upload-image emojionearea-floating-button" aria-label="<?php echo $t->_('Upload Image'); ?>">
                        <div class="upload-btn">
                            <input type="file" name="qqfile" accept="<?php echo $allowedCommentAttachments; ?>"/>
                        </div>
                        <i class="<?php echo $this->config->comments->uploadFileIconClass; ?>"></i>
                    </div>
                <?php } ?>
                <div class="emojionearea-button" aria-label="<?php echo $t->_('Show emojis'); ?>">
                    <div class="emojionearea-button-open" aria-hidden=true></div>
                    <div class="emojionearea-button-close" aria-hidden=true></div>
                </div>
                <div class="emojionearea-picker emojionearea-picker-position-bottom emojionearea-filters-position-top hidden">
                </div>
            </div>
            <input type="hidden" name="uuid" value="">
            <input type="hidden" name="old-media" value="">
            <input type="hidden" name="media" value="">
            <input type="hidden" name="embed" value="">
        </div>
        <div class="box small hidden-xs">
            <button class="btn btn-primary ladda-button" data-style="zoom-in" type="submit"><?php echo $t->_('Update'); ?></button>
            <span role="button" class="btn btn-link btn-cancel"><?php echo $t->_('Cancel'); ?></span>
        </div>
    </div>
    <div class="comment-uploader-thumbnail"></div>
    <div class="box small visible-xs-block">
        <button class="btn btn-primary ladda-button" data-style="zoom-in" type="submit"><?php echo $t->_('Update'); ?></button>
        <span role="button" class="btn btn-link btn-cancel"><?php echo $t->_('Cancel'); ?></span>
    </div>
<?php echo $this->tag->endForm(); ?>
<!-- } # @frontend/includes/comments/comment-edit-form.volt # -->
 
<!-- # @frontend/includes/comments/comment-report-form.volt # { -->
<div class="report-form hidden" id="commentReportForm">
    <div class="report-form-content">
        <?php echo $this->tag->form(array($this->url->get(array('for' => 'commentReport')), 'method' => 'post', 'data-pjax' => 'true', 'data-pjax-id' => 'comment-report')); ?>
        <input type="hidden" name="uuid" />
            <div class="report-head"><?php echo $t->_('What\'s wrong with this comment?'); ?></div>
            <div class="report-body">
                <?php $v125968444111487844081iterator = $spamOptions; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $value => $label) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
                    <p>
                        <label class="radio-box">
                            <input type="radio" name="type" value="<?php echo $value; ?>" />
                            <span><?php echo $t->_($label); ?></span>
                        </label>
                    </p>
                <?php $v125968444111487844081incr++; } ?>
            </div>
            <div class="report-footer">
                <button class="btn btn-primary btn-spin ladda-button" data-style="zoom-in" type="submit" disabled><?php echo $t->_('Report'); ?></button>
                <span role="button" class="btn btn-link btn-cancel"><?php echo $t->_('Cancel'); ?></span>
            </div>
        <?php echo $this->tag->endForm(); ?>
    </div>
</div>
<!-- } # @frontend/includes/comments/comment-report-form.volt # -->
<!-- } # @frontend/includes/posts/post-form.volt # -->
        
<!-- # @frontend/includes/posts/posts.volt # { -->
<div id="pjax-container-posts">
    <?php if (!$this->user->getUser() || ($network && $network->userVisiblePostAccess($this->user->getUser()))) { ?>
        <div id="posts-container"<?php if ($column == '2') { ?> class="row" data-columns<?php } ?>>
            <?php if ($posts) { ?>
                <?php $v125968444111487844081iterator = $posts; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $date => $items) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
                    <?php if ($column == '1') { ?>
                        <?php $created = $items[0]->created; ?>
                        
<!-- # @frontend/includes/posts/post-date-box.volt # { -->
<div class="date-box infinite-scroll-item">
    <span class="value" data-datetime="<?php echo gmdate('Y-m-d\TH:i:s\Z', intval($created)); ?>">
        <?php if (isset($date)) { ?><?php echo $date; ?><?php } else { ?><?php echo (new \Jenssegers\Date\Date(intval($created)))->diffForHumans(); ?><?php } ?>
    </span>
</div>
<!-- } # @frontend/includes/posts/post-date-box.volt # -->
                    <?php } ?>
                    <?php foreach ($items as $post) { ?>
                        <?php $readMoreLinks = true; ?>
                        <?php if ((isset($user)) && ($this->isIncluded($this->user->id, $post->usersMarkedAsSpam()))) { ?>
                            <?php continue; ?>
                        <?php } ?>
                        
<!-- # @bepuppy/includes/posts/post.volt # { -->
<?php $postUserFullName = $post->user->getFullName(); ?>
 
<div class="post-box infinite-scroll-item <?php if ($post->allowed_comment == 1 && $post->userHasAccess($this->user->id)) { ?>post-comments-enabled<?php } ?>"
     <?php if (isset($isSharedPost) && $isSharedPost) { ?>data-original-<?php } ?>id="post-<?php echo $post->uuid; ?>"
     data-uuid="<?php echo $post->uuid; ?>" <?php if ($post->sharedPost) { ?>data-shared-uuid="<?php echo $post->sharedPost->uuid; ?>"<?php } ?>
     data-created="<?php echo $post->created; ?>" data-id="<?php echo $post->id; ?>">
    <div class="post-title">
        <div class="avatar">
            <?php if ($post->network->network_type == 'bepuppy') { ?>
                <img src="https://www.bepuppy.com/bepuppy/data/dc4a1ac2-420d-11e7-8e63-061f7800027c/e5ff5730ac75d224047b37c2030f9add.jpg" alt="Bepuppy">
            <?php } else { ?>
                <img src="<?php echo $post->getAvatar(); ?>" alt="<?php echo $postUserFullName; ?>">
            <?php } ?>
        </div>
        <div class="note">
            
<!-- # @bepuppy/includes/posts/has-shared.volt # { -->
<div class="name">
    <?php if ($post->network->network_type == 'bepuppy') { ?>
        <a href="/@bepuppy">Bepuppy</a>
    <?php } else { ?>
        <a href="<?php echo $post->user->viewUrl; ?>"><?php echo $postUserFullName; ?></a>
    <?php } ?>
    <?php $postLink = $this->url->get(array('for' => 'postView', 'uuid' => $post->uuid)); ?>
    <?php if ($post->getIsCoupon()) { ?>
        <?php echo $t->_('has shared an offer:'); ?> <?php echo $this->escaper->escapeHtml($post->properties->coupon->name); ?> [<?php echo $this->escaper->escapeHtml($post->properties->coupon->expiration); ?>]
    <?php } elseif ($this->length($post->getImages()) > 0) { ?>
        <?php if ($this->length($post->getImages()) > 1) { ?>
            <?php echo $t->query('has shared %countMedia%', array('countMedia' => $this->length($post->getImages()))); ?>
            <a href="<?php echo $postLink; ?>"><?php echo $t->_('photos'); ?></a>
        <?php } else { ?>
            <?php echo $t->_('has shared one'); ?>
            <a href="<?php echo $postLink; ?>"><?php echo $t->_('photo'); ?></a>
        <?php } ?>
    <?php } elseif ($this->length($post->getVideos()) > 0) { ?>
        <?php echo $t->_('has shared a'); ?> <a href="<?php echo $postLink; ?>"><?php echo $t->_('video'); ?></a>
    <?php } elseif ($this->length($post->getFiles()) > 0) { ?>
        <?php echo $t->_('has shared a'); ?> <a href="<?php echo $postLink; ?>"><?php echo $t->_('file'); ?></a>
    <?php } elseif ($post->sharedPost) { ?>
        <?php echo $t->_('has reshared a'); ?> <a href="<?php echo $postLink; ?>"><?php echo $t->_('post'); ?></a>
    <?php } else { ?>
        <?php echo $t->_('has shared a'); ?> <a href="<?php echo $postLink; ?>"><?php echo $t->_('post'); ?></a>
    <?php } ?>
</div>
<!-- } # @bepuppy/includes/posts/has-shared.volt # -->
 
            <div class="date">
                <span itemprop="datePublished" class="value" data-datetime="<?php echo gmdate('Y-m-d\TH:i:s\Z', intval($post->created)); ?>"><?php echo (new \Jenssegers\Date\Date(intval($post->created)))->diffForHumans(); ?></span>
                <div class="network-dropdown dropdown" style="display:none">
                    <span class="status-ico warning"></span>
                    <span class="status-ico market"></span>
                    <span class="status-ico danger"></span>
                    <ul class="dropdown-menu" aria-labelledby="dLabel">
                        <li>
                            <span class="arrow"></span>
                            <a href="#">
                                <span class="label-ico warning"></span>
                                Design
                            </a>
                        </li>
                        <li>
                            <a href="#" class="sidebar-opener">
                                <span class="label-ico market"></span>
                                Web development
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <span class="label-ico danger"></span>
                                Marketing
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
 
    <?php if (isset($user)) { ?>
        
<!-- # @frontend/includes/posts/post-dropdown.volt # { -->
<div class="post-dropdown dropdown" >
    <a href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i></i></a>
    <ul class="dropdown-menu">
        <?php if ($post->userHasAccessDelete($this->user->getUser())) { ?>
            <?php if ($post->allowed_comment) { ?>
                <li>
                    <span class="arrow"></span>
                    <a data-post-uuid="<?php echo $post->uuid; ?>" data-post-hidden-comments-uuid="<?php echo $post->uuid; ?>" data-pjax-container="#content" data-pjax="true"
                       data-method="post" data-confirm="<?php echo $t->_('Do you want to disable comments for this post?'); ?>" data-confirm-title="<?php echo $t->_('Disallow comments'); ?>" data-after-success="postDisallowCommentsAfterSuccess"
                       aria-label="<?php echo $t->_('Disallow comments'); ?>" title="<?php echo $t->_('Disallow comments'); ?>" href="<?php echo $this->url->get(array('for' => 'postDisallowComment', 'uuid' => $post->uuid)); ?>"
                    ><?php echo $t->_('Disallow comments'); ?></a>
                </li>
            <?php } else { ?>
                <li>
                    <span class="arrow"></span>
                    <a data-post-uuid="<?php echo $post->uuid; ?>" data-post-hidden-comments-uuid="<?php echo $post->uuid; ?>" data-pjax-container="#content" data-pjax="true"
                       data-method="post" data-confirm="<?php echo $t->_('Do you want to enable comments for this post?'); ?>" data-confirm-title="<?php echo $t->_('Allow comments'); ?>" data-after-success="postAllowCommentsAfterSuccess"
                       aria-label="<?php echo $t->_('Allow comments'); ?>" title="<?php echo $t->_('Allow comments'); ?>" href="<?php echo $this->url->get(array('for' => 'postAllowComment', 'uuid' => $post->uuid)); ?>"
                    ><?php echo $t->_('Allow comments'); ?></a>
                </li>
            <?php } ?>
        <?php } ?>
        <?php if ($post->user_id == $this->user->id) { ?>
            <li>
                <span role="button" tabindex="0" data-pjax="true" data-method="post"
                      data-pjax-id="start-edit-post" data-pjax-url="<?php echo $this->url->get(array('for' => 'postSource', 'uuid' => $post->uuid)); ?>"
                      aria-label="<?php echo $t->_('Edit post'); ?>" title="<?php echo $t->_('Edit post'); ?>"><?php echo $t->_('Edit post'); ?></span>
            </li>
        <?php } ?>
        <?php if ($post->userHasAccessDelete($this->user->getUser())) { ?>
            <li>
                <span role="button" tabindex="0" data-post-uuid="<?php echo $post->uuid; ?>" data-pjax="true" data-method="post"
                   data-pjax-id="delete-post" data-pjax-url="<?php echo $this->url->get(array('for' => 'postDelete', 'uuid' => $post->uuid)); ?>"
                   data-confirm="<?php echo $t->_('Are you sure you want to delete this post?'); ?>" data-confirm-title="<?php echo $t->_('Delete post'); ?>"
                   aria-label="<?php echo $t->_('Delete post'); ?>" title="<?php echo $t->_('Delete post'); ?>"><?php echo $t->_('Delete post'); ?></span>
            </li>
        <?php } ?>
        <?php if ($post->user_id != $this->user->id) { ?>
            <li>
                <span class="arrow"></span>
                <span role="button" tabindex="0" onclick="Socialveo.api.showPostReport(this);"
                      data-post-uuid="<?php echo $post->uuid; ?>"><?php echo $t->_('Report this post'); ?></span>
            </li>
        <?php } ?>
    </ul>
</div>
<!-- } # @frontend/includes/posts/post-dropdown.volt # -->
    <?php } ?>
 
    <div class="inner-area">
        <div class="post-box-content" itemprop="sharedContent">
            
<!-- # @bepuppy/includes/posts/post-content.volt # { -->
<div class="post-body comment-text hyperlink-content" data-post-body="<?php echo $post->uuid; ?>">
    <?php if ($post->getIsTypeStaticMap()) { ?>
        <a href="<?php echo $post->properties->url; ?>">
            <?php echo nl2br(\Emojione\Emojione::unicodeToImage($post->getParseBody())); ?>
        </a>
        <div class="post-visual static-map">
            <img src="<?php echo $post->notification->getStaticMapImage(); ?>" />
        </div>
    <?php } else { ?>
        <?php echo nl2br(\Emojione\Emojione::unicodeToImage($post->getParseBody())); ?>
    <?php } ?>
</div>
 
<?php $isSharedPost = false; ?>
<?php if ($post->sharedPost) { ?>
    <?php $isSharedPost = $post; ?>
    <?php $_originalPost = $post; ?>
    <?php $post = $post->sharedPost; ?>
    <?php $postUserFullName = $post->user->getFullName(); ?>
    <div class="post-reshared">
        <div class="post-body comment-text hyperlink-content" data-post-body="<?php echo $post->uuid; ?>">
            <p class="post-shared-mention">
                <?php if ($post->network->network_type == 'bepuppy') { ?>
                    <?php echo $t->query('%userFullName% originally shared a %postLink%', array('userFullName' => $this->tag->linkTo(array('/@bepuppy', 'Bepuppy', false)), 'postLink' => $this->tag->linkTo(array($post->viewUrl, $t->_('post'), false)))); ?>
                <?php } else { ?>
                    <?php echo $t->query('%userFullName% originally shared a %postLink%', array('userFullName' => $this->tag->linkTo(array($post->user->viewUrl, $postUserFullName, false)), 'postLink' => $this->tag->linkTo(array($post->viewUrl, $t->_('post'), false)))); ?>
                <?php } ?>
            </p>
            <?php echo nl2br(\Emojione\Emojione::unicodeToImage($post->getParseBody())); ?>
        </div>
<?php } else { ?>
    <?php $postUserFullName = $post->user->getFullName(); ?>
<?php } ?>
 
    
<!-- # @frontend/includes/posts/post-embed.volt # { -->
<?php if ($post->embed) { ?>
    <div class="embed-data embed-data-post">
        <div class="embed-wrapper embed-provider-<?php echo $post->embed->providerName; ?>">
            <?php if ($post->embed->type == 'video') { ?>
                <?php if ($post->embed->providerName == 'youtube' || $post->embed->providerName == 'vimeo' || $post->embed->providerName == 'facebook') { ?>
                    <div class="lazy-embed-video" data-video-id="<?php echo $post->embed->videoId; ?>" data-provider="<?php echo $post->embed->providerName; ?>"
                         data-title="<?php echo $this->escaper->escapeHtml($post->embed->title); ?>" data-url="<?php echo $post->embed->url; ?>" data-thumb="<?php echo $post->embed->image; ?>">
                        <?php if ($post->embed->providerName == 'facebook') { ?>
                            <script type="text/html">
                                <?php echo $post->embed->code; ?>
                            </script>
                        <?php } ?>
                    </div>
                <?php } else { ?>
                    <script type="text/html" data-type="code" data-rel="lazy-embed" data-provider="<?php echo $post->embed->providerName; ?>"
                        <?php if (isset($post->embed->js) && $post->embed->js) { ?>data-js="<?php echo $post->embed->js; ?>"<?php } ?>
                        <?php if (isset($post->embed->css) && $post->embed->css) { ?>data-css="<?php echo $post->embed->css; ?>"<?php } ?>>
                        <div class="iframe-<?php if ($post->embed->aspectRatio == '56.25') { ?>responsive<?php } else { ?>normal<?php } ?>">
                            <?php echo $post->embed->code; ?>
                        </div>
                    </script>
                <?php } ?>
            <?php } elseif ($post->embed->type == 'link') { ?>
                <?php if ($post->embed->image) { ?>
                    <div class="embed-image post-visual bg-stretch">
                        <a class="fancybox" href="<?php echo $post->embed->image; ?>" rel="post-<?php echo $post->uuid; ?>">
                            <img src="<?php echo $post->embed->image; ?>" alt="">
                        </a>
                    </div>
                <?php } ?>
            <?php } elseif ($post->embed->type == 'image') { ?>
                <div class="embed-image post-visual bg-stretch">
                    <a class="fancybox" href="<?php echo $post->embed->url; ?>" rel="post-<?php echo $post->uuid; ?>">
                        <img src="<?php echo $post->embed->url; ?>" alt="">
                    </a>
                </div>
            <?php } elseif ($post->embed->type == 'rich' && $post->embed->code) { ?>
                <script type="text/html" data-type="code" data-rel="lazy-embed" data-provider="<?php echo $post->embed->providerName; ?>"
                    <?php if (isset($post->embed->js) && $post->embed->js) { ?>data-js="<?php echo $post->embed->js; ?>"<?php } ?>
                    <?php if (isset($post->embed->css) && $post->embed->css) { ?>data-css="<?php echo $post->embed->css; ?>"<?php } ?>>
                    <div class="<?php if ($post->embed->aspectRatio == '56.25') { ?>iframe-responsive<?php } else { ?>iframe-normal<?php } ?>">
                        <?php echo $post->embed->code; ?>
                    </div>
                </script>
            <?php } else { ?>
                <?php if ($post->embed->image) { ?>
                    <div class="embed-image">
                        <div style="background-image:url('<?php echo $post->embed->image; ?>');"></div>
                    </div>
                <?php } ?>
            <?php } ?>
        </div>
        <div class="embed-meta">
            <p class="embed-meta-title"><a target="_blank" href="<?php echo $post->embed->url; ?>"><?php echo $this->escaper->escapeHtml($post->embed->title); ?></a></p>
            <p class="embed-meta-source"><a target="_blank" href="<?php echo $post->embed->url; ?>"><?php echo $this->escaper->escapeHtml($post->embed->domain); ?></a></p>
            <?php if ($post->embed->description) { ?>
                <p class="embed-meta-desc"><?php echo $this->escaper->escapeHtml($post->embed->description); ?></p>
            <?php } ?>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/posts/post-embed.volt # -->
    
<!-- # @bepuppy/includes/posts/post-images.volt # { -->
<?php $images = $post->getImages(); ?>
<?php $postCountImages = $this->length($images); ?>
 
<?php if ($post->network->network_type == 'bepuppy') { ?>
    <?php $userPhotoAlt = $this->escaper->escapeHtml($t->query('%userFullName%\'s photo', array('userFullName' => 'Bepuppy'))); ?>
<?php } else { ?>
    <?php $userPhotoAlt = $this->escaper->escapeHtml($t->query('%userFullName%\'s photo', array('userFullName' => $postUserFullName))); ?>
<?php } ?>
 
<?php if ($postCountImages > 0) { ?>
    <?php if ($isSharedPost) { ?>
        <?php $rel = 'post-' . $isSharedPost->uuid . '-orig-' . $post->uuid; ?>
    <?php } else { ?>
        <?php $rel = 'post-' . $post->uuid; ?>
    <?php } ?>
    <?php if ($postCountImages == 1) { ?>
        <div class="post-visual bg-stretch">
            <a class="fancybox" href="<?php echo $images[0]->getUri(); ?>" rel="<?php echo $rel; ?>">
                <img src="<?php echo $images[0]->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
            </a>
        </div>
    <?php } else { ?>
        <div class="added-photos">
            <?php if ($postCountImages == 2) { ?>
                <div class="column">
                    <div class="box v-size bg-stretch">
                        <a class="fancybox" href="<?php echo $images[0]->getUri(); ?>" rel="<?php echo $rel; ?>">
                            <img src="<?php echo $images[0]->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
                        </a>
                    </div>
                </div>
                <div class="column">
                    <div class="box v-size bg-stretch">
                        <a class="fancybox" href="<?php echo $images[1]->getUri(); ?>" rel="<?php echo $rel; ?>">
                            <img src="<?php echo $images[1]->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
                        </a>
                    </div>
                </div>
            <?php } elseif ($postCountImages == 3) { ?>
                <div class="column">
                    <div class="box v-size bg-stretch">
                        <a class="fancybox" href="<?php echo $images[0]->getUri(); ?>" rel="<?php echo $rel; ?>">
                            <img src="<?php echo $images[0]->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
                        </a>
                    </div>
                </div>
                <div class="column">
                    <div class="row-box">
                        <div class="box v-size bg-stretch">
                            <a class="fancybox" href="<?php echo $images[1]->getUri(); ?>" rel="<?php echo $rel; ?>">
                                <img src="<?php echo $images[1]->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
                            </a>
                        </div>
                    </div>
                    <div class="row-box">
                        <div class="box v-size bg-stretch">
                            <a class="fancybox" href="<?php echo $images[2]->getUri(); ?>" rel="<?php echo $rel; ?>">
                                <img src="<?php echo $images[2]->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
                            </a>
                        </div>
                    </div>
                </div>
            <?php } elseif ($postCountImages >= 4) { ?>
                <div class="column">
                    <div class="box v-size bg-stretch">
                        <a class="fancybox" href="<?php echo $images[0]->getUri(); ?>" rel="<?php echo $rel; ?>">
                            <img src="<?php echo $images[0]->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
                        </a>
                    </div>
                </div>
                <div class="column">
                    <div class="row-box">
                        <div class="box v-size bg-stretch">
                            <a class="fancybox" href="<?php echo $images[1]->getUri(); ?>" rel="<?php echo $rel; ?>">
                                <img src="<?php echo $images[1]->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
                            </a>
                        </div>
                    </div>
                    <div class="row-box">
                        <div class="box vv-size bg-stretch">
                            <a class="fancybox" href="<?php echo $images[2]->getUri(); ?>" rel="<?php echo $rel; ?>">
                                <img src="<?php echo $images[2]->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
                            </a>
                        </div>
                        <div class="box vv-size bg-stretch<?php if ($postCountImages >= 5) { ?> show-more-photos<?php } ?>">
                            <?php if ($postCountImages >= 5) { ?>
                                <div>+<?php echo $postCountImages - 3; ?></div>
                            <?php } ?>
                            <a class="fancybox" href="<?php echo $images[3]->getUri(); ?>" rel="<?php echo $rel; ?>">
                                <img src="<?php echo $images[3]->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
                            </a>
                        </div>
                    </div>
                </div>
                <?php if ($postCountImages >= 5) { ?>
                    <div class="hidden">
                        <?php $v125968444111487844081iterator = $images; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $i => $image) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
                            <?php if ($i >= 4) { ?>
                                <a class="fancybox" href="<?php echo $image->getUri(); ?>" rel="<?php echo $rel; ?>">
                                    <img src="<?php echo $image->getUri('medium'); ?>" alt="<?php echo $userPhotoAlt; ?>">
                                </a>
                            <?php } ?>
                        <?php $v125968444111487844081incr++; } ?>
                    </div>
                <?php } ?>
            <?php } ?>
        </div>
    <?php } ?>
<?php } ?>
<!-- } # @bepuppy/includes/posts/post-images.volt # -->
    
<!-- # @frontend/includes/posts/post-videos.volt # { -->
<?php $videos = $post->getVideos(); ?>
<?php if ($this->length($videos) > 0) { ?>
    <?php $video = $videos[0]; ?>
    <?php if ($video->queued == 0 && ($video->media_type == 'youtube' || $video->media_type == 'vimeo')) { ?>
        <div class="video-wrapper">
            <div class="lazy-embed-video" data-video-id="<?php echo $video->cdn; ?>" data-provider="<?php echo $video->media_type; ?>"
                 data-title="<?php echo $this->escaper->escapeHtml($video->name); ?>"
                <?php if ($video->properties && isset($video->properties->url)) { ?>
                    data-url="<?php echo $video->properties->url; ?>"<?php } ?>
                <?php if ($video->properties && isset($video->properties->image)) { ?>
                    data-thumb="<?php echo $video->properties->image; ?>"
                <?php } ?>>
            </div>
        </div>
    <?php } else { ?>
        <div class="video-wrapper">
            <?php if ($video->mime_type == 'video/mp4' || $video->mime_type == 'video/webm' || $video->mime_type == 'video/ogg') { ?>
                <?php $poster = $video->getVideoPreview(); ?>
                <video class="video-responsive" id="video-post-<?php echo $post->uuid; ?>" width="640" height="360"
                       preload controls controls <?php if ($poster) { ?> poster="<?php echo $poster; ?>"<?php } ?>>
                    <source src="<?php echo $video->getUri(); ?>" type="<?php echo $video->mime_type; ?>" />
                </video>
            <?php } else { ?>
                <p><?php echo $t->_('This video is currently being processed.'); ?></p>
            <?php } ?>
        </div>
    <?php } ?>
<?php } ?>
<!-- } # @frontend/includes/posts/post-videos.volt # -->
    
<!-- # @frontend/includes/posts/post-files.volt # { -->
<?php $files = $post->getFiles(); ?>
<?php if ($this->length($files) > 0) { ?>
    <?php $file = $files[0]; ?>
    <?php if ($file->mime_type == 'application/pdf') { ?>
        <div class="file-wrapper">
            <a class="fancybox-file btn btn-primary" data-fancybox-type="iframe" href="<?php echo $file->getUri(); ?>"><?php echo $t->_('Open PDF file'); ?></a>
        </div>
    <?php } else { ?>
        <div class="file-wrapper">
            <a class="btn btn-primary" href="<?php echo $file->getUri(); ?>"><?php echo $t->_('Download file'); ?></a>
        </div>
    <?php } ?>
<?php } ?>
<!-- } # @frontend/includes/posts/post-files.volt # -->
 
<?php if (isset($_originalPost)) { ?>
    </div>
    <?php $post = $_originalPost; ?>
    <?php $_originalPost = null; ?>
    <?php $isSharedPost = false; ?>
<?php } ?>
 
 
<!-- # @frontend/includes/posts/post-toolbar.volt # { -->
<div class="heading clearfix" data-uuid="<?php echo $post->uuid; ?>">
    <ul class="share-list list-unstyled list-inline pull-left">
        <?php if ($this->user->getUser()) { ?>
            <li class="smiles-dropdown dropdown">
                <?php $emotion = $post->getUserEmotion($user); ?>
                <?php if ($emotion && !empty($this->config->emotions->toArray()[$emotion->name])) { ?>
                    <span role="button" class="emotion-btn"><?php echo \Emojione\Emojione::shortnameToImage($this->config->emotions->toArray()[$emotion->name]['icon']); ?></span>
                <?php } ?>
                <?php $emotion = null; ?>
                <a href="#" class="dropdown-toggle" aria-expanded="false" aria-haspopup="true" data-toggle="dropdown"><?php echo $t->_('Emotions'); ?></a>
                <div class="dropdown-menu">
                    <span class="arrow"></span>
                    <ul class="emotions-dropdown">
                        <?php $v125968444111487844081iterator = $this->config->emotions; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $name => $data) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
                            <?php if (!empty($data)) { ?>
                                <li data-emotion="<?php echo $name; ?>">
                                    <?php echo \Emojione\Emojione::shortnameToImage($data->icon); ?>
                                    <span class="name"><i><?php echo $t->_($data->label); ?></i></span>
                                </li>
                            <?php } ?>
                        <?php $v125968444111487844081incr++; } ?>
                    </ul>
                </div>
            </li>
        <?php } ?>
 
        
            
        
 
        
        <?php if (!isset($postUserFullName)) { ?>
            <?php $postUserFullName = $post->user->getFullName(); ?>
        <?php } ?>
 
        <li class="share-dropdown dropdown">
            <a href="#" class="dropdown-toggle" aria-expanded="false" aria-haspopup="true" data-toggle="dropdown"><?php echo $t->_('Share'); ?></a>
            <ul class="dropdown-menu" data-url="<?php echo $post->viewUrl; ?>?language=<?php echo $language; ?>"
                 data-title="<?php echo $this->escaper->escapeHtml($t->query('%userFullName%\'s post', array('userFullName' => $postUserFullName))); ?>">
                <?php if ($user) { ?>
                    <li class="share">
                        <a href="#">
                            <i class="fa fa-share"></i><?php echo $t->_('Share'); ?>
                        </a>
                    </li>
                <?php } ?>
                <li class="facebook">
                    <span class="arrow"></span>
                    <a href="#">Facebook</a>
                </li>
                <li class="twitter">
                    <a href="#">Twitter</a>
                </li>
                <li class="plusone">
                    <a href="#">Google+</a>
                </li>
            </ul>
        </li>
        
 
        
<!-- # @bepuppy/includes/posts/post-toolbar-extra.volt # { -->
<?php if ($post->getIsCoupon()) { ?>
    <?php if ($post->properties->coupon->type == 'local') { ?>
        <li>
            <a href="<?php echo $this->url->get(array('for' => 'postCouponPrint', 'uuid' => $post->uuid)); ?>" target="_blank" class="label label-primary label-print">
                <?php echo $t->_('Print offer'); ?>
            </a>
        </li>
    <?php } else { ?>
        <li>
            <a href="#" data-url-print="<?php echo $this->url->get(array('for' => 'postCouponPrint', 'uuid' => $post->uuid)); ?>" data-toggle="modal" data-target="#modalCouponView" data-url-shop="<?php echo $this->escaper->escapeHtml($post->properties->coupon->urlStore); ?>" data-code="<?php echo $this->escaper->escapeHtml($post->properties->coupon->code); ?>" class="label label-primary label-shop"><?php echo $t->_('Shop now'); ?></a>
        </li>
    <?php } ?>
<?php } ?>
<!-- } # @bepuppy/includes/posts/post-toolbar-extra.volt # -->
 
    </ul>
 
    <div class="emotions pull-right">
        
<!-- # @frontend/includes/posts/emotions.volt # { -->
<?php $countEmotions = $post->getCountEmotions(); ?>
<?php if ($countEmotions['_all_'] > 0) { ?>
    <a href="#" class="load-emotions-modal">
        <?php $index = 0; ?>
        <?php $configEmotions = $this->config->emotions->toArray(); ?>
        <?php $v125968444111487844081iterator = $countEmotions; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $name => $count) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
            <?php if (!empty($configEmotions[$name])) { ?>
                <?php if ($count == 0 || $index == 3 || $name == '_all_') { ?>
                    <?php break; ?>
                <?php } ?>
                <?php echo \Emojione\Emojione::shortnameToImage($configEmotions[$name]['icon']); ?>
                <?php $index = $index + 1; ?>
            <?php } ?>
        <?php $v125968444111487844081incr++; } ?>
        <span class="mark"><?php echo $countEmotions['_all_']; ?></span> <?php echo $t->nquery('reaction', 'reactions', $countEmotions['_all_']); ?>
    </a>
<?php } ?>
<!-- } # @frontend/includes/posts/emotions.volt # -->
    </div>
 
</div>
<!-- } # @frontend/includes/posts/post-toolbar.volt # -->
<!-- } # @bepuppy/includes/posts/post-content.volt # -->
        </div>
 
        <div class="post-box-comments" data-parent-post="post-<?php echo $post->uuid; ?>">
            <?php if ($post->allowed_comment == 1 && $post->userHasAccess($user)) { ?>
                <?php if ($user) { ?>
                    <?php $comments = $post->getLastsComments(); ?>
                <?php } else { ?>
                    <?php $comments = $post->getLastsComments(true, false); ?>
                    <?php $isLoadMore = false; ?>
                    <?php $isLoadMoreSub = false; ?>
                <?php } ?>
 
                
<!-- # @frontend/includes/comments/comments-block.volt # { -->
<?php if ($comments) { ?>
    
<!-- # @frontend/includes/comments/comments.volt # { -->
<div class="media-holder">
    <?php $commentLastId = null; ?>
    <?php $countComments = $post->countComments(); ?>
 
    <?php $v125968444111487844081iterator = $comments; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $groupComemntId => $data) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
        <?php if (isset($data['items'])) { ?>
            <?php foreach ($data['items'] as $comment) { ?>
 
                <?php if (!isset($isLoadMore) && !$commentLastId) { ?>
                    <?php $commentLastId = $data['items'][0]->id; ?>
                    <div class="load-more-comments" id="load-more-comments-<?php echo $commentLastId; ?>">
                        <?php if ($countComments > $this->config->content->comments) { ?>
                            <span data-pjax-url="<?php echo $this->url->get(array('for' => 'loadMoreComments', 'post_uuid' => $post->uuid, 'id' => $commentLastId)); ?>"
                                data-pjax-wait="#load-more-comments-<?php echo $commentLastId; ?>"
                                data-pjax="true" data-method="post" data-pjax-id="load-more-comments"
                                role="button"><?php echo $t->query('Load %count% more comments', array('count' => $countComments - $this->config->content->comments)); ?>
                                <i class="fa fa-spinner fa-pulse" aria-hidden="true"></i>
                            </span>
                        <?php } ?>
                    </div>
                <?php } ?>
 
                <?php if ((isset($user)) && ($this->isIncluded($this->user->id, $comment->usersMarkedAsSpam()))) { ?>
                    <?php continue; ?>
                <?php } ?>
 
                
<!-- # @frontend/includes/comments/comment.volt # { -->
<?php $pjaxContainer = 'post-' . $post->uuid; ?>
<?php $commentUser = $comment->user; ?>
<?php $commentUserFullName = $commentUser->getFullName(); ?>
<?php $commentUserUrl = $commentUser->viewUrl; ?>
 
<div class="media comment-item<?php if (isset($data['childes'])) { ?> media-has-sub-comments<?php } ?>"
     data-uuid="<?php echo $comment->uuid; ?>" data-post-uuid="<?php echo $post->uuid; ?>" data-id="<?php echo $comment->id; ?>"
     data-created="<?php echo $comment->created; ?>">
    <div id="comment-media-<?php echo $comment->id; ?>">
        <div class="media-left">
            <a class="user-data" href="<?php echo $commentUserUrl; ?>"
               data-user-uuid="<?php echo $commentUser->uuid; ?>"
               data-network-uuid="<?php echo $commentUser->network->uuid; ?>"
               data-user-username="<?php echo $this->escaper->escapeHtml($commentUser->username); ?>"
               data-user-fullname="<?php echo $this->escaper->escapeHtml($commentUserFullName); ?>">
                <img class="user-avatar" src="<?php echo $commentUser->network->getAvatar(); ?>" alt="<?php echo $this->escaper->escapeHtml($commentUserFullName); ?>">
            </a>
        </div>
        <div class="media-body">
 
            <?php $dropdownCommentUser = $commentUser; ?>
            <?php $dropdownComment = $comment; ?>
            
<!-- # @frontend/includes/comments/comment-dropdown.volt # { -->
<?php if (isset($user)) { ?>
    <div class="media-dropdown dropdown">
        <a href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i></i></a>
        <ul class="dropdown-menu">
            <?php if ($dropdownCommentUser->id == $this->user->id) { ?>
                <li>
                    <span class="arrow"></span>
                    <span role="button" tabindex="0" data-pjax="true" data-method="post"
                        data-pjax-id="start-edit-comment" data-pjax-url="<?php echo $this->url->get(array('for' => 'commentSource', 'uuid' => $dropdownComment->uuid)); ?>"
                        aria-label="<?php echo $t->_('Edit comment'); ?>" title="<?php echo $t->_('Edit comment'); ?>"><?php echo $t->_('Edit comment'); ?></span>
                </li>
                <li>
                    <span role="button" tabindex="0" data-pjax="true" data-method="post"
                        data-pjax-id="delete-comment" data-confirm="<?php echo $t->_('Are you sure you want to delete this comment?'); ?>"
                        data-pjax-url="<?php echo $this->url->get(array('for' => 'commentDelete', 'uuid' => $dropdownComment->uuid)); ?>"
                        aria-label="<?php echo $t->_('Delete comment'); ?>" title="<?php echo $t->_('Delete comment'); ?>"><?php echo $t->_('Delete comment'); ?></span>
                </li>
            <?php } else { ?>
                <li>
                    <span class="arrow"></span>
                    <span role="button" tabindex="0" onclick="Socialveo.api.showCommentReport(this);"
                          data-comment-uuid="<?php echo $dropdownComment->uuid; ?>"><?php echo $t->_('Report this comment'); ?></span>
                </li>
            <?php } ?>
        </ul>
    </div>
<?php } ?>
<!-- } # @frontend/includes/comments/comment-dropdown.volt # -->
 
            <div class="media-heading">
                <span class="name"><a href="<?php echo $commentUserUrl; ?>"><?php echo $this->escaper->escapeHtml($commentUserFullName); ?></a><span> <?php echo $t->_('said'); ?></span></span>
                <time class="date text-muted" data-datetime="<?php echo gmdate('Y-m-d\TH:i:s\Z', intval($comment->created)); ?>"
                      datetime="<?php echo (new \Jenssegers\Date\Date(intval($comment->created)))->diffForHumans(); ?>"><?php echo (new \Jenssegers\Date\Date(intval($comment->created)))->diffForHumans(); ?></time>
            </div>
            <div class="text-holder hyperlink-content">
                <p><?php echo nl2br(\Emojione\Emojione::unicodeToImage($comment->getParseBody())); ?></p>
                <?php $item = $comment; ?>
                <?php $itemUserFullName = $commentUserFullName; ?>
                
<!-- # @frontend/includes/comments/comment-media.volt # { -->
<?php $images = $item->getImages(); ?>
<?php if ($this->length($images) > 0) { ?>
    <div class="comment-image bg-stretch bg-fit">
        <a class="fancybox" href="<?php echo $images[0]->getUri(); ?>" rel="comment-<?php echo $item->uuid; ?>">
            <img src="<?php echo $images[0]->getUri('small'); ?>" alt="<?php echo sprintf($t->_('%s\'s photo'), $itemUserFullName); ?>" />
        </a>
    </div>
<?php } else { ?>
    <?php $videos = $item->getVideos(); ?>
    <?php if ($this->length($videos) > 0) { ?>
        <?php $video = $videos[0]; ?>
        <div class="comment-video-wrapper">
            <?php if ($video->queued == 0 && ($video->media_type == 'youtube' || $video->media_type == 'vimeo')) { ?>
                <div class="lazy-embed-video" data-video-id="<?php echo $video->cdn; ?>" data-provider="<?php echo $video->media_type; ?>"
                     data-title="<?php echo $this->escaper->escapeHtml($video->name); ?>"
                    <?php if ($video->properties && isset($video->properties->url)) { ?>
                        data-url="<?php echo $video->properties->url; ?>"<?php } ?>
                    <?php if ($video->properties && isset($video->properties->image)) { ?>
                        data-thumb="<?php echo $video->properties->image; ?>"
                    <?php } ?>>
                </div>
            <?php } else { ?>
                <?php if ($video->mime_type == 'video/mp4' || $video->mime_type == 'video/webm' || $video->mime_type == 'video/ogg') { ?>
                    <?php $poster = $video->getVideoPreview('small'); ?>
                    <video class="video-responsive" id="video-post-<?php echo $post->uuid; ?>" width="260" height="195"
                           preload controls <?php if ($poster) { ?> poster="<?php echo $poster; ?>"<?php } ?>>
                        <source src="<?php echo $video->getUri(); ?>" type="<?php echo $video->mime_type; ?>" />
                    </video>
                <?php } else { ?>
                    <p><?php echo $t->_('This video is currently being processed.'); ?></p>
                <?php } ?>
            <?php } ?>
        </div>
    <?php } else { ?>
        <?php $files = $item->getFiles(); ?>
        <?php if ($this->length($files) > 0) { ?>
            <?php $file = $files[0]; ?>
            <?php if ($file->mime_type == 'application/pdf') { ?>
                <div class="comment-file-wrapper">
                    <a class="fancybox-file btn btn-primary" data-fancybox-type="iframe" href="<?php echo $file->getUri(); ?>"><?php echo $t->_('Open PDF file'); ?></a>
                </div>
            <?php } else { ?>
                <div class="comment-file-wrapper">
                    <a class="btn btn-primary" href="<?php echo $file->getUri(); ?>"><?php echo $t->_('Download file'); ?></a>
                </div>
            <?php } ?>
        <?php } ?>
    <?php } ?>
<?php } ?>
<!-- } # @frontend/includes/comments/comment-media.volt # -->
                
<!-- # @frontend/includes/comments/comment-embed.volt # { -->
<?php if ($item->embed && $item->embed->type) { ?>
    <div class="embed-data comment-embed js-lazy-embed">
        <div class="embed-wrapper embed-provider-<?php echo $item->embed->providerName; ?>">
            <?php if ($item->embed->type == 'video') { ?>
                <?php if ($item->embed->providerName == 'youtube' || $item->embed->providerName == 'vimeo' || $item->embed->providerName == 'facebook') { ?>
                    <div class="lazy-embed-video" data-video-id="<?php echo $item->embed->videoId; ?>" data-provider="<?php echo $item->embed->providerName; ?>"
                         data-title="<?php echo $this->escaper->escapeHtml($item->embed->title); ?>" data-url="<?php echo $item->embed->url; ?>" data-thumb="<?php echo $item->embed->image; ?>">
                        <?php if ($item->embed->providerName == 'facebook') { ?>
                            <script type="text/html">
                                <?php echo $item->embed->code; ?>
                            </script>
                        <?php } ?>
                    </div>
                <?php } else { ?>
                    <script type="text/html" data-type="code" data-rel="lazy-embed" data-provider="<?php echo $item->embed->providerName; ?>"
                        <?php if (isset($item->embed->js) && $item->embed->js) { ?>data-js="<?php echo $item->embed->js; ?>"<?php } ?>
                        <?php if (isset($item->embed->css) && $item->embed->css) { ?>data-css="<?php echo $item->embed->css; ?>"<?php } ?>>
                        <div class="iframe-<?php if ($item->embed->aspectRatio == '56.25') { ?>responsive<?php } else { ?>normal<?php } ?>">
                            <?php echo $item->embed->code; ?>
                        </div>
                    </script>
                <?php } ?>
            <?php } elseif ($item->embed->type == 'link') { ?>
                <?php if ($item->embed->image) { ?>
                    <div class="embed-image bg-stretch bg-fit">
                        <a class="fancybox" href="<?php echo $item->embed->image; ?>" rel="comment-<?php echo $item->uuid; ?>">
                            <img src="<?php echo $item->embed->image; ?>" alt="" />
                        </a>
                    </div>
                <?php } ?>
            <?php } elseif ($item->embed->type == 'image') { ?>
                <div class="embed-image bg-stretch bg-fit">
                    <a class="fancybox" href="<?php echo $item->embed->url; ?>" rel="comment-<?php echo $item->uuid; ?>">
                        <img src="<?php echo $item->embed->url; ?>" alt="" />
                    </a>
                </div>
            <?php } elseif ($item->embed->type == 'rich' && $item->embed->code) { ?>
                <script type="text/html" data-type="code" data-rel="lazy-embed" data-provider="<?php echo $item->embed->providerName; ?>"
                    <?php if (isset($item->embed->js) && $item->embed->js) { ?>data-js="<?php echo $item->embed->js; ?>"<?php } ?>
                    <?php if (isset($item->embed->css) && $item->embed->css) { ?>data-css="<?php echo $item->embed->css; ?>"<?php } ?>>
                    <div class="<?php if ($item->embed->aspectRatio == '56.25') { ?>iframe-responsive<?php } else { ?>iframe-normal<?php } ?>">
                        <?php echo $item->embed->code; ?>
                    </div>
                </script>
            <?php } else { ?>
                <?php if ($item->embed->image) { ?>
                    <div class="embed-image">
                        <div style="background-image:url('<?php echo $item->embed->image; ?>');"></div>
                    </div>
                <?php } ?>
            <?php } ?>
        </div>
        <div class="embed-meta">
            <p class="embed-meta-title"><a target="_blank" href="<?php echo $item->embed->url; ?>"><?php echo $this->escaper->escapeHtml($item->embed->title); ?></a></p>
            <p class="embed-meta-source"><a target="_blank" href="<?php echo $item->embed->url; ?>"><?php echo $this->escaper->escapeHtml($item->embed->domain); ?></a></p>
            <?php if ($item->embed->description) { ?>
                <p class="embed-meta-desc"><?php echo $this->escaper->escapeHtml($item->embed->description); ?></p>
            <?php } ?>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/comments/comment-embed.volt # -->
            </div>
            <?php if (isset($user)) { ?>
                <ul class="media-list list-unstyled list-inline">
                    <li>
                        <span role="button" class="commentReply" data-id="<?php echo $comment->id; ?>"
                              data-href="<?php echo $this->url->get(array('for' => 'commentReply', 'uuid' => $comment->uuid)); ?>"><?php echo $t->_('Reply'); ?></span>
                    </li>
                </ul>
            <?php } ?>
 
            <?php if (!isset($withoutSubComments)) { ?>
                
<!-- # @frontend/includes/comments/sub-comments.volt # { -->
<?php if (isset($data['childes'])) { ?>
    <div class="sub-level" data-comment-id="<?php echo $comment->id; ?>" data-post-id="<?php echo $post->id; ?>">
 
        <?php $subCommentLastId = null; ?>
        <?php $countChildComments = $post->countComments($comment->id); ?>
 
        <?php $v125968444111487844081iterator = $data['childes']; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $childComment) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
            <?php if (!isset($isLoadMoreSub) && !$subCommentLastId) { ?>
                <?php $subCommentLastId = $data['childes'][0]->id; ?>
                <?php if ($countChildComments > $this->config->content->subComments) { ?>
                    <div class="load-more-comments" id="load-more-sub-comments-<?php echo $subCommentLastId; ?>">
                        <span data-pjax-url="<?php echo $this->url->get(array('for' => 'loadMoreChildComments', 'post_uuid' => $post->uuid, 'parent_id' => $comment->id, 'id' => $subCommentLastId)); ?>"
                            data-pjax-wait="#load-more-sub-comments-<?php echo $subCommentLastId; ?>"
                            data-pjax="true" data-method="post" data-pjax-id="load-more-comments"
                            role="button"><?php echo $t->query('Load %count% more replies', array('count' => $countChildComments - $this->config->content->subComments)); ?>
                            <i class="fa fa-spinner fa-pulse" aria-hidden="true"></i>
                        </span>
                    </div>
                <?php } ?>
            <?php } ?>
 
            <?php if ((isset($user)) && ($this->isIncluded($this->user->id, $childComment->usersMarkedAsSpam()))) { ?>
                <?php continue; ?>
            <?php } ?>
 
            
<!-- # @frontend/includes/comments/sub-comment.volt # { -->
<?php if (!isset($childComment)) { ?>
    <?php $childComment = $comment; ?>
<?php } ?>
 
<?php $childCommentUser = $childComment->getUser(); ?>
<?php $childCommentUserFullName = $childCommentUser->getFullName(); ?>
<?php $childCommentUserUrl = $childCommentUser->viewUrl; ?>
 
<div class="media comment-item sub-comment-item" data-id="<?php echo $childComment->id; ?>" data-created="<?php echo $childComment->created; ?>">
    <div id="comment-media-<?php echo $childComment->id; ?>">
 
        <div class="media-left">
            <a class="user-data" href="<?php echo $childCommentUserUrl; ?>"
               data-user-uuid="<?php echo $childCommentUser->uuid; ?>"
               data-network-uuid="<?php echo $childCommentUser->network->uuid; ?>"
               data-user-username="<?php echo $this->escaper->escapeHtml($childCommentUser->username); ?>"
               data-user-fullname="<?php echo $this->escaper->escapeHtml($childCommentUserFullName); ?>">
                <img class="user-avatar" alt="<?php echo $this->escaper->escapeHtml($t->_('%userFullName%\'s avatar', array('userFullName' => $childCommentUserFullName))); ?>"
                     src="<?php echo $childCommentUser->network->getAvatar(); ?>">
            </a>
        </div>
        <div class="media-body">
 
            <?php $dropdownCommentUser = $childCommentUser; ?>
            <?php $dropdownComment = $childComment; ?>
            
<!-- # @frontend/includes/comments/comment-dropdown.volt # { -->
<?php if (isset($user)) { ?>
    <div class="media-dropdown dropdown">
        <a href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i></i></a>
        <ul class="dropdown-menu">
            <?php if ($dropdownCommentUser->id == $this->user->id) { ?>
                <li>
                    <span class="arrow"></span>
                    <span role="button" tabindex="0" data-pjax="true" data-method="post"
                        data-pjax-id="start-edit-comment" data-pjax-url="<?php echo $this->url->get(array('for' => 'commentSource', 'uuid' => $dropdownComment->uuid)); ?>"
                        aria-label="<?php echo $t->_('Edit comment'); ?>" title="<?php echo $t->_('Edit comment'); ?>"><?php echo $t->_('Edit comment'); ?></span>
                </li>
                <li>
                    <span role="button" tabindex="0" data-pjax="true" data-method="post"
                        data-pjax-id="delete-comment" data-confirm="<?php echo $t->_('Are you sure you want to delete this comment?'); ?>"
                        data-pjax-url="<?php echo $this->url->get(array('for' => 'commentDelete', 'uuid' => $dropdownComment->uuid)); ?>"
                        aria-label="<?php echo $t->_('Delete comment'); ?>" title="<?php echo $t->_('Delete comment'); ?>"><?php echo $t->_('Delete comment'); ?></span>
                </li>
            <?php } else { ?>
                <li>
                    <span class="arrow"></span>
                    <span role="button" tabindex="0" onclick="Socialveo.api.showCommentReport(this);"
                          data-comment-uuid="<?php echo $dropdownComment->uuid; ?>"><?php echo $t->_('Report this comment'); ?></span>
                </li>
            <?php } ?>
        </ul>
    </div>
<?php } ?>
<!-- } # @frontend/includes/comments/comment-dropdown.volt # -->
 
            <div class="media-heading">
                <span class="name"><a href="<?php echo $childCommentUserUrl; ?>"><?php echo $this->escaper->escapeHtml($childCommentUserFullName); ?></a><span>
                    <?php echo $t->_('said'); ?></span></span>
                <time class="date text-muted" data-datetime="<?php echo gmdate('Y-m-d\TH:i:s\Z', intval($childComment->created)); ?>"
                      datetime="<?php echo (new \Jenssegers\Date\Date(intval($childComment->created)))->diffForHumans(); ?>"><?php echo (new \Jenssegers\Date\Date(intval($childComment->created)))->diffForHumans(); ?></time>
            </div>
            <div class="text-holder hyperlink-content">
                <p><?php echo nl2br(\Emojione\Emojione::unicodeToImage($childComment->getParseBody())); ?></p>
                <?php $item = $childComment; ?>
                <?php $itemUserFullName = $childCommentUserFullName; ?>
                
<!-- # @frontend/includes/comments/comment-media.volt # { -->
<?php $images = $item->getImages(); ?>
<?php if ($this->length($images) > 0) { ?>
    <div class="comment-image bg-stretch bg-fit">
        <a class="fancybox" href="<?php echo $images[0]->getUri(); ?>" rel="comment-<?php echo $item->uuid; ?>">
            <img src="<?php echo $images[0]->getUri('small'); ?>" alt="<?php echo sprintf($t->_('%s\'s photo'), $itemUserFullName); ?>" />
        </a>
    </div>
<?php } else { ?>
    <?php $videos = $item->getVideos(); ?>
    <?php if ($this->length($videos) > 0) { ?>
        <?php $video = $videos[0]; ?>
        <div class="comment-video-wrapper">
            <?php if ($video->queued == 0 && ($video->media_type == 'youtube' || $video->media_type == 'vimeo')) { ?>
                <div class="lazy-embed-video" data-video-id="<?php echo $video->cdn; ?>" data-provider="<?php echo $video->media_type; ?>"
                     data-title="<?php echo $this->escaper->escapeHtml($video->name); ?>"
                    <?php if ($video->properties && isset($video->properties->url)) { ?>
                        data-url="<?php echo $video->properties->url; ?>"<?php } ?>
                    <?php if ($video->properties && isset($video->properties->image)) { ?>
                        data-thumb="<?php echo $video->properties->image; ?>"
                    <?php } ?>>
                </div>
            <?php } else { ?>
                <?php if ($video->mime_type == 'video/mp4' || $video->mime_type == 'video/webm' || $video->mime_type == 'video/ogg') { ?>
                    <?php $poster = $video->getVideoPreview('small'); ?>
                    <video class="video-responsive" id="video-post-<?php echo $post->uuid; ?>" width="260" height="195"
                           preload controls <?php if ($poster) { ?> poster="<?php echo $poster; ?>"<?php } ?>>
                        <source src="<?php echo $video->getUri(); ?>" type="<?php echo $video->mime_type; ?>" />
                    </video>
                <?php } else { ?>
                    <p><?php echo $t->_('This video is currently being processed.'); ?></p>
                <?php } ?>
            <?php } ?>
        </div>
    <?php } else { ?>
        <?php $files = $item->getFiles(); ?>
        <?php if ($this->length($files) > 0) { ?>
            <?php $file = $files[0]; ?>
            <?php if ($file->mime_type == 'application/pdf') { ?>
                <div class="comment-file-wrapper">
                    <a class="fancybox-file btn btn-primary" data-fancybox-type="iframe" href="<?php echo $file->getUri(); ?>"><?php echo $t->_('Open PDF file'); ?></a>
                </div>
            <?php } else { ?>
                <div class="comment-file-wrapper">
                    <a class="btn btn-primary" href="<?php echo $file->getUri(); ?>"><?php echo $t->_('Download file'); ?></a>
                </div>
            <?php } ?>
        <?php } ?>
    <?php } ?>
<?php } ?>
<!-- } # @frontend/includes/comments/comment-media.volt # -->
                
<!-- # @frontend/includes/comments/comment-embed.volt # { -->
<?php if ($item->embed && $item->embed->type) { ?>
    <div class="embed-data comment-embed js-lazy-embed">
        <div class="embed-wrapper embed-provider-<?php echo $item->embed->providerName; ?>">
            <?php if ($item->embed->type == 'video') { ?>
                <?php if ($item->embed->providerName == 'youtube' || $item->embed->providerName == 'vimeo' || $item->embed->providerName == 'facebook') { ?>
                    <div class="lazy-embed-video" data-video-id="<?php echo $item->embed->videoId; ?>" data-provider="<?php echo $item->embed->providerName; ?>"
                         data-title="<?php echo $this->escaper->escapeHtml($item->embed->title); ?>" data-url="<?php echo $item->embed->url; ?>" data-thumb="<?php echo $item->embed->image; ?>">
                        <?php if ($item->embed->providerName == 'facebook') { ?>
                            <script type="text/html">
                                <?php echo $item->embed->code; ?>
                            </script>
                        <?php } ?>
                    </div>
                <?php } else { ?>
                    <script type="text/html" data-type="code" data-rel="lazy-embed" data-provider="<?php echo $item->embed->providerName; ?>"
                        <?php if (isset($item->embed->js) && $item->embed->js) { ?>data-js="<?php echo $item->embed->js; ?>"<?php } ?>
                        <?php if (isset($item->embed->css) && $item->embed->css) { ?>data-css="<?php echo $item->embed->css; ?>"<?php } ?>>
                        <div class="iframe-<?php if ($item->embed->aspectRatio == '56.25') { ?>responsive<?php } else { ?>normal<?php } ?>">
                            <?php echo $item->embed->code; ?>
                        </div>
                    </script>
                <?php } ?>
            <?php } elseif ($item->embed->type == 'link') { ?>
                <?php if ($item->embed->image) { ?>
                    <div class="embed-image bg-stretch bg-fit">
                        <a class="fancybox" href="<?php echo $item->embed->image; ?>" rel="comment-<?php echo $item->uuid; ?>">
                            <img src="<?php echo $item->embed->image; ?>" alt="" />
                        </a>
                    </div>
                <?php } ?>
            <?php } elseif ($item->embed->type == 'image') { ?>
                <div class="embed-image bg-stretch bg-fit">
                    <a class="fancybox" href="<?php echo $item->embed->url; ?>" rel="comment-<?php echo $item->uuid; ?>">
                        <img src="<?php echo $item->embed->url; ?>" alt="" />
                    </a>
                </div>
            <?php } elseif ($item->embed->type == 'rich' && $item->embed->code) { ?>
                <script type="text/html" data-type="code" data-rel="lazy-embed" data-provider="<?php echo $item->embed->providerName; ?>"
                    <?php if (isset($item->embed->js) && $item->embed->js) { ?>data-js="<?php echo $item->embed->js; ?>"<?php } ?>
                    <?php if (isset($item->embed->css) && $item->embed->css) { ?>data-css="<?php echo $item->embed->css; ?>"<?php } ?>>
                    <div class="<?php if ($item->embed->aspectRatio == '56.25') { ?>iframe-responsive<?php } else { ?>iframe-normal<?php } ?>">
                        <?php echo $item->embed->code; ?>
                    </div>
                </script>
            <?php } else { ?>
                <?php if ($item->embed->image) { ?>
                    <div class="embed-image">
                        <div style="background-image:url('<?php echo $item->embed->image; ?>');"></div>
                    </div>
                <?php } ?>
            <?php } ?>
        </div>
        <div class="embed-meta">
            <p class="embed-meta-title"><a target="_blank" href="<?php echo $item->embed->url; ?>"><?php echo $this->escaper->escapeHtml($item->embed->title); ?></a></p>
            <p class="embed-meta-source"><a target="_blank" href="<?php echo $item->embed->url; ?>"><?php echo $this->escaper->escapeHtml($item->embed->domain); ?></a></p>
            <?php if ($item->embed->description) { ?>
                <p class="embed-meta-desc"><?php echo $this->escaper->escapeHtml($item->embed->description); ?></p>
            <?php } ?>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/comments/comment-embed.volt # -->
            </div>
            <?php if (isset($user)) { ?>
                <ul class="media-list list-unstyled list-inline">
                    <li>
                        <span role="button" class="commentReply subComment" data-id="<?php echo $childComment->id; ?>"
                              data-href="<?php echo $this->url->get(array('for' => 'commentReply', 'uuid' => $childComment->uuid)); ?>"><?php echo $t->_('Reply'); ?></span>
                    </li>
                </ul>
            <?php } ?>
        </div>
    </div>
</div>
<!-- } # @frontend/includes/comments/sub-comment.volt # -->
        <?php $v125968444111487844081incr++; } ?>
    </div>
<?php } ?>
<!-- } # @frontend/includes/comments/sub-comments.volt # -->
            <?php } ?>
 
        </div>
    </div>
</div>
<!-- } # @frontend/includes/comments/comment.volt # -->
            <?php } ?>
        <?php } ?>
    <?php $v125968444111487844081incr++; } ?>
 
</div>
<!-- } # @frontend/includes/comments/comments.volt # -->
<?php } ?>
 
<?php if ($user) { ?>
    
    <?php $commentBlockClass = 'write-post'; ?>
    <?php $commentFormClass = 'sub-comment-form hidden'; ?>
    
<!-- # @frontend/includes/comments/comment-form.volt # { -->
<?php echo $this->tag->form(array($this->url->get('/comments/create'), 'method' => 'post', 'data-pjax' => 'true', 'data-pjax-id' => 'create-comment', 'data-pjax-type' => 'json', 'class' => 'write-comment clearfix ' . $commentFormClass)); ?>
    <div class="comment-row <?php echo $commentBlockClass; ?>">
        <div class="box" data-post-id="<?php echo $post->id; ?>">
            <textarea name="body" class="add-comment-input emojionearea-fake" placeholder="<?php echo $t->_('Write a comment...'); ?>" style="display: none;"></textarea>
            <div class="emojionearea add-comment-input" role="application">
                <div class="emojionearea-editor" contenteditable="true" placeholder="<?php echo $t->_('Write a comment...'); ?>" tabindex="0"
                     dir="ltr" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></div>
                <?php if ($allowedCommentAttachments) { ?>
                    <div class="comment-upload-image emojionearea-floating-button" aria-label="<?php echo $t->_('Upload Image'); ?>">
                        <div class="upload-btn">
                            <input type="file" name="qqfile" accept="<?php echo $allowedCommentAttachments; ?>"/>
                        </div>
                        <i class="<?php echo $this->config->comments->uploadFileIconClass; ?>"></i>
                    </div>
                <?php } ?>
                <div class="emojionearea-button" aria-label="<?php echo $t->_('Show emojis'); ?>">
                    <div class="emojionearea-button-open" aria-hidden=true></div>
                    <div class="emojionearea-button-close" aria-hidden=true></div>
                </div>
                <div class="emojionearea-picker emojionearea-picker-position-bottom emojionearea-filters-position-top hidden">
                </div>
            </div>
            <input type="hidden" name="target_id" value="<?php echo $post->id; ?>">
            <input type="hidden" name="target_uuid" value="<?php echo $post->uuid; ?>">
            <input type="hidden" name="parent_id" data-post-id="<?php echo $post->id; ?>">
            <input type="hidden" name="target_type" value="post">
            <input type="hidden" name="media" value="">
            <input type="hidden" name="embed" value="">
        </div>
        <div class="box small hidden">
            <button class="btn btn-primary ladda-button" data-style="zoom-in" type="submit"><?php echo $t->_('Comment'); ?></button>
        </div>
    </div>
    <div class="comment-uploader-thumbnail"></div>
    <div class="box small visible-xs-block">
        <button class="btn btn-primary ladda-button" data-style="zoom-in" type="submit"><?php echo $t->_('Comment'); ?></button>
    </div>
<?php echo $this->tag->endForm(); ?>
<!-- } # @frontend/includes/comments/comment-form.volt # -->
 
    
    <?php $commentBlockClass = ''; ?>
    <?php $commentFormClass = 'comment-form'; ?>
    
<!-- # @frontend/includes/comments/comment-form.volt # { -->
<?php echo $this->tag->form(array($this->url->get('/comments/create'), 'method' => 'post', 'data-pjax' => 'true', 'data-pjax-id' => 'create-comment', 'data-pjax-type' => 'json', 'class' => 'write-comment clearfix ' . $commentFormClass)); ?>
    <div class="comment-row <?php echo $commentBlockClass; ?>">
        <div class="box" data-post-id="<?php echo $post->id; ?>">
            <textarea name="body" class="add-comment-input emojionearea-fake" placeholder="<?php echo $t->_('Write a comment...'); ?>" style="display: none;"></textarea>
            <div class="emojionearea add-comment-input" role="application">
                <div class="emojionearea-editor" contenteditable="true" placeholder="<?php echo $t->_('Write a comment...'); ?>" tabindex="0"
                     dir="ltr" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></div>
                <?php if ($allowedCommentAttachments) { ?>
                    <div class="comment-upload-image emojionearea-floating-button" aria-label="<?php echo $t->_('Upload Image'); ?>">
                        <div class="upload-btn">
                            <input type="file" name="qqfile" accept="<?php echo $allowedCommentAttachments; ?>"/>
                        </div>
                        <i class="<?php echo $this->config->comments->uploadFileIconClass; ?>"></i>
                    </div>
                <?php } ?>
                <div class="emojionearea-button" aria-label="<?php echo $t->_('Show emojis'); ?>">
                    <div class="emojionearea-button-open" aria-hidden=true></div>
                    <div class="emojionearea-button-close" aria-hidden=true></div>
                </div>
                <div class="emojionearea-picker emojionearea-picker-position-bottom emojionearea-filters-position-top hidden">
                </div>
            </div>
            <input type="hidden" name="target_id" value="<?php echo $post->id; ?>">
            <input type="hidden" name="target_uuid" value="<?php echo $post->uuid; ?>">
            <input type="hidden" name="parent_id" data-post-id="<?php echo $post->id; ?>">
            <input type="hidden" name="target_type" value="post">
            <input type="hidden" name="media" value="">
            <input type="hidden" name="embed" value="">
        </div>
        <div class="box small hidden">
            <button class="btn btn-primary ladda-button" data-style="zoom-in" type="submit"><?php echo $t->_('Comment'); ?></button>
        </div>
    </div>
    <div class="comment-uploader-thumbnail"></div>
    <div class="box small visible-xs-block">
        <button class="btn btn-primary ladda-button" data-style="zoom-in" type="submit"><?php echo $t->_('Comment'); ?></button>
    </div>
<?php echo $this->tag->endForm(); ?>
<!-- } # @frontend/includes/comments/comment-form.volt # -->
<?php } else { ?>
    <hr class="invisible">
<?php } ?>
<!-- } # @frontend/includes/comments/comments-block.volt # -->
            <?php } else { ?>
                <hr class="invisible">
            <?php } ?>
        </div>
    </div>
</div>
<!-- } # @bepuppy/includes/posts/post.volt # -->
                    <?php } ?>
                <?php $v125968444111487844081incr++; } ?>
            <?php } else { ?>
                <?php if ($nextPage == 2) { ?>
                     
                        <div class="alert alert-info">
                            <?php if (isset($customNoPostsInfo)) { ?>
                                <?php echo $customNoPostsInfo; ?>
                            <?php } elseif (isset($filter)) { ?>
                                <?php echo $t->_('There are no posts to display for this request'); ?>
                            <?php } else { ?>
                                <?php echo $t->_('There are no posts to display at the moment'); ?>
                            <?php } ?>
                        </div>
                    
                <?php } ?>
            <?php } ?>
            <div id="post-pagination">
                <p>
                    <?php if (isset($filter) && isset($filterValue)) { ?>
                        <a href="<?php echo $this->router->getRewriteUri(); ?>?page=<?php echo $nextPage; ?>&column=<?php echo $column; ?>&filter=<?php echo $filter; ?>&filterValue=<?php echo $filterValue; ?>"></a>
                    <?php } ?>
 
                    <?php if (isset($filter) && !isset($filterValue)) { ?>
                        <a href="<?php echo $this->router->getRewriteUri(); ?>?page=<?php echo $nextPage; ?>&column=<?php echo $column; ?>&filter=<?php echo $filter; ?>"></a>
                    <?php } ?>
 
                    <?php if (!isset($filter) && !isset($filterValue)) { ?>
                        <a href="<?php echo $this->router->getRewriteUri(); ?>?page=<?php echo $nextPage; ?>&column=<?php echo $column; ?>"></a>
                    <?php } ?>
                </p>
            </div>
        </div>
    <?php } else { ?>
        
            <div class="alert alert-info"><?php echo $t->_('You are not allowed to view the posts'); ?></div>
        
    <?php } ?>
</div>
 
 
<!-- # @frontend/includes/posts/emotions-modal.volt # { -->
<div class="modal emotions-modal modal-middle fade" id="emotionsModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
    <div class="modal-dialog modal-dialog-white">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <ul class="nav nav-tabs"  role="tablist">
                    <li class="active">
                        <a class="emotion-tab" data-toggle="tab" role="tab" data-target=".emotion_tab__all" href="#" data-emotion="_all_">
                            <?php echo $t->_('All'); ?> <span class="emotions-count">9999</span>
                        </a>
                    </li>
                    <?php $v125968444111487844081iterator = $this->config->emotions; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $name => $data) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
                        <?php if (!empty($data)) { ?>
                            <li>
                                <a class="emotion-tab" data-toggle="tab" role="tab" data-target=".emotion_tab_<?php echo $name; ?>" data-ajax="true" href="#" data-emotion="<?php echo $name; ?>">
                                    <?php echo \Emojione\Emojione::shortnameToImage($data->icon); ?> <span class="emotions-count"></span>
                                </a>
                            </li>
                        <?php } ?>
                    <?php $v125968444111487844081incr++; } ?>
                </ul>
            </div>
            <div class="modal-body tab-content">
                <ul class="tab-pane tab-pane-emotion fade in active emotion_tab__all"></ul>
                <?php $v125968444111487844081iterator = $this->config->emotions; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $name => $_) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
                    <?php if (!empty($_)) { ?>
                        <ul class="tab-pane tab-pane-emotion fade emotion_tab_<?php echo $name; ?>"></ul>
                    <?php } ?>
                <?php $v125968444111487844081incr++; } ?>
            </div>
        </div>
    </div>
</div>
<!-- } # @frontend/includes/posts/emotions-modal.volt # -->
<?php if ($this->user->getUser()) { ?>
    
<!-- # @frontend/includes/posts/post-reshare-modal.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="modal post-share-modal modal-middle fade" id="postShareModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-dialog-white">
            <?php echo $this->tag->form(array($this->url->get(array('for' => 'postShareCreate')), 'method' => 'post', 'data-pjax' => 'true', 'data-pjax-id' => 'post-share', 'id' => 'postShareModalForm')); ?>
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <select name="network_uuid" class="bootstrap-select">
                            <?php $_user = $this->user->getUser(); ?>
                            <option value="<?php echo $_user->network_uuid; ?>" selected="selected"><?php echo $t->_('Share on my profile'); ?></option>
                            <?php $v125968444111487844081iterator = $_user->networks; $v125968444111487844081incr = 0; $v125968444111487844081loop = new stdClass(); $v125968444111487844081loop->length = count($v125968444111487844081iterator); $v125968444111487844081loop->index = 1; $v125968444111487844081loop->index0 = 1; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - 1; ?><?php foreach ($v125968444111487844081iterator as $index => $item) { ?><?php $v125968444111487844081loop->first = ($v125968444111487844081incr == 0); $v125968444111487844081loop->index = $v125968444111487844081incr + 1; $v125968444111487844081loop->index0 = $v125968444111487844081incr; $v125968444111487844081loop->revindex = $v125968444111487844081loop->length - $v125968444111487844081incr; $v125968444111487844081loop->revindex0 = $v125968444111487844081loop->length - ($v125968444111487844081incr + 1); $v125968444111487844081loop->last = ($v125968444111487844081incr == ($v125968444111487844081loop->length - 1)); ?>
                                <?php if ($_user->network_uuid != $item->uuid && $item->getResharePostAccess()) { ?>
                                    <option value="<?php echo $item->uuid; ?>"><?php echo $this->escaper->escapeHtml($t->query('Share on "%networkName%"', array('networkName' => $item->name))); ?></option>
                                <?php } ?>
                            <?php $v125968444111487844081incr++; } ?>
                        </select>
                        <input type="hidden" name="post_uuid" id="post-reshare-post_uuid" />
                    </div>
 
                    <div class="modal-body">
                        <div class="post-reshare-comment">
                            <textarea name="body" class="add-comment-input emojionearea-fake" data-submitonenter="false" placeholder="<?php echo $t->_('Say something...'); ?>" style="display: none;"></textarea>
                            <div class="emojionearea add-comment-input" role="application">
                                <div class="emojionearea-editor" contenteditable="true" placeholder="<?php echo $t->_('Say something...'); ?>"
                                     tabindex="0" dir="ltr" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"
                                     data-textcomplete-z-index="2010"></div>
                                <div class="emojionearea-button">
                                    <div class="emojionearea-button-open"></div>
                                    <div class="emojionearea-button-close"></div>
                                </div>
                                <div class="emojionearea-picker emojionearea-picker-position-bottom emojionearea-filters-position-top hidden"></div>
                            </div>
                        </div>
                        <div class="post-reshare-box scrollable not-scrollable-gradient loading-icon" id="post-reshare-box" data-scroll-top="true">
                        </div>
                    </div>
 
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo $t->_('Cancel'); ?></button>
                        <button type="submit" class="btn btn-primary ladda-button" data-style="expand-right"><?php echo $t->_('Reshare'); ?></button>
                    </div>
                </div>
            <?php echo $this->tag->endForm(); ?>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/posts/post-reshare-modal.volt # -->
<?php } ?>
<!-- } # @frontend/includes/posts/posts.volt # -->
    </div>
 
              </div>
            </div>
          </main>
        </div>
      </div>
      
<!-- # @bepuppy/includes/sidebar-user.volt # { -->
<?php if ($this->router->getControllerName() == 'posts' && $this->router->getActionName() == 'viewPost') { ?>
    <?php if ($this->user->getUser()) { ?>
        <aside id="sidebar" class="sidebar-user">
            <div class="white-box clearfix">
                <?php if ($currentUrlName == 'newsFeed' || $currentUrlName == 'postView') { ?>
                    
<!-- # @bepuppy/includes/sidebar-nav.volt # { -->
<?php if ($this->user->getUser()) { ?>
<div class="main-nav sidebar-nav">
 
    <?php echo \Phalcon\DI::getDefault()->get('widgets')->render('favorites', []); ?>
 
    <div class="network-box">
        <h2 class="fa-icon fa-user-o"><?php echo $t->_('My account'); ?></h2>
        <ul class="list-unstyled network-list">
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userMyProfile')); ?>"><?php echo $t->_('My Profile'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userMySettings')); ?>"><?php echo $t->_('Edit profile'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userBadges', 'username' => $this->user->getUser()->username)); ?>"><?php echo $t->_('My badges'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userMedia', 'username' => $this->user->getUser()->username)); ?>"><?php echo $t->_('My media'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'messages')); ?>"><?php echo $t->_('Private Messages'); ?></a>
            </li>
            <li>
                <a href="#" data-toggle="modal" data-target="#modalWorkWithPets"><?php echo $t->_('Be professional'); ?></a>
            </li>
        </ul>
    </div>
 
    <div class="network-box networks">
        <h2 class="fa-icon fa-map-o"><?php echo $t->_('Discovery'); ?></h2>
        <ul class="list-unstyled network-list">
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'networkPetsSearch')); ?>"><?php echo $t->_('Find pets in adoption'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'networkNoProfitSearch')); ?>"><?php echo $t->_('Find nonprofits'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'usersProfessionalSearch')); ?>"><?php echo $t->_('Find professionals'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'networkBusinessSearch')); ?>"><?php echo $t->_('Find locations and services'); ?></a>
            </li>
        </ul>
    </div>
 
    <div class="network-box warning">
        <h2 class="fa-icon fa-bell-o"><?php echo $t->_('Emergencies'); ?></h2>
        <ul class="list-unstyled network-list">
            <li>
                <a href="#" data-toggle="modal" data-target="#modalNotificationMissedPet"><?php echo $t->_('Report pet as lost'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userNotificationsMissedPet')); ?>"><?php echo $t->_('My lost pets'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'notificationsMissedPet')); ?>"><?php echo $t->_('Pets lost near me'); ?></a>
            </li>
            <li>
                <a href="#" data-toggle="modal" data-target="#modalNotificationAlert"><?php echo $t->_('Send alerts'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userNotificationsAlert')); ?>"><?php echo $t->_('My alerts'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'notificationsAlert')); ?>"><?php echo $t->_('Alerts near me'); ?></a>
            </li>
        </ul>
    </div>
 
    <div class="network-box users-groups">
        <h2 class="fa-icon fa-handshake-o"><?php echo $t->_('Users & Groups'); ?></h2>
        <ul class="list-unstyled network-list">
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userBrowsing')); ?>"><?php echo $t->_('Find friends'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userConnections', $this->user->getUser())); ?>"><?php echo $t->_('My connections'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'networks')); ?>"><?php echo $t->_('Find groups'); ?></a>
            </li>
            
        </ul>
    </div>
 
</div>
<?php } ?>
<!-- } # @bepuppy/includes/sidebar-nav.volt # -->
                <?php } ?>
            </div>
        </aside>
    <?php } else { ?>
        
<!-- # @frontend/includes/sidebar-guest.volt # { -->
<aside id="sidebar" class="sidebar-guest">
    
<!-- # @frontend/includes/sidebar-guest-form.volt # { -->
<div class="sidebar-guest-form auth-box">
    <div class="login-title"><?php echo $t->_('Sign in'); ?></div>
 
    <?php echo $this->tag->form(array($this->url->get(array('for' => 'login')), 'method' => 'post', 'class' => 'sidebar-login-form')); ?>
    <div class="form-row">
        <div class="input-holder user box">
            <?php echo $this->tag->textField(array('username', 'size' => 32, 'placeholder' => $t->_('Username or email'), 'required' => 'required', 'data-placement' => 'right')); ?>
        </div>
    </div>
 
    <div class="form-row inline">
        <div class="input-holder pass box">
            <?php echo $this->tag->passwordField(array('password', 'size' => 32, 'placeholder' => $t->_('Password'), 'required' => 'required', 'data-placement' => 'right')); ?>
        </div>
    </div>
 
    <div class="form-row">
        <button class="btn btn-primary ladda-button button-loading" data-style="zoom-in" type="submit"><?php echo $t->_('Log in'); ?></button>
    </div>
 
    <div class="form-row">
        <label class="nice-form gray">
            <input checked type="checkbox" name="remember" />
            <span class="fake-input"></span>
            <span class="fake-label"><?php echo $t->_('remember me'); ?></span>
        </label>
    </div>
 
    <div class="form-row forgot-password ">
        <a href="<?php echo $this->url->get(array('for' => 'forgotPassword')); ?>"><?php echo $t->_('forgot password?'); ?></a>
    </div>
 
    <?php echo $this->tag->endForm(); ?>
 
    <div class="login-title-small"><?php echo $t->query('New on %communityName%?', array('communityName' => $this->config->api->communityName)); ?></div>
 
    <div class="form-row">
        <a href="<?php echo $this->url->get(array('for' => 'registration')); ?>" class="btn btn-default" type="submit"><?php echo $t->_('Join NOW!'); ?></a>
    </div>
 
    <p class="register-note"><?php echo $t->_('and see what your friends are doing'); ?></p>
</div>
<!-- } # @frontend/includes/sidebar-guest-form.volt # -->
</aside>
<!-- } # @frontend/includes/sidebar-guest.volt # -->
    <?php } ?>
<?php } else { ?>
 
    <aside id="sidebar" class="sidebar-user">
        <?php if ($profileUser) { ?>
            <?php $call_to_action_container = 'call-to-action-buttons'; ?>
            
<!-- # @bepuppy/includes/call-to-action.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <?php if (!isset($call_to_action_container)) { ?>
        <?php $call_to_action_container = 'call-to-action-buttons'; ?>
    <?php } ?>
 
    <?php if ($call_to_action_container == 'call-to-action-buttons') { ?>
        <?php $btn_class = 'btn-default'; ?>
        <?php $mobile = false; ?>
    <?php } else { ?>
        <?php $btn_class = 'btn-primary'; ?>
        <?php $mobile = true; ?>
    <?php } ?>
 
    <?php if ($profileUser && $profileUser->id == $this->user->id) { ?>
        <div id="<?php echo $call_to_action_container; ?>">
            <div class="call-to-action clearfix">
                <?php if ($network->network_type == constant('\Socialveo\Bepuppy\core\models\Network::NETWORK_TYPE_PROFILE')) { ?>
                    <a href="<?php echo $this->url->get('/invite'); ?>" class="join-btn btn <?php echo $btn_class; ?>"><?php echo $t->_('Invite friends'); ?></a>
                <?php } ?>
            </div>
        </div>
    <?php } else { ?>
        <?php if ($this->user->getUser()->hasLock($profileUser)) { ?>
            <div id="<?php echo $call_to_action_container; ?>">
                <div class="call-to-action clearfix">
                    <a class="btn btn-danger" href="<?php echo $this->url->get(array('for' => 'userBlocks')); ?>"><i class="fa fa-ban"></i> &nbsp;<?php echo $t->_('Blocked'); ?></a>
                </div>
            </div>
        <?php } elseif ($profileUser->hasLock($this->user->getUser())) { ?>
            <div id="<?php echo $call_to_action_container; ?>">
                <div class="call-to-action clearfix">
                    <span class="btn btn-danger disabled" style="opacity: 0.8;"><i class="fa fa-ban"></i> &nbsp;<?php echo $t->_('Access denied'); ?></span>
                </div>
            </div>
        <?php } else { ?>
            <?php $connection = $profileUser->findFirstConnectUser($this->user->getUser()); ?>
            <div id="<?php echo $call_to_action_container; ?>">
                <div class="call-to-action clearfix" id="call-to-action-user<?php if ($mobile) { ?>-mobile<?php } ?>" data-uuid="<?php echo $profileUser->uuid; ?>">
                    <?php if ($connection) { ?>
                        <a href="<?php echo $this->url->get(array('for' => 'circleDirectUnfollow', 'uuid' => $profileUser->uuid)); ?>" data-uuid="<?php echo $profileUser->uuid; ?>"
                           class="btn <?php echo $btn_class; ?> load-circles-modal btn-following"><i class="fa fa-share-alt"></i> &nbsp;<?php echo $connection->getCircleName(); ?></a>
                    <?php } else { ?>
                        <a href="<?php echo $this->url->get(array('for' => 'circleDirectFollow', 'uuid' => $profileUser->uuid)); ?>" data-uuid="<?php echo $profileUser->uuid; ?>"
                           class="btn <?php echo $btn_class; ?> load-circles-modal"><?php echo $t->_('Follow'); ?></a>
                    <?php } ?>
                </div>
            </div>
        <?php } ?>
    <?php } ?>
<?php } ?>
<!-- } # @bepuppy/includes/call-to-action.volt # -->
 
            <div class="sidebar-mobile">
                <?php $userCoverClassName = 'mobile-cover'; ?>
                <?php $userCoverAttrId = 'mobile-cover'; ?>
                
<!-- # @frontend/includes/user-cover.volt # { -->
<?php if (($this->user->getUser() && $profileUser->id == $this->user->id) || ($network && $network->getCover())) { ?>
  <?php if (!isset($userCoverClassName)) { ?>
    <?php $userCoverClassName = 'visual-box hidden-xs'; ?>
  <?php } ?>
  <?php if (!isset($userCoverAttrId)) { ?>
    <?php $userCoverAttrId = 'user-cover'; ?>
  <?php } ?>
  <div class="<?php echo $userCoverClassName; ?> bg-stretch" id="<?php echo $userCoverAttrId; ?>">
    <?php if ($network->getCover()) { ?>
      <img src="<?php echo $network->getCover(); ?>" alt="<?php echo $this->escaper->escapeHtml($t->query('%userFullName%\'s cover', array('userFullName' => $profileUser->getFullName()))); ?>">
    <?php } ?>
    <?php if ($profileUser->id == $this->user->id) { ?>
      <?php echo $this->tag->form(array($this->url->get(array('for' => 'networkChangeCover', 'uuid' => $this->user->network_uuid)), 'method' => 'post', 'enctype' => 'multipart/form-data', 'data-pjax' => 'true', 'data-pjax-id' => '#' . $userCoverAttrId)); ?>
      <?php echo $formNetworkChangeCover->render('cover'); ?>
      <a href="#" data-click="form-changeCover-file" class="btn btn-sm text-uppercase btn-white"><?php echo $t->_('change photo'); ?></a>
      <?php echo $this->tag->endForm(); ?>
    <?php } ?>
  </div>
<?php } ?>
<!-- } # @frontend/includes/user-cover.volt # -->
 
                <div class="white-box clearfix">
                    
<!-- # @frontend/includes/user-pic.volt # { -->
<?php if ($profileUser) { ?>
    <div class="profile-visual access-bd<?php if (($user && ($profileUser->id == $this->user->id) || (isset($connect) && $connect && $connect->getIsConfirmed()))) { ?> profile-updatable<?php } ?>">
        <span class="category-img" data-picture data-alt="<?php echo $this->escaper->escapeHtml($t->query('%userFullName%\'s avatar', array('userFullName' => $profileUser->getFullName()))); ?>" id="profile-visual-access-bd">
            <span data-src="<?php echo $network->getAvatar(); ?>" data-width="374" data-height="375"></span>
            <span data-src="<?php echo $network->getAvatar(); ?>" data-width="374" data-height="375" data-media="(-webkit-min-device-pixel-ratio:1.5), (min-resolution:144dpi)" ></span>
            <!--[if (lt IE 9) & (!IEMobile)]>
                <span data-src="<?php echo $network->getAvatar(); ?>"></span>
            <![endif]-->
            <!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
            
                
            
        </span>
        <div class="text-holder">
            <span id="profileUserFullName" class="name"><?php echo $this->escaper->escapeHtml($profileUser->getFullName()); ?></span>
            <span id="profileUserName" class="value"><?php echo $this->escaper->escapeHtml($profileUser->username); ?></span>
        </div>
        <?php if ($user) { ?>
            <?php if ($profileUser->id == $this->user->id) { ?>
                <?php echo $this->tag->form(array($this->url->get(array('for' => 'networkChangeAvatar', 'uuid' => $this->user->network_uuid)), 'method' => 'post', 'enctype' => 'multipart/form-data', 'data-pjax' => 'true', 'data-pjax-id' => '#profile-visual-access-bd')); ?>
                    <?php echo $formNetworkChangeAvatar->render('avatar'); ?>
                    <a href="#" data-click="form-changeAvatar-file" class="btn btn-sm text-uppercase btn-white"><span><?php echo $t->_('change avatar'); ?></span></a>
                <?php echo $this->tag->endForm(); ?>
            <?php } elseif (isset($connect) && $connect && $connect->getIsConfirmed()) { ?>
                <a href="<?php echo $this->url->get(array('for' => 'unfollowUser', 'uuid' => $to_connection->uuid)); ?>" data-pjax="true" data-method="post"
                   data-pjax-id="delete_connection" class="btn btn-sm text-uppercase btn-white"><span><?php echo $t->_('Disconnect'); ?></span></a>
            <?php } ?>
        <?php } ?>
    </div>
<?php } ?>
<!-- } # @frontend/includes/user-pic.volt # -->
 
                    <?php if ($currentUrlName == 'newsFeed' || $currentUrlName == 'postView') { ?>
                        
<!-- # @bepuppy/includes/sidebar-nav.volt # { -->
<?php if ($this->user->getUser()) { ?>
<div class="main-nav sidebar-nav">
 
    <?php echo \Phalcon\DI::getDefault()->get('widgets')->render('favorites', []); ?>
 
    <div class="network-box">
        <h2 class="fa-icon fa-user-o"><?php echo $t->_('My account'); ?></h2>
        <ul class="list-unstyled network-list">
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userMyProfile')); ?>"><?php echo $t->_('My Profile'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userMySettings')); ?>"><?php echo $t->_('Edit profile'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userBadges', 'username' => $this->user->getUser()->username)); ?>"><?php echo $t->_('My badges'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userMedia', 'username' => $this->user->getUser()->username)); ?>"><?php echo $t->_('My media'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'messages')); ?>"><?php echo $t->_('Private Messages'); ?></a>
            </li>
            <li>
                <a href="#" data-toggle="modal" data-target="#modalWorkWithPets"><?php echo $t->_('Be professional'); ?></a>
            </li>
        </ul>
    </div>
 
    <div class="network-box networks">
        <h2 class="fa-icon fa-map-o"><?php echo $t->_('Discovery'); ?></h2>
        <ul class="list-unstyled network-list">
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'networkPetsSearch')); ?>"><?php echo $t->_('Find pets in adoption'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'networkNoProfitSearch')); ?>"><?php echo $t->_('Find nonprofits'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'usersProfessionalSearch')); ?>"><?php echo $t->_('Find professionals'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'networkBusinessSearch')); ?>"><?php echo $t->_('Find locations and services'); ?></a>
            </li>
        </ul>
    </div>
 
    <div class="network-box warning">
        <h2 class="fa-icon fa-bell-o"><?php echo $t->_('Emergencies'); ?></h2>
        <ul class="list-unstyled network-list">
            <li>
                <a href="#" data-toggle="modal" data-target="#modalNotificationMissedPet"><?php echo $t->_('Report pet as lost'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userNotificationsMissedPet')); ?>"><?php echo $t->_('My lost pets'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'notificationsMissedPet')); ?>"><?php echo $t->_('Pets lost near me'); ?></a>
            </li>
            <li>
                <a href="#" data-toggle="modal" data-target="#modalNotificationAlert"><?php echo $t->_('Send alerts'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userNotificationsAlert')); ?>"><?php echo $t->_('My alerts'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'notificationsAlert')); ?>"><?php echo $t->_('Alerts near me'); ?></a>
            </li>
        </ul>
    </div>
 
    <div class="network-box users-groups">
        <h2 class="fa-icon fa-handshake-o"><?php echo $t->_('Users & Groups'); ?></h2>
        <ul class="list-unstyled network-list">
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userBrowsing')); ?>"><?php echo $t->_('Find friends'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'userConnections', $this->user->getUser())); ?>"><?php echo $t->_('My connections'); ?></a>
            </li>
            <li>
                <a href="<?php echo $this->url->get(array('for' => 'networks')); ?>"><?php echo $t->_('Find groups'); ?></a>
            </li>
            
        </ul>
    </div>
 
</div>
<?php } ?>
<!-- } # @bepuppy/includes/sidebar-nav.volt # -->
                    <?php } else { ?>
                        
<!-- # @frontend/includes/user-badges.volt # { -->
<?php if (!empty($profileUser->badges)) { ?>
  <?php $userBadgesUrl = $this->url->get(array('for' => 'userBadges', 'username' => $profileUser->username)); ?>
  <div class="category-elements">
    <ul class="icons-list list-unstyled list-inline">
      <?php $earnedBadge = array(); ?>
      <?php $index = -1; ?>
      <?php foreach ($profileUser->badges as $index => $badge) { ?>
        <li>
          <a href="<?php echo $userBadgesUrl; ?>" title="<?php echo $t->_($badge->name); ?>"> 
            <img alt="<?php echo $t->_($badge->name); ?>"
               src="<?php echo $this->url->getStatic('frontend/assets/images/karma_badges/24/' . $badge->image); ?>">
          </a>
        </li>
        <?php $earnedBadge[$badge->image] = true; ?>
      <?php } ?>
 
      
      <?php $disabledBadge = $index + 1; ?>
      <?php if ($disabledBadge < 5 && !isset($earnedBadge['1ConnectionConfirmed.png'])) { ?>
        <li>
          <a href="#" title="<?php echo $t->_('This badge is not yet earned'); ?>" class="disabled-badge">
            <img alt="<?php echo $t->_('One connections confirmed'); ?>" src="/frontend/assets/images/karma_badges/24/1ConnectionConfirmed.png">
          </a>
        </li>
        <?php $disabledBadge += 1; ?>
      <?php } ?>
      <?php if ($disabledBadge < 5 && !isset($earnedBadge['1NetworkCreated.png'])) { ?>
        <li>
          <a href="#" title="<?php echo $t->_('This badge is not yet earned'); ?>" class="disabled-badge">
            <img alt="<?php echo $t->_('One network created'); ?>" src="/frontend/assets/images/karma_badges/24/1NetworkCreated.png">
          </a>
        </li>
        <?php $disabledBadge += 1; ?>
      <?php } ?>
      <?php if ($disabledBadge < 5 && !isset($earnedBadge['1PostShared.png'])) { ?>
        <li>
          <a href="#" title="<?php echo $t->_('This badge is not yet earned'); ?>" class="disabled-badge">
            <img alt="<?php echo $t->_('One post shared'); ?>" src="/frontend/assets/images/karma_badges/24/1PostShared.png">
          </a>
        </li>
        <?php $disabledBadge += 1; ?>
      <?php } ?>
      <?php if ($disabledBadge < 5 && !isset($earnedBadge['verifiedFacebook.png'])) { ?>
        <li>
          <a href="#" title="<?php echo $t->_('This badge is not yet earned'); ?>" class="disabled-badge">
            <img alt="<?php echo $t->_('Facebook profile verified'); ?>" src="/frontend/assets/images/karma_badges/24/verifiedFacebook.png">
          </a>
        </li>
        <?php $disabledBadge += 1; ?>
      <?php } ?>
      <?php if ($disabledBadge < 5 && !isset($earnedBadge['verifiedGoogle.png'])) { ?>
        <li>
          <a href="#" title="<?php echo $t->_('This badge is not yet earned'); ?>" class="disabled-badge">
            <img alt="<?php echo $t->_('Google profile verified'); ?>" src="/frontend/assets/images/karma_badges/24/verifiedGoogle.png">
          </a>
        </li>
        <?php $disabledBadge += 1; ?>
      <?php } ?>
 
    </ul>
    <a href="<?php echo $userBadgesUrl; ?>" class="arrow" title="<?php echo $t->_('View all badges'); ?>">arrow</a>
  </div>
<?php } ?>
<!-- } # @frontend/includes/user-badges.volt # -->
                        
<!-- # @frontend/includes/user/about.volt # { -->
<?php if ($profileUser) { ?>
    <div class="about-me-box">
        <p class="text-center default-font-size"><?php echo mb_strlen($profileUser->about) < 50 ? mb_substr($profileUser->about,0,50) : mb_substr($profileUser->about,0,50) .' <a href="#modalUserAboutMe" data-toggle="modal" data-target="#modalUserAboutMe">&hellip;</a>'; ?> </p>
    </div>
<?php } ?>
<!-- } # @frontend/includes/user/about.volt # -->
 
                        <div class="stretch-line">
                            <span class="h-line">h-line</span>
                            <div class="profile-control">
                                <div class="join-section">
                                    
<!-- # @frontend/includes/user-buttons.volt # { -->
<?php if ($this->user->getUser() && $this->user->id != $profileUser->id) { ?>
    <?php if ($this->user->getUser()->hasLock($profileUser) == false && $profileUser->hasLock($this->user->getUser()) == false) { ?>
        <?php $connection = $this->user->getUser()->findFirstConnectUser($profileUser); ?>
 
        <?php if ($connection) { ?>
            <div class="btn-holder" id="user-buttons">
                <a href="<?php echo $this->url->get(array('for' => 'messagesUserDialog', 'username' => $profileUser->username)); ?>" class="btn btn-success"><?php echo $t->_('Send message'); ?></a>
            </div>
        <?php } ?>
    <?php } ?>
 
    <div class="join-buttons-mobile">
        <div class="btn-holder">
            <?php $call_to_action_container = 'join-buttons'; ?>
            
<!-- # @bepuppy/includes/call-to-action.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <?php if (!isset($call_to_action_container)) { ?>
        <?php $call_to_action_container = 'call-to-action-buttons'; ?>
    <?php } ?>
 
    <?php if ($call_to_action_container == 'call-to-action-buttons') { ?>
        <?php $btn_class = 'btn-default'; ?>
        <?php $mobile = false; ?>
    <?php } else { ?>
        <?php $btn_class = 'btn-primary'; ?>
        <?php $mobile = true; ?>
    <?php } ?>
 
    <?php if ($profileUser && $profileUser->id == $this->user->id) { ?>
        <div id="<?php echo $call_to_action_container; ?>">
            <div class="call-to-action clearfix">
                <?php if ($network->network_type == constant('\Socialveo\Bepuppy\core\models\Network::NETWORK_TYPE_PROFILE')) { ?>
                    <a href="<?php echo $this->url->get('/invite'); ?>" class="join-btn btn <?php echo $btn_class; ?>"><?php echo $t->_('Invite friends'); ?></a>
                <?php } ?>
            </div>
        </div>
    <?php } else { ?>
        <?php if ($this->user->getUser()->hasLock($profileUser)) { ?>
            <div id="<?php echo $call_to_action_container; ?>">
                <div class="call-to-action clearfix">
                    <a class="btn btn-danger" href="<?php echo $this->url->get(array('for' => 'userBlocks')); ?>"><i class="fa fa-ban"></i> &nbsp;<?php echo $t->_('Blocked'); ?></a>
                </div>
            </div>
        <?php } elseif ($profileUser->hasLock($this->user->getUser())) { ?>
            <div id="<?php echo $call_to_action_container; ?>">
                <div class="call-to-action clearfix">
                    <span class="btn btn-danger disabled" style="opacity: 0.8;"><i class="fa fa-ban"></i> &nbsp;<?php echo $t->_('Access denied'); ?></span>
                </div>
            </div>
        <?php } else { ?>
            <?php $connection = $profileUser->findFirstConnectUser($this->user->getUser()); ?>
            <div id="<?php echo $call_to_action_container; ?>">
                <div class="call-to-action clearfix" id="call-to-action-user<?php if ($mobile) { ?>-mobile<?php } ?>" data-uuid="<?php echo $profileUser->uuid; ?>">
                    <?php if ($connection) { ?>
                        <a href="<?php echo $this->url->get(array('for' => 'circleDirectUnfollow', 'uuid' => $profileUser->uuid)); ?>" data-uuid="<?php echo $profileUser->uuid; ?>"
                           class="btn <?php echo $btn_class; ?> load-circles-modal btn-following"><i class="fa fa-share-alt"></i> &nbsp;<?php echo $connection->getCircleName(); ?></a>
                    <?php } else { ?>
                        <a href="<?php echo $this->url->get(array('for' => 'circleDirectFollow', 'uuid' => $profileUser->uuid)); ?>" data-uuid="<?php echo $profileUser->uuid; ?>"
                           class="btn <?php echo $btn_class; ?> load-circles-modal"><?php echo $t->_('Follow'); ?></a>
                    <?php } ?>
                </div>
            </div>
        <?php } ?>
    <?php } ?>
<?php } ?>
<!-- } # @bepuppy/includes/call-to-action.volt # -->
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/user-buttons.volt # -->
                                    
<!-- # @frontend/includes/user-connections.volt # { -->
<?php if ($profileUser) { ?>
    <div class="values-row clearfix">
        <div class="box">
            <span class="value"><?php echo $profileUser->getCountConnections(); ?></span>
            <span class="name"><?php echo $t->_('connections'); ?></span>
        </div>
        <div class="box">
            <span class="value"><?php echo $profileUser->getCountPosts(); ?></span>
            <span class="name"><?php echo $t->_('posts'); ?></span>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/user-connections.volt # -->
                                </div>
                                
<!-- # @frontend/includes/user-status.volt # { -->
<?php if ($this->user->getUser() && $profileUser && $profileUser->id == $this->user->id) { ?>
    <div class="status-drop dropdown" id="status-drop">
        <a href="#" class="opener <?php echo $this->user->getUser()->getAvailability(); ?> dropdown-toggle" id="userPublicStatus" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><?php echo $t->_($this->user->getUser()->getAvailabilityStatus()); ?></a>
 
        <?php echo $this->tag->form(array($this->url->get(array('for' => 'userMySettings')), 'method' => 'post', 'data-pjax' => 'true', 'data-pjax-container' => 'status-drop', 'id' => 'userChangeStatusForm', 'data-after-success' => 'userChangeStatusAfterSuccess')); ?>
            <input type="hidden" name="availability" value="<?php echo $this->user->getUser()->availability; ?>">
            <input type="hidden" name="token" value="<?php echo $this->security->getToken(); ?>">
        <?php echo $this->tag->endForm(); ?>
 
        <ul class="dropdown-menu" aria-labelledby="userPublicStatus" id="userChangeStatus">
            <?php foreach ($this->user->getStatusesAvailability() as $key => $label) { ?>
                <li class="<?php echo $key; ?>"<?php if ($key == $this->user->getUser()->getAvailability()) { ?> style="display:none"<?php } ?>><a href="#" class="userChangeStatus" data-status="<?php echo $key; ?>"><?php echo $t->_($label); ?></a></li>
            <?php } ?>
        </ul>
    </div>
<?php } ?>
<!-- } # @frontend/includes/user-status.volt # -->
                                
<!-- # @frontend/includes/user-followers.volt # { -->
<?php if ($profileUser) { ?>
    <div class="values-row clearfix">
        <div class="box">
            <span class="value"><?php echo $profileUser->getCountFollowers(); ?></span>
            <span class="name"><?php echo $t->_('followers'); ?></span>
        </div>
        <div class="box">
            <span class="value"><?php echo $profileUser->getCountFollowings(); ?></span>
            <span class="name"><?php echo $t->_('followings'); ?></span>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/user-followers.volt # -->
                                
<!-- # @frontend/includes/user-connections-reference.volt # { -->
<?php if ($this->user->getUser() && $profileUser && $profileUser->id != $this->user->id) { ?>
    <div class="setting-box">
        <div class="tooltip-holder">
            <a href="<?php echo $this->url->get(array('for' => 'userConnections', 'username' => $profileUser->username)); ?>" class="setting-link im icon-users" data-toggle="tooltip" data-placement="right"
               title="<?php echo $t->query('%userFullName%\'s connections', array('userFullName' => $profileUser->getFullName())); ?>"></a>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/user-connections-reference.volt # -->
 
                                <?php if ($this->user->getUser() && $this->user->getUser()->getIsProfessional()) { ?>
                                    
<!-- # @bepuppy/includes/user-professional.volt # { -->
<div class="join-section professional">
    <div class="join-col">
        <h2><?php echo $t->_('Profession'); ?></h2>
        <ul class="join-list list-unstyled professional">
            <?php foreach ($dataWorkWithPets['category'] as $_category) { ?>
                <li>
                    <?php echo $_category; ?>
                </li>
            <?php } ?>
        </ul>
        <hr class="invisible">
        <h2><?php echo $t->_('Specialized in'); ?></h2>
        <ul class="join-list list-unstyled professional">
            <?php foreach ($dataWorkWithPets['category_animal'] as $_categoryAnimal) { ?>
                <li>
                    <?php echo $_categoryAnimal; ?>
                </li>
            <?php } ?>
        </ul>
    </div>
</div>
<!-- } # @bepuppy/includes/user-professional.volt # -->
                                <?php } ?>
 
                                <?php if ($profileUser && $profileUser->getIsProfessional()) { ?>
                                    <div class="join-col" style="background: white">
                                        <ul class="join-list list-unstyled">
                                            
<!-- # @bepuppy/includes/network-reviews.volt # { -->
<?php echo \Phalcon\DI::getDefault()->get('widgets')->render('networkRatings', array('network' => $network->id)); ?>
<!-- } # @bepuppy/includes/network-reviews.volt # -->
                                        </ul>
                                    </div>
                                <?php } ?>
 
                                <?php if ($profileUser) { ?>
                                    <?php echo \Phalcon\DI::getDefault()->get('widgets')->render('pets', array('user' => $profileUser->id)); ?>
                                <?php } ?>
 
                                
                                
<!-- # @bepuppy/includes/user-photos.volt # { -->
<?php if ($profileUser) { ?>
    <div class="photos-box">
        <span class="category-img" data-picture data-alt="<?php echo $this->escaper->escapeHtml($t->query('%userFullName%\'s photos', array('userFullName' => $profileUser->getFullName()))); ?>">
            <span data-src="<?php echo $this->url->getStatic('bepuppy/assets/images/img7.jpg'); ?>"></span>
            <span data-src="<?php echo $this->url->getStatic('bepuppy/assets/images/img7-2x.jpg'); ?>" data-width="190" data-height="189" data-media="(-webkit-min-device-pixel-ratio:1.5), (min-resolution:144dpi)"></span>
            <!--[if (lt IE 9) & (!IEMobile)]>
                <span data-src="<?php echo $this->url->getStatic('bepuppy/assets/images/img7.jpg'); ?>"></span>
            <![endif]-->
            <!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
            
        </span>
        <?php if ($user && $profileUser->id == $this->user->id) { ?>
            <div class="topic">
                <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'type' => 'image', 'username' => $profileUser->username)); ?>"><strong><?php echo $t->_('My photos'); ?></strong> (<?php echo $countMediaImage; ?>)</a>
            </div>
            <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'type' => 'image', 'username' => $profileUser->username)); ?>" class="btn btn-sm text-uppercase btn-white"><?php echo $t->_('browse photos'); ?></a>
        <?php } else { ?>
            <div class="topic">
                <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'type' => 'image', 'username' => $profileUser->username)); ?>"><strong><?php echo $this->escaper->escapeHtml($t->query('%userFullName%\'s photos', array('userFullName' => mb_strlen($profileUser->getShortName()) < 8 ? mb_substr($profileUser->getShortName(),0,8) : mb_substr($profileUser->getShortName(),0,8) .''))); ?></strong> (<?php echo $countMediaImage; ?>)</a>
            </div>
            <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'type' => 'image', 'username' => $profileUser->username)); ?>" class="btn btn-sm text-uppercase btn-white"><?php echo $t->_('browse photos'); ?></a>
        <?php } ?>
    </div>
<?php } ?>
<!-- } # @bepuppy/includes/user-photos.volt # -->
                                
<!-- # @bepuppy/includes/user-videos.volt # { -->
<?php if ($profileUser) { ?>
    <div class="photos-box video">
        <span class="category-img" data-picture data-alt="<?php echo $this->escaper->escapeHtml($t->query('%userFullName%\'s videos', array('userFullName' => $profileUser->getFullName()))); ?>">
            <span data-src="<?php echo $this->url->getStatic('bepuppy/assets/images/img8.jpg'); ?>"></span>
            <span data-src="<?php echo $this->url->getStatic('bepuppy/assets/images/img8-2x.jpg'); ?>" data-width="191" data-height="190" data-media="(-webkit-min-device-pixel-ratio:1.5), (min-resolution:144dpi)"></span>
            <!--[if (lt IE 9) & (!IEMobile)]>
                <span data-src="<?php echo $this->url->getStatic('bepuppy/assets/images/img8.jpg'); ?>"></span>
            <![endif]-->
            <!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
            
        </span>
        <?php if ($profileUser->id == $this->user->id) { ?>
            <div class="topic">
                <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'type' => 'video', 'username' => $profileUser->username)); ?>"><strong><?php echo $t->_('My videos'); ?></strong> (<?php echo $countMediaVideo; ?>)</a>
            </div>
            <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'type' => 'video', 'username' => $profileUser->username)); ?>" class="btn btn-sm text-uppercase btn-white"><?php echo $t->_('browse videos'); ?></a>
        <?php } else { ?>
            <div class="topic">
                <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'type' => 'video', 'username' => $profileUser->username)); ?>"><strong><?php echo $this->escaper->escapeHtml($t->query('%userFullName%\'s videos', array('userFullName' => mb_strlen($profileUser->getShortName()) < 8 ? mb_substr($profileUser->getShortName(),0,8) : mb_substr($profileUser->getShortName(),0,8) .''))); ?></strong> (<?php echo $countMediaVideo; ?>)</a>
            </div>
            <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'type' => 'video', 'username' => $profileUser->username)); ?>" class="btn btn-sm text-uppercase btn-white"><?php echo $t->_('browse videos'); ?></a>
        <?php } ?>
    </div>
<?php } ?>
<!-- } # @bepuppy/includes/user-videos.volt # -->
                                
<!-- # @frontend/includes/user-settings.volt # { -->
<?php if ($this->user->getUser() && $profileUser && $profileUser->id == $this->user->id) { ?>
    <div class="setting-box">
        <div class="tooltip-holder">
            <a href="<?php echo $this->url->get(array('for' => 'userMySettings')); ?>" class="setting-link im icon-settings" data-toggle="tooltip" data-placement="right" title="<?php echo $t->_('Settings'); ?>"></a>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/user-settings.volt # -->
                            </div>
                        </div>
                    <?php } ?>
 
                    
<!-- # @frontend/includes/user-nav-mobile.volt # { -->
<?php if ($user && $profileUser) { ?>
    <ul class="user-nav-mobile">
        <?php if ($this->user->id != $profileUser->id) { ?>
            <li<?php if ($currentUrlName == 'network') { ?> class="active"<?php } ?>>
                <a href="<?php echo $profileUser->viewUrl; ?>"><?php echo $t->_('Posts'); ?></a>
            </li>
            <li<?php if (!empty($this->view->getParams()['type']) && $this->view->getParams()['type'] == 'image') { ?> class="active"<?php } ?>>
                <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'username' => $profileUser->username, 'type' => 'image')); ?>"><?php echo $t->_('Photos'); ?></a>
            </li>
            <li<?php if (!empty($this->view->getParams()['type']) && $this->view->getParams()['type'] == 'video') { ?> class="active"<?php } ?>>
                <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'username' => $profileUser->username, 'type' => 'video')); ?>"><?php echo $t->_('Videos'); ?></a>
            </li>
        <?php } else { ?>
            <li<?php if ($currentUrlName == 'userMyProfile') { ?> class="active"<?php } ?>>
                <a href="<?php echo $this->url->get(array('for' => 'userMyProfile')); ?>"><?php echo $t->_('Posts'); ?></a>
            </li>
            
                
            
            <li<?php if (!empty($this->view->getParams()['type']) && $this->view->getParams()['type'] == 'image') { ?> class="active"<?php } ?>>
                <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'username' => $profileUser->username, 'type' => 'image')); ?>"><?php echo $t->_('Photos'); ?></a>
            </li>
            <li<?php if (!empty($this->view->getParams()['type']) && $this->view->getParams()['type'] == 'video') { ?> class="active"<?php } ?>>
                <a href="<?php echo $this->url->get(array('for' => 'userFilterMedia', 'username' => $profileUser->username, 'type' => 'video')); ?>"><?php echo $t->_('Videos'); ?></a>
            </li>
            
                
            
        <?php } ?>
    </ul>
<?php } ?>
<!-- } # @frontend/includes/user-nav-mobile.volt # -->
                </div>
            </div>
        <?php } ?>
    </aside>
 
<?php } ?>
 
 
<?php if ($this->user->getUser() && $profileUser && $profileUser->id == $this->user->id) { ?>
    
<!-- # @frontend/includes/modals/create-network.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="modal fade" id="modalCreateNetwork" tabindex="-1" role="dialog" aria-labelledby="modalCreateNetworkLabel">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox modal-small">
                        <span class="icon"><span class="im icon-magic inner-icon"></span></span>
                        <strong class="heading"><?php echo $t->_('Create new network'); ?></strong>
                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">&times;</button>
                        <div class="lightbox-holder">
                            <?php echo $this->tag->form(array($this->url->get(array('for' => 'networkCreate')), 'method' => 'post', 'enctype' => 'multipart/form-data', 'class' => 'addnetwork-form', 'enctype' => 'multipart/form-data', 'data-pjax' => 'true', 'data-after-success' => 'createNetworkAfterSuccess')); ?>
                                
<!-- # @frontend/networks/forms/main.volt # { -->
<div class="form-group">
    <label class="title-label" for="networkname"><?php echo $t->_('Network URL'); ?></label>
    <div class="input-holder">
        <?php echo $formNetwork->render('url', array('placeholder' => $t->_('Network URL'))); ?>
    </div>
</div>
 
<div class="form-group">
    <label class="title-label" for="name"><?php echo $t->_('Network display name'); ?></label>
    <div class="input-holder">
        <?php echo $formNetwork->render('name', array('placeholder' => $t->_('Network display name'))); ?>
    </div>
</div>
 
 
<div class="form-group">
    <label class="title-label" for="description"><?php echo $t->_('Description'); ?></label>
    <div class="input-holder">
        <?php echo $formNetwork->render('description', array('placeholder' => $t->_('Network description'))); ?>
    </div>
</div>
<div class="select-row clearfix">
    <label class="title-label" for="network_type"><?php echo $t->_('Network type'); ?></label>
    <div class="select-holder">
        <span class="fake-select">
            <?php echo $formNetwork->render('network_type'); ?>
        </span>
    </div>
</div>
<div class="select-row clearfix">
    <label class="title-label" for="status"><?php echo $t->_('Type of access'); ?></label>
    <div class="select-holder">
        <span class="fake-select">
            <?php echo $formNetwork->render('status'); ?>
        </span>
    </div>
</div>
<div class="select-row clearfix payment_type" style="display: none;">
    <label class="title-label" for="payment_type"><?php echo $t->_('Payment type'); ?></label>
    <div class="select-holder">
        <span class="fake-select">
            <?php echo $formNetwork->render('payment_type'); ?>
        </span>
    </div>
</div>
<!-- } # @frontend/networks/forms/main.volt # -->
                                <input class="btn btn-success" type="submit" value="<?php echo $t->_('Create'); ?>" />
                            <?php echo $this->tag->endForm(); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/modals/create-network.volt # -->
<?php } ?>
<!-- } # @bepuppy/includes/sidebar-user.volt # -->
      
<!-- # @bepuppy/includes/sidebar-right.volt # { -->
<aside id="sidebarRight" class="sidebar-right clearfix">
 
    <?php echo \Phalcon\DI::getDefault()->get('widgets')->render('completeProfile', []); ?>
    
<!-- # @frontend/includes/user-online.volt # { -->
<?php if (isset($user)) { ?>
    <?php echo \Phalcon\DI::getDefault()->get('widgets')->render('usersOnline', []); ?>
<?php } ?>
<!-- } # @frontend/includes/user-online.volt # -->
    
    
    
<!-- # @frontend/includes/banners-right.volt # { -->
<div class="banner bannerSidebarRight">
  <?php echo $this->partial('banners/adsense', array('slot' => $this->config->banners->adsense->slotSidebarRight)); ?>
</div>
<!-- } # @frontend/includes/banners-right.volt # -->
 
    <div class="users visible-lg">
        <h2><?php echo $t->_('Invite your friends'); ?></h2>
        <a href="<?php echo $this->url->get('/invite'); ?>" class="btn btn-sidebarRight btn-block adi_open_popup_model">
            <?php echo $t->_('Invite Friends'); ?>
        </a>
    </div>
    <?php echo \Phalcon\DI::getDefault()->get('widgets')->render('staticPagesMenu', array('view' => 'sidebarRight', 'maxLinks' => 3)); ?>
</aside>
<!-- } # @bepuppy/includes/sidebar-right.volt # -->
    </div><!-- //.w1 -->
  </div><!-- //#wrapper -->
  
<!-- # @bepuppy/includes/modals-global.volt # { -->
<!-- # @frontend/includes/modals-global.volt # { -->
<!-- # @frontend/includes/modals/user-about-me.volt # { -->
<?php if ($profileUser) { ?>
    <div class="modal fade" id="modalUserAboutMe" tabindex="-1" role="dialog">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox">
                        <span class="icon"><span class="im icon-user inner-icon"></span></span>
                        <strong class="heading"><?php echo $t->query('About %userFullName%', array('userFullName' => $profileUser->getFullName())); ?></strong>
                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">&times;</button>
                        <div class="lightbox-holder">
                            <p class="default-font-size"><?php echo $profileUser->about; ?></p>
 
                            <p class="default-font-size user-interests"><?php echo $profileUser->displayInterests(); ?></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/modals/user-about-me.volt # -->
<!-- } # @frontend/includes/modals-global.volt # -->
 
 
<!-- # @frontend/includes/modals/create-network.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="modal fade" id="modalCreateNetwork" tabindex="-1" role="dialog" aria-labelledby="modalCreateNetworkLabel">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox modal-small">
                        <span class="icon"><span class="im icon-magic inner-icon"></span></span>
                        <strong class="heading"><?php echo $t->_('Create new network'); ?></strong>
                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">&times;</button>
                        <div class="lightbox-holder">
                            <?php echo $this->tag->form(array($this->url->get(array('for' => 'networkCreate')), 'method' => 'post', 'enctype' => 'multipart/form-data', 'class' => 'addnetwork-form', 'enctype' => 'multipart/form-data', 'data-pjax' => 'true', 'data-after-success' => 'createNetworkAfterSuccess')); ?>
                                
<!-- # @frontend/networks/forms/main.volt # { -->
<div class="form-group">
    <label class="title-label" for="networkname"><?php echo $t->_('Network URL'); ?></label>
    <div class="input-holder">
        <?php echo $formNetwork->render('url', array('placeholder' => $t->_('Network URL'))); ?>
    </div>
</div>
 
<div class="form-group">
    <label class="title-label" for="name"><?php echo $t->_('Network display name'); ?></label>
    <div class="input-holder">
        <?php echo $formNetwork->render('name', array('placeholder' => $t->_('Network display name'))); ?>
    </div>
</div>
 
 
<div class="form-group">
    <label class="title-label" for="description"><?php echo $t->_('Description'); ?></label>
    <div class="input-holder">
        <?php echo $formNetwork->render('description', array('placeholder' => $t->_('Network description'))); ?>
    </div>
</div>
<div class="select-row clearfix">
    <label class="title-label" for="network_type"><?php echo $t->_('Network type'); ?></label>
    <div class="select-holder">
        <span class="fake-select">
            <?php echo $formNetwork->render('network_type'); ?>
        </span>
    </div>
</div>
<div class="select-row clearfix">
    <label class="title-label" for="status"><?php echo $t->_('Type of access'); ?></label>
    <div class="select-holder">
        <span class="fake-select">
            <?php echo $formNetwork->render('status'); ?>
        </span>
    </div>
</div>
<div class="select-row clearfix payment_type" style="display: none;">
    <label class="title-label" for="payment_type"><?php echo $t->_('Payment type'); ?></label>
    <div class="select-holder">
        <span class="fake-select">
            <?php echo $formNetwork->render('payment_type'); ?>
        </span>
    </div>
</div>
<!-- } # @frontend/networks/forms/main.volt # -->
                                <input class="btn btn-success" type="submit" value="<?php echo $t->_('Create'); ?>" />
                            <?php echo $this->tag->endForm(); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php } ?>
<!-- } # @frontend/includes/modals/create-network.volt # -->
 
<!-- # @bepuppy/includes/modals/create-group.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="modal fade" id="modalCreateGroup" tabindex="-1" role="dialog" aria-labelledby="modalCreateGroupLabel">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox modal-small">
                        <span class="icon"><span class="im icon-magic inner-icon"></span></span>
                        <strong class="heading"><?php echo $t->_('Create new group'); ?></strong>
                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">×</button>
                        <div class="lightbox-holder">
                            <?php echo $this->tag->form(array($this->url->get('/networks/create'), 'method' => 'post', 'enctype' => 'multipart/form-data', 'class' => 'addnetwork-form', 'enctype' => 'multipart/form-data', 'data-pjax' => 'true', 'data-after-success' => 'createNetworkAfterSuccess')); ?>
                                
<!-- # @bepuppy/networks/forms/group.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="form-group">
        <label class="title-label" for="networkname"><?php echo $t->_('Group URL'); ?></label>
        <div class="input-holder">
            <?php echo $formGroupNetwork->render('url', array('placeholder' => $t->_('Group URL'))); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="name"><?php echo $t->_('Group display name'); ?></label>
        <div class="input-holder">
            <?php echo $formGroupNetwork->render('name', array('placeholder' => $t->_('Display name'))); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="description"><?php echo $t->_('Description'); ?></label>
        <div class="input-holder">
            <?php echo $formGroupNetwork->render('description', array('placeholder' => $t->_('Network description'))); ?>
        </div>
    </div>
 
    <?php echo $formGroupNetwork->render('network_type'); ?>
 
    <div class="select-row clearfix">
        <label class="title-label" for="status"><?php echo $t->_('Type of access'); ?></label>
        <div class="select-holder">
            <span class="fake-select">
                <?php echo $formGroupNetwork->render('status'); ?>
            </span>
        </div>
    </div>
<?php } ?>
<!-- } # @bepuppy/networks/forms/group.volt # -->
                                <input class="btn btn-success" type="submit" value="<?php echo $t->_('Create'); ?>" />
                            <?php echo $this->tag->endForm(); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php } ?>
<!-- } # @bepuppy/includes/modals/create-group.volt # -->
 
<!-- # @bepuppy/includes/network-pet.volt # { -->
<div class="modal fade" id="modalCreatePet" tabindex="-1" role="dialog" aria-labelledby="modalCreatePet">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div class="modal-lightbox">
                    <span class="icon"><span class="fa fa-paw inner-icon"></span></span>
                    <strong class="heading"><?php echo $t->_('Register your pet'); ?></strong>
                    <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">×</button>
                    <div class="lightbox-holder">
                        <?php echo $this->tag->form(array($this->url->get('networks/create'), 'method' => 'post', 'enctype' => 'multipart/form-data', 'class' => 'addnetwork-form', 'enctype' => 'multipart/form-data', 'data-pjax' => 'true', 'data-pjax-container' => 'main', 'data-after-success' => 'createCustomNetworkAfterSuccess')); ?>
                        
<!-- # @bepuppy/networks/forms/pet.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="form-group">
        <label class="title-label" for="url"><?php echo $t->_('+PetTag (vanity url)', 'bepuppy'); ?></label>
        <div class="input-holder">
            <?php echo $formPetNetwork->render('url'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="name"><?php echo $t->_('Pet Name', 'bepuppy'); ?></label>
        <div class="input-holder">
            <?php echo $formPetNetwork->render('name'); ?>
        </div>
    </div>
 
    <div class="row" >
        <div class="col-xs-6">
            <div class="select-row clearfix">
                <label><?php echo $t->_('Type', 'bepuppy'); ?></label>
                <div class="select-holder">
                    <?php echo $formPetNetwork->render('specie_id'); ?>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="select-row clearfix">
                <label><?php echo $t->_('Breed', 'bepuppy'); ?></label>
                <div class="select-holder">
                    <?php echo $formPetNetwork->render('specie_breed_id'); ?>
                </div>
            </div>
        </div>
    </div>
 
    <div class="row">
        <div class="col-xs-6">
            <div class="select-row clearfix">
                <label><?php echo $t->_('Gender'); ?></label>
                <div class="select-holder">
                    <?php echo $formPetNetwork->render('gender'); ?>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="select-row clearfix">
                <label><?php echo $t->_('Age'); ?></label>
                <div class="select-holder">
                    <?php echo $formPetNetwork->render('age'); ?>
                </div>
            </div>
        </div>
    </div>
 
    
 
    <div class="form-group">
        <label class="title-label" for="Description"><?php echo $t->_('About'); ?></label>
 
        <div class="input-holder">
            <?php echo $formPetNetwork->render('description'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="networkname"><?php echo $t->_('Pet location'); ?></label>
 
        <div class="input-holder">
            <?php echo $formPetNetwork->render('location_address'); ?>
            <?php echo $formPetNetwork->render('location_place_id'); ?>
        </div>
 
        
    </div>
 
    
 
    <?php if ($this->user->getUser()->getExistsNoProfit()) { ?>
    <div class="select-row clearfix">
        <label><?php echo $t->_('Assign to a nonprofit'); ?></label>
 
        <div class="select-holder">
            <?php echo $formPetNetwork->render('parent_id'); ?>
        </div>
    </div>
    <?php } ?>
 
    <div class="select-row select-pet-status clearfix js-noprofit-hide">
        <label><?php echo $t->_('Pet status'); ?></label>
 
        <div class="select-holder">
            <?php echo $formPetNetwork->render('pet_status'); ?>
        </div>
    </div>
 
    <div class="select-row clearfix js-noprofit-hide">
        <label><?php echo $t->_('Type of access'); ?></label>
 
        <div class="select-holder">
            <?php echo $formPetNetwork->render('status'); ?>
        </div>
    </div>
 
    <?php echo $formPetNetwork->render('network_type'); ?>
<?php } ?>
<!-- } # @bepuppy/networks/forms/pet.volt # -->
                        <input class="btn btn-success" type="submit" value="<?php echo $t->_('Register your pet'); ?>" />
                        <?php echo $this->tag->endForm(); ?>
                    </div>
                </div>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- } # @bepuppy/includes/network-pet.volt # -->
 
<!-- # @bepuppy/includes/network-noProfit.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="modal fade" id="modalCreateNoProfit" tabindex="-1" role="dialog" aria-labelledby="modalCreateNoProfitLabel">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox">
                        <span class="icon"><span class="im icon-chat inner-icon"></span></span>
                        <strong class="heading"><?php echo $t->_('Register your nonprofit'); ?></strong>
                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">×</button>
                        <div class="lightbox-holder">
                            <?php echo $this->tag->form(array($this->url->get('/networks/create'), 'method' => 'post', 'enctype' => 'multipart/form-data', 'class' => 'addnetwork-form', 'enctype' => 'multipart/form-data', 'data-pjax' => 'true', 'data-after-success' => 'createNetworkAfterSuccess')); ?>
                                
<!-- # @bepuppy/networks/forms/noProfit.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="form-group">
        <label class="title-label" for="organization_name"><?php echo $t->_('Nonprofit name'); ?></label>
        <div class="input-holder">
            <?php echo $formNoProfitNetwork->render('organization_name'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="legal_name"><?php echo $t->_('Group url'); ?></label>
        <div class="input-holder">
            <?php echo $formGroupNetwork->render('url'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="website"><?php echo $t->_('Website'); ?> <i class="fa fa-info" data-toggle="tooltip" data-placement="right" title="<?php echo $t->_('Please use an absolute URL (with the http://-prefix)'); ?>"></i></label>
        <div class="input-holder">
            <?php echo $formNoProfitNetwork->render('website'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="phone_number"><?php echo $t->_('Phone number'); ?></label>
        <div class="input-holder">
            <?php echo $formNoProfitNetwork->render('phone_number'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="description"><?php echo $t->_('Description'); ?></label>
        <div class="input-holder">
            <?php echo $formNoProfitNetwork->render('description'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="networkname"><?php echo $t->_('Workplace'); ?></label>
        <div class="input-holder">
            <?php echo $formNoProfitNetwork->render('location_address'); ?>
            <?php echo $formNoProfitNetwork->render('location_lat'); ?>
            <?php echo $formNoProfitNetwork->render('location_lng'); ?>
        </div>
    </div>
 
    
    
    <?php echo $formNoProfitNetwork->render('name'); ?>
    <?php echo $formNoProfitNetwork->render('status'); ?>
    <?php echo $formNoProfitNetwork->render('network_type'); ?>
<?php } ?>
<!-- } # @bepuppy/networks/forms/noProfit.volt # -->
                                <input class="btn btn-success" type="submit" value="Create" />
                            <?php echo $this->tag->endForm(); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php } ?>
<!-- } # @bepuppy/includes/network-noProfit.volt # -->
 
<!-- # @bepuppy/includes/network-businessNetwork.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="modal fade" id="modalCreateBusinessNetwork" tabindex="-1" role="dialog" aria-labelledby="modalCreateBusinessNetwork">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox">
                        <span class="icon"><span class="im icon-chat inner-icon"></span></span>
                        <strong class="heading"><?php echo $t->_('Register your business'); ?></strong>
                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">×</button>
                        <div class="lightbox-holder">
                            <?php echo $this->tag->form(array($this->url->get('/networks/create'), 'method' => 'post', 'enctype' => 'multipart/form-data', 'class' => 'addnetwork-form', 'enctype' => 'multipart/form-data', 'data-pjax' => 'true', 'data-after-success' => 'createNetworkAfterSuccess')); ?>
                                
<!-- # @bepuppy/networks/forms/business.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="select-row clearfix">
        <label for="category"><?php echo $t->_('Category'); ?></label>
        <div class="select-holder">
            <span class="fake-select">
                <?php echo $formBusinessNetwork->render('category'); ?>
            </span>
        </div>
    </div>
 
    <hr class="invisible">
 
    <div class="form-group">
        <label class="title-label" for="legal_name"><?php echo $t->_('Business Name'); ?></label>
        <div class="input-holder">
            <?php echo $formBusinessNetwork->render('legal_name'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="legal_name"><?php echo $t->_('Network url'); ?></label>
        <div class="input-holder">
            <?php echo $formBusinessNetwork->render('url'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="website"><?php echo $t->_('Website'); ?> <i class="fa fa-info" data-toggle="tooltip" data-placement="right" title="<?php echo $t->_('Please use an absolute URL (with the http://-prefix)'); ?>"></i></label>
        <div class="input-holder">
            <?php echo $formBusinessNetwork->render('website'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="phone_number"><?php echo $t->_('Phone number'); ?></label>
        <div class="input-holder">
            <?php echo $formBusinessNetwork->render('phone_number'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="description"><?php echo $t->_('Description'); ?></label>
        <div class="input-holder">
            <?php echo $formBusinessNetwork->render('description'); ?>
        </div>
    </div>
 
    <div class="form-group">
        <label class="title-label" for="networkname"><?php echo $t->_('Workplace'); ?></label>
        <div class="input-holder">
            <?php echo $formBusinessNetwork->render('location_address'); ?>
            <?php echo $formBusinessNetwork->render('location_lat'); ?>
            <?php echo $formBusinessNetwork->render('location_lng'); ?>
        </div>
    </div>
    
    <div class="form-group">
        <label class="title-label" for="coupon"><?php echo $t->_('Coupon code'); ?></label>
        <div class="input-holder">
            <?php echo $formBusinessNetwork->render('coupon'); ?>
        </div>
    </div>
 
 
    <div class="form-group">
        <label class="title-label" for="subscription_type"><?php echo $t->_('Subscription type'); ?></label>
        <div class="input-holder">
            <?php echo $formBusinessNetwork->render('subscription_type'); ?>
        </div>
    </div>
 
    <?php echo $formBusinessNetwork->render('name'); ?>
    <?php echo $formBusinessNetwork->render('status'); ?>
    <?php echo $formBusinessNetwork->render('network_type'); ?>
<?php } ?>
<!-- } # @bepuppy/networks/forms/business.volt # -->
                                <input class="btn btn-success" type="submit" value="<?php echo $t->_('Create'); ?>" />
                            <?php echo $this->tag->endForm(); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php } ?>
<!-- } # @bepuppy/includes/network-businessNetwork.volt # -->
 
<!-- # @bepuppy/includes/modals/workWith-pets.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="modal fade" id="modalWorkWithPets" tabindex="-1" role="dialog" aria-labelledby="modalWorkWithPetsLabel">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox modal-small">
                        <span class="icon"><span class="im icon-magic inner-icon"></span></span>
                        <strong class="heading"><?php echo $t->_('Be Professional'); ?></strong>
                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">&times;</button>
                        <div class="lightbox-holder">
 
                            <?php echo $this->tag->form(array($this->url->get(array('for' => 'userWorkWithPets')), 'method' => 'post', 'class' => 'addnetwork-form', 'data-pjax' => 'true', 'data-pjax-container' => 'main', 'data-after-success' => 'workWithPetsAfterSuccess')); ?>
 
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="title-label" for="networkname"><?php echo $t->_('Profession'); ?></label>
                                            <div class="input-holder">
                                                <?php echo $formWorkWithPets->render('category'); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="title-label" for="category_animal"><?php echo $t->_('Specialized in'); ?></label>
                                            <div class="input-holder">
                                                <?php echo $formWorkWithPets->render('category_animal'); ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                                <?php if ($this->user->getUser()->getIsPaidProfessional() == false) { ?>
                                    <div class="form-group">
                                        <label class="title-label" for="subscription_type"><?php echo $t->_('Subscription Type'); ?></label>
                                        <div class="input-holder">
                                            <?php echo $formWorkWithPets->render('subscription_type'); ?>
                                        </div>
                                    </div>
                                <?php } ?>
 
                                <input class="btn btn-success" type="submit" value="<?php echo $t->_('Save'); ?>" />
                            <?php echo $this->tag->endForm(); ?>
 
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php } ?>
<!-- } # @bepuppy/includes/modals/workWith-pets.volt # -->
 
<!-- # @bepuppy/includes/notification-alert.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="modal fade" id="modalNotificationAlert" tabindex="-1" role="dialog">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox modal-small">
                        <span class="icon"><span class="im icon-magic inner-icon"></span></span>
                        <strong class="heading"><?php echo $t->_('Send an alert'); ?></strong>
                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">×</button>
 
                        <div class="lightbox-holder">
                            <?php echo $this->tag->form(array($this->url->get(array('for' => 'notificationCreateAlert')), 'method' => 'post', 'class' => 'addnetwork-form', 'data-pjax' => 'true', 'data-pjax-container' => 'main', 'data-modal-close' => 'modalNotificationAlert')); ?>
 
                            <div class="select-row clearfix">
                                <label for="type"><?php echo $t->_('Alert type'); ?></label>
                                <div class="select-holder">
                                    <span class="fake-select">
                                        <?php echo $formNotificationAlert->render('type'); ?>
                                    </span>
                                </div>
                            </div>
 
                            <div class="form-group">
                                <label class="title-label" for="location_address"><?php echo $t->_('Where?'); ?></label>
                                <div class="input-holder">
                                    <?php echo $formNotificationAlert->render('location_address'); ?>
                                    <?php echo $formNotificationAlert->render('location_lat'); ?>
                                    <?php echo $formNotificationAlert->render('location_lng'); ?>
                                </div>
                            </div>
 
                            <div class="form-group">
                                <label class="title-label" for="info"><?php echo $t->_('Other informations'); ?></label>
                                <div class="input-holder">
                                    <?php echo $formNotificationAlert->render('info'); ?>
                                </div>
                            </div>
 
                            <p class="help-block">
                                <?php echo $t->_('Only users around your alert\'s location, who have not turned off notifications, will receive your notice'); ?>
                            </p>
 
                            <input class="btn btn-success" type="submit" value="<?php echo $t->_('Send alert'); ?>" />
                            <?php echo $this->tag->endForm(); ?>
 
                        </div>
                    </div>
 
                </div>
            </div>
        </div>
    </div>
<?php } ?>
<!-- } # @bepuppy/includes/notification-alert.volt # -->
 
<!-- # @bepuppy/includes/notification-missed-pet.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="modal fade" id="modalNotificationMissedPet" tabindex="0" role="dialog">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox">
                        <span class="icon"><span class="im icon-magic inner-icon"></span></span>
                        <strong class="heading"><?php echo $t->_('Report pet as lost'); ?></strong>
                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">&times;</button>
                        <div class="lightbox-holder">
 
                            <?php echo $this->tag->form(array($this->url->get(array('for' => 'notificationCreateMissedPet')), 'method' => 'post', 'class' => 'addnetwork-form', 'data-pjax' => 'true', 'data-pjax-container' => 'main', 'data-modal-close' => 'modalNotificationMissedPet')); ?>
 
                            <div class="form-group" id="block-pet">
                                <label class="title-label"><?php echo $t->_('Pet'); ?></label>
                                <br/>
                                <?php echo $formNotificationMissedPet->render('network'); ?>
                            </div>
 
                            <div class="form-group">
                                <label class="title-label" for="location_address"><?php echo $t->_('Pet\'s last know location'); ?></label>
                                <div class="input-holder">
                                    <?php echo $formNotificationMissedPet->render('location_address'); ?>
                                </div>
                            </div>
 
                            <div class="form-group">
                                <label class="title-label" for="info"><?php echo $t->_('Lost information details'); ?></label>
                                <div class="input-holder">
                                    <?php echo $formNotificationMissedPet->render('info'); ?>
                                </div>
                            </div>
 
                            <p class="help-block">
                                <?php echo $t->_('Only users around your pet\'s last know location, who have not turned off notifications, will receive your notice'); ?>
                            </p>
 
                            <input class="btn btn-success" type="submit" value="<?php echo $t->_('Ask help'); ?>" />
                            <?php echo $this->tag->endForm(); ?>
 
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php } ?>
<!-- } # @bepuppy/includes/notification-missed-pet.volt # -->
 
<!-- # @bepuppy/includes/posts/coupon.volt # { -->
<?php if ($this->user->getUser()) { ?>
    <div class="modal fade" id="modalCoupon" tabindex="-1" role="dialog" aria-labelledby="modalCouponLabel">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox modal-small">
                        <strong class="heading"><?php echo $t->_('Create an offer'); ?></strong>
                        <div class="lightbox-holder">
                            <span class="icon"><span class="im icon-magic inner-icon"></span></span>
                            <a href="#" class="close icon-close" data-dismiss="modal" aria-label="Close"></a>
 
                            <?php echo $this->tag->form(array($this->url->get(array('for' => 'postCreateCoupon')), 'method' => 'post', 'class' => 'addnetwork-form', 'id' => 'form-coupon', 'data-pjax' => 'true', 'data-pjax-type' => 'json', 'data-after-success' => 'postCreateCouponAfterSuccess')); ?>
 
                            <div class="form-group">
                                <label class="title-label" for="networkname"><?php echo $t->_('Title'); ?></label>
                                <div class="input-holder">
                                    <?php echo $formCoupon->render('name'); ?>
                                </div>
                            </div>
 
                            <hr class="invisible">
                            <div class="form-group">
                                <label class="title-label" for="Description"><?php echo $t->_('Description'); ?></label>
                                <div class="input-holder">
                                    <?php echo $formCoupon->render('description'); ?>
                                </div>
                            </div>
 
                            <div class="row">
                                <div class="col-xs-12">
                                    <div class="form-group">
                                        <label class="title-label" for="file1"><?php echo $t->_('Photo'); ?></label>
                                        <div class="input-holder">
                                            <?php echo $formCoupon->render('photo'); ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
 
                            <div class="form-row">
                                <div class="input-holder date">
                                    <label for="birthdate"><?php echo $t->_('Expiration date'); ?></label>
                                    <div class="birthday-picker" id="birthdayPickerWrap">
                                        <?php echo $formCoupon->render('expiration'); ?>
                                    </div>
                                </div>
                            </div>
 
                            <div class="form-group">
                                <label class="title-label" for="networkname"><?php echo $t->_('Coupon code'); ?></label>
                                <div class="input-holder">
                                    <?php echo $formCoupon->render('code'); ?>
                                </div>
                            </div>
 
                            <div class="select-row clearfix">
                                <label><?php echo $t->_('Offer type'); ?></label>
                                <div class="select-holder">
                                    <span class="fake-select">
                                        <?php echo $formCoupon->render('type'); ?>
                                    </span>
                                </div>
                            </div>
 
                            <div class="form-group" id="coupon-urlStore" style="display: none;">
                                <label class="title-label" for="url"><?php echo $t->_('Collection URL'); ?></label>
                                <div class="input-holder">
                                    <?php echo $formCoupon->render('url'); ?>
                                </div>
                            </div>
 
                            <input class="btn btn-success" type="submit" value="<?php echo $t->_('Create'); ?>" />
                            <?php echo $this->tag->endForm(); ?>
 
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
 
    <div class="modal fade" id="modalCouponView" tabindex="-1" role="dialog" aria-labelledby="modalCouponLabel">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="modal-lightbox modal-small">
                        <span class="icon"><span class="im icon-magic inner-icon"></span></span>
                        <strong class="heading"><?php echo $t->_('Claim offer'); ?></strong>
                        <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $t->_('Close'); ?>" aria-hidden="true">&times;</button>
                        <div class="lightbox-holder">
                            <p><?php echo $t->query('use the coupon %code% on checkout', array('code' => '<b id="code">XXXXX</b>')); ?></p>
                            <p>
                                <a href="" id="urlPrint" target="_blank" class="label label-primary label-print">
                                    <?php echo $t->_('Print offer'); ?>
                                </a>
                            </p>
                            <p><a href="" id="urlShop" class="btn btn-primary"><?php echo $t->_('Shop now'); ?></a></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php } ?>
<!-- } # @bepuppy/includes/posts/coupon.volt # -->
 
<div id="modal-global"></div>
<!-- } # @bepuppy/includes/modals-global.volt # -->
  
    
<!-- # @frontend/includes/inline-svg.volt # { -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
  <symbol viewBox="0 0 24 24" id="svg-clear_all">
    <path fill="currentColor" d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z" />
    <path d="M0 0h24v24H0z" fill="none" />
  </symbol>
  <symbol viewBox="0 0 512 512" id="svg-close">
    <path fill="currentColor" d="M512 120.86L391.14 0 255.998 135.146 120.855 0 0 120.86l135.132 135.146L0 391.146 120.855 512l135.142-135.128L391.14 512 512 391.146l-135.138-135.14" />
  </symbol>
  <symbol viewBox="0 0 18 18" id="svg-emotion">
    <path d="M0 0h18v18H0z" fill="none" />
    <path d="M6 8c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm6 0c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-3 5.5c2.14 0 3.92-1.5 4.38-3.5H4.62c.46 2 2.24 3.5 4.38 3.5zM9 1C4.57 1 1 4.58 1 9s3.57 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14.5c-3.59 0-6.5-2.91-6.5-6.5S5.41 2.5 9 2.5s6.5 2.91 6.5 6.5-2.91 6.5-6.5 6.5z"
    />
  </symbol>
  <symbol viewBox="0 0 16 14" id="svg-photo">
    <path fill="currentColor" d="M5.714.9C5.03.9 4.57 1.376 4.57 2.09v1.192H2.287C1.03 3.282 0 4.354 0 5.664v5.954C0 12.928 1.03 14 2.286 14h11.428C14.97 14 16 12.928 16 11.618V5.664c0-.492-.144-.95-.39-1.33-.412-.635-1.11-1.052-1.896-1.052H11.43v-1.19c0-.716-.46-1.192-1.144-1.192H5.714zM8 4.473c1.943 0 3.43 1.548 3.43 3.572 0 2.025-1.487 3.573-3.43 3.573S4.57 10.07 4.57 8.045 6.058 4.473 8 4.473zM8 6.26c-.8 0-1.513.636-1.68 1.434-.022.114-.034.232-.034.35 0 .954.8 1.788 1.714 1.788.914 0 1.714-.834 1.714-1.787 0-.952-.8-1.786-1.714-1.786z"
    />
  </symbol>
</svg>
<!-- } # @frontend/includes/inline-svg.volt # -->
  
  
    
<!-- # @bepuppy/includes/js.volt # { -->
<!-- # @frontend/includes/js.volt # { -->
<script>
    if (navigator.userAgent.match(/IEMobile\/10\.0/) || navigator.userAgent.match(/MSIE 10.*Touch/)) {
        var msViewportStyle = document.createElement('style')
        msViewportStyle.appendChild(
            document.createTextNode(
                '@-ms-viewport{width:auto !important}'
            )
        )
        document.querySelector('head').appendChild(msViewportStyle)
    }
 
    <?php $language_code = $language; ?>
    <?php if ($language_code == 'en') { ?>
        <?php $language_code = 'en_US'; ?>
    <?php } ?>
 
 
    window.SocialveoConfig = {
        'domainUrl'         : '<?php echo $this->config->api->hostname; ?>',
        'baseUri'           : '<?php echo $this->config->api->baseUri; ?>',
        'hashtagUrl'        : '<?php echo $this->config->api->hostname; ?><?php echo $this->config->api->baseUri; ?>hashtag/',
        'networkUrl'        : '<?php echo $this->config->api->hostname; ?><?php echo $this->config->api->baseUri; ?>network/',
        'language'          : '<?php echo $language_code; ?>',
        'locale'            : '<?php echo $language_code; ?>',
        'debug'             : true,
        'allowedExtensions': {
            'image': <?php echo json_encode($this->config->media->allowedImageExtensions->toArray()); ?>,
            'video': <?php echo json_encode($this->config->media->allowedVideoExtensions->toArray()); ?>,
            'files': <?php echo json_encode($this->config->media->allowedFileExtensions->toArray()); ?>
        },
        'post': {
            'maxUploadFiles': <?php echo $this->config->posts->maxUploadFiles; ?>,
            'thumbnail_size': 200
        },
        'comment': {
            'allowedUploadTypes': <?php echo json_encode($allowedCommentAttachmentsArray); ?>
        },
        'message': {
            'allowedUploadTypes': <?php echo json_encode($allowedMessageAttachmentsArray); ?>
        },
        'complete': <?php echo json_encode($this->config->mentions->toArray()); ?>,
        'socket': <?php echo json_encode($this->config->websocket->toArray()); ?>,
        // important: must be less than php ini post_max_size and upload_max_filesize values
        'uploadChunkSize': <?php echo $this->config->media->uploadChunkSize; ?> // bytes
    };
    window.network = {
        uuid: null
    };
    window.user = {
        uuid: null
    };
    window.dialog = {
        uuid: null
    };
 
    window.timestamp = <?php echo time(); ?>;
 
    <?php if (isset($network) && $network) { ?>
        window.network.id = '<?php echo $network->id; ?>';
        window.network.uuid = '<?php echo $network->uuid; ?>';
    <?php } ?>
 
    <?php if (isset($user) && $user) { ?>
        window.user.id = '<?php echo $this->user->id; ?>';
        window.user.uuid = '<?php echo $this->user->uuid; ?>';
    <?php } ?>
 
    <?php if (isset($messages_dialog) && $messages_dialog) { ?>
        window.dialog.id = '<?php echo $messages_dialog->id; ?>';
        window.dialog.uuid = '<?php echo $messages_dialog->uuid; ?>';
    <?php } ?>
 
    // embed google plus
    window.___gcfg = {
        lang : '<?php echo $language_code; ?>'.replace('_', '-'),
        parsetags: 'explicit',
        ready: []
    };
 
    // embed facebook
    window.___fbcfg = {
        appId: <?php if ($this->config->facebook->appID) { ?>'<?php echo $this->config->facebook->appID; ?>'<?php } else { ?><?php echo 'null'; ?><?php } ?>,
        version: 'v2.7',
        lang: '<?php echo $language_code; ?>',
        ready: []
    };
 
    // embed instagram
    window.___instcfg = {
        lang: '<?php echo $language_code; ?>',
        ready: []
    };
 
</script>
 
<?php echo $this->assets->outputJs(); ?>
 
<?php $flashSessionMessage = $this->flashSession->getMessages(); ?>
<?php if ($this->length($flashSessionMessage) > 0) { ?>
<script>
jQuery(document).one("socialveo.init", function () {
<?php foreach ($flashSessionMessage as $key => $item) { ?>
    <?php foreach ($item as $childItem) { ?>
    toastr.<?php echo $key; ?>(<?php echo json_encode($childItem); ?>);
    <?php } ?>
<?php } ?>
});
</script>
<?php } ?>
 
<script id="tpl-embed-rich" type="text/template">
    <div class="embed-remove-btn">
        <button type="button" class="close"><span>&times;</span></button>
    </div>
    <div class="embed-wrapper">
        <div class="<?php echo '{{'; ?>aspectRatio<?php echo '}}'; ?>">
            <?php echo '{{{'; ?>code<?php echo '}}}'; ?>
        </div>
        <div class="embed-meta">
            <a class="title" href="<?php echo '{{'; ?>url<?php echo '}}'; ?>" target="_blank"><?php echo '{{'; ?>title<?php echo '}}'; ?></a>
            <div class="text"><?php echo '{{'; ?>description<?php echo '}}'; ?></div>
            <div class="source"><?php echo '{{'; ?>providerUrl<?php echo '}}'; ?></div>
        </div>
    </div>
</script>
<script id="tpl-embed-photo" type="text/template">
    <div class="embed-remove-btn">
        <button type="button" class="close"><span>&times;</span></button>
    </div>
    <div class="embed-wrapper">
        <div class="embed-image">
            <div style="background-image:url('<?php echo '{{'; ?>url<?php echo '}}'; ?>');"></div>
        </div>
        <div class="embed-meta">
            <div class="source"><?php echo '{{'; ?>providerUrl<?php echo '}}'; ?></div>
        </div>
    </div>
</script>
<script id="tpl-embed-link" type="text/template">
    <div class="embed-remove-btn">
        <button type="button" class="close"><span>&times;</span></button>
    </div>
    <div class="embed-wrapper">
        <div class="embed-image">
            <div style="background-image:url('<?php echo '{{'; ?>image<?php echo '}}'; ?>');"></div>
        </div>
        <div class="embed-meta">
            <a class="title" href="<?php echo '{{'; ?>url<?php echo '}}'; ?>" target="_blank"><?php echo '{{'; ?>title<?php echo '}}'; ?></a>
            <div class="text"><?php echo '{{'; ?>description<?php echo '}}'; ?></div>
            <div class="source"><?php echo '{{'; ?>providerUrl<?php echo '}}'; ?></div>
        </div>
    </div>
</script>
<!-- } # @frontend/includes/js.volt # -->
 
<script type="text/javascript">
    <?php if ($this->user->getUser() && $network && $network->getIsAllowedPostCreateCoupon($this->user->getUser())) { ?>
        var accessCreateCoupon = 1;
    <?php } else { ?>
        var accessCreateCoupon = 0;
    <?php } ?>
    window.SocialveoConfig.petUrl = '<?php echo $this->url->get(array('for' => 'breedsList')); ?>';
</script>
<!-- } # @bepuppy/includes/js.volt # -->
  
</body>
</html>
<!-- } # @bepuppy/users/view.volt # -->
<!-- } # @bepuppy/layouts/user-profile.volt # -->
#5Phalcon\Mvc\View\Engine\Volt->render(/var/www/bepuppy.com/socialveo/bepuppy/frontend/views//bepuppy/users/view.volt, Array(26), true)
#6Phalcon\Mvc\View->_engineRender(Array([.volt] => Object(Socialveo\Core\library\view\Volt)), users/view, true, true, null)
/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/view/View.php (292)
<?php
/**
 * View.php
 * @author      {@link https://socialveo.com Socialveo}
 * @copyright   Copyright (C) 2017 Socialveo Sagl - All Rights Reserved
 * @license     Proprietary Software Socialveo (C) 2017, Socialveo Sagl {@link https://socialveo.com/legal Socialveo Legal Policies}
 * @package     Socialveo\Core\library\view
 * @category    Socialveo\Core\library\view
 * @since       1.0
 * @version     1.0
 */
 
namespace Socialveo\Core\library\view;
 
use Phalcon\Di;
use Phalcon\Di\InjectionAwareInterface;
use Phalcon\Mvc\View as BaseView;
use Phalcon\Mvc\View\EngineInterface;
 
/**
 * Class View
 * @package Socialveo\Core\library\view
 */
class View extends BaseView
{
    /**
     * Path aliases
     * @var array
     */
    protected $_aliases = [];
 
    /**
     * Fallback view paths
     * @var array
     */
    protected $_fallbackViewPaths = [];
 
    /**
     * The array with registered events
     * @var array
     */
    private $_registerEvents = [];
 
    /**
     * @var string|null
     */
    protected $_moduleView = null;
 
    /**
     * @var bool
     */
    protected $_origin = true;
 
    /**
     * @var array
     */
    protected $_originFallbackViewPaths = [];
 
    /**
     * Default domain
     * @var string
     */
    protected $_defaultDomain;
 
 
    /**
     * @return string
     */
    public function getOriginViewsDir()
    {
        if (!empty($this->_moduleView)) {
            return $this->_moduleView;
        }
        return $this->_moduleView = $this->_viewsDir;
    }
 
    /**
     * @return bool
     */
    public function isOrigin()
    {
        return $this->_origin;
    }
 
    /**
     * Set default domain
     * @param string $domain
     */
    public function setDefaultDomain($domain)
    {
        $this->_defaultDomain = $domain;
    }
 
    /**
     * Get default domain
     * @return string
     */
    public function getDefaultDomain()
    {
        return $this->_defaultDomain;
    }
 
    /**
     * Attach callback for register engine event
     * @param string $engine
     * @param callable $callback
     */
    public function onRegisterEngine($engine, $callback)
    {
        $engine = isset($engine{0}) && $engine{0} === '.' ? substr($engine, 1) : $engine;
        if (!isset($this->_registerEvents[$engine])) {
            $this->_registerEvents[$engine] = [];
        }
        $this->_registerEvents[$engine][] = $callback;
    }
 
    /**
     * @param string $name
     * @param EngineInterface $engine
     * @param InjectionAwareInterface $compiler
     */
    public function runRegisterEngineEvent($name, EngineInterface $engine, InjectionAwareInterface $compiler)
    {
        $name = isset($name{0}) && $name{0} === '.' ? substr($name, 1) : $name;
        if (isset($this->_registerEvents[$name])) {
            foreach ($this->_registerEvents[$name] as $callback) {
                call_user_func_array($callback, [$engine, $compiler]);
            }
        }
    }
 
    /**
     * Add path alias.
     * Example:
     * <code>
     *   $view->addPathAlias('module', '/path/to/module/views');
     * </code>
     * @param string $alias
     * @param string $path
     */
    public function addPathAlias($alias, $path)
    {
        $this->_aliases[$alias] = self::realpath($path);
    }
 
    /**
     * Set path aliases.
     * Example:
     * <code>
     *   $view->setPathAliases(['module' => '/path/to/module/views']);
     * </code>
     * @param array $aliases
     */
    public function setPathAliases(array $aliases)
    {
        foreach($aliases as $alias => $path) {
            $this->addPathAlias($alias, $path);
        }
    }
 
    /**
     * Get path aliases
     * @return array
     */
    public function getPathAliases()
    {
        return $this->_aliases;
    }
 
    /**
     * Add fallback path
     * @param string $path
     */
    public function addFallbackPath($path)
    {
        $this->_fallbackViewPaths[] = self::realpath($path);
    }
 
    /**
     * Get fallback paths
     * @return array
     */
    public function getFallbackPaths()
    {
        return $this->_fallbackViewPaths;
    }
 
    /**
     * Set fallback paths
     * @param array $paths
     * @return array
     */
    public function setFallbackPaths($paths)
    {
        return $this->_fallbackViewPaths = $paths;
    }
 
    /**
     * Get filemtime of all views of theme for recompile
     * @return bool
     */
    public function detectNeedRecompile()
    {
        $filemtime = 0;
        $scan = function ($path) use (&$filemtime, &$scan) {
            foreach (array_diff(scandir($path), ['.', '..']) as $name) {
                $filename = "$path/$name";
                if (is_dir($filename)) {
                    $scan($filename);
                } else {
                    $filemtime = max($filemtime, intval(filemtime($filename)));
                }
            }
        };
 
        $scan($this->_viewsDir);
        return  time() - $filemtime < 300;/* 5 min */
    }
 
    /**
     * Transforms relative path to full path.
     * Unlike native `realpath()` works correctly with the unix symlinks,
     * also this function doesn't check path existence.
     * @param string $path
     * @return string
     */
    protected static function realpath($path)
    {
        $path = trim($path, '/');
        $result = [];
        foreach (explode('/', $path) as $dir) {
            if ($dir === '..') {
                if (!empty($result)) {
                    array_pop($result);
                }
            } elseif (!empty($dir) && $dir !== '.') {
                $result[] = $dir;
            }
        }
        return '/' . implode('/', $result);
    }
 
    /**
     * Checks whether view exists on registered extensions and render it
     *
     * @param array $engines
     * @param string $viewPath
     * @param boolean $silence
     * @param boolean $mustClean
     * @param \Phalcon\Cache\BackendInterface $cache
     * @return null|void
     * @throws \Exception
     */
    protected function _engineRender($engines, $viewPath, $silence, $mustClean, \Phalcon\Cache\BackendInterface $cache = null)
    {
        $template = ltrim($viewPath, '/');
 
        if (isset($template{0}) && $template{0} === '@') { // alias
            $aliases = $this->_aliases;
            list($alias, $template) = explode('/', $template, 2);
            $alias = substr($alias, 1);
            if (isset($aliases[$alias])) {
                foreach ($engines as $ext => $engine) {
                    $viewEnginePath = preg_replace('#/{2,}#', '/', $aliases[$alias] . '/' . $template);
                    if ($this->templateExists($viewEnginePath, $ext)) {
                        $engine->render($viewEnginePath . $ext, $this->_viewParams, $mustClean);
                        return;
                    }
                }
            }
            throw new \Exception(sprintf('View \'%s\' was not found in the views directory', $template));
        }
 
        foreach (array_merge([$this->_viewsDir], $this->_fallbackViewPaths) as $path) {
            if ($this->_cacheRender($viewPath, $cache)) {
                return null;
            }
//            if (strlen($viewPath) >= ($pathLen = strlen($path))) {
//                if (substr($viewPath, 0, $pathLen) == $path) {
//                    $template = ltrim(substr($template, $pathLen-1), '/');
//                }
//            }
            $viewEnginePath = preg_replace('#/{2,}#', '/', $path . '/' . $template);
            foreach ($engines as $ext => $engine) {
                if ($this->templateExists($viewEnginePath, $ext)) {
                    $engine->render($viewEnginePath . $ext, $this->_viewParams, $mustClean);
                    return;
                }
            }
        }
 
        parent::_engineRender($engines, $viewPath, true, $mustClean, $cache);
    }
 
    /**
     * Render from cache
     *
     * @param string $viewPath
     * @param \Phalcon\Cache\BackendInterface $cache
     * @return bool
     */
    protected function _cacheRender($viewPath, \Phalcon\Cache\BackendInterface $cache = null)
    {
        if (is_object($cache)) {
            if ($this->_renderLevel >= $this->_cacheLevel) {
                if ($cache->isStarted() == false) {
                    $key = null;
                    $lifetime = null;
 
                    if (is_array($this->_options)) {
                        if (isset($viewOptions['cache']['key'])) {
                            $key = isset($viewOptions['cache']['key']);
                        }
                        if (isset($viewOptions['cache']['lifetime'])) {
                            $lifetime = isset($viewOptions['cache']['lifetime']);
                        }
                    }
 
                    if ($key === null) {
                        $key = md5($viewPath);
                    }
 
                    $cachedView = $cache->start($key, $lifetime);
                    if ($cachedView !== null) {
                        $this->_content = $cachedView;
                        return true;
                    }
                }
 
                if (!$cache->isFresh()) {
                    return true;
                }
            }
        }
        return false;
    }
 
    /**
     * Checks the template existence
     *
     * @param string $templatePath
     * @param array|string|false|null $extensions
     * @return bool
     */
    public function templateExists($templatePath, $extensions = null)
    {
        $templatePath = preg_replace('#/{2,}#', '/', $templatePath);
 
        /** @var \Phalcon\Cache\BackendInterface $cache */
        $cache = Di::getDefault()->get('cache');
        $key = '___tt' . md5($templatePath);
        $data = $cache->get($key);
        if ($data !== null) {
            return $data;
        }
 
        if ($extensions === null) {
            $extensions = array_keys($this->getRegisteredEngines());
        }
 
        if ($extensions) {
            if (!is_array($extensions)) {
                $extensions = [$extensions];
            }
            foreach ($extensions as $ext) {
                if (file_exists("$templatePath$ext")) {
                    $cache->save($key, true);
                    return true;
                }
            }
        } else {
            if (file_exists($templatePath)) {
                $cache->save($key, true);
                return true;
            }
        }
 
        $cache->save($key, false);
        return false;
    }
 
    /**
     * Pick view and return string content
     * @param string $renderView
     * @return string
     */
    public function getPick($renderView)
    {
        $this->pick($renderView);
        ob_start();
        $this->render('', '', null);
        return ob_get_clean();
    }
}
#7Socialveo\Core\library\view\View->_engineRender(Array([.volt] => Object(Socialveo\Core\library\view\Volt)), users/view, true, true, null)
#8Phalcon\Mvc\View->render(users, view, Array([username] => vivek))
#9Phalcon\Mvc\Application->handle()
/var/www/bepuppy.com/public/index.php (15)
<?php
 
//error_reporting(E_ALL | E_STRICT) ;
//ini_set('display_errors', 'On');
 
require '../socialveo/defines.php';
require '../vendor/autoload.php';
$config = inc(__DIR__ . '/../socialveo/config/config.php');
require SOCIALVEO_DIR . '/autoload.php';
 
(new \Phalcon\Debug())->listen();
 
$application = new \Socialveo\Core\Application();
$application->init($config);
echo $application->handle()->getContent();
 
KeyValue
_url/@vivek
KeyValue
USERwww
HOME/home/www
FCGI_ROLERESPONDER
QUERY_STRING_url=/@vivek&
REQUEST_METHODGET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME/index.php
REQUEST_URI/@vivek
DOCUMENT_URI/index.php
DOCUMENT_ROOT/var/www/bepuppy.com/public
SERVER_PROTOCOLHTTP/1.1
REQUEST_SCHEMEhttps
HTTPSon
GATEWAY_INTERFACECGI/1.1
SERVER_SOFTWAREnginx/1.12.1
REMOTE_ADDR54.80.87.166
REMOTE_PORT50506
SERVER_ADDR159.100.250.116
SERVER_PORT443
SERVER_NAMEwww.bepuppy.com
REDIRECT_STATUS200
PATH_INFO
PATH_TRANSLATED/var/www/bepuppy.com/public
SCRIPT_FILENAME/var/www/bepuppy.com/public/index.php
HTTP_USER_AGENTCCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_IF_MODIFIED_SINCESun, 19 Aug 2018 11:48:17 GMT
HTTP_HOSTwww.bepuppy.com
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip
PHP_SELF/index.php
REQUEST_TIME_FLOAT1539610522,5979
REQUEST_TIME1539610522
#Path
0/var/www/bepuppy.com/public/index.php
1/var/www/bepuppy.com/socialveo/defines.php
2/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/defines.php
3/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/functions.php
4/var/www/bepuppy.com/vendor/autoload.php
5/var/www/bepuppy.com/vendor/composer/autoload_real.php
6/var/www/bepuppy.com/vendor/composer/ClassLoader.php
7/var/www/bepuppy.com/vendor/composer/autoload_static.php
8/var/www/bepuppy.com/vendor/symfony/polyfill-mbstring/bootstrap.php
9/var/www/bepuppy.com/vendor/ircmaxell/password-compat/lib/password.php
10/var/www/bepuppy.com/vendor/symfony/polyfill-php55/bootstrap.php
11/var/www/bepuppy.com/vendor/symfony/polyfill-php54/bootstrap.php
12/var/www/bepuppy.com/vendor/guzzlehttp/psr7/src/functions_include.php
13/var/www/bepuppy.com/vendor/guzzlehttp/psr7/src/functions.php
14/var/www/bepuppy.com/vendor/guzzlehttp/promises/src/functions_include.php
15/var/www/bepuppy.com/vendor/guzzlehttp/promises/src/functions.php
16/var/www/bepuppy.com/vendor/guzzlehttp/guzzle/src/functions_include.php
17/var/www/bepuppy.com/vendor/guzzlehttp/guzzle/src/functions.php
18/var/www/bepuppy.com/vendor/mtdowling/jmespath.php/src/JmesPath.php
19/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/swift_required.php
20/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift.php
21/var/www/bepuppy.com/vendor/aws/aws-sdk-php/src/functions.php
22/var/www/bepuppy.com/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php
23/var/www/bepuppy.com/vendor/paragonie/random_compat/lib/random.php
24/var/www/bepuppy.com/vendor/paragonie/random_compat/lib/byte_safe_strings.php
25/var/www/bepuppy.com/vendor/paragonie/random_compat/lib/cast_to_int.php
26/var/www/bepuppy.com/vendor/paragonie/random_compat/lib/error_polyfill.php
27/var/www/bepuppy.com/vendor/paragonie/random_compat/lib/random_bytes_dev_urandom.php
28/var/www/bepuppy.com/vendor/paragonie/random_compat/lib/random_int.php
29/var/www/bepuppy.com/vendor/facebook/graph-sdk/src/Facebook/polyfills.php
30/var/www/bepuppy.com/vendor/illuminate/support/helpers.php
31/var/www/bepuppy.com/socialveo/config/config.php
32/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/config/config.php
33/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/config/config-core.php
34/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/autoload.php
35/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/Application.php
36/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/services/cache.php
37/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/services/router.php
38/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/services/url.php
39/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/services/session.php
40/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/Router.php
41/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/router/Route.php
42/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/ApiRoutes.php
43/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/router/Group.php
44/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/AuthRoutes.php
45/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/ChatRoutes.php
46/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/CircleRoutes.php
47/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/CommentsRoutes.php
48/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/ConnectionsRoutes.php
49/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/IndexRoutes.php
50/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/MediaRoutes.php
51/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/NetworksRoutes.php
52/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/PostsRoutes.php
53/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/SearchRoutes.php
54/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/UsersRoutes.php
55/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/PaymentsRoutes.php
56/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/routes/IframeRoutes.php
57/var/www/bepuppy.com/socialveo/config/router-closures.php
58/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/Url.php
59/var/www/bepuppy.com/socialveo/bepuppy/frontend/Module.php
60/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/Module.php
61/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/Module.php
62/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/volt/filters.php
63/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/volt/functions.php
64/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/acl.php
65/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/assets.php
66/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/config.php
67/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/ClassLoader.php
68/var/www/bepuppy.com/socialveo/config/payment.php
69/var/www/bepuppy.com/socialveo/bepuppy/core/models/Network.php
70/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/Network.php
71/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/SocialveoModel.php
72/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/Translatable.php
73/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/traits/JsonProperties.php
74/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/Payment.php
75/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/cookies.php
76/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/crypt.php
77/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/db.php
78/var/www/bepuppy.com/socialveo/bepuppy/frontend/services/dispatcher.php
79/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/filter.php
80/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/flash.php
81/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/flashSession.php
82/var/www/bepuppy.com/socialveo/bepuppy/frontend/services/language.php
83/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/mail.php
84/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/modelsManager.php
85/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/modelsMetadata.php
86/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/oauth2server.php
87/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/session.php
88/var/www/bepuppy.com/socialveo/bepuppy/frontend/services/translation.php
89/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/user.php
90/var/www/bepuppy.com/socialveo/bepuppy/frontend/services/view.php
91/var/www/bepuppy.com/vendor/emojione/emojione/lib/php/src/Client.php
92/var/www/bepuppy.com/vendor/emojione/emojione/lib/php/src/ClientInterface.php
93/var/www/bepuppy.com/vendor/emojione/emojione/lib/php/src/Emojione.php
94/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/services/volt.php
95/var/www/bepuppy.com/socialveo/bepuppy/frontend/services/widgets.php
96/var/www/bepuppy.com/socialveo/bepuppy/frontend/services/simpleView.php
97/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/view/View.php
98/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/plugins/ExceptionListener.php
99/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/plugins/WebEventListener.php
100/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/plugins/UserNotificationsListener.php
101/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/plugins/NotificationsListener.php
102/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/plugins/KarmaListener.php
103/var/www/bepuppy.com/socialveo/bepuppy/core/plugins/KarmaListener.php
104/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/plugins/NetworkListener.php
105/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/plugins/Captcha.php
106/var/www/bepuppy.com/socialveo/bepuppy/core/plugins/ControllerListener.php
107/var/www/bepuppy.com/socialveo/bepuppy/core/plugins/NotificationsListener.php
108/var/www/bepuppy.com/socialveo/bepuppy/core/plugins/MessagesListener.php
109/var/www/bepuppy.com/socialveo/bepuppy/core/plugins/PostListener.php
110/var/www/bepuppy.com/socialveo/bepuppy/core/plugins/PaymentListener.php
111/var/www/bepuppy.com/socialveo/bepuppy/core/plugins/InvitationListener.php
112/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/Dispatcher.php
113/var/www/bepuppy.com/socialveo/bepuppy/frontend/controllers/UsersController.php
114/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/controllers/UsersController.php
115/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/controllers/FrontendController.php
116/var/www/bepuppy.com/socialveo/config/acl.php
117/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/Acl.php
118/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/session/User.php
119/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/helpers/DateHelper.php
120/var/www/bepuppy.com/vendor/jenssegers/date/src/Date.php
121/var/www/bepuppy.com/vendor/nesbot/carbon/src/Carbon/Carbon.php
122/var/www/bepuppy.com/vendor/symfony/translation/Translator.php
123/var/www/bepuppy.com/vendor/symfony/translation/TranslatorInterface.php
124/var/www/bepuppy.com/vendor/symfony/translation/TranslatorBagInterface.php
125/var/www/bepuppy.com/vendor/symfony/translation/MessageSelector.php
126/var/www/bepuppy.com/vendor/symfony/translation/Loader/ArrayLoader.php
127/var/www/bepuppy.com/vendor/symfony/translation/Loader/LoaderInterface.php
128/var/www/bepuppy.com/vendor/jenssegers/date/src/Lang/en.php
129/var/www/bepuppy.com/vendor/jenssegers/date/src/Lang/it.php
130/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/Mailer.php
131/var/www/bepuppy.com/vendor/phalcon/incubator/Library/Phalcon/Mailer/Manager.php
132/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SmtpTransport.php
133/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php
134/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php
135/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport.php
136/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/swift_init.php
137/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/dependency_maps/cache_deps.php
138/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php
139/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/dependency_maps/mime_deps.php
140/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/mime_types.php
141/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/dependency_maps/message_deps.php
142/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/dependency_maps/transport_deps.php
143/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/preferences.php
144/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Preferences.php
145/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SmtpAgent.php
146/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/IoBuffer.php
147/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/InputByteStream.php
148/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/OutputByteStream.php
149/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php
150/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/AbstractFilterableInputStream.php
151/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Filterable.php
152/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/StreamFilters/StringReplacementFilterFactory.php
153/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ReplacementFilterFactory.php
154/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php
155/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpHandler.php
156/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/CramMd5Authenticator.php
157/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Authenticator.php
158/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/LoginAuthenticator.php
159/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/PlainAuthenticator.php
160/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
161/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/XOAuth2Authenticator.php
162/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/SimpleEventDispatcher.php
163/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/EventDispatcher.php
164/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php
165/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Signers/DKIMSigner.php
166/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Signers/HeaderSigner.php
167/var/www/bepuppy.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Signer.php
168/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/behaviors/JsonBehavior.php
169/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/behaviors/LocationBehavior.php
170/var/www/bepuppy.com/socialveo/bepuppy/core/models/User.php
171/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/User.php
172/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/MediaQuery.php
173/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/Media.php
174/var/www/bepuppy.com/socialveo/bepuppy/core/models/Post.php
175/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/Post.php
176/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/behaviors/HasAssociations.php
177/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/helpers/PostsHelper.php
178/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/helpers/MediaUploaderHelper.php
179/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/Comment.php
180/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/Messages.php
181/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/Gettext.php
182/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/forms/NetworkChangeAvatar.php
183/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/forms/NetworkChangeCover.php
184/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/Spam.php
185/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/forms/Network.php
186/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/validation/validator/UniquenessUrl.php
187/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/AssetManager.php
188/var/www/bepuppy.com/socialveo/config/asset-bundles.php
189/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/config/asset-bundles.php
190/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/view/Volt.php
191/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/library/view/VoltCompiler.php
192/var/www/bepuppy.com/socialveo/bepuppy/cache/%%var%%www%%bepuppy.com%%socialveo%%bepuppy%%frontend%%views%%bepuppy%%users%%view.volt.php
193/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/helpers/Url.php
194/var/www/bepuppy.com/vendor/emojione/emojione/lib/php/src/Ruleset.php
195/var/www/bepuppy.com/vendor/emojione/emojione/lib/php/src/RulesetInterface.php
196/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/Connection.php
197/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/core/models/PostQuery.php
198/var/www/bepuppy.com/vendor/phalcon-ext/widgets/src/Manager.php
199/var/www/bepuppy.com/socialveo/bepuppy/frontend/widgets/pets/Pets.php
200/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/widgets/WidgetBase.php
201/var/www/bepuppy.com/vendor/phalcon-ext/widgets/src/WidgetBase.php
202/var/www/bepuppy.com/vendor/phalcon-ext/widgets/src/WidgetInterface.php
203/var/www/bepuppy.com/socialveo/bepuppy/core/models/SpeciesBreeds.php
204/var/www/bepuppy.com/socialveo/bepuppy/cache/%%var%%www%%bepuppy.com%%socialveo%%bepuppy%%frontend%%widgets%%pets%%views%%index.volt.php
205/var/www/bepuppy.com/vendor/socialveo/socialveo/socialveo/frontend/widgets/completeProfile/CompleteProfile.php
Memory
Usage7077888