<?php
/* Smarty version 3.1.36, created on 2024-01-07 11:57:11
  from '/home/speedwincom/public_html/sistema/templates/digit/downloads.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.36',
  'unifunc' => 'content_659abbc7081663_20552195',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'f59877dbe6d3b0b36b6fbba5237aa33c996c54f8' => 
    array (
      0 => '/home/speedwincom/public_html/sistema/templates/digit/downloads.tpl',
      1 => 1533754762,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_659abbc7081663_20552195 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="wdes-block">
    <?php if (empty($_smarty_tpl->tpl_vars['dlcats']->value)) {?>
        <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"info",'msg'=>$_smarty_tpl->tpl_vars['LANG']->value['downloadsnone'],'textcenter'=>true), 0, true);
?>
    <?php } else { ?>
        <form role="form" method="post" action="<?php echo routePath('download-search');?>
">
            <div class="input-group input-group-lg kb-search margin-bottom">
                <input type="text" name="search" id="inputDownloadsSearch" class="form-control" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['downloadssearch'];?>
" />
                <span class="input-group-btn">
                    <input type="submit" id="btnDownloadsSearch" class="wdes-search-sub btn btn-primary btn-input-padded-responsive" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['search'];?>
" />
                </span>
            </div>
        </form>

        <div class="block-knb">
            <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['downloadsintrotext'];?>
</p>

            <h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['downloadscategories'];?>
</h2>

            <div class="row">
                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['dlcats']->value, 'dlcat');
$_smarty_tpl->tpl_vars['dlcat']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['dlcat']->value) {
$_smarty_tpl->tpl_vars['dlcat']->do_else = false;
?>
                    <div class="col-sm-6 wdes-knb-block">
                        <a href="<?php echo routePath('download-by-cat',$_smarty_tpl->tpl_vars['dlcat']->value['id'],$_smarty_tpl->tpl_vars['dlcat']->value['urlfriendlyname']);?>
">
                            <i class="fal fa-folder-open"></i>
                            <strong><?php echo $_smarty_tpl->tpl_vars['dlcat']->value['name'];?>
</strong>
                        </a>
                        (<?php echo $_smarty_tpl->tpl_vars['dlcat']->value['numarticles'];?>
)
                        <br>
                        <?php echo $_smarty_tpl->tpl_vars['dlcat']->value['description'];?>

                    </div>
                <?php
}
if ($_smarty_tpl->tpl_vars['dlcat']->do_else) {
?>
                    <div class="col-sm-12">
                        <p class="text-center fontsize3"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['downloadsnone'];?>
</p>
                    </div>
                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
            </div>
        </div>

        <div class="block-knb">
        <h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['downloadspopular'];?>
</h2>

        <div class="list-group">
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['mostdownloads']->value, 'download');
$_smarty_tpl->tpl_vars['download']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['download']->value) {
$_smarty_tpl->tpl_vars['download']->do_else = false;
?>
                <a href="<?php echo $_smarty_tpl->tpl_vars['download']->value['link'];?>
" class="list-group-item">
                    <strong>
                        <i class="fal fa-download"></i>
                        <?php echo $_smarty_tpl->tpl_vars['download']->value['title'];?>

                        <?php if ($_smarty_tpl->tpl_vars['download']->value['clientsonly']) {?>
                            <i class="fal fa-lock text-muted"></i>
                        <?php }?>
                    </strong>
                    <br>
                    <?php echo $_smarty_tpl->tpl_vars['download']->value['description'];?>

                    <br>
                    <small><?php echo $_smarty_tpl->tpl_vars['LANG']->value['downloadsfilesize'];?>
: <?php echo $_smarty_tpl->tpl_vars['download']->value['filesize'];?>
</small>
                </a>
            <?php
}
if ($_smarty_tpl->tpl_vars['download']->do_else) {
?>
                <span class="list-group-item text-center">
                    <?php echo $_smarty_tpl->tpl_vars['LANG']->value['downloadsnone'];?>

                </span>
            <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
        </div>
    <?php }?>
    </div>
</div><?php }
}
