public static function draw_options_row_start_full() { $row_class = ""; if (!self::$section_active) { $row_class = self::$was_lastrow_even ? "odd" : "even"; self::$was_lastrow_even = !self::$was_lastrow_even; } printf('<tr class="%1$s table-border-bottom">', $row_class); echo '<td valign="top" colspan="2">'; }
public static function draw_options_row_start($title, $description = '', $recommended = '') { $row_class = ""; if (!self::$section_active) { $row_class = self::$was_lastrow_even ? "odd" : "even"; self::$was_lastrow_even = !self::$was_lastrow_even; } if ($description != '') { $new_line = "<br/>"; if ($recommended != '') { $new_line = ''; } $description = sprintf('%2$s<span class="label">%1$s', $description, $new_line); } if ($recommended != '') { $recommended = '<br /> <div class="essb-recommended"> <i class="fa fa-check"></i><span></span> </div>'; } printf('<tr class="%1$s table-border-bottom">', $row_class); printf('<td class="bold" valign="top">%1$s%3$s%2$s</td>', $title, $description, $recommended); echo '<td valign="top">'; }