Posted By

chrisaiv on 12/22/08


Tagged

php MODULES joomla snippets components


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

hanzwurzt
benrudolph
taimurian
morvan
pauloc
hogash


Joomla 1.5: Templating Snippets


 / Published in: XHTML
 

I find these Joomla snippets to be useful when constructing a new template.

  1. <!------ THis replaces the Traditional <head> information ------>
  2. <?php
  3. // no direct access
  4. defined( '_JEXEC' ) or die( 'Restricted access' );?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
  7. <jdoc:include type="head" />
  8. <link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/system/css/system.css" type="text/css" />
  9. <link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/system/css/general.css" type="text/css" />
  10. <link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/default.css" type="text/css" />
  11. </head>
  12.  
  13. <!------ This is used where dynamic content will be loaded ------>
  14. <jdoc:include type="component" />
  15.  
  16. <!------ Different Types of Module Styles ------>
  17.  
  18. <!-- Normal XHTML -->
  19. <jdoc:include type="modules" name="top" style="xhtml" />
  20.  
  21. <!-- Wrap a Table around a module -->
  22. <jdoc:include type="modules" name="top" style="table" />
  23.  
  24. <!-- Display Each Module Horizontally within a Table -->
  25. <jdoc:include type="modules" name="top" style="horiz" />
  26.  
  27. <!-- Put 4 DIV's around your content to make rounded corners -->
  28. <jdoc:include type="modules" name="top" style="rounded" />
  29.  
  30. <!-- No Divs. Module Title also won't be displayed -->
  31. <jdoc:include type="modules" name="top" style="raw" />
  32.  
  33. <!-- Debugging -->
  34. <jdoc:include type="modules" name="top" style="outline" />

Report this snippet  

You need to login to post a comment.