Index: trunk/extensions/TemplateInfo/TemplateInfo.classes.php |
— | — | @@ -52,16 +52,16 @@ |
53 | 53 | } else { |
54 | 54 | $content = "$data_type: " . HTML::element('span', array('class' => 'rowValue'), $value); |
55 | 55 | } |
56 | | - $cell = HTML::rawElement('td', array('colspan' => 2), $content); |
57 | | - $text = HTML::rawElement('tr', array('class' => $css_class), $cell); |
| 56 | + $cell = HTML::rawElement('td', array('colspan' => 2, 'class' => $css_class), $content); |
| 57 | + $text = HTML::rawElement('tr', null, $cell); |
58 | 58 | $text .= "\n"; |
59 | 59 | return $text; |
60 | 60 | } |
61 | 61 | |
62 | 62 | static function tableMessageRowHTML($css_class, $name, $value) { |
63 | | - $cell1 = HTML::element('td', array(), $name); |
| 63 | + $cell1 = HTML::element('td', array('class' => $css_class), $name); |
64 | 64 | $cell2 = HTML::element('td', array('class' => 'msg'), $value); |
65 | | - $text = HTML::rawElement('tr', array('class' => $css_class), $cell1 . "\n" . $cell2); |
| 65 | + $text = HTML::rawElement('tr', null, $cell1 . "\n" . $cell2); |
66 | 66 | $text .= "\n"; |
67 | 67 | return $text; |
68 | 68 | } |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | |
84 | 84 | static function parseParamGroup($param_group_xml) { |
85 | 85 | $id = $param_group_xml->attributes()->id; |
86 | | - $text = self::tableRowHTML('topRow', 'Group', $id); |
| 86 | + $text = self::tableRowHTML('paramGroup', 'Group', $id); |
87 | 87 | foreach ($param_group_xml->children() as $child) { |
88 | 88 | $text .= self::parseParam($child); |
89 | 89 | } |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | |
93 | 93 | static function parseParam($param_xml) { |
94 | 94 | $id = $param_xml->attributes()->id; |
95 | | - $text = self::tableRowHTML('row2', 'Parameter', $id); |
| 95 | + $text = self::tableRowHTML('param', 'Parameter', $id); |
96 | 96 | foreach ($param_xml->children() as $tag_name => $child) { |
97 | 97 | if ($tag_name == 'label') { |
98 | 98 | $text .= self::parseParamLabel($child); |
— | — | @@ -110,9 +110,9 @@ |
111 | 111 | |
112 | 112 | static function parseParamLabel($param_label_xml) { |
113 | 113 | if (count($param_label_xml->children()) == 0) { |
114 | | - $text = self::tableRowHTML('row3', 'Label', $param_label_xml); |
| 114 | + $text = self::tableRowHTML('paramAttr', 'Label', $param_label_xml); |
115 | 115 | } else { |
116 | | - $text = self::tableRowHTML('row3', 'Label'); |
| 116 | + $text = self::tableRowHTML('paramAttr', 'Label'); |
117 | 117 | foreach ($param_label_xml->children() as $child) { |
118 | 118 | $text .= self::parseMsg($child); |
119 | 119 | } |
— | — | @@ -122,9 +122,9 @@ |
123 | 123 | |
124 | 124 | static function parseParamDescription($param_desc_xml) { |
125 | 125 | if (count($param_desc_xml->children()) == 0) { |
126 | | - $text = self::tableRowHTML('row3', 'Description', $param_desc_xml); |
| 126 | + $text = self::tableRowHTML('paramAttr', 'Description', $param_desc_xml); |
127 | 127 | } else { |
128 | | - $text = self::tableRowHTML('row3', 'Description'); |
| 128 | + $text = self::tableRowHTML('paramAttr', 'Description'); |
129 | 129 | foreach ($param_desc_xml->children() as $child) { |
130 | 130 | $text .= self::parseMsg($child); |
131 | 131 | } |
— | — | @@ -134,12 +134,12 @@ |
135 | 135 | |
136 | 136 | static function parseParamType($param_type_xml) { |
137 | 137 | $name = $param_type_xml->attributes()->name; |
138 | | - $text = self::tableRowHTML('row3', 'Type', $name); |
| 138 | + $text = self::tableRowHTML('paramAttr', 'Type', $name); |
139 | 139 | return $text; |
140 | 140 | } |
141 | 141 | |
142 | 142 | static function parseParamOptions($param_options_xml) { |
143 | | - $text = self::tableRowHTML('optionsTopRow', 'Options'); |
| 143 | + $text = self::tableRowHTML('paramOptions', 'Options'); |
144 | 144 | foreach ($param_options_xml->children() as $child) { |
145 | 145 | $text .= self::parseParamOption($child); |
146 | 146 | } |
— | — | @@ -148,9 +148,9 @@ |
149 | 149 | |
150 | 150 | static function parseParamOption($param_option_xml) { |
151 | 151 | $name = $param_option_xml->attributes()->name; |
152 | | - $text = self::tableRowHTML('optionsRow2', 'Option', $name); |
| 152 | + $text = self::tableRowHTML('paramOption', 'Option', $name); |
153 | 153 | if (count($param_option_xml->children()) == 0) { |
154 | | - $text .= self::tableRowHTML('optionsRow3', $param_option_xml); |
| 154 | + $text .= self::tableRowHTML('paramOptionMsg', $param_option_xml); |
155 | 155 | } else { |
156 | 156 | foreach ($param_option_xml->children() as $child) { |
157 | 157 | $text .= self::parseOptionMsg($child); |
— | — | @@ -161,19 +161,19 @@ |
162 | 162 | |
163 | 163 | static function parseMsg($msg_xml) { |
164 | 164 | $language = $msg_xml->attributes()->language; |
165 | | - $text = self::tableMessageRowHTML('row4', $language, $msg_xml); |
| 165 | + $text = self::tableMessageRowHTML('paramAttrMsg', $language, $msg_xml); |
166 | 166 | return $text; |
167 | 167 | } |
168 | 168 | |
169 | 169 | static function parseOptionMsg($msg_xml) { |
170 | 170 | $language = $msg_xml->attributes()->language; |
171 | | - $text = self::tableMessageRowHTML('optionsRow3', $language, $msg_xml); |
| 171 | + $text = self::tableMessageRowHTML('paramOptionMsg', $language, $msg_xml); |
172 | 172 | return $text; |
173 | 173 | } |
174 | 174 | |
175 | 175 | static function parseParamData($param_data_xml) { |
176 | 176 | $app = $param_data_xml->attributes()->app; |
177 | | - $text = self::tableRowHTML('dataTopRow', 'Data for app', $app); |
| 177 | + $text = self::tableRowHTML('paramData', 'Data for app', $app); |
178 | 178 | foreach ($param_data_xml->children() as $child) { |
179 | 179 | $text .= self::parseField($child); |
180 | 180 | } |
— | — | @@ -182,7 +182,7 @@ |
183 | 183 | |
184 | 184 | static function parseField($field_xml) { |
185 | 185 | $name = $field_xml->attributes()->name; |
186 | | - $text = self::tableMessageRowHTML('dataRow2', $name, $field_xml); |
| 186 | + $text = self::tableMessageRowHTML('paramDataField', $name, $field_xml); |
187 | 187 | return $text; |
188 | 188 | } |
189 | 189 | |
Index: trunk/extensions/TemplateInfo/TemplateInfo.css |
— | — | @@ -1,84 +1,113 @@ |
2 | | -table.templateInfo td { |
| 2 | +.templateInfo td { |
3 | 3 | padding-right: 5px; |
4 | 4 | } |
5 | 5 | |
6 | | -table.templateInfo tr.topRow { |
7 | | - background: #bbaa88; |
| 6 | +body.rtl .templateInfo td { |
| 7 | + padding-left: 5px; |
8 | 8 | } |
9 | 9 | |
10 | | -table.templateInfo tr.topRow td { |
| 10 | +.templateInfo .paramGroup { |
| 11 | + background: #bbaa88; |
11 | 12 | padding-left: 5px; |
12 | 13 | } |
13 | 14 | |
14 | | -table.templateInfo tr.topRow span.rowValue { |
| 15 | +body.rtl .templateInfo .paramGroup { |
| 16 | + padding-right: 5px; |
| 17 | +} |
| 18 | + |
| 19 | +.templateInfo .paramGroup span.rowValue { |
15 | 20 | font-weight: bold; |
16 | 21 | } |
17 | 22 | |
18 | | -table.templateInfo tr.row2 { |
| 23 | +.templateInfo .param { |
19 | 24 | background: #d3c2a0; |
| 25 | + padding-left: 20px; |
20 | 26 | } |
21 | 27 | |
22 | | -table.templateInfo tr.row2 td { |
23 | | - padding-left: 20px; |
| 28 | +body.rtl .templateInfo .param { |
| 29 | + padding-right: 20px; |
24 | 30 | } |
25 | 31 | |
26 | | -table.templateInfo tr.row2 span.rowValue { |
| 32 | +.templateInfo .param span.rowValue { |
27 | 33 | font-weight: bold; |
28 | 34 | } |
29 | 35 | |
30 | | -table.templateInfo tr.row3 { |
| 36 | +.templateInfo .paramAttr { |
31 | 37 | background: #eeddbb; |
| 38 | + padding-left: 35px; |
32 | 39 | } |
33 | 40 | |
34 | | -table.templateInfo tr.row3 td { |
35 | | - padding-left: 35px; |
| 41 | +body.rtl .templateInfo .paramAttr { |
| 42 | + padding-right: 35px; |
36 | 43 | } |
37 | 44 | |
38 | | -table.templateInfo tr.row4 { |
| 45 | +.templateInfo .paramAttrMsg { |
39 | 46 | background: #ffeecc; |
| 47 | + padding-left: 50px; |
40 | 48 | } |
41 | 49 | |
42 | | -table.templateInfo tr.row4 td { |
43 | | - padding-left: 50px; |
| 50 | +body.rtl .templateInfo .paramAttrMsg { |
| 51 | + padding-right: 50px; |
44 | 52 | } |
45 | 53 | |
46 | | -table.templateInfo tr.optionsTopRow td { |
| 54 | +.templateInfo .paramOptions { |
47 | 55 | padding-left: 20px; |
48 | 56 | background: #ffff77; |
49 | 57 | } |
50 | 58 | |
51 | | -table.templateInfo tr.optionsRow2 td { |
| 59 | +body.rtl .templateInfo .paramOptions { |
| 60 | + padding-right: 20px; |
| 61 | +} |
| 62 | + |
| 63 | +.templateInfo .paramOption { |
52 | 64 | padding-left: 35px; |
53 | 65 | background: #ffff99; |
54 | 66 | } |
55 | 67 | |
56 | | -table.templateInfo tr.optionsRow2 span.rowValue { |
| 68 | +body.rtl .templateInfo .paramOption { |
| 69 | + padding-right: 35px; |
| 70 | +} |
| 71 | + |
| 72 | +.templateInfo .paramOption span.rowValue { |
57 | 73 | font-weight: bold; |
58 | 74 | } |
59 | 75 | |
60 | | -table.templateInfo tr.optionsRow3 td { |
| 76 | +.templateInfo .paramOptionMsg { |
61 | 77 | padding-left: 50px; |
62 | 78 | background: #ffffbb; |
63 | 79 | } |
64 | 80 | |
65 | | -table.templateInfo tr.dataTopRow td { |
| 81 | +body.rtl .templateInfo .paramOptionMsg { |
| 82 | + padding-right: 50px; |
| 83 | +} |
| 84 | + |
| 85 | +.templateInfo .paramData { |
66 | 86 | padding-left: 20px; |
67 | 87 | background: #77dd77; |
68 | 88 | } |
69 | 89 | |
70 | | -table.templateInfo tr.dataTopRow span.rowValue { |
| 90 | +body.rtl .templateInfo .paramData { |
| 91 | + padding-right: 20px; |
| 92 | +} |
| 93 | + |
| 94 | +.templateInfo .paramData span.rowValue { |
71 | 95 | font-weight: bold; |
72 | 96 | } |
73 | 97 | |
74 | | -table.templateInfo tr.dataRow2 { |
| 98 | +.templateInfo .paramDataField { |
75 | 99 | background: #99ff99; |
| 100 | + padding-left: 35px; |
76 | 101 | } |
77 | 102 | |
78 | | -table.templateInfo tr.dataRow2 td { |
79 | | - padding-left: 35px; |
| 103 | +body.rtl .templateInfo .paramDataField { |
| 104 | + padding-right: 35px; |
80 | 105 | } |
81 | 106 | |
82 | | -table.templateInfo tr td.msg { |
| 107 | +.templateInfo .msg { |
83 | 108 | padding-left: 5px; |
84 | 109 | background: white; |
85 | 110 | } |
| 111 | + |
| 112 | +body.rtl .templateInfo .msg { |
| 113 | + padding-right: 5px; |
| 114 | +} |