| @@ -2,38 +2,41 @@ | ||
| 2 | 2 | <div class="wrap" id="boxzilla-admin" class="boxzilla-extensions"> |
| 3 | 3 | |
| 4 | 4 | <h2><?php _e( 'Available Add-On Plugins', 'boxzilla' ); ?></h2> |
| 5 | 5 | <p> |
| 6 | - <?php _e( "There are various add-ons available for Boxzilla which further enhance the functionality of the core plugin.", 'boxzilla' ); ?> | |
| 6 | + <?php _e( 'There are various add-ons available for Boxzilla which further enhance the functionality of the core plugin.', 'boxzilla' ); ?> | |
| 7 | 7 | </p> |
| 8 | 8 | <p> |
| 9 | 9 | <?php printf( __( 'To gain instant access the premium add-on plugins listed here, <a href="%s">have a look at our pricing</a>.', 'boxzilla' ), 'https://boxzillaplugin.com/pricing#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=extensions-page' ); ?> |
| 10 | 10 | </p> |
| 11 | 11 | |
| 12 | - <?php if( empty( $extensions ) ) : ?> | |
| 12 | + <?php if ( empty( $extensions ) ) : ?> | |
| 13 | 13 | <script> |
| 14 | 14 | window.setTimeout( function() { |
| 15 | - window.location.href = 'https://Boxzilla.com/plugins#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=extensions-page'; | |
| 15 | + window.location.href = 'https://boxzillaplugin.com/add-ons/#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=extensions-page'; | |
| 16 | 16 | }, 2000 ); |
| 17 | 17 | </script> |
| 18 | 18 | <p><?php _e( 'You will be redirected to the Boxzilla site in a few seconds..', 'boxzilla' ); ?></p> |
| 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> | |
| 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 | - <h3><a href="<?php echo esc_url( $plugin->page_url ); ?>" class="unstyled"><?php echo $plugin->name; ?></a></h3> | |
| 28 | - <p><?php echo esc_html( $plugin->short_description ); ?></p> | |
| 26 | + <h3><a href="<?php echo esc_url( $plugin->page_url ); ?>" class="unstyled"><?php echo esc_html( $plugin->name ); ?></a></h3> | |
| 27 | + <p><?php echo esc_html( $plugin->description ); ?></p> | |
| 29 | 28 | <p> |
| 30 | 29 | <a class="button" href="<?php echo esc_url( $plugin->page_url ); ?>" title="More about <?php echo esc_attr( $plugin->name ); ?>">Read More</a> |
| 31 | - <span class="type"><?php echo esc_html( $plugin->type ); ?></span> | |
| 30 | + <span class="type">Premium</span> | |
| 32 | 31 | </p> |
| 33 | 32 | </div> |
| 34 | 33 | </div> |
| 35 | - | |
| 34 | + <?php | |
| 35 | + if ( ( $i + 1 ) % 4 === 0 ) { | |
| 36 | + echo '<div style="clear: both;"></div>'; | |
| 37 | + } | |
| 38 | + ?> | |
| 36 | 39 | <?php endforeach; ?> |
| 37 | 40 | |
| 38 | 41 | <br style="clear: both;" /> |
| 39 | 42 | |
| @@ -56,5 +59,5 @@ | ||
| 56 | 59 | float: right; |
| 57 | 60 | text-transform: uppercase; |
| 58 | 61 | font-weight: bold; |
| 59 | 62 | } |
| 60 | -</style> | |
| 63 | +</style> | |