ROW_ODD shortcode

Images
Images
Images
Images

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

10 Years

GLORIOUS YEARS

100%

SATISFACTION RATE

20+

e107 THEMES

10+

e107 PLUGINS

Images