<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Движок сайтов S2 — Новые шаблоны]]></title>
		<link>https://s2cms.ru/forum/topic/186/</link>
		<description><![CDATA[Недавние сообщения в теме «Новые шаблоны».]]></description>
		<lastBuildDate>Wed, 22 May 2013 06:00:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Новые шаблоны]]></title>
			<link>https://s2cms.ru/forum/post/895/#p895</link>
			<description><![CDATA[<p>А где второй тег h1?</p><p>Вы правы. Пока пусть будет так из соображений совместимости. В следующих версиях надо продумать и доработать.</p>]]></description>
			<author><![CDATA[null@example.com (Роман)]]></author>
			<pubDate>Wed, 22 May 2013 06:00:53 +0000</pubDate>
			<guid>https://s2cms.ru/forum/post/895/#p895</guid>
		</item>
		<item>
			<title><![CDATA[Новые шаблоны]]></title>
			<link>https://s2cms.ru/forum/post/894/#p894</link>
			<description><![CDATA[<p>Очень понравился простой скрипт. Хотел сделать пару шкурок для себя. <br />Возникли несколько вопросов. <br />К большому сожалению, тэги вывода заголовком статей и выдержек <strong>зашиты в код</strong>. <br /></p><div class="codebox"><pre><code>function s2_last_articles ($num)
{
    $return = ($hook = s2_hook(&#039;fn_last_articles_start&#039;)) ? eval($hook) : null;
    if ($return)
        return $return;

    $articles = s2_last_articles_array($num);

    $output = &#039;&#039;;
    foreach ($articles as $item)
    {
        ($hook = s2_hook(&#039;fn_last_articles_loop&#039;)) ? eval($hook) : null;

        $output .= &#039;&lt;h2 class=&quot;preview&quot;&gt;&lt;small&gt;&lt;a class=&quot;preview_section&quot; href=&quot;&#039;.s2_link(preg_replace(&#039;#[^/]*$#&#039;, &#039;&#039;, $item[&#039;rel_path&#039;])).&#039;&quot;&gt;&#039;.$item[&#039;ptitle&#039;].&#039;&lt;/a&gt; &amp;rarr;&lt;/small&gt; &lt;a href=&quot;&#039;.s2_link($item[&#039;rel_path&#039;]).&#039;&quot;&gt;&#039;.s2_htmlencode($item[&#039;title&#039;]).&#039;&lt;/a&gt;&lt;/h2&gt;&#039;.
             &#039;&lt;div class=&quot;preview time&quot;&gt;&#039;.s2_date($item[&#039;time&#039;]).&#039;&lt;/div&gt;&#039;.
             &#039;&lt;div class=&quot;preview cite&quot;&gt;&#039;.$item[&#039;text&#039;].&#039;&lt;/div&gt;&#039;;
    }

    ($hook = s2_hook(&#039;fn_last_articles_end&#039;)) ? eval($hook) : null;

    return $output;
}</code></pre></div><p>Для меня не проблема переопредилить их хуками, но это для меня. </p><p>Вот еще пример:<br /></p><div class="codebox"><pre><code>$replace[&#039;&lt;!-- s2_title --&gt;&#039;] = !empty($page[&#039;title&#039;]) ? &#039;&lt;h1&gt;&#039;.$page[&#039;title&#039;].&#039;&lt;/h1&gt;&#039; : &#039;&#039;;</code></pre></div><p>Не должно быть на странице два тэга h1, но это мелочь. Проблема в том, что оно зашито в код.</p>]]></description>
			<author><![CDATA[null@example.com (Kravchenko)]]></author>
			<pubDate>Tue, 21 May 2013 19:45:11 +0000</pubDate>
			<guid>https://s2cms.ru/forum/post/894/#p894</guid>
		</item>
	</channel>
</rss>
