Code Duplication    Length = 7-7 lines in 3 locations

geodirectory-functions/shortcode_functions.php 1 location

@@ 705-711 (lines=7) @@
702
                <div class="gd-sc-content">
703
            <?php }
704
            if (!(empty($widget_listings) && !empty($shortcode_content))) {
705
                if (strstr($layout, 'gridview')) {
706
                    $listing_view_exp = explode('_', $layout);
707
                    $gridview_columns_widget = $layout;
708
                    $layout = $listing_view_exp[0];
709
                } else {
710
                    $gridview_columns_widget = '';
711
                }
712
713
                /**
714
                 * Filter the widget listing listview template.

geodirectory-functions/custom_functions.php 1 location

@@ 912-918 (lines=7) @@
909
910
			query_posts( $query_args );
911
912
			if ( strstr( $layout, 'gridview' ) ) {
913
				$listing_view_exp = explode( '_', $layout );
914
				$gridview_columns = $layout;
915
				$layout           = $listing_view_exp[0];
916
			} else if ( $layout == 'list' ) {
917
				$gridview_columns = '';
918
			}
919
			$related_posts = true;
920
921
			$related_nearest = false;

geodirectory-functions/general_functions.php 1 location

@@ 3771-3777 (lines=7) @@
3768
			 */
3769
			do_action( 'geodir_after_view_all_link_in_widget' ); ?>
3770
			<?php
3771
			if ( strstr( $layout, 'gridview' ) ) {
3772
				$listing_view_exp        = explode( '_', $layout );
3773
				$gridview_columns_widget = $layout;
3774
				$layout                  = $listing_view_exp[0];
3775
			} else {
3776
				$gridview_columns_widget = '';
3777
			}
3778
3779
			/**
3780
			 * Filter the widget listing listview template path.