| 1 |
<?php |
| 2 |
/** |
| 3 |
* Settings page template |
| 4 |
* |
| 5 |
* @package PoweredCache |
| 6 |
* @subpackage PoweredCache/Settings |
| 7 |
*/ |
| 8 |
|
| 9 |
// Exit if accessed directly |
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; |
| 12 |
} |
| 13 |
|
| 14 |
?> |
| 15 |
<?php $extentions = Powered_Cache_Extensions::factory()->get_extentions(); ?> |
| 16 |
|
| 17 |
<div class="powered-cache-extension-page"> |
| 18 |
<?php foreach ( $extentions as $extension_id => $extention ): ?> |
| 19 |
<div class="powered-cache-extension"><h3 class="powered-cache-extension-title"><?php echo $extention['Name']; ?></h3> |
| 20 |
<a href="<?php echo $extention['ExtensionURI']; ?>" title="<?php echo $extention['Name']; ?>"> |
| 21 |
<img width="320" height="160" src="<?php echo $extention['ExtensionImage']; ?>"></a> |
| 22 |
|
| 23 |
<p><?php echo __( $extention['Description'], 'powered-cache' ); ?></p> |
| 24 |
|
| 25 |
<p></p> |
| 26 |
<?php if ( 'true' === $extention['Premium'] && ! powered_cache_is_premium() ): ?> |
| 27 |
<span class="extension-upgrade-msg"><?php echo __( 'Premium only', 'powered-cache' ); ?></span> |
| 28 |
<span class="upgrade-extension" style="float:right;"> <?php echo Powered_Cache_Admin_Helper::upgrade_button(); ?></span> |
| 29 |
<?php else: ?> |
| 30 |
<?php echo Powered_Cache_Admin_Helper::plugin_button( $extension_id ); ?> |
| 31 |
<?php endif; ?> |
| 32 |
</div> |
| 33 |
|
| 34 |
<?php endforeach; ?> |
| 35 |
|
| 36 |
</div> |
| 37 |
<!-- .postbox --> |
| 38 |
|