Code Duplication    Length = 7-7 lines in 3 locations

geodirectory-functions/shortcode_functions.php 1 location

@@ 731-737 (lines=7) @@
728
                <div class="gd-sc-content">
729
            <?php }
730
            if (!(empty($widget_listings) && !empty($shortcode_content))) {
731
                if (strstr($layout, 'gridview')) {
732
                    $listing_view_exp = explode('_', $layout);
733
                    $gridview_columns_widget = $layout;
734
                    $layout = $listing_view_exp[0];
735
                } else {
736
                    $gridview_columns_widget = '';
737
                }
738
739
                /**
740
                 * Filter the widget listing listview template.

geodirectory-functions/general_functions.php 1 location

@@ 3891-3897 (lines=7) @@
3888
		 */
3889
		do_action( 'geodir_after_view_all_link_in_widget' ); ?>
3890
		<?php
3891
		if ( strstr( $layout, 'gridview' ) ) {
3892
			$listing_view_exp        = explode( '_', $layout );
3893
			$gridview_columns_widget = $layout;
3894
			$layout                  = $listing_view_exp[0];
3895
		} else {
3896
			$gridview_columns_widget = '';
3897
		}
3898
			/**
3899
		 * Filter the widget listing listview template path.
3900
		 *

geodirectory-functions/custom_functions.php 1 location

@@ 905-911 (lines=7) @@
902
903
			query_posts( $query_args );
904
905
			if ( strstr( $layout, 'gridview' ) ) {
906
				$listing_view_exp = explode( '_', $layout );
907
				$gridview_columns = $layout;
908
				$layout           = $listing_view_exp[0];
909
			} else if ( $layout == 'list' ) {
910
				$gridview_columns = '';
911
			}
912
			$related_posts = true;
913
914
			$related_nearest = false;