Blame view

src/app/frontend/views/menu/news.php 2.58 KB
1ea3b987   Administrator   maby first commit
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
  
  <div id="content" class="clearfix">
  <div class="news">
  <div class="breadcrumbs">
      <div class="inner">
          <div class="order_menu_shadow"></div>
          <ul class="clearfix">
              <li  itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="" class="float"><a  itemprop="url" href="<?= $this->seoUrl->setUrl('/')?>" title="<?= $t->_("main_page") ?>"><span itemprop="title"><?= $t->_("main_page") ?></span></a></li>
              <li class="float more"><img src="/images/breadcrumbs_arrow.png" alt="" height="7" width="7" /></li>
              <li  itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="" class="float"><a itemprop="url" href="<?= $this->seoUrl->setUrl('/news-actions')?>" title="<?= $t->_("news-actions") ?>" class="breadcrumbs_last"><span itemprop="title"><?= $t->_("news-actions") ?></span></a></li>
          </ul>
      </div>
  </div>
  
  <div class="news_wrapper clearfix">
      <div class="inner clearfix">
  
          <?php
  
          $data_news = '';
          foreach( $news as $k => $n )
          {
              $data_news .=
                  '<div class="one_news float'.( ($k+1)%2==0 ? ' last' : '' ).'">'.
                      '<div class="one_news_img float">'.
                          ( !empty( $n['cover'] )
                          ?
                              '<a href="'.$this->seoUrl->setUrl($n['link']).'" title="'.$n['title'].'">'.
                                  '<img src="'.$n['image'].'" alt="" width="180" height="120" />'.
                              (!empty( $n['video']) ? '<img class="video_play" src="/images/video_play.png" />' : '').
                              '</a>'
                          :
                              '').
  
                      '</div>'.
                      '<div class="one_news_content float'.( empty( $n['cover'] ) ? ' full_width' : '').'">'.
                          '<a href="'.$this->seoUrl->setUrl($n['link']).'" title="'.$n['title'].'">'.
                              '<h2>'.$n['title'].'</h2>'.
                          '</a>'.
                  '<p>'.$this->common->shortenString( $n['abstract_info'], 230 ).'</p>'.
  				'<p>'.date("d-m-Y", strtotime($n['publish_date'])).'</p>'.
                          '<a href="'.$this->seoUrl->setUrl($n['link']).'" title="'.$n['title'].'" class="news_more">'.$t->_("more").'</a>'.
                      '</div>'.
                  '</div>';
          }
  
          echo( $data_news );
  
          ?>
  
      </div>
      <?= $this->partial('partial/share'); ?>
  </div>
  
  <?php
  
  if( $total > \config::get( 'limits/news') )
  {
      echo('<div class="inner"><div class="paginate">');
      echo $paginate;
      echo('</div></div>');
  }
  
  ?>
  
  
  
  
  
  </div>
  </div>