Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad706 committed Apr 13, 2018
1 parent b64ed60 commit 1572359
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion widgets/class-leto-product-loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Leto_Product_Loop extends WP_Widget {

public function __construct() {
$widget_ops = array('classname' => 'leto_product_loop', 'description' => __( 'Display products in a grid.', 'leto') );
$widget_ops = array('classname' => 'leto_product_loop', 'description' => __( 'Display products in a grid or carousel.', 'leto') );
parent::__construct(false, $name = __('Leto: Product loop', 'leto'), $widget_ops);
$this->alt_option_name = 'leto_product_loop';
}
Expand Down Expand Up @@ -52,6 +52,12 @@ function form($instance) {
<option value="rand" <?php selected( $orderby, 'rand' ); ?>><?php echo __('Random', 'leto'); ?></option>
</select>
</p>
<p><label for="<?php echo $this->get_field_id('mode'); ?>"><?php _e('Pick the style for this widget:', 'leto'); ?></label>
<select name="<?php echo $this->get_field_name('mode'); ?>" id="<?php echo $this->get_field_id('mode'); ?>">
<option value="grid" <?php selected( $mode, 'grid' ); ?>><?php echo __('Grid', 'leto'); ?></option>
<option value="best-seller-slider" <?php selected( $mode, 'best-seller-slider' ); ?>><?php echo __('Carousel', 'leto'); ?></option>
</select>
</p>

<p><em><?php echo esc_attr__( 'You can add a button under the products', 'leto' ); ?></em></p>
<p><label for="<?php echo $this->get_field_id( 'button_url' ); ?>"><?php _e( 'Button URL', 'leto' ); ?></label>
Expand Down

0 comments on commit 1572359

Please sign in to comment.