Blame view

views/compile/755c7f9b126ff4d8c2c19e7ad3091df6be76bd5a.file.index.tpl.php 6.91 KB
8d65d0ce   andryeyev   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
  <?php /* Smarty version Smarty-3.0.9, created on 2016-01-27 14:00:28
           compiled from "./modules/default/views/news/index.tpl" */ ?>
  <?php /*%%SmartyHeaderCode:2461156a8a34c8fe058-34928174%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  $_smarty_tpl->decodeProperties(array (
    'file_dependency' => 
    array (
      '755c7f9b126ff4d8c2c19e7ad3091df6be76bd5a' => 
      array (
        0 => './modules/default/views/news/index.tpl',
        1 => 1453883113,
        2 => 'file',
      ),
    ),
    'nocache_hash' => '2461156a8a34c8fe058-34928174',
    'function' => 
    array (
    ),
    'has_nocache_code' => false,
  )); /*/%%SmartyHeaderCode%%*/?>
  <?php if (!is_callable('smarty_modifier_date_format')) include 'D:\Server\OpenServer\domains\extremepride.dev\application\libs\Smarty-3.0.9\libs\plugins\modifier.date_format.php';
  if (!is_callable('smarty_modifier_escape')) include 'D:\Server\OpenServer\domains\extremepride.dev\application\libs\Smarty-3.0.9\libs\plugins\modifier.escape.php';
  if (!is_callable('smarty_modifier_stripslashes')) include 'D:\Server\OpenServer\domains\extremepride.dev\application\libs\Smarty-3.0.9\libs\plugins\modifier.stripslashes.php';
  if (!is_callable('smarty_modifier_truncate')) include 'D:\Server\OpenServer\domains\extremepride.dev\application\libs\Smarty-3.0.9\libs\plugins\modifier.truncate.php';
  ?>
  <?php if (count($_smarty_tpl->getVariable('news')->value['data'])){?>
   <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('news')->value['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
  if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
      $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
      if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
          $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
  } else
      $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
  if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):
  
              for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                   $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                   $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
  $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
  ?>
        <div class="news_row">
         <p><span class="date"><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['date'],"%d/%m/%Y");?>
  </span></p>
         <?php if ($_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['pic']){?><a href="<?php echo $_smarty_tpl->getVariable('url_lang')->value;?>
  /news/<?php echo $_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['translit'];?>
  -<?php echo $_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id'];?>
  /"><img class="pic" src="<?php echo $_smarty_tpl->getVariable('config')->value->url;?>
  /pics/news/<?php echo $_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['pic'];?>
  " border="0" align="left" alt="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['title'],'html');?>
  " title="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['title'],'html');?>
  "></a><?php }?>
         <p><a href="<?php echo $_smarty_tpl->getVariable('url_lang')->value;?>
  /news/<?php echo $_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['translit'];?>
  -<?php echo $_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id'];?>
  /" class="link4"><strong><?php echo $_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['title'];?>
  </strong></a></p>
         <p><?php echo smarty_modifier_truncate(strip_tags(smarty_modifier_stripslashes($_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['text'])),360);?>
   <a href="<?php echo $_smarty_tpl->getVariable('url_lang')->value;?>
  /news/<?php echo $_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['translit'];?>
  -<?php echo $_smarty_tpl->getVariable('news')->value['data'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id'];?>
  /" class="link_more"><?php echo @str3;?>
  </a></p>
         <div class="both"></div>
        </div>
   <?php endfor; endif; ?>
  
  <br />
  <?php if ($_smarty_tpl->getVariable('news')->value['links']){?><div class="pager">Ñòðàíèöû: <?php echo $_smarty_tpl->getVariable('news')->value['links'];?>
  </div><?php }?>
  <?php }?>