| Modify an SMF theme for Joomla and Mambo - Intro |
|
|
Page 5 of 5 ConclusionHopefully, at this point, you have a fully functioning theme that does not conflict at all with Joomla or Mambo when wrapped, and looks exactly like the original when unwrapped! Let's review the steps taken.Code: if (empty($_REQUEST['option'])){ } If we want something to show up only when it is wrapped, we would use the following code: Code: if (!empty($_REQUEST['option'])){ } First we use that code to remove excess <html> and <body> tage, and the <head> section. Then we remove unwanted theme elements (headers, logos, etc.) Then we remove existing CSS, and put it in a separate file that is loaded only when accessed unwrapped. If you would like copies of the files I edited while working on this tutorial, you can download the index.template.php, style.css, and style-unwrapped.css files here. |
|||||||




