sonichouse wrote:It looks like the WP theme is split across several php pages and a style.css.
Usually, that's the way it is. You may find WP theme which also include javascript, but that's about it as far as I have investigated WP themes.
sonichouse wrote:Is there a barebones example of all the template files I need ?, I tried copying the default theme, but this is built using tables
So? You can usually strip most of the HTML (except for the head, of course) from the .tpl files in /templates/default/. All you really need are the smarty command which emit the "content" used in that code.
Let's get you started with the index.tpl. This is the HTML code in there:
Code: Select all
<div id="serendipity_banner">
<h1><a class="homelink1" href="{$serendipityBaseURL}">{$head_title|@default:$blogTitle}</a></h1>
<h2><a class="homelink2" href="{$serendipityBaseURL}">{$head_subtitle|@default:$blogDescription}</a></h2>
</div>
<table id="mainpane">
<tr>
{if $leftSidebarElements > 0}
<td id="serendipityLeftSideBar" valign="top">{serendipity_printSidebar side="left"}</td>
{/if}
<td id="content" valign="top">{$CONTENT}</td>
{if $rightSidebarElements > 0}
<td id="serendipityRightSideBar" valign="top">{serendipity_printSidebar side="right"}</td>
{/if}
</tr>
</table>
I usually strip this down to:
Code: Select all
<a href="{$serendipityBaseURL}">{$blogTitle}</a>
{$blogDescription}
{$CONTENT}
{if $leftSidebarElements > 0}{serendipity_printSidebar side="left"}{/if}
{if $leftSidebarElements > 0}{serendipity_printSidebar side="right"}{/if}
Now all that's left to do is extract the HTML structure from the WP theme (you'll usually find it spread across header.php, index.php, and footer.php) and wrap it around this.
You then copy the images/ folder from the WP theme to YOURFOLDER/img/, copy the style.css, and change the paths for the images (usually from images/ to {TEMPLATE_PATH}img/). Then, the template should already resemble the WP theme. Time to start the fine tuning (which is usually the painful part of it).
YL