F
F
foxayb2018-11-15 23:28:48
PHP
foxayb, 2018-11-15 23:28:48

What is the programming language?

Good evening. Help me understand what is written in the code. In a general sense, I have an understanding, this code calls blocks with news from the nov_product.html file. News are called in the amount of 20 pieces, but there is no understanding where to indicate the number and what kind of language to figure it out, php?

{%assign var='after_registration' value="<a href='`$settings.patch`users/register/' title='`$locale.117`'>`$locale.76`</a>" %}
{%assign var='count' value=$blocks.m|@count %}
{%assign var='count' value=`$count-1`%}	
{%if $count < 0%}{%assign var='count' value=0%}{%/if%}
{%assign var='counter' value=0%}
{%php%}
$this->_tpl_vars['new_messages'] = array();
{%/php%}	
{%foreach from=$messages item='message' name='i'%}	 
{%if $message.raised == 1%}	
{%php%}
$this->_tpl_vars['new_messages'][] = $this->_tpl_vars['message'];
{%/php%}
{%*include file='nov_product.html'*%}
{%/if%}
{%/foreach%}
{%php%}
shuffle($this->_tpl_vars['new_messages']);
{%/php%}
{%foreach from=$new_messages item='message' name='i'%}	 
{%include file='nov_product.html'%}
{%/foreach%}
{%foreach from=$messages item='message' name='i'%}
{%if $message.raised == 0%}	
{%include file='nov_product.html'%}
{%/if%}
{%/foreach%}

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2018-11-15
@foxayb

it's a template engine. very similar to smarty , but not it (or it, but with a perverted syntax).
Is this something ready or a complete self-writing?

A
Alexander, 2018-11-15
@zkelo

This is the Twig templating code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question