Standard Module Chromes: Difference between revisions
From Joomla! Documentation
Marked for translation |
Marked this version for translation |
||
| Line 1: | Line 1: | ||
<noinclude><languages /></noinclude> | <noinclude><languages /></noinclude> | ||
<translate>Note that this example includes class additions because the examples are taken using mod_mainmenu. The suffix "_menu" to the div class and the "menu" class on the ul tag are not present with other modules.</translate> | <translate><!--T:1--> | ||
Note that this example includes class additions because the examples are taken using mod_mainmenu. The suffix "_menu" to the div class and the "menu" class on the ul tag are not present with other modules.</translate> | |||
{| style="width:100%" class="wikitable" | {| style="width:100%" class="wikitable" | ||
|+ '''<translate>Comparison of the Joomla! standard Module chromes</translate>''' | |+ '''<translate><!--T:2--> | ||
<translate>These are the same from Joomla! 1.5 through 3.3</translate> | Comparison of the Joomla! standard Module chromes</translate>''' | ||
!width="100" | <translate>Style</translate> | <translate><!--T:3--> | ||
!<translate>Output</translate> | These are the same from Joomla! 1.5 through 3.3</translate> | ||
!width="210" | <translate>Appearance</translate> | !width="100" | <translate><!--T:4--> | ||
Style</translate> | |||
!<translate><!--T:5--> | |||
Output</translate> | |||
!width="210" | <translate><!--T:6--> | |||
Appearance</translate> | |||
|- | |- | ||
!<translate>rounded</translate><br /> | !<translate><!--T:7--> | ||
rounded</translate><br /> | |||
|<source lang="html4strict"> | |<source lang="html4strict"> | ||
<div class="module_menu"> | <div class="module_menu"> | ||
| Line 26: | Line 33: | ||
|[[Image:Module_chrome_rounded.png]] | |[[Image:Module_chrome_rounded.png]] | ||
|- | |- | ||
!<translate>none</translate> | !<translate><!--T:8--> | ||
none</translate> | |||
|<source lang="html4strict"> | |<source lang="html4strict"> | ||
<ul class="menu"> | <ul class="menu"> | ||
| Line 35: | Line 43: | ||
[[Image:Module_chrome_none.png]] | [[Image:Module_chrome_none.png]] | ||
|- | |- | ||
!<translate>table</translate> | !<translate><!--T:9--> | ||
table</translate> | |||
|<source lang="html4strict"> | |<source lang="html4strict"> | ||
<table cellpadding="0" cellspacing="0" class="moduletable_menu"> | <table cellpadding="0" cellspacing="0" class="moduletable_menu"> | ||
| Line 52: | Line 61: | ||
|[[Image:Module_chrome_table.png]] | |[[Image:Module_chrome_table.png]] | ||
|- | |- | ||
!<translate>horz</translate> | !<translate><!--T:10--> | ||
horz</translate> | |||
|<source lang="html4strict"> | |<source lang="html4strict"> | ||
<table cellspacing="1" cellpadding="0" border="0" width="100%"> | <table cellspacing="1" cellpadding="0" border="0" width="100%"> | ||
| Line 98: | Line 108: | ||
|[[Image:Module_chrome_html5.png]] | |[[Image:Module_chrome_html5.png]] | ||
|- | |- | ||
!<translate>outline</translate> | !<translate><!--T:11--> | ||
outline</translate> | |||
|<source lang="html4strict"> | |<source lang="html4strict"> | ||
<div class="mod-preview"> | <div class="mod-preview"> | ||
| Line 113: | Line 124: | ||
|} | |} | ||
<translate>Note that the Module chrome doesn't necessarily change the appearance all that much - this depends on the CSS used in the template. For example, the '<tt>none</tt>' and '<tt>horz</tt>' chromes look very similar, although the underlying HTML code is very different.</translate> | <translate><!--T:12--> | ||
Note that the Module chrome doesn't necessarily change the appearance all that much - this depends on the CSS used in the template. For example, the '<tt>none</tt>' and '<tt>horz</tt>' chromes look very similar, although the underlying HTML code is very different.</translate> | |||
<translate>Other notes: The <tt>horiz</tt> is just the <tt>table</tt> layout, wrapped in a <tt>table</tt>, <tt>tr</tt>, and <tt>td</tt>.</translate> | <translate><!--T:13--> | ||
Other notes: The <tt>horiz</tt> is just the <tt>table</tt> layout, wrapped in a <tt>table</tt>, <tt>tr</tt>, and <tt>td</tt>.</translate> | |||
<translate>The software controlling these is in the file</translate> <tt>/templates/system/html/modules.php</tt> | <translate><!--T:14--> | ||
The software controlling these is in the file</translate> <tt>/templates/system/html/modules.php</tt> | |||
<noinclude> | <noinclude> | ||
<translate> | <translate> | ||
<!--T:15--> | |||
[[Category:Advanced|Chrome]] | [[Category:Advanced|Chrome]] | ||
[[Category:Module Development]] | [[Category:Module Development]] | ||
Revision as of 19:24, 8 September 2015
Note that this example includes class additions because the examples are taken using mod_mainmenu. The suffix "_menu" to the div class and the "menu" class on the ul tag are not present with other modules.
Note that the Module chrome doesn't necessarily change the appearance all that much - this depends on the CSS used in the template. For example, the 'none' and 'horz' chromes look very similar, although the underlying HTML code is very different.
Other notes: The horiz is just the table layout, wrapped in a table, tr, and td.
The software controlling these is in the file /templates/system/html/modules.php






