different class for each second record
In theme_shorcodes:private $odd = false;
create a new shortcode for needed class
function sc_row_odd() { $this->odd = !$this->odd; return ($this->odd) ? '' : 'class= " odd " '; }
Using in a template:
<li {ROW_ODD}>
Next examples:
Agency2 theme:
function sc_timeline_inverted() { $this->pairing = !$this->pairing; return ($this->pairing ? '' : 'class= "timeline-inverted" '); }
Used in:
efiction themes | |
Agency2 | |
AppStrap |