2014-07-28 14:50:11 +00:00
< ? php
/**
* Admin View : Page - Addons
2014-10-07 10:04:48 +00:00
*
2015-01-30 14:21:46 +00:00
* @ var string $view
* @ var object $addons
2014-07-28 14:50:11 +00:00
*/
2014-07-28 15:16:35 +00:00
if ( ! defined ( 'ABSPATH' ) ) {
2015-12-03 13:38:13 +00:00
exit ;
2014-07-28 15:16:35 +00:00
}
2016-02-23 09:11:02 +00:00
2014-07-28 14:50:11 +00:00
?>
2013-08-06 13:04:24 +00:00
< div class = " wrap woocommerce wc_addons_wrap " >
< div class = " icon32 icon32-posts-product " id = " icon-woocommerce " >< br /></ div >
2015-11-27 12:27:27 +00:00
< h1 >
2013-08-06 13:04:24 +00:00
< ? php _e ( 'WooCommerce Add-ons/Extensions' , 'woocommerce' ); ?>
2016-04-18 10:58:12 +00:00
< a href = " https://www.woothemes.com/product-category/woocommerce-extensions/ " class = " add-new-h2 " >< ? php _e ( 'Browse all extensions' , 'woocommerce' ); ?> </a>
2015-11-20 07:33:51 +00:00
< ? php WC_Admin_Addons :: output_storefront_button (); ?>
2015-11-27 12:27:27 +00:00
</ h1 >
2015-12-03 13:38:13 +00:00
< ? php if ( $sections ) : ?>
2014-03-06 15:25:05 +00:00
< ul class = " subsubsub " >
2015-12-03 13:38:13 +00:00
< ? php foreach ( $sections as $section_id => $section ) : ?>
< li >< a class = " <?php echo $current_section === $section_id ? 'current' : ''; ?> " href = " <?php echo admin_url( 'admin.php?page=wc-addons§ion=' . esc_attr( $section_id ) ); ?> " >< ? php echo esc_html ( $section -> title ); ?> </a><?php if ( $section_id !== end( $section_keys ) ) echo ' |'; ?></li>
< ? php endforeach ; ?>
2014-03-06 15:25:05 +00:00
</ ul >
< br class = " clear " />
2015-12-03 13:38:13 +00:00
< ? php if ( $addons = WC_Admin_Addons :: get_section_data ( $current_section ) ) : ?>
< ul class = " products " >
< ? php foreach ( $addons as $addon ) : ?>
< li class = " product " >
< a href = " <?php echo esc_attr( $addon->link ); ?> " >
< ? php if ( ! empty ( $addon -> image ) ) : ?>
< img src = " <?php echo esc_attr( $addon->image ); ?> " />
< ? php else : ?>
2016-02-17 18:29:42 +00:00
< h2 >< ? php echo esc_html ( $addon -> title ); ?> </h2>
2015-12-03 13:38:13 +00:00
< ? php endif ; ?>
< span class = " price " >< ? php echo wp_kses_post ( $addon -> price ); ?> </span>
< p >< ? php echo wp_kses_post ( $addon -> excerpt ); ?> </p>
</ a >
</ li >
< ? php endforeach ; ?>
</ ul >
< ? php endif ; ?>
2014-03-06 15:25:05 +00:00
< ? php else : ?>
< p >< ? php printf ( __ ( 'Our catalog of WooCommerce Extensions can be found on WooThemes.com here: <a href="%s">WooCommerce Extensions Catalog</a>' , 'woocommerce' ), 'http://www.woothemes.com/product-category/woocommerce-extensions/' ); ?> </p>
< ? php endif ; ?>
2014-12-16 11:43:26 +00:00
2015-12-03 13:38:13 +00:00
< ? php if ( 'Storefront' !== $theme [ 'Name' ] ) : ?>
< div class = " storefront " >
2016-03-07 11:36:07 +00:00
< a href = " <?php echo esc_url( 'http://www.woothemes.com/storefront/' ); ?> " target = " _blank " >< img src = " <?php echo WC()->plugin_url(); ?>/assets/images/storefront.png " alt = " Storefront " /></ a >
2016-02-17 18:29:42 +00:00
< h2 >< ? php _e ( 'Looking for a WooCommerce theme?' , 'woocommerce' ); ?> </h2>
2015-12-03 13:38:13 +00:00
< p >< ? php printf ( __ ( 'We recommend Storefront, the %sofficial%s WooCommerce theme.' , 'woocommerce' ), '<em>' , '</em>' ); ?> </p>
2016-03-07 11:36:07 +00:00
< p >< ? php printf ( __ ( 'Storefront is an intuitive, flexible and %sfree%s WordPress theme offering deep integration with WooCommerce and many of the most popular customer-facing extensions.' , 'woocommerce' ), '<strong>' , '</strong>' ); ?> </p>
2015-12-03 13:38:13 +00:00
< p >
< a href = " <?php echo esc_url( 'http://www.woothemes.com/storefront/' ); ?> " target = " _blank " class = " button " >< ? php _e ( 'Read all about it' , 'woocommerce' ) ?> </a>
< a href = " <?php echo esc_url( wp_nonce_url( self_admin_url( 'update.php?action=install-theme&theme=storefront' ), 'install-theme_storefront' ) ); ?> " class = " button button-primary " >< ? php _e ( 'Download & install' , 'woocommerce' ); ?> </a>
</ p >
</ div >
2014-12-16 11:43:26 +00:00
< ? php endif ; ?>
2014-05-23 12:54:26 +00:00
</ div >