Napisałem bardzo prosty czysto przykładowy szablon i chciałbym się dowiedzieć jak go przerobic/ podzielić na szablon jakiegoś z darmowych cms'ów
np. wordpress - szablon jak mówiłem bardzo banalny na tą chwile taki oto kod :
index
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="glowne" > <div id="logo"> </div> <div class="menu"> <dl id="menu1"> </dl> <script type="text/javascript"> // <![CDATA[ new Menu('menu1', 'position: absolute', true, true, -1, -1, -1, -1, true); // ]]> </script> <dl id="menu2"> </dl> <script type="text/javascript"> // <![CDATA[ new Menu('menu2', 'position: absolute; left: 150px', true, true, -1, -1, -1, -1, true); // ]]> </script> <dl id="menu3"> </dl> <script type="text/javascript"> // <![CDATA[ new Menu('menu3', 'position: absolute; left: 300px', true, true, -1, -1, -1, -1, true); // ]]> </script> <dl id="menu4"> </dl> <script type="text/javascript"> // <![CDATA[ new Menu('menu4', 'position: absolute; left: 450px', true, true, -1, -1, -1, -1, true); // ]]> </script> <dl id="menu5"> </dl> <script type="text/javascript"> // <![CDATA[ new Menu('menu5', 'position: absolute; left: 600px', true, true, -1, -1, -1, -1, true); // ]]> </script> <dl id="menu6"> </dl> <script type="text/javascript"> // <![CDATA[ new Menu('menu6', 'position: absolute; left: 746px', true, true, -1, -1, -1, -1, true); // ]]> </script> </div> <div id="reklama"> </div> <div id="prawanawiagacja"> </div> <div id="srodek"> </div> <div id="stopka"> </div> </div> </body> </html>
css :
#glowne{ margin: 0px; padding: 0px; border: #800000 solid 1px; height: 882px; width: 898px; margin: 0 auto; } #logo{ padding:0px; border: solid 0px; width: 898px; height: 100px; color: black; background: gray ; } #menu{ padding:0px; border: solid 0px; width: 898px; height: 30px; color: black; background: green ; } #reklama{ padding:0px; border: solid 0px; width: 898px; height: 200px; color: ; background: gray ; float: right; } #prawanawiagacja{ padding:0px; border: solid 1px; width: 200px; height: 400px; color: ; background: gray ; float: right; } #srodek{ padding:0px; border: solid 1px; width: 694px; height: 500px; color: ; background: gray ; float: right; } #stopka{ padding:0px; border: solid 0px; width: 898px; height: 80px; color: ; background: gray ; float: right; } .menu { position: relative; } .menu dl { width: 150px; margin: 0; padding: 0; border-width: 1px; border-style: solid; border-color: #aaa #666 #666 #aaa; } .menu dt { margin: 0; padding: 2px 5px; cursor: pointer; background-color: #888; color: #fff; font-weight: bold; text-align: center; } .menu dd { margin: 0; padding: 2px 5px; background-color: #dc143c; color: #000; font-style:normal; font-weight:bold; }
A wyglada na tą chwile to tak :

Uploaded with ImageShack.us
Jak mowilem banalny 6 elementowy szablon :
1 - pierwszy div - logo
2 - menu rozwijane ( ze skryptem java)
3 -miejsce na reklamy
4 - srodek - miejsce do pisania
5 - prawa nawigacja/ menu
6- stopka