<b:class> Syntax and Attribute
Blogger XML Language
<b:class cond='EXPRESSION' name='STRING'/> <b:class cond='EXPRESSION' expr:name='EXPRESSION'/>
<b:class> Examples
Add a class
<p> <b:class name='foo'/> </p>
Add a class with a condition
<div> <b:class cond='data:view.isHomepage' name='foo'/> </div>
Add a class to an existing class
<div class='foo'> <b:class name='bar'/> </div>
Injecting multiple classes
<div class='foo'> <b:class name='bar'/> <b:class name='baz'/> </div>
Result
<div class='foo bar baz'> </div>
With Ternary operation
<div> <b:class expr:name='data:view.isHomepage ? "foo" : "bar"'/> </div>
Other Tag
- <b:attr>
- <b:case>
- <b:class>
- <b:comment>
- <b:default>
- <b:defaultmarkup>
- <b:defaultmarkups>
- <b:eval>
- <b:else>
- <b:elseif>
- <b:if>
- <b:include>
- <b:includable>
- <b:loop>
- <b:message>
- <b:param>
- <b:section>
- <b:skin>
- <b:switch>
- <b:tag>
- <b:template-script>
- <b:template-skin>
- <b:widget>
- <b:widget-setting>
- <b:widget-settings>
- <b:with>
- <![CDATA[]]>
- <data:.../>