| @@ -1,8 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | defined( 'ABSPATH' ) || exit; |
| 4 | 4 | |
| 5 | +defined( 'ABSPATH' ) || exit; | |
| 5 | 6 | $logo = plugin_dir_url( __FILE__ ) . 'assets/img/Wow-Company.png'; |
| 6 | 7 | $img_url = plugin_dir_url( __FILE__ ) . 'assets/img/'; |
| 7 | 8 | |
| 8 | 9 | $wp_plugins = [ |
| @@ -165,118 +166,136 @@ | ||
| 165 | 166 | 'content' => 'Collection of online calculators and converters for various applications.' |
| 166 | 167 | ], |
| 167 | 168 | ]; |
| 168 | 169 | |
| 169 | -// phpcs:disable PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage | |
| 170 | 170 | ?> |
| 171 | 171 | |
| 172 | - <div class="wrap full-width-layout wpie-page"> | |
| 172 | +<div class="wrap full-width-layout wpie-page"> | |
| 173 | 173 | |
| 174 | - <header class="wpie-page__header"> | |
| 174 | + <header class="wpie-page__header"> | |
| 175 | 175 | |
| 176 | - <div class="wpie-badge"> | |
| 177 | - <img src="<?php | |
| 178 | - echo esc_url( $logo ); ?>" alt="Wow-Company Logo"> | |
| 179 | - </div> | |
| 176 | + <div class="wpie-badge"> | |
| 177 | + <img src="<?php | |
| 178 | + echo esc_url( $logo ); ?>" alt="Wow-Company Logo"> | |
| 179 | + </div> | |
| 180 | 180 | |
| 181 | - <h1>Wow-Company</h1> | |
| 181 | + <h1>Wow-Company</h1> | |
| 182 | 182 | |
| 183 | - <p class="about-text"> | |
| 184 | - Wow-Company is not a company in the literal sense. These different projects and WordPress Plugins are | |
| 185 | - collected under one umbrella, which decided to call Wow-Company. At first, it all started as a hobby, | |
| 186 | - and | |
| 187 | - then it turned into an interesting daily job. </p> | |
| 183 | + <p class="about-text"> | |
| 184 | + Wow-Company is not a company in the literal sense. These different projects and WordPress Plugins are | |
| 185 | + collected under one umbrella, which decided to call Wow-Company. At first, it all started as a hobby, and | |
| 186 | + then it turned into an interesting daily job. </p> | |
| 188 | 187 | |
| 189 | - </header> | |
| 188 | + </header> | |
| 190 | 189 | |
| 191 | - <div class="wpie-page__content"> | |
| 192 | - <h2>WordPress plugins</h2> | |
| 193 | - <div class="item-cards"> | |
| 194 | - <?php foreach ( $wp_plugins as $plugin ): ?> | |
| 195 | - <div class="item-card"> | |
| 196 | - <div class="item-img"> | |
| 197 | - <img src="<?php echo esc_url( $img_url . '/' . $plugin['icon'] ); ?>"> | |
| 190 | + <div class="wpie-page__content"> | |
| 191 | + <h2>WordPress plugins</h2> | |
| 192 | + <div class="item-cards"> | |
| 193 | + <?php | |
| 194 | + foreach ( $wp_plugins as $plugin ): ?> | |
| 195 | + <div class="item-card"> | |
| 196 | + <div class="item-img"> | |
| 197 | + <img src="<?php | |
| 198 | + echo esc_url( $img_url . '/' . $plugin['icon'] ); ?>"> | |
| 199 | + </div> | |
| 200 | + <div class="item-content"> | |
| 201 | + <div class="item-title"><?php | |
| 202 | + echo esc_html( $plugin['title'] ); ?></div> | |
| 203 | + <div class="item-links"> | |
| 204 | + <?php | |
| 205 | + if ( ! empty( $plugin['free'] ) ) : ?> | |
| 206 | + <a href="<?php echo esc_url( $plugin['free'] ); ?>">Free</a> | |
| 207 | + <?php | |
| 208 | + endif; ?> | |
| 209 | + <?php | |
| 210 | + if ( ! empty( $plugin['pro'] ) ) : ?> | |
| 211 | + <a href="<?php echo esc_url( $plugin['pro'] ); ?>" target="_blank">Pro</a> | |
| 212 | + <?php | |
| 213 | + endif; ?> | |
| 198 | 214 | </div> |
| 199 | - <div class="item-content"> | |
| 200 | - <div class="item-title"> | |
| 201 | - <?php echo esc_html( $plugin['title'] ); ?></div> | |
| 202 | - <div class="item-links"> | |
| 203 | - <?php if ( ! empty( $plugin['free'] ) ) : ?> | |
| 204 | - <a href="<?php echo esc_url( $plugin['free'] ); ?>">Free</a> | |
| 205 | - <?php endif; ?> | |
| 206 | - <?php if ( ! empty( $plugin['pro'] ) ) : ?> | |
| 207 | - <a href="<?php echo esc_url( $plugin['pro'] ); ?>" target="_blank">Pro</a> | |
| 208 | - <?php endif; ?> | |
| 209 | - </div> | |
| 210 | - </div> | |
| 211 | - <div class="item-description"> | |
| 212 | - <?php echo esc_html( $plugin['content'] ); ?> | |
| 213 | - </div> | |
| 215 | + </div> | |
| 216 | + <div class="item-description"> | |
| 217 | + <?php | |
| 218 | + echo esc_html( $plugin['content'] ); ?> | |
| 219 | + </div> | |
| 214 | 220 | |
| 215 | - </div> | |
| 221 | + </div> | |
| 216 | 222 | |
| 217 | - <?php endforeach; ?> | |
| 223 | + <?php | |
| 224 | + endforeach; ?> | |
| 218 | 225 | |
| 219 | - </div> | |
| 226 | + </div> | |
| 220 | 227 | |
| 221 | - <h2>WordPress themes</h2> | |
| 222 | - <div class="item-cards"> | |
| 223 | - <?php | |
| 224 | - foreach ( $wp_themes as $theme ): ?> | |
| 225 | - <div class="item-card"> | |
| 226 | - <div class="item-img"> | |
| 227 | - <img src="<?php echo esc_url( $img_url . '/' . $theme['icon'] ); ?>"> | |
| 228 | + <h2>WordPress themes</h2> | |
| 229 | + <div class="item-cards"> | |
| 230 | + <?php | |
| 231 | + foreach ( $wp_themes as $theme ): ?> | |
| 232 | + <div class="item-card"> | |
| 233 | + <div class="item-img"> | |
| 234 | + <img src="<?php | |
| 235 | + echo esc_url( $img_url . '/' . $theme['icon'] ); ?>"> | |
| 236 | + </div> | |
| 237 | + <div class="item-content"> | |
| 238 | + <div class="item-title"><?php | |
| 239 | + echo esc_html( $theme['title'] ); ?></div> | |
| 240 | + <div class="item-links"> | |
| 241 | + <?php | |
| 242 | + if ( ! empty( $theme['free'] ) ) : ?> | |
| 243 | + <a href="<?php | |
| 244 | + echo esc_url( $theme['free'] ); ?>">Free</a> | |
| 245 | + <?php | |
| 246 | + endif; ?> | |
| 247 | + <?php | |
| 248 | + if ( ! empty( $theme['pro'] ) ) : ?> | |
| 249 | + <a href="#">Pro</a> | |
| 250 | + <?php | |
| 251 | + endif; ?> | |
| 228 | 252 | </div> |
| 229 | - <div class="item-content"> | |
| 230 | - <div class="item-title"> | |
| 231 | - <?php echo esc_html( $theme['title'] ); ?></div> | |
| 232 | - <div class="item-links"> | |
| 233 | - <?php if ( ! empty( $theme['free'] ) ) : ?> | |
| 234 | - <a href="<?php echo esc_url( $theme['free'] ); ?>">Free</a> | |
| 235 | - <?php endif; ?> | |
| 236 | - <?php if ( ! empty( $theme['pro'] ) ) : ?> | |
| 237 | - <a href="#">Pro</a> | |
| 238 | - <?php endif; ?> | |
| 239 | - </div> | |
| 240 | - </div> | |
| 241 | - <div class="item-description"> | |
| 242 | - <?php echo esc_html( $theme['content'] ); ?> | |
| 243 | - </div> | |
| 253 | + </div> | |
| 254 | + <div class="item-description"> | |
| 255 | + <?php | |
| 256 | + echo esc_html( $theme['content'] ); ?> | |
| 257 | + </div> | |
| 244 | 258 | |
| 245 | - </div> | |
| 259 | + </div> | |
| 246 | 260 | |
| 247 | - <?php | |
| 248 | - endforeach; ?> | |
| 261 | + <?php | |
| 262 | + endforeach; ?> | |
| 249 | 263 | |
| 250 | - </div> | |
| 264 | + </div> | |
| 251 | 265 | |
| 252 | - <h2>WebSites</h2> | |
| 253 | - <div class="item-cards"> | |
| 254 | - <?php | |
| 255 | - foreach ( $sites as $site ): ?> | |
| 256 | - <div class="item-card"> | |
| 257 | - <div class="item-img"> | |
| 258 | - <img src="<?php echo esc_url( $img_url . '/' . $site['icon'] ); ?>"> | |
| 266 | + <h2>WebSites</h2> | |
| 267 | + <div class="item-cards"> | |
| 268 | + <?php | |
| 269 | + foreach ( $sites as $site ): ?> | |
| 270 | + <div class="item-card"> | |
| 271 | + <div class="item-img"> | |
| 272 | + <img src="<?php | |
| 273 | + echo esc_url( $img_url . '/' . $site['icon'] ); ?>"> | |
| 274 | + </div> | |
| 275 | + <div class="item-content"> | |
| 276 | + <div class="item-title"><?php | |
| 277 | + echo esc_html( $site['title'] ); ?></div> | |
| 278 | + <div class="item-links"> | |
| 279 | + <?php | |
| 280 | + if ( ! empty( $site['link'] ) ) : ?> | |
| 281 | + <a href="<?php | |
| 282 | + echo esc_url( $site['link'] ); ?>">Go to Site</a> | |
| 283 | + <?php | |
| 284 | + endif; ?> | |
| 285 | + | |
| 259 | 286 | </div> |
| 260 | - <div class="item-content"> | |
| 261 | - <div class="item-title"> | |
| 262 | - <?php echo esc_html( $site['title'] ); ?></div> | |
| 263 | - <div class="item-links"> | |
| 264 | - <?php if ( ! empty( $site['link'] ) ) : ?> | |
| 265 | - <a href="<?php echo esc_url( $site['link'] ); ?>">Go to Site</a> | |
| 266 | - <?php endif; ?> | |
| 267 | - </div> | |
| 268 | - </div> | |
| 269 | - <div class="item-description"> | |
| 270 | - <?php echo esc_html( $site['content'] ); ?> | |
| 271 | - </div> | |
| 272 | - | |
| 273 | 287 | </div> |
| 288 | + <div class="item-description"> | |
| 289 | + <?php | |
| 290 | + echo esc_html( $site['content'] ); ?> | |
| 291 | + </div> | |
| 274 | 292 | |
| 275 | - <?php endforeach; ?> | |
| 293 | + </div> | |
| 276 | 294 | |
| 277 | - </div> | |
| 295 | + <?php | |
| 296 | + endforeach; ?> | |
| 278 | 297 | |
| 279 | 298 | </div> |
| 299 | + | |
| 280 | 300 | </div> |
| 281 | -<?php | |
| 282 | -// phpcs:enable | |
| 301 | +</div> | |