PHPmotion: cleaning the template code

You don’t need to do this anymore: http://phpmotion.com/forum/index.php?topic=1327.0 I’ve finished the valid templates :)

An easy way to drop the size of the default template files (which are the only ones available at the moment) is to simply open every file starting by inner_ (inner_index.htm, inner_welcome.htm, …) and removing the unuseful code in each one.

What code do you have to remove?


If you open these files you’ll notice:

<html>

<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>[var.site_name]</title>
<style type="text/css">

td.off {
background: #E9E9E9;
}

td.on {
background: #CCCCCC;
}

.default {font-family: Arial; font-size: 13px; color:#FFFFFF;}
.default A { text-decoration:none; font-size: 13px; color:#FFFFFF;}
.default A:visited {font-size: 13px; color="#FF0000"}
.default A:hover {font-size: 13px; color="#000000"}
.default A:active {font-size: 13px;}
.default img { border:none}
.default img:visited {font-size: 13px;}
.default img:hover {font-size: 13px;}
.default img:active {font-size: 13px;}

</style>
    <link href="css/styles.css" rel="stylesheet" type="text/css" />
</head>

<body topmargin="0">

<div align="center">

This code is completely useless as it is already contained in main_1.htm and main_2.htm

Don’t forget to remove this at the bottom of each file:


   </div>
</body>
</html>

Do not remove any of the tables unless you are sure you know what you are doing. Removing what I have shown above will have no change on the appearance on your site, but it will reduce considerably the size of the files and the theme in all. And as everyone knows smaller files means faster sites and less strain on the bandwidth, it’s all good :D

I won’t offer to do this for you as it’s really easy and incredibly boring :S however if everything goes ok I’ll be releasing a valid xhtml/css template with the look of the original default one.

0 Responses to “PHPmotion: cleaning the template code”


  1. No Comments

Leave a Reply