<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум ReadyScript &mdash; CS и JS как всё же подключать?]]></title>
		<link>https://forum.readyscript.ru/topic/1857/cs-i-js-kak-vse-zhe-podklyuchat/</link>
		<atom:link href="https://forum.readyscript.ru/feed/rss/topic/1857" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «CS и JS как всё же подключать?».]]></description>
		<lastBuildDate>Mon, 19 Aug 2019 19:34:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: CS и JS как всё же подключать?]]></title>
			<link>https://forum.readyscript.ru/post/10296/#p10296</link>
			<description><![CDATA[<p>Подглядываем в стандартный слайдер баннеров:<br /></p><div class="codebox"><pre><code>{* Блок, отображает баннеры из указанной зоны в виде слайдера *}
{if $zone}
    {addcss file=&quot;libs/owl.carousel.min.css&quot;}
    {addjs file=&quot;libs/owl.carousel.min.js&quot;}
    {addjs file=&quot;rs.sliders.js&quot;}

    {$banners = $zone-&gt;getBanners()}
    &lt;div class=&quot;owl-carousel owl-theme main-corousel rs-js-slider&quot;&gt;
        {foreach $banners as $banner}
            &lt;div class=&quot;item&quot; {$banner-&gt;getDebugAttributes()}&gt;
                &lt;a {if $banner.link}href=&quot;{$banner.link}&quot;{/if} {if $banner.targetblank}target=&quot;_blank&quot;{/if}&gt;&lt;!--
                    --&gt;&lt;img src=&quot;{$banner-&gt;getBannerUrl(750, 450, &#039;cxy&#039;)}&quot; alt=&quot;{$banner.title}&quot;&gt;&lt;!--
                --&gt;&lt;/a&gt;
            &lt;/div&gt;
        {/foreach}
    &lt;/div&gt;
{else}
    {include file=&quot;%THEME%/block_stub.tpl&quot;  class=&quot;block-banner-slider&quot; do=[
    [
        &#039;title&#039; =&gt; t(&quot;Добавьте баннерную зону 1169x701px и загрузите в неё баннеры&quot;),
        &#039;href&#039; =&gt; {adminUrl do=false mod_controller=&quot;banners-ctrl&quot;}
    ],
    [
        &#039;title&#039; =&gt; t(&quot;Настройте блок&quot;),
        &#039;href&#039; =&gt; {$this_controller-&gt;getSettingUrl()},
        &#039;class&#039; =&gt; &#039;crud-add&#039;
    ]
    ]}
{/if}</code></pre></div><p>а именно строки <br /></p><div class="codebox"><pre><code> {addcss file=&quot;libs/owl.carousel.min.css&quot;}
    {addjs file=&quot;libs/owl.carousel.min.js&quot;}
    {addjs file=&quot;rs.sliders.js&quot;}</code></pre></div><p>css файлы будут взяты из подпапки libs папки resource/css темы, а js из resource/js</p>]]></description>
			<author><![CDATA[null@example.com (Ярослав)]]></author>
			<pubDate>Mon, 19 Aug 2019 19:34:10 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/10296/#p10296</guid>
		</item>
		<item>
			<title><![CDATA[CS и JS как всё же подключать?]]></title>
			<link>https://forum.readyscript.ru/post/10288/#p10288</link>
			<description><![CDATA[<p>У меня имеется:<br />1) html код реализации своего красивого слайдера или какого то блока с popover css эффектами.<br />2) набор картинок для этого html блока<br />3) папка с файлами css<br />4) папка с файлами js</p><p>С первым пунктом понятно. HTML код я переношу в файл example.tml<br />Как к этому examle.tpl прикрутить 2) 3) 4)?</p><p>Пока у меня выводится тупо текст без эффектов, картинок и анимации <img src="https://forum.readyscript.ru/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (Денис)]]></author>
			<pubDate>Sat, 17 Aug 2019 18:13:33 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/10288/#p10288</guid>
		</item>
	</channel>
</rss>
