Code Duplication    Length = 8-8 lines in 3 locations

geodirectory-widgets/geodirectory_bestof_widget.php 1 location

@@ 428-435 (lines=8) @@
425
                        name="<?php echo $this->get_field_name('post_type'); ?>"
426
                        onchange="geodir_change_category_list(this)">
427
428
                    <?php foreach ($postypes as $postypes_obj) { ?>
429
430
                        <option <?php if ($post_type == $postypes_obj) {
431
                            echo 'selected="selected"';
432
                        } ?> value="<?php echo $postypes_obj; ?>"><?php $extvalue = explode('_', $postypes_obj);
433
                            echo ucfirst($extvalue[1]); ?></option>
434
435
                    <?php } ?>
436
437
                </select>
438
            </label>

geodirectory-widgets/geodirectory_listing_slider_widget.php 1 location

@@ 167-174 (lines=8) @@
164
                        name="<?php echo $this->get_field_name('post_type'); ?>"
165
                        onchange="geodir_change_category_list(this.value)">
166
167
                    <?php foreach ($postypes as $postypes_obj) { ?>
168
169
                        <option <?php if ($post_type == $postypes_obj) {
170
                            echo 'selected="selected"';
171
                        } ?> value="<?php echo $postypes_obj; ?>"><?php $extvalue = explode('_', $postypes_obj);
172
                            echo ucfirst($extvalue[1]); ?></option>
173
174
                    <?php } ?>
175
176
                </select>
177
            </label>

geodirectory-widgets/geodirectory_popular_widget.php 1 location

@@ 298-305 (lines=8) @@
295
                        name="<?php echo $this->get_field_name('post_type'); ?>"
296
                        onchange="geodir_change_category_list(this)">
297
298
                    <?php foreach ($postypes as $postypes_obj) { ?>
299
300
                        <option <?php if ($post_type == $postypes_obj) {
301
                            echo 'selected="selected"';
302
                        } ?> value="<?php echo $postypes_obj; ?>"><?php $extvalue = explode('_', $postypes_obj);
303
                            echo ucfirst($extvalue[1]); ?></option>
304
305
                    <?php } ?>
306
307
                </select>
308
            </label>