<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Wiping HTML out from core</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 08 Apr 2026 14:52:10 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[It isn't discontinued. Ticket <a href="http://trac.cotonti.com/ticket/395">#395</a> is still active. BTW, I think sprites are damn hard to customize. But for standard iconpacks such as Tango it is not too hard.]]></description>
			<pubDate>Пн, 20 Вер 2010 02:42:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post26222]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[is this dicontinuied? or ?<br />
<br />
because why dont we use png sprites for the core system images? <br />
so most icons could be done with css?!]]></description>
			<pubDate>Пн, 20 Вер 2010 02:22:20 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post26220]]></link>
		</item>
		<item>
			<title>SunChase</title>
			<description><![CDATA[i would say that the third option is the best]]></description>
			<pubDate>Вт, 22 Вер 2009 19:18:01 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post17216]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[I have made a practical research, committed code to trunk and written <a href="http://www.cotonti.com/docs/en/developer/resource_strings">an article describing the way this task is to be done</a>. Please read it and help applying it on trunk.]]></description>
			<pubDate>Пн, 21 Вер 2009 17:25:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post17180]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Ok, well I was just going by your post about it you said &quot;system/resources.php&quot; <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /> but guess maybe meant the system folder in skins]]></description>
			<pubDate>Нд, 13 Вер 2009 15:54:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post17053]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Yes, if you read the first post again, these resources are defined in resources.php but it can be easily redefined in skin's php file because it's just an array.]]></description>
			<pubDate>Нд, 13 Вер 2009 03:10:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post17051]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Ok, I still think this should be in skin folder, cause if its being moved out anyways, its more likely for people to want to customize them, and some may use multiple skins?]]></description>
			<pubDate>Нд, 13 Вер 2009 01:51:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post17050]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Not just url, but entire HTML tag. For example, folder/file icons in PFS, PM icon, userlevel stars, etc.]]></description>
			<pubDate>Сб, 12 Вер 2009 23:30:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post17047]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[<blockquote>
All images, icons and HTML resources with PHP embeds are moved to system/resources.php, which is separated into sections by module (PM, PFS, Forums, etc.)</blockquote>
<br />
This contains the urls for the images? if so this should be in skin not system.]]></description>
			<pubDate>Сб, 12 Вер 2009 18:59:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post17040]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[OK, I started work on this thing. I found it more reasonable to combine several approaches and move HTML from core this way:<br />
<ol>
<li>All images, icons and HTML resources with PHP embeds are moved to <em>system/resources.php</em>, which is separated into sections by module (PM, PFS, Forums, etc.)</li>
<li>Form items, like inputs, selectboxes, textareas, etc. should better be coded in TPL files rather than core or resources.php. TPL tags, required for specific attributes, should be assigned in the core.</li>
<li>Resource elements are provided CSS classes if neccessary. E.g. all icon images have class=&quot;icon&quot;.</li>
</ol>
I have started with common, functions and PFS, but it is quite a lot of work overall. So I need assistants to help with this task.]]></description>
			<pubDate>Сб, 12 Вер 2009 15:38:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post17033]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Images in core, could be handled with some sort of variable to control and output them so they can be customized.<br />
<br />
Any div's should have a standardized matching class, there shouldn't be any td/tr really.<br />
<br />
And english please guys]]></description>
			<pubDate>Ср, 09 Вер 2009 14:31:29 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post16930]]></link>
		</item>
		<item>
			<title>Sergey</title>
			<description><![CDATA[Я так сказать, дедуктивно понял, что есть иконка bird.png и ее предлагают вставлять типа {PHP.img.bird}<br />
и будет такая, наверное глобальная переменная img, а $img['bird'] как раз и будет картинкой. Теперь берем и раз, все img и плагином (функцией) куда и в чего хочешь.]]></description>
			<pubDate>Ср, 09 Вер 2009 06:00:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post16926]]></link>
		</item>
		<item>
			<title>Sergeich</title>
			<description><![CDATA[Про третий вариант по русски можно, я не совсем понимаю что там за камни и птицы <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" />]]></description>
			<pubDate>Ср, 09 Вер 2009 05:08:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post16924]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[I found 66 occurrences of &quot;.gif&quot; in the core, not to count hundreds of hardcoded links, form items and bigger blocks.<br /><br /><b>Added 2 hours 53 minutes later:</b><br /><br />&quot;Assign as PHP strings in skin_name.php&quot; description updated.]]></description>
			<pubDate>Ср, 09 Вер 2009 02:04:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post16916]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[Now that the admin panel is (completely?) skinnable, are there any &quot;hard-coded&quot; links to gif-files left in the admin-related php-code? Flexible use of graphics would also be appreciated!<br />
As regards the poll, with if-blocks &quot;leave as is&quot; would be a good option (still, linebreaks should be wiped out from the php-code!)]]></description>
			<pubDate>Ср, 09 Вер 2009 01:56:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post16915]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[This has been discussed many times here and there. I've encountered this problem once more with a PNG skin and would like to solve this problem at least as experiment. However, we have to decide what to do about HTML still-in-the-core in future (0.7 and up).<br />
<br />
<h2>Assign many TPL tags and use TPL logic everywhere</h2>
Means putting all the HTML directly to those places they appear in templates. Define HTML in templates and assign tags for attributes and contents.<br />
<br />
<strong>Pros:</strong> very pure Model-View-Controller (MVC) design, everything of layout is in the templates.<br />
<strong>Cons:</strong> tens and hundreds of new {TPL_TAGS} to emerge.<br />
<br />
<h2>Use spans + CSS for icons, leave the rest alone</h2>
Is described and discussed <a href="http://www.cotonti.com/forums.php?m=posts&amp;q=2237">here</a><br />
<br />
<strong>Pros:</strong> neat CSS for icons<br />
<strong>Cons:</strong> may result in massive non-semantic markup, doesn't solve problem for everything except icons<br />
<br />
<h2>Assign as PHP strings in skin_name.php</h2>
We could follow the footsteps of language files. The main goal for moving HTML from core to skins is to let the skin makers total control over markup and layout, including small details. But there are hundreds of such pieces and most of them contain HTML mixed with PHP code, so it is very hard to organize. Putting them to PHP strings e.g. $S in <em>skin_name/skin_name.php</em> would let skin makers customize those HTML snippets and keep the flexibility of PHP code.<br />
<br />
There should be a default file with resource strings that comes with the core and provides all the necessary strings which will suit many (existing) skins out of the box. And any of those strings can be overwritten in skin_name.php, so you can customize only those strings you need and everything is standardized.<br />
<br />
<strong>Pros:</strong> hit 2 birds with one stone, possible backwards compatibility<br />
<strong>Cons:</strong> not pure<br />
<br />
Questions/suggestions are welcomed.]]></description>
			<pubDate>Ср, 09 Вер 2009 01:20:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3298&d=0#post16914]]></link>
		</item>
	</channel>
</rss>