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

@@ 3744-3750 (lines=7) @@
3741
			 */
3742
			do_action( 'geodir_after_view_all_link_in_widget' ); ?>
3743
			<?php
3744
			if ( strstr( $layout, 'gridview' ) ) {
3745
				$listing_view_exp        = explode( '_', $layout );
3746
				$gridview_columns_widget = $layout;
3747
				$layout                  = $listing_view_exp[0];
3748
			} else {
3749
				$gridview_columns_widget = '';
3750
			}
3751
3752
			/**
3753
			 * Filter the widget listing listview template path.