Code Duplication    Length = 7-7 lines in 3 locations

geodirectory-functions/custom_functions.php 1 location

@@ 843-849 (lines=7) @@
840
841
            query_posts($query_args);
842
843
            if (strstr($layout, 'gridview')) {
844
                $listing_view_exp = explode('_', $layout);
845
                $gridview_columns = $layout;
846
                $layout = $listing_view_exp[0];
847
            } else if ($layout == 'list') {
848
                $gridview_columns = '';
849
            }
850
            $related_posts = true;
851
852
            /**

geodirectory-functions/shortcode_functions.php 1 location

@@ 677-683 (lines=7) @@
674
			<?php } ?>
675
            <?php
676
            if (!(empty($widget_listings) && !empty($shortcode_content))) {
677
                if (strstr($layout, 'gridview')) {
678
                    $listing_view_exp = explode('_', $layout);
679
                    $gridview_columns_widget = $layout;
680
                    $layout = $listing_view_exp[0];
681
                } else {
682
                    $gridview_columns_widget = '';
683
                }
684
685
                /**
686
                 * Filter the widget listing listview template.

geodirectory-functions/general_functions.php 1 location

@@ 3356-3362 (lines=7) @@
3353
             */
3354
            do_action('geodir_after_view_all_link_in_widget'); ?>
3355
            <?php
3356
            if (strstr($layout, 'gridview')) {
3357
                $listing_view_exp = explode('_', $layout);
3358
                $gridview_columns_widget = $layout;
3359
                $layout = $listing_view_exp[0];
3360
            } else {
3361
                $gridview_columns_widget = '';
3362
            }
3363
3364
            /**
3365
             * Filter the widget listing listview template path.