summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-07-12 10:41:06 -0400
committerAnthony G. Basile <blueness@gentoo.org>2018-07-12 10:41:06 -0400
commitd38ad7e645bf525ba52f98eb3ac3b911569ba8ad (patch)
treec71f455934a7ad823422c9eb17e08d029d2c7612 /plugins/jetpack/modules/widgets/simple-payments/widget.php
parentUpdate akismet 4.0.8 (diff)
downloadblogs-gentoo-d38ad7e645bf525ba52f98eb3ac3b911569ba8ad.tar.gz
blogs-gentoo-d38ad7e645bf525ba52f98eb3ac3b911569ba8ad.tar.bz2
blogs-gentoo-d38ad7e645bf525ba52f98eb3ac3b911569ba8ad.zip
Update jetpack 6.3.2
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/widgets/simple-payments/widget.php')
-rw-r--r--plugins/jetpack/modules/widgets/simple-payments/widget.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/widgets/simple-payments/widget.php b/plugins/jetpack/modules/widgets/simple-payments/widget.php
new file mode 100644
index 00000000..740cbd74
--- /dev/null
+++ b/plugins/jetpack/modules/widgets/simple-payments/widget.php
@@ -0,0 +1,25 @@
+<div class='jetpack-simple-payments-wrapper'>
+ <div class='jetpack-simple-payments-product'>
+ <div class='jetpack-simple-payments-product-image' <?php if ( empty( $instance['form_product_image_id'] ) ) echo 'style="display:none;"'; ?>>
+ <div class='jetpack-simple-payments-image'>
+ <?php echo wp_get_attachment_image( $instance['form_product_image_id'], 'full' ) ?>
+ </div>
+ </div>
+ <div class='jetpack-simple-payments-details'>
+ <div class='jetpack-simple-payments-title'><p><?php esc_attr_e( $instance['form_product_title'] ); ?></p></div>
+ <div class='jetpack-simple-payments-description'><p><?php esc_html_e( $instance['form_product_description'] ); ?></p></div>
+ <div class='jetpack-simple-payments-price'><p><?php esc_attr_e( $instance['form_product_price'] ); ?> <?php esc_attr_e( $instance['form_product_currency'] ); ?></p></div>
+ <div class='jetpack-simple-payments-purchase-box'>
+ <?php if ( $instance['form_product_multiple'] ) { ?>
+ <div class='jetpack-simple-payments-items'>
+ <input
+ type='number'
+ class='jetpack-simple-payments-items-number'
+ value='1'
+ min='1' />
+ </div>
+ <?php } ?>
+ </div>
+ </div>
+ </div>
+</div>