Best way of moving HTML from core to skins is

30.8% 8
11.5% 3
53.8% 14
3.8% 1

26 Date 2009-09-09 01:20

Forums / Cotonti / Core Labs / Archive / Poll: Wiping HTML out from core

Discussing ways

Trustmaster
#17033 2009-09-12 15:38
OK, I started work on this thing. I found it more reasonable to combine several approaches and move HTML from core this way:
  1. 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.)
  2. 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.
  3. Resource elements are provided CSS classes if neccessary. E.g. all icon images have class="icon".
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.
May the Source be with you!