<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://ngcms.ru/forum/extern.php?action=feed&amp;tid=506&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Next Generation CMS :: Форум поддержкиШаблоны в админ-панели.]]></title>
		<link>https://ngcms.ru/forum/viewtopic.php?id=506</link>
		<description><![CDATA[Самые свежие сообщения в Шаблоны в админ-панели..]]></description>
		<lastBuildDate>Sun, 14 Jun 2009 07:59:19 +0000</lastBuildDate>
		<generator>FluxBB 1.5.11</generator>
		<item>
			<title><![CDATA[Шаблоны в админ-панели.]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=4695#p4695</link>
			<description><![CDATA[<p>Некоторые предложения по шаблонам в админ-панели:<br />1. Убрать engine\skins\default\index.php, вместо него сделать нормальный engine\skins\default\tpl\main.tpl, в котором не будет php кода.</p><p>2. </p><p>engine/admin.php</p><div class="codebox"><pre><code>// We have only one admin panel skin
@require_once(&quot;./skins/default/index.php&quot;);</code></pre></div><p>engine/includes/inc/consts.inc.php:</p><div class="codebox"><pre><code>@define(&#039;skins_url&#039;, admin_url.&#039;/skins/default&#039;);
@define(&#039;tpl_actions&#039;, root.&#039;skins/default/tpl/&#039;);</code></pre></div><p>Сделать возможность смены шаблона админ-панели без правки кода.</p><p>3. Для login.tpl добавить блок [error][/error].</p><p>4. </p><p>engine/includes/inc/functions.inc.php:</p><div class="codebox"><pre><code>&lt;div class=&quot;msge&quot;&gt;&lt;img src=&quot;&#039;.skins_url.&#039;/images/error.gif&quot; hspace=&quot;10&quot; /&gt;&#039;.$lang[&quot;msge_error&quot;].$msg_arr[&quot;text&quot;].&#039;&lt;/div&gt;

&lt;div class=&quot;msgi&quot;&gt;&lt;img src=&quot;&#039;.skins_url.&#039;/images/info.gif&quot; hspace=&quot;10&quot; /&gt;&#039;.$lang[&quot;msgi_info&quot;].$msg_arr[&quot;info&quot;].&#039;&lt;/div&gt;

&lt;div class=&quot;msgi&quot;&gt;&lt;img src=&quot;&#039;.skins_url.&#039;/images/info.gif&quot; hspace=&quot;10&quot; /&gt;&#039;.$lang[&quot;msgi_info&quot;].$msg_arr[&quot;info&quot;].&#039;&lt;/div&gt;

&lt;div class=&quot;msgo&quot;&gt;&lt;img src=&quot;&#039;.skins_url.&#039;/images/msg.gif&quot; hspace=&quot;10&quot; /&gt;&#039;.$msg_arr[&quot;text&quot;].&#039;&lt;/div&gt;

&lt;div class=&quot;msgi&quot;&gt;&lt;img src=&quot;&#039;.skins_url.&#039;/images/info.gif&quot; hspace=&quot;10&quot; /&gt;&#039;.$lang[&quot;msgi_info&quot;].$msg_arr[&quot;info&quot;].&#039;&lt;/div&gt;</code></pre></div><p>Вынести ошибки в отдельный tpl шаблон.</p>]]></description>
			<author><![CDATA[dummy@example.com (infinity237)]]></author>
			<pubDate>Sun, 14 Jun 2009 07:59:19 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=4695#p4695</guid>
		</item>
	</channel>
</rss>
