<commit_before><?php
$escaper = (new \Zend\Escaper\Escaper);
$this->headMeta($escaper->escapeHtml('Početna strana PHPSrbija web sajta.'), 'description');
?>
<!-- First Event -->
<a href="#" class="link active-news">
    <div class="active-news-box" data-mobile-active-src="" data-tablet-active-src="" data-desktop-active-src="">
        <img class="active-news-box-mask" src="/images/news-mask.png">
    </div>
    <div class="active-news-box-content">
        <div class="title"></div>
        <div class="details"></div>
        <div class="author"></div>
    </div>
</a>
<!-- \First Event -->

<!-- Latest 4 Events -->
<div class="news-wrapper">
    <?php foreach($this->event()->getLatest() as $count => $event): ?>
        <a href="<?= $this->url('event', ['event_slug' => $event->slug]) ?>"
           class="link news <?= $count == 0 ? 'selected' : '' ?>"
           data-mobile-src="<?= $event->featured_img ?>"
           data-tablet-src="<?= $event->featured_img ?>"
           data-desktop-src="<?= $event->featured_img ?>"
           data-title="<?= $event->title ?>"
           data-image="<?= 'http://' . $_SERVER['HTTP_HOST'] . $event->main_img ?>">
            <div class="image-wrapper">
                <img src="<?= $event->main_img ?>">

                <div class="date-outer-wrapper">
                    <div class="headline">MEETUP</div>
                    <div class="date-inner-wrapper">
                        <div class="date"><?= date("d", strtotime($event->start_at)); ?></div>
                        <div class="month"><?= date("F", strtotime($event->start_at)); ?></div>
                    </div>
                </div>
                <button class="btn btn-share facebook-share-list">PODELI</button>
                <div class="news-box-hover"></div>
            </div>
            <div class="news-box-content">
                <div class="time-place">
                    <span><?= date("h", strtotime($event->start_at)); ?>h</span>@
                    <span><?= $event->place_name ?></span>
                </div>
                <div class="title"><?= $event->sub_title ?></div>
                <div class="details"></div>
                <div class="author"><NAME></div>
            </div>
        </a>
    <?php endforeach; ?>
</div>
<!-- \Latest 4 Events -->

<!-- Latest Blog Posts in Categories -->
<div class="forum">
    <!-- Categories -->
    <div class="headline">Poslednji članci</div>
    <ul class="tags-wrapper">
        <?php foreach($this->category()->forWeb() as $category): ?>
            <li><a class="link tag" href="#"><?= strtolower($category['name']) ?></a></li>
        <?php endforeach; ?>
    </ul>

    <!-- Posts -->
    <div class="forum-box-wrapper">
        <?php foreach($this->category()->forWeb() as $category): ?>
            <?php foreach($category['posts'] as $post): ?>
                <div class="forum-box" data-active-tag="<?= strtolower($category['name']) ?>">
                    <a href="#" class="image-wrapper">
                        <img src="<?= $post['face_img'] ?>"/>
                        <div class="name"><?= $post['first_name'] . ' ' . $post['last_name'] ?></div>
                    </a>
                    <div class="question-wrapper">
                        <a href="<?= $this->url('post', ['segment_1' => $category['slug'], 'segment_2' => $post['slug']]) ?>"
                           class="question">
                            <?= $post['title'] ?>
                        </a>
                        <div class="tag">
                            <?= $category['name'] ?>
                            <span class="circle">●</span>
                            <span class="posted"><?= date('d.m.y H:i', strtotime($post['published_at'])) ?>h</span>
                        </div>
                        <div class="comment-wrapper">
                            <a href="<?= $this->url('post', ['segment_1' => $category['slug'], 'segment_2' => $post['slug']]) ?>">
                                Komentariši
                            </a>
                        </div>
                    </div>
                    <div class="response-wrapper active">
                        <div class="response-number">0</div>
                        <div class="response-text">odgovora</div>
                    </div>
                </div>
            <?php endforeach; ?>
        <?php endforeach; ?>

        <div class="show-more">
            <a class="btn btn-white" href="<?= $this->url('category', ['category' => 'all']) ?>">POGLEDAJ SVE</a>
        </div>
    </div>
</div>
<!-- \Latest Blog Posts in Categories -->

<!-- Video section -->
<div class="videos">
    <div class="slider-video-wrapper">
        <div class="headline">Video Materijali</div>
        <div class="slider slider-video">
            <?php foreach($this->video()->getLatest() as $video): ?>
                <div class="video-slide">
                    <div class="video-wrapper">
                        <video poster="<?= $video->featured_img ?>">
                            <source src="#" type="video/mp4">
                        </video>
                        <div class="slider-video-hover-box"></div>
                        <div class="video-content-wrapper">
                            <div class="title"><?= $video->title ?></div>
                            <div class="description"><?= $video->lead ?></div>
                            <a href="<?= $this->url('video', ['video_slug' => $video->slug]) ?>"
                               class="btn btn-play icon-play">
                            </a>
                        </div>
                    </div>
                </div>
            <?php endforeach; ?>
        </div>
        <a class="link video" href="<?= $this->url('videos') ?>">Pogledaj sve video zapise</a>
    </div>
    <div class="slider slider-thumbnail">
        <?php foreach($this->video()->getLatest() as $video): ?>
            <div class="video-slide">
                <div class="video-wrapper">
                    <video poster="<?= $video->main_img ?>">
                        <source src="#" type="video/mp4">
                    </video>
                    <div class="slider-video-hover-box"></div>
                    <div class="video-content-wrapper">
                        <div class="title"><?= $video->title ?></div>
                        <div class="description"><?= $video->lead ?></div>
                        <button class="btn btn-play icon-play"></button>
                    </div>
                </div>
            </div>
        <?php endforeach; ?>
    </div>
</div>
<!-- \Video section -->

<!-- Latest Blog Posts -->
<div class="posts">
    <div class="headline">Ostali Članci & Aktuelnosti</div>
    <?php foreach($this->post()->forWeb() as $count => $post): ?>
        <article class="post-box <?= $count == 0 ? 'main' : '' ?>">
            <div class="image-wrapper" data-desktop-active-src="<?= $post->main_img ?>">
                <img src="<?= $post->main_img ?>"/>
                <div class="post-box-hover"></div>
            </div>
            <div class="post-box-content">
                <div class="section"><?= $post->category_name ?></div>
                <a href="<?= $this->url('post', ['segment_1' => $post['category_slug'], 'segment_2' => $post['slug']]) ?>"
                   class="title">
                    <span><?= $post->title ?></span>
                </a>
                <a href="<?= $this->url('post', ['segment_1' => $post['category_slug'], 'segment_2' => $post['slug']]) ?>"
                   class="author"><?= $post->first_name . ' ' . $post->last_name ?></a>
            </div>
        </article>
    <?php endforeach; ?>
</div>
<!-- \Latest Blog Posts -->

<div class="social-network">
    <div class="headline">Pratite nas i koristite
        <a href="https://twitter.com/phpsrbija" target="_blank">#PHPSrbija</a>
    </div>
    <div class="social-icons">
        <a href="https://sr-rs.facebook.com/udruzenjeprogramera.rs" target="_blank">
            <button class="btn btn-white social icon-facebook"></button>
        </a>
        <a href="https://twitter.com/phpsrbija" target="_blank">
            <button class="btn btn-white social icon-twitter"></button>
        </a>
        <a href="https://www.instagram.com/phpsrbija/" target="_blank">
            <button class="btn btn-white social instagram">
		        <span class="icon-instagram">
		            <span class="path1"></span>
		            <span class="path2"></span>
		            <span class="path3"></span>
		            <span class="path4"></span>
		        </span>
            </button>
        </a>
        <a href="https://www.linkedin.com/company-beta/2909733/" target="_blank">
            <button class="btn btn-white social icon-linkedin"></button>
        </a>
    </div>

    <!--
    <div class="slider slider-social">
        <div class="social-slide">
            <a href="#" class="image-wrapper">
                <img src="/images/social/1.jpg">
            </a>
        </div>
        <div class="social-slide">
            <div class="text-wrapper">
                <p>
                    Četvrti PHP Conference krajem maja u Beogradu – zajedno sa osnivačem PHP-a!
                    <a href="#">http://buff.ly/2m7Tx6B</a> cc <a href="#">@PHPSrbija</a>
                </p>
            </div>
        </div>
        <div class="social-slide">
            <a href="#" class="image-wrapper">
                <img src="/images/social/2.jpg">
            </a>
        </div>
        <div class="social-slide">
            <div class="text-wrapper">
                <p>
                    We are so proud to have Pirate Technologies as our Gold sponsor for the second year in a row!
                    <a href="#">http://conf2017.phpsrbija.rs/</a> <a href="#">#phpsrb17</a>
                </p>
            </div>
        </div>
        <div class="social-slide">
            <div class="text-wrapper">
                <p>Presenting our Gold sponsor - Quantox Technology <a
                            href="#">http://www.conf2017.phpsrbija.rs/post/9</a> <a href="#">#phpsrb17</a></p>
            </div>
        </div>
        <div class="social-slide">
            <a href="#" class="image-wrapper">
                <img src="/images/social/1.jpg">
            </a>
        </div>
        <div class="social-slide">
            <div class="text-wrapper">
                <p>Presenting our Gold sponsor - Quantox Technology <a
                            href="#">http://www.conf2017.phpsrbija.rs/post/9</a> <a href="#">#phpsrb17</a></p>
            </div>
        </div>
        <div class="social-slide">
            <a href="#" class="image-wrapper">
                <img src="/images/social/1.jpg">
            </a>
        </div>
    </div>
    -->
</div>

<!-- PHPSerbia UG members -->
<div class="society">
    <div class="intro">
        <div class="meet">Upoznajte članove udruženja</div>
        <!-- <a class="link reload icon-reload" href="#"></a> -->
    </div>
    <div class="members">
        <?php foreach($this->webAdmin()->getRandom() as $user): ?>
            <article>
                <img src="<?= $user->profile_img ?>"/>
                <div class="hover-box">
                    <div class="center-box">
                        <div class="inner-box y-centered">
                            <p class="name"><?= $user->first_name . ' ' . $user->last_name ?></p>

                            <p class="title"><?= $user->introduction ?></p>
                        </div>
                    </div>
                    <button class="btn btn-link icon-close"></button>
                </div>
            </article>
        <?php endforeach; ?>
        <article class="add">
            <a class="link abs-wrapper" href="/vesti/uskoro">
                <div class="center">
                    <div class="add-user"></div>
                    <div class="you">PRIKLJUČI SE I TI</div>
                </div>
            </a>
        </article>
    </div>
</div>
<!-- \PHPSerbia UG members --><commit_msg>set seo for homepage<commit_after><?php
$escaper = (new \Zend\Escaper\Escaper);
$domain  = "http://$_SERVER[HTTP_HOST]";
$this->headMeta('PHP Srbija udruženje programera', 'description');
$this->headMeta('PHP Srbija udruženje', 'og:title');
$this->headMeta('page', 'og:type');
$this->headMeta($domain . '/images/logo.png', 'og:image');
$this->headMeta($domain, 'og:url');
$this->headMeta('PHP Srbija udruženje programera', 'og:description');
?>
<!-- First Event -->
<a href="#" class="link active-news">
    <div class="active-news-box" data-mobile-active-src="" data-tablet-active-src="" data-desktop-active-src="">
        <img class="active-news-box-mask" src="/images/news-mask.png">
    </div>
    <div class="active-news-box-content">
        <div class="title"></div>
        <div class="details"></div>
        <div class="author"></div>
    </div>
</a>
<!-- \First Event -->

<!-- Latest 4 Events -->
<div class="news-wrapper">
    <?php foreach($this->event()->getLatest() as $count => $event): ?>
        <a href="<?= $this->url('event', ['event_slug' => $event->slug]) ?>"
           class="link news <?= $count == 0 ? 'selected' : '' ?>"
           data-mobile-src="<?= $event->featured_img ?>"
           data-tablet-src="<?= $event->featured_img ?>"
           data-desktop-src="<?= $event->featured_img ?>"
           data-title="<?= $event->title ?>"
           data-image="<?= 'http://' . $_SERVER['HTTP_HOST'] . $event->main_img ?>">
            <div class="image-wrapper">
                <img src="<?= $event->main_img ?>">

                <div class="date-outer-wrapper">
                    <div class="headline">MEETUP</div>
                    <div class="date-inner-wrapper">
                        <div class="date"><?= date("d", strtotime($event->start_at)); ?></div>
                        <div class="month"><?= date("F", strtotime($event->start_at)); ?></div>
                    </div>
                </div>
                <button class="btn btn-share facebook-share-list">PODELI</button>
                <div class="news-box-hover"></div>
            </div>
            <div class="news-box-content">
                <div class="time-place">
                    <span><?= date("h", strtotime($event->start_at)); ?>h</span>@
                    <span><?= $event->place_name ?></span>
                </div>
                <div class="title"><?= $event->sub_title ?></div>
                <div class="details"></div>
                <div class="author">PHP Srbija</div>
            </div>
        </a>
    <?php endforeach; ?>
</div>
<!-- \Latest 4 Events -->

<!-- Latest Blog Posts in Categories -->
<div class="forum">
    <!-- Categories -->
    <div class="headline">Poslednji članci</div>
    <ul class="tags-wrapper">
        <?php foreach($this->category()->forWeb() as $category): ?>
            <li><a class="link tag" href="#"><?= strtolower($category['name']) ?></a></li>
        <?php endforeach; ?>
    </ul>

    <!-- Posts -->
    <div class="forum-box-wrapper">
        <?php foreach($this->category()->forWeb() as $category): ?>
            <?php foreach($category['posts'] as $post): ?>
                <div class="forum-box" data-active-tag="<?= strtolower($category['name']) ?>">
                    <a href="#" class="image-wrapper">
                        <img src="<?= $post['face_img'] ?>"/>
                        <div class="name"><?= $post['first_name'] . ' ' . $post['last_name'] ?></div>
                    </a>
                    <div class="question-wrapper">
                        <a href="<?= $this->url('post', ['segment_1' => $category['slug'], 'segment_2' => $post['slug']]) ?>"
                           class="question">
                            <?= $post['title'] ?>
                        </a>
                        <div class="tag">
                            <?= $category['name'] ?>
                            <span class="circle">●</span>
                            <span class="posted"><?= date('d.m.y H:i', strtotime($post['published_at'])) ?>h</span>
                        </div>
                        <div class="comment-wrapper">
                            <a href="<?= $this->url('post', ['segment_1' => $category['slug'], 'segment_2' => $post['slug']]) ?>">
                                Komentariši
                            </a>
                        </div>
                    </div>
                    <div class="response-wrapper active">
                        <div class="response-number">0</div>
                        <div class="response-text">odgovora</div>
                    </div>
                </div>
            <?php endforeach; ?>
        <?php endforeach; ?>

        <div class="show-more">
            <a class="btn btn-white" href="<?= $this->url('category', ['category' => 'all']) ?>">POGLEDAJ SVE</a>
        </div>
    </div>
</div>
<!-- \Latest Blog Posts in Categories -->

<!-- Video section -->
<div class="videos">
    <div class="slider-video-wrapper">
        <div class="headline">Video Materijali</div>
        <div class="slider slider-video">
            <?php foreach($this->video()->getLatest() as $video): ?>
                <div class="video-slide">
                    <div class="video-wrapper">
                        <video poster="<?= $video->featured_img ?>">
                            <source src="#" type="video/mp4">
                        </video>
                        <div class="slider-video-hover-box"></div>
                        <div class="video-content-wrapper">
                            <div class="title"><?= $video->title ?></div>
                            <div class="description"><?= $video->lead ?></div>
                            <a href="<?= $this->url('video', ['video_slug' => $video->slug]) ?>"
                               class="btn btn-play icon-play">
                            </a>
                        </div>
                    </div>
                </div>
            <?php endforeach; ?>
        </div>
        <a class="link video" href="<?= $this->url('videos') ?>">Pogledaj sve video zapise</a>
    </div>
    <div class="slider slider-thumbnail">
        <?php foreach($this->video()->getLatest() as $video): ?>
            <div class="video-slide">
                <div class="video-wrapper">
                    <video poster="<?= $video->main_img ?>">
                        <source src="#" type="video/mp4">
                    </video>
                    <div class="slider-video-hover-box"></div>
                    <div class="video-content-wrapper">
                        <div class="title"><?= $video->title ?></div>
                        <div class="description"><?= $video->lead ?></div>
                        <button class="btn btn-play icon-play"></button>
                    </div>
                </div>
            </div>
        <?php endforeach; ?>
    </div>
</div>
<!-- \Video section -->

<!-- Latest Blog Posts -->
<div class="posts">
    <div class="headline">Ostali Članci & Aktuelnosti</div>
    <?php foreach($this->post()->forWeb() as $count => $post): ?>
        <article class="post-box <?= $count == 0 ? 'main' : '' ?>">
            <div class="image-wrapper" data-desktop-active-src="<?= $post->main_img ?>">
                <img src="<?= $post->main_img ?>"/>
                <div class="post-box-hover"></div>
            </div>
            <div class="post-box-content">
                <div class="section"><?= $post->category_name ?></div>
                <a href="<?= $this->url('post', ['segment_1' => $post['category_slug'], 'segment_2' => $post['slug']]) ?>"
                   class="title">
                    <span><?= $post->title ?></span>
                </a>
                <a href="<?= $this->url('post', ['segment_1' => $post['category_slug'], 'segment_2' => $post['slug']]) ?>"
                   class="author"><?= $post->first_name . ' ' . $post->last_name ?></a>
            </div>
        </article>
    <?php endforeach; ?>
</div>
<!-- \Latest Blog Posts -->

<div class="social-network">
    <div class="headline">Pratite nas i koristite
        <a href="https://twitter.com/phpsrbija" target="_blank">#PHPSrbija</a>
    </div>
    <div class="social-icons">
        <a href="https://sr-rs.facebook.com/udruzenjeprogramera.rs" target="_blank">
            <button class="btn btn-white social icon-facebook"></button>
        </a>
        <a href="https://twitter.com/phpsrbija" target="_blank">
            <button class="btn btn-white social icon-twitter"></button>
        </a>
        <a href="https://www.instagram.com/phpsrbija/" target="_blank">
            <button class="btn btn-white social instagram">
		        <span class="icon-instagram">
		            <span class="path1"></span>
		            <span class="path2"></span>
		            <span class="path3"></span>
		            <span class="path4"></span>
		        </span>
            </button>
        </a>
        <a href="https://www.linkedin.com/company-beta/2909733/" target="_blank">
            <button class="btn btn-white social icon-linkedin"></button>
        </a>
    </div>

    <!--
    <div class="slider slider-social">
        <div class="social-slide">
            <a href="#" class="image-wrapper">
                <img src="/images/social/1.jpg">
            </a>
        </div>
        <div class="social-slide">
            <div class="text-wrapper">
                <p>
                    Četvrti PHP Conference krajem maja u Beogradu – zajedno sa osnivačem PHP-a!
                    <a href="#">http://buff.ly/2m7Tx6B</a> cc <a href="#">@PHPSrbija</a>
                </p>
            </div>
        </div>
        <div class="social-slide">
            <a href="#" class="image-wrapper">
                <img src="/images/social/2.jpg">
            </a>
        </div>
        <div class="social-slide">
            <div class="text-wrapper">
                <p>
                    We are so proud to have Pirate Technologies as our Gold sponsor for the second year in a row!
                    <a href="#">http://conf2017.phpsrbija.rs/</a> <a href="#">#phpsrb17</a>
                </p>
            </div>
        </div>
        <div class="social-slide">
            <div class="text-wrapper">
                <p>Presenting our Gold sponsor - Quantox Technology <a
                            href="#">http://www.conf2017.phpsrbija.rs/post/9</a> <a href="#">#phpsrb17</a></p>
            </div>
        </div>
        <div class="social-slide">
            <a href="#" class="image-wrapper">
                <img src="/images/social/1.jpg">
            </a>
        </div>
        <div class="social-slide">
            <div class="text-wrapper">
                <p>Presenting our Gold sponsor - Quantox Technology <a
                            href="#">http://www.conf2017.phpsrbija.rs/post/9</a> <a href="#">#phpsrb17</a></p>
            </div>
        </div>
        <div class="social-slide">
            <a href="#" class="image-wrapper">
                <img src="/images/social/1.jpg">
            </a>
        </div>
    </div>
    -->
</div>

<!-- PHPSerbia UG members -->
<div class="society">
    <div class="intro">
        <div class="meet">Upoznajte članove udruženja</div>
        <!-- <a class="link reload icon-reload" href="#"></a> -->
    </div>
    <div class="members">
        <?php foreach($this->webAdmin()->getRandom() as $user): ?>
            <article>
                <img src="<?= $user->profile_img ?>"/>
                <div class="hover-box">
                    <div class="center-box">
                        <div class="inner-box y-centered">
                            <p class="name"><?= $user->first_name . ' ' . $user->last_name ?></p>

                            <p class="title"><?= $user->introduction ?></p>
                        </div>
                    </div>
                    <button class="btn btn-link icon-close"></button>
                </div>
            </article>
        <?php endforeach; ?>
        <article class="add">
            <a class="link abs-wrapper" href="/vesti/uskoro">
                <div class="center">
                    <div class="add-user"></div>
                    <div class="you">PRIKLJUČI SE I TI</div>
                </div>
            </a>
        </article>
    </div>
</div>
<!-- \PHPSerbia UG members -->
{'fraction_non_alphanumeric': 0.19832721338229295, 'fraction_numerical': 0.004324765401876785, 'mean_word_length': 1.588825517532742, 'pattern_counts': {'":': 0, '<': 732, '<?xml version=': 0, '>': 868, 'https://': 10, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7626236', 'n_tokens_mistral': 7257, 'n_tokens_neox': 7073, 'n_words': 1399}