A
A
alex_ak12016-08-16 14:10:06
CMS
alex_ak1, 2016-08-16 14:10:06

What is the site template written on?

I have a site with my self-written cms. Part of the site is a php code, there are no questions about it, and part is some tpl-files with the following content:

{if $announce_events}
  <div class="title">
    <h2 class=""><a href="/exhibitions/{url mode=announce}">Анонсы и мероприятия</a></h2>
  </div>
  <div class="inform-block">
  {foreach from=$announce_events item=row}
    <div class="news">
      <div class="row">
      {if $row.img}
        <div class="span1">
          <a href="/exhibitions/{url id=$row.id}"><img src="{$row.img}" alt="" /></a>
        </div>
      {/if}
        <div class="span5{if $row.img} offset1{/if}">
          <p class="title-news"><a href="/exhibitions/{url id=$row.id}">{$row.name}</a></p>
          <p>{$row.small}</p>
          <p><span class="data">{$row.interval}</span></p>
        </div>
      </div>
    </div>
  {/foreach}
  <div class="link-archive"><a href="/exhibitions/{url mode=announce}">Все анонсы</a>&rarr;</div>
  </div>
{/if}

I don't understand what it is? Like php, but not like that. How to declare a variable here and use it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Muhammad, 2016-08-16
@alex_ak1

Smarty

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question