| @@ -1,58 +1,63 @@ | ||
| 1 | -<?php defined('ABSPATH') or exit; ?> | |
| 2 | -<div class="wrap boxzilla-extensions" id="boxzilla-admin"> | |
| 1 | +<?php defined( 'ABSPATH' ) or exit; ?> | |
| 2 | +<div class="wrap" id="boxzilla-admin" class="boxzilla-extensions"> | |
| 3 | 3 | |
| 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> | |
| 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> | |
| 7 | 11 | |
| 8 | - <?php if (empty($extensions)) : ?> | |
| 9 | - <script> | |
| 10 | - window.setTimeout( function() { | |
| 11 | - window.location.href = 'https://boxzillaplugin.com/add-ons/#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=extensions-page'; | |
| 12 | - }, 2000 ); | |
| 13 | - </script> | |
| 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> | |
| 16 | - <?php else : ?> | |
| 17 | - <?php foreach ($extensions as $i => $plugin) : ?> | |
| 18 | - <div class="plugin"> | |
| 19 | - <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> | |
| 20 | - <div class="caption"> | |
| 21 | - <h3><a href="<?php echo esc_url($plugin->page_url); ?>" class="unstyled"><?php echo esc_html($plugin->name); ?></a></h3> | |
| 22 | - <p><?php echo esc_html($plugin->description); ?></p> | |
| 23 | - <p> | |
| 24 | - <a class="button" href="<?php echo esc_url($plugin->page_url); ?>" title="More about <?php echo esc_attr($plugin->name); ?>">Read More</a> | |
| 25 | - <span class="type">Premium</span> | |
| 26 | - </p> | |
| 27 | - </div> | |
| 28 | - </div> | |
| 29 | - <?php | |
| 30 | - if (( $i + 1 ) % 4 === 0) { | |
| 31 | - echo '<div style="clear: both;"></div>'; | |
| 32 | - } | |
| 33 | - ?> | |
| 34 | - <?php endforeach; ?> | |
| 12 | + <?php if ( empty( $extensions ) ) : ?> | |
| 13 | + <script> | |
| 14 | + window.setTimeout( function() { | |
| 15 | + window.location.href = 'https://boxzillaplugin.com/add-ons/#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=extensions-page'; | |
| 16 | + }, 2000 ); | |
| 17 | + </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> | |
| 20 | + <?php else : ?> | |
| 35 | 21 | |
| 36 | - <br style="clear: both;" /> | |
| 22 | + <?php foreach ( $extensions as $i => $plugin ) : ?> | |
| 23 | + <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> | |
| 25 | + <div class="caption"> | |
| 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> | |
| 28 | + <p> | |
| 29 | + <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">Premium</span> | |
| 31 | + </p> | |
| 32 | + </div> | |
| 33 | + </div> | |
| 34 | + <?php | |
| 35 | + if ( ( $i + 1 ) % 4 === 0 ) { | |
| 36 | + echo '<div style="clear: both;"></div>'; | |
| 37 | + } | |
| 38 | + ?> | |
| 39 | + <?php endforeach; ?> | |
| 37 | 40 | |
| 38 | - <?php endif; ?> | |
| 41 | + <br style="clear: both;" /> | |
| 42 | + | |
| 43 | + <?php endif; ?> | |
| 39 | 44 | </div> |
| 40 | 45 | |
| 41 | 46 | <style type="text/css"> |
| 42 | - .plugin { | |
| 43 | - width: 280px; | |
| 44 | - border: 1px solid #ccc; | |
| 45 | - margin: 0 20px 20px 0; | |
| 46 | - float: left; | |
| 47 | - } | |
| 47 | + .plugin { | |
| 48 | + width: 280px; | |
| 49 | + border: 1px solid #ccc; | |
| 50 | + margin: 0 20px 20px 0; | |
| 51 | + float: left; | |
| 52 | + } | |
| 48 | 53 | |
| 49 | - .plugin .caption { | |
| 50 | - padding: 0 20px; | |
| 51 | - } | |
| 54 | + .plugin .caption { | |
| 55 | + padding: 0 20px; | |
| 56 | + } | |
| 52 | 57 | |
| 53 | - .plugin .type { | |
| 54 | - float: right; | |
| 55 | - text-transform: uppercase; | |
| 56 | - font-weight: bold; | |
| 57 | - } | |
| 58 | + .plugin .type { | |
| 59 | + float: right; | |
| 60 | + text-transform: uppercase; | |
| 61 | + font-weight: bold; | |
| 62 | + } | |
| 58 | 63 | </style> |