| @@ -18,9 +18,10 @@ | ||
| 18 | 18 | <p><?php _e( 'You will be redirected to the Boxzilla site in a few seconds..', 'boxzilla' ); ?></p> |
| 19 | 19 | <p><?php printf( __( 'If not, please click here: %s.', 'boxzilla' ), '<a href="https://boxzillaplugin.com/add-ons/#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=extensions-page" target="_blank">View add-on plugins</a>' ); ?></p> |
| 20 | 20 | <?php else : ?> |
| 21 | 21 | |
| 22 | - <?php foreach( $extensions as $i => $plugin ) : ?> | |
| 22 | + <?php foreach( $extensions as $plugin ) : ?> | |
| 23 | + | |
| 23 | 24 | <div class="plugin"> |
| 24 | 25 | <a href="<?php echo esc_url( $plugin->page_url ); ?>" class="unstyled"><img src="<?php echo esc_url( $plugin->image_url ); ?>" alt="<?php echo $plugin->name; ?>" width="280" height="220"></a> |
| 25 | 26 | <div class="caption"> |
| 26 | 27 | <h3><a href="<?php echo esc_url( $plugin->page_url ); ?>" class="unstyled"><?php echo $plugin->name; ?></a></h3> |
| @@ -30,9 +31,9 @@ | ||
| 30 | 31 | <span class="type"><?php echo esc_html( $plugin->type ); ?></span> |
| 31 | 32 | </p> |
| 32 | 33 | </div> |
| 33 | 34 | </div> |
| 34 | - <?php if(($i+1) % 4 === 0) { echo '<div style="clear: both;"></div>'; } ?> | |
| 35 | + | |
| 35 | 36 | <?php endforeach; ?> |
| 36 | 37 | |
| 37 | 38 | <br style="clear: both;" /> |
| 38 | 39 | |
| @@ -55,5 +56,5 @@ | ||
| 55 | 56 | float: right; |
| 56 | 57 | text-transform: uppercase; |
| 57 | 58 | font-weight: bold; |
| 58 | 59 | } |
| 59 | -</style> | |
| 60 | +</style> | |