<commit_before><?
/**
* Belgian Police Web Platform - Questions Component
*
* @copyright	Copyright (C) 2012 - 2013 Timble CVBA. (http://www.timble.net)
* @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link		https://github.com/belgianpolice/internet-platform
*/
?>

<ktml:module position="left">
    <?= import('com:categories.view.categories.list.html') ?>
</ktml:module>

<title content="replace"><?= escape(translate($params->get('page_title'))); ?></title>

<h1 class="article__header"><?= escape(translate($params->get('page_title'))); ?></h1>

<? if(!$state->category) : ?>
    <?= import('default_search.html') ?>
<? endif ?>

<? if($state->category OR $state->searchword) : ?>
<? if(count($questions)) : ?>
<ul class="nav nav--pills nav--visited">
<? foreach ($questions as $question) : ?>
    <li>
        <a href="<?= helper('route.question', array('row' => $question)) ?>">
            <?= $question->title ?>
        </a>
    </li>
<? endforeach; ?>
</ul>
    <? else : ?>
    <h2 onload="_gaq.push(['_trackEvent', 'Questions','No results found','<?= $state->searchword ?>']);"><?= translate('No results found') ?>.</h2>
    <? endif ?>
<? else : ?>
   <ul class="nav nav--pills column--double">
        <? foreach ($categories as $category): ?>
            <li>
                <a href="<?= helper('route.category', array('row' => $category)) ?>">
                    <?= $category->title ?>
                </a>
            </li>
        <? endforeach ?>
    </ul>
<? endif ?>

<? if($state->category OR $state->searchword) : ?>
<?= helper('com:application.paginator.pagination', array('total' => $total, 'show_count' => false, 'show_limit' => false)) ?>
<? endif ?>

<?= import('default_contact.html') ?><commit_msg>Revert "re #671 - Add GA event tracking when no result is found"<commit_after><?
/**
* Belgian Police Web Platform - Questions Component
*
* @copyright	Copyright (C) 2012 - 2013 Timble CVBA. (http://www.timble.net)
* @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link		https://github.com/belgianpolice/internet-platform
*/
?>

<ktml:module position="left">
    <?= import('com:categories.view.categories.list.html') ?>
</ktml:module>

<title content="replace"><?= escape(translate($params->get('page_title'))); ?></title>

<h1 class="article__header"><?= escape(translate($params->get('page_title'))); ?></h1>

<? if(!$state->category) : ?>
    <?= import('default_search.html') ?>
<? endif ?>

<? if($state->category OR $state->searchword) : ?>
<? if(count($questions)) : ?>
<ul class="nav nav--pills nav--visited">
<? foreach ($questions as $question) : ?>
    <li>
        <a href="<?= helper('route.question', array('row' => $question)) ?>">
            <?= $question->title ?>
        </a>
    </li>
<? endforeach; ?>
</ul>
    <? else : ?>
    <h2><?= translate('No results found') ?>.</h2>
    <? endif ?>
<? else : ?>
   <ul class="nav nav--pills column--double">
        <? foreach ($categories as $category): ?>
            <li>
                <a href="<?= helper('route.category', array('row' => $category)) ?>">
                    <?= $category->title ?>
                </a>
            </li>
        <? endforeach ?>
    </ul>
<? endif ?>

<? if($state->category OR $state->searchword) : ?>
<?= helper('com:application.paginator.pagination', array('total' => $total, 'show_count' => false, 'show_limit' => false)) ?>
<? endif ?>

<?= import('default_contact.html') ?>
{'fraction_non_alphanumeric': 0.23577235772357724, 'fraction_numerical': 0.008420441347270616, 'mean_word_length': 3.3387909319899243, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 127, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '3753801', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1109, 'n_words': 214}