Code Duplication    Length = 13-13 lines in 2 locations

assets/js/ml-slider/ml-slider.php 2 locations

@@ 643-655 (lines=13) @@
640
            }
641
642
            // navigation row
643
            if ('radio' === $row['type']) {
644
                $navigation_row = "<tr class='{$row['type']}'><td class='tipsy-tooltip' title=\"{$row['helptext']}\">{$row['label']}</td><td><ul>";
645
646
                foreach ($row['options'] as $k => $v) {
647
                    $checked        = checked($k, $row['value'], false);
648
                    $class          = isset($v['class']) ? $v['class'] : '';
649
                    $navigation_row .= "<li><label><input type='radio' name='settings[{$id}]' value='{$k}' {$checked} class='radio {$class}'>{$v['label']}</label></li>";
650
                }
651
652
                $navigation_row .= '</ul></td></tr>';
653
654
                $return .= apply_filters('metaslider_navigation_options', $navigation_row, $this->slider);
655
            }
656
657
            // header/divider row
658
            if ('divider' === $row['type']) {
@@ 691-703 (lines=13) @@
688
            }
689
690
            // theme drop down
691
            if ('theme' === $row['type']) {
692
                $return .= "<tr class='{$row['type']}'><td class='tipsy-tooltip' title=\"{$row['helptext']}\">{$row['label']}</td><td><select class='option {$row['class']} {$id}' name='settings[{$id}]'>";
693
                $themes = '';
694
695
                foreach ($row['options'] as $k => $v) {
696
                    $selected = selected($k, $row['value'], false);
697
                    $themes   .= "<option class='{$v['class']}' value='{$k}' {$selected}>{$v['label']}</option>";
698
                }
699
700
                $return .= apply_filters('metaslider_get_available_themes', $themes, $this->slider->get_setting('theme'));
701
702
                $return .= '</select></td></tr>';
703
            }
704
705
            // text input type
706
            if ('text' === $row['type']) {