Code Duplication    Length = 13-13 lines in 12 locations

geodirectory-widgets/geodirectory_features_widget.php 12 locations

@@ 77-89 (lines=13) @@
74
        } ?>
75
        <?php
76
        echo "<ul class='gd-features'>";
77
        if ($title1 OR $image1 OR $desc1) {
78
            echo "<li>";
79
            if ($title1) {
80
                echo "<h3 class='gd-fe-title'>" . $title1 . "</h3>";
81
            }
82
            if ($image1) {
83
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image1, $icon_color) . "</div>";
84
            }
85
            if ($desc1) {
86
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc1) . "</div>";
87
            }
88
            echo "</li>";
89
        }
90
91
        if ($title2 OR $image2 OR $desc2) {
92
            echo "<li>";
@@ 91-103 (lines=13) @@
88
            echo "</li>";
89
        }
90
91
        if ($title2 OR $image2 OR $desc2) {
92
            echo "<li>";
93
            if ($title2) {
94
                echo "<h3 class='gd-fe-title'>" . $title2 . "</h3>";
95
            }
96
            if ($image2) {
97
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image2, $icon_color) . "</div>";
98
            }
99
            if ($desc2) {
100
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc2) . "</div>";
101
            }
102
            echo "</li>";
103
        }
104
105
        if ($title3 OR $image3 OR $desc3) {
106
            echo "<li>";
@@ 105-117 (lines=13) @@
102
            echo "</li>";
103
        }
104
105
        if ($title3 OR $image3 OR $desc3) {
106
            echo "<li>";
107
            if ($title3) {
108
                echo "<h3 class='gd-fe-title'>" . $title3 . "</h3>";
109
            }
110
            if ($image3) {
111
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image3, $icon_color) . "</div>";
112
            }
113
            if ($desc3) {
114
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc3) . "</div>";
115
            }
116
            echo "</li>";
117
        }
118
119
        if ($title4 OR $image4 OR $desc4) {
120
            echo "<li>";
@@ 119-131 (lines=13) @@
116
            echo "</li>";
117
        }
118
119
        if ($title4 OR $image4 OR $desc4) {
120
            echo "<li>";
121
            if ($title4) {
122
                echo "<h3 class='gd-fe-title'>" . $title4 . "</h3>";
123
            }
124
            if ($image4) {
125
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image4, $icon_color) . "</div>";
126
            }
127
            if ($desc4) {
128
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc4) . "</div>";
129
            }
130
            echo "</li>";
131
        }
132
133
        if ($title5 OR $image5 OR $desc5) {
134
            echo "<li>";
@@ 133-145 (lines=13) @@
130
            echo "</li>";
131
        }
132
133
        if ($title5 OR $image5 OR $desc5) {
134
            echo "<li>";
135
            if ($title5) {
136
                echo "<h3 class='gd-fe-title'>" . $title5 . "</h3>";
137
            }
138
            if ($image5) {
139
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image5, $icon_color) . "</div>";
140
            }
141
            if ($desc5) {
142
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc5) . "</div>";
143
            }
144
            echo "</li>";
145
        }
146
147
        if ($title6 OR $image6 OR $desc6) {
148
            echo "<li>";
@@ 147-159 (lines=13) @@
144
            echo "</li>";
145
        }
146
147
        if ($title6 OR $image6 OR $desc6) {
148
            echo "<li>";
149
            if ($title6) {
150
                echo "<h3 class='gd-fe-title'>" . $title6 . "</h3>";
151
            }
152
            if ($image6) {
153
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image6, $icon_color) . "</div>";
154
            }
155
            if ($desc6) {
156
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc6) . "</div>";
157
            }
158
            echo "</li>";
159
        }
160
161
        if ($title7 OR $image7 OR $desc7) {
162
            echo "<li>";
@@ 161-173 (lines=13) @@
158
            echo "</li>";
159
        }
160
161
        if ($title7 OR $image7 OR $desc7) {
162
            echo "<li>";
163
            if ($title7) {
164
                echo "<h3 class='gd-fe-title'>" . $title7 . "</h3>";
165
            }
166
            if ($image7) {
167
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image7, $icon_color) . "</div>";
168
            }
169
            if ($desc7) {
170
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc7) . "</div>";
171
            }
172
            echo "</li>";
173
        }
174
175
        if ($title8 OR $image8 OR $desc8) {
176
            echo "<li>";
@@ 175-187 (lines=13) @@
172
            echo "</li>";
173
        }
174
175
        if ($title8 OR $image8 OR $desc8) {
176
            echo "<li>";
177
            if ($title8) {
178
                echo "<h3 class='gd-fe-title'>" . $title8 . "</h3>";
179
            }
180
            if ($image8) {
181
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image8, $icon_color) . "</div>";
182
            }
183
            if ($desc8) {
184
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc8) . "</div>";
185
            }
186
            echo "</li>";
187
        }
188
189
        if ($title9 OR $image9 OR $desc9) {
190
            echo "<li>";
@@ 189-201 (lines=13) @@
186
            echo "</li>";
187
        }
188
189
        if ($title9 OR $image9 OR $desc9) {
190
            echo "<li>";
191
            if ($title9) {
192
                echo "<h3 class='gd-fe-title'>" . $title9 . "</h3>";
193
            }
194
            if ($image9) {
195
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image9, $icon_color) . "</div>";
196
            }
197
            if ($desc9) {
198
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc9) . "</div>";
199
            }
200
            echo "</li>";
201
        }
202
203
        if ($title10 OR $image10 OR $desc10) {
204
            echo "<li>";
@@ 203-215 (lines=13) @@
200
            echo "</li>";
201
        }
202
203
        if ($title10 OR $image10 OR $desc10) {
204
            echo "<li>";
205
            if ($title10) {
206
                echo "<h3 class='gd-fe-title'>" . $title10 . "</h3>";
207
            }
208
            if ($image10) {
209
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image10, $icon_color) . "</div>";
210
            }
211
            if ($desc10) {
212
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc10) . "</div>";
213
            }
214
            echo "</li>";
215
        }
216
217
        if ($title11 OR $image11 OR $desc11) {
218
            echo "<li>";
@@ 217-229 (lines=13) @@
214
            echo "</li>";
215
        }
216
217
        if ($title11 OR $image11 OR $desc11) {
218
            echo "<li>";
219
            if ($title11) {
220
                echo "<h3 class='gd-fe-title'>" . $title11 . "</h3>";
221
            }
222
            if ($image11) {
223
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image11, $icon_color) . "</div>";
224
            }
225
            if ($desc11) {
226
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc11) . "</div>";
227
            }
228
            echo "</li>";
229
        }
230
231
        if ($title12 OR $image12 OR $desc12) {
232
            echo "<li>";
@@ 231-243 (lines=13) @@
228
            echo "</li>";
229
        }
230
231
        if ($title12 OR $image12 OR $desc12) {
232
            echo "<li>";
233
            if ($title12) {
234
                echo "<h3 class='gd-fe-title'>" . $title12 . "</h3>";
235
            }
236
            if ($image12) {
237
                echo "<div class='gd-fe-image'>" . gd_features_parse_image($image12, $icon_color) . "</div>";
238
            }
239
            if ($desc12) {
240
                echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($desc12) . "</div>";
241
            }
242
            echo "</li>";
243
        }
244
        echo "</ul>";
245
        ?>
246
        <?php echo $after_widget; ?>