| @@ -18,10 +18,9 @@ | ||
| 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 $plugin ) : ?> | |
| 23 | - | |
| 22 | + <?php foreach( $extensions as $i => $plugin ) : ?> | |
| 24 | 23 | <div class="plugin"> |
| 25 | 24 | <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> |
| 26 | 25 | <div class="caption"> |
| 27 | 26 | <h3><a href="<?php echo esc_url( $plugin->page_url ); ?>" class="unstyled"><?php echo $plugin->name; ?></a></h3> |
| @@ -31,9 +30,9 @@ | ||
| 31 | 30 | <span class="type"><?php echo esc_html( $plugin->type ); ?></span> |
| 32 | 31 | </p> |
| 33 | 32 | </div> |
| 34 | 33 | </div> |
| 35 | - | |
| 34 | + <?php if(($i+1) % 4 === 0) { echo '<div style="clear: both;"></div>'; } ?> | |
| 36 | 35 | <?php endforeach; ?> |
| 37 | 36 | |
| 38 | 37 | <br style="clear: both;" /> |
| 39 | 38 | |
| @@ -56,5 +55,5 @@ | ||
| 56 | 55 | float: right; |
| 57 | 56 | text-transform: uppercase; |
| 58 | 57 | font-weight: bold; |
| 59 | 58 | } |
| 60 | -</style> | |
| 59 | +</style> | |