1 (edited by Jiboo 2007-03-19 18:06)

Topic: [Request] Improvment of 1.3 Per-Style templates

Hello all,

Just posting how i see the Per-Style templates...
It' s the last item of the 1.3 features and i think it' s in alpha stage etc.. don't flame me.

@Devs:
Some of you are the most user-friendly devs i have ever seen, and..
I know 1.3 is less than alpha ect..
But i just like to post simple fix/patch ...
Simply ignore my posts wink

Index: header.php
===================================================================
--- header.php    (revision 928)
+++ header.php    (working copy)
@@ -37,7 +37,9 @@
 header('Content-type: text/html; charset=utf-8');
 
 // Load the main template
-if (substr(PUN_PAGE, 0, 5) == 'admin')
+if (file_exists(PUN_ROOT.'style/'.$pun_user['style'].'/'.PUN_PAGE.'.tpl'))
+    $tpl_main = file_get_contents(PUN_ROOT.'style/'.$pun_user['style'].'/'.PUN_PAGE.'.tpl');
+else if (substr(PUN_PAGE, 0, 5) == 'admin')
 {
     if (file_exists(PUN_ROOT.'style/'.$pun_user['style'].'/admin.tpl'))
         $tpl_main = file_get_contents(PUN_ROOT.'style/'.$pun_user['style'].'/admin.tpl');

Re: [Request] Improvment of 1.3 Per-Style templates

I've posted this in the dev discussion, we'll see what happens smile