{"id":348,"date":"2010-06-01T15:16:45","date_gmt":"2010-06-01T13:16:45","guid":{"rendered":"http:\/\/kavdesign.net\/blog\/?p=348"},"modified":"2010-06-01T15:16:45","modified_gmt":"2010-06-01T13:16:45","slug":"how-to-convert-joomla-1-0-templates-to-1-5-template","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-convert-joomla-1-0-templates-to-1-5-template\/","title":{"rendered":"How to convert joomla 1.0 templates to 1.5 template"},"content":{"rendered":"<p>Open index.php of you remplate:<\/p>\n<p>1. Check the top of your index.php file, it should be changed like this one or just use this code:<\/p>\n<p>&lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&#8221;  &#8220;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&#8221;&gt;<br \/>\n&lt;html  xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221; xml:lang=&#8221;&lt;?php echo  $this-&gt;language; ?&gt;&#8221; lang=&#8221;&lt;?php echo $this-&gt;language;  ?&gt;&#8221; dir=&#8221;&lt;?php echo $this-&gt;direction; ?&gt;&#8221; &gt;<\/p>\n<p>&lt;head&gt;<br \/>\n&lt;jdoc:include  type=&#8221;head&#8221; \/&gt;<br \/>\n&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;&lt;?php echo  $this-&gt;baseurl ?&gt;\/templates\/&lt;?php echo $this-&gt;template  ?&gt;\/css\/template.css&#8221; type=&#8221;text\/css&#8221; \/&gt;<br \/>\n&lt;\/head&gt;<\/p>\n<p>2.  Replace all php codes relating to modules.<br \/>\nThis is an example of an  old code &lt;?php mosLoadModules ( &#8216;header&#8217;, -3 ); ?&gt;<br \/>\nReplace with  this &lt;jdoc:include type=&#8221;modules&#8221; name=&#8221;header&#8221; style=&#8221;xhtml&#8221; \/&gt;<\/p>\n<p>3.  Replace the mainbody code from &lt;?php mosMainBody(); ?&gt; to  &lt;jdoc:include type=&#8221;component&#8221; style=&#8221;xhtml&#8221; \/&gt;<\/p>\n<p>4. Rename the  template_css.css file in your \/css folder to template.css<\/p>\n<p>5. If there is stuff like this one on yout code:<\/p>\n<p>&lt;?php if (mosCountModules(&#8216;user1&#8217;)) : ?&gt;<\/p>\n<p>Chenge ot to look like this: &lt;?php if($this-&gt;countModules(&#8216;user1&#8217;)) : ?&gt;<\/p>\n<p>6. Check if there are anouther external files like footer.php for example. If there are just open and remove some source code starting with MOS<\/p>\n<p>This should be it \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open index.php of you remplate: 1. Check the top of your index.php file, it should be changed like this one or just use this code:&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-convert-joomla-1-0-templates-to-1-5-template\/\">Continue reading<span class=\"screen-reader-text\">How to convert joomla 1.0 templates to 1.5 template<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9,29],"tags":[35],"class_list":["post-348","post","type-post","status-publish","format-standard","hentry","category-coding","category-joomla","tag-template","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":1,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":349,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/348\/revisions\/349"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}