| @@ -1,38 +1,38 @@ | ||
| 1 | 1 | <?php defined( 'ABSPATH' ) or exit; ?> |
| 2 | 2 | <div class="wrap" id="boxzilla-admin" class="boxzilla-extensions"> |
| 3 | 3 | |
| 4 | - <h2><?php _e( 'Available Add-On Plugins', 'boxzilla' ); ?></h2> | |
| 5 | - <p> | |
| 6 | - <?php _e( "There are various add-ons available for Boxzilla which further enhance the functionality of the core plugin.", 'boxzilla' ); ?> | |
| 7 | - </p> | |
| 8 | - <p> | |
| 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 | - </p> | |
| 4 | + <h2>Available Add-On Plugins</h2> | |
| 5 | + <p>There are various add-ons available for Boxzilla which further enhance the functionality of the core plugin.</p> | |
| 6 | + <p>To gain instant access the premium add-on plugins listed here, <a href="https://boxzillaplugin.com/pricing#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=extensions-page">have a look at our pricing</a>.</p> | |
| 11 | 7 | |
| 12 | - <?php if( empty( $extensions ) ) : ?> | |
| 8 | + <?php if ( empty( $extensions ) ) : ?> | |
| 13 | 9 | <script> |
| 14 | 10 | window.setTimeout( function() { |
| 15 | 11 | window.location.href = 'https://boxzillaplugin.com/add-ons/#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=extensions-page'; |
| 16 | 12 | }, 2000 ); |
| 17 | 13 | </script> |
| 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> | |
| 14 | + <p>You will be redirected to the Boxzilla site in a few seconds.</p> | |
| 15 | + <p>If not, please click here: <a href="https://boxzillaplugin.com/add-ons/#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=extensions-page" target="_blank">View Boxzilla add-on plugins</a></p> | |
| 20 | 16 | <?php else : ?> |
| 21 | 17 | |
| 22 | - <?php foreach( $extensions as $i => $plugin ) : ?> | |
| 18 | + <?php foreach ( $extensions as $i => $plugin ) : ?> | |
| 23 | 19 | <div class="plugin"> |
| 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> | |
| 20 | + <a href="<?php echo esc_url( $plugin->page_url ); ?>" class="unstyled"><img src="<?php echo esc_url( $plugin->image_url ); ?>" alt="<?php echo esc_attr($plugin->name); ?>" width="280" height="220"></a> | |
| 25 | 21 | <div class="caption"> |
| 26 | - <h3><a href="<?php echo esc_url( $plugin->page_url ); ?>" class="unstyled"><?php echo $plugin->name; ?></a></h3> | |
| 27 | - <p><?php echo esc_html( $plugin->short_description ); ?></p> | |
| 22 | + <h3><a href="<?php echo esc_url( $plugin->page_url ); ?>" class="unstyled"><?php echo esc_html( $plugin->name ); ?></a></h3> | |
| 23 | + <p><?php echo esc_html( $plugin->description ); ?></p> | |
| 28 | 24 | <p> |
| 29 | 25 | <a class="button" href="<?php echo esc_url( $plugin->page_url ); ?>" title="More about <?php echo esc_attr( $plugin->name ); ?>">Read More</a> |
| 30 | - <span class="type"><?php echo esc_html( $plugin->type ); ?></span> | |
| 26 | + <span class="type">Premium</span> | |
| 31 | 27 | </p> |
| 32 | 28 | </div> |
| 33 | 29 | </div> |
| 34 | - <?php if(($i+1) % 4 === 0) { echo '<div style="clear: both;"></div>'; } ?> | |
| 30 | + <?php | |
| 31 | + if ( ( $i + 1 ) % 4 === 0 ) { | |
| 32 | + echo '<div style="clear: both;"></div>'; | |
| 33 | + } | |
| 34 | + ?> | |
| 35 | 35 | <?php endforeach; ?> |
| 36 | 36 | |
| 37 | 37 | <br style="clear: both;" /> |
| 38 | 38 | |