WordPress.org

Plugin Directory

Changeset 1599770


Ignore:
Timestamp:
02/20/17 13:10:37 (7 months ago)
Author:
TemplateMonster 2002
Message:

v.1.2.0

Location:
tm-woocommerce-package
Files:
88 added
5 edited

Legend:

Unmodified
Added
Removed
  • tm-woocommerce-package/trunk/README.txt

    r1581906 r1599770  
    44Tags: woocommerce, widgets, e-commerce 
    55Requires at least: 4.4 
    6 Tested up to: 4.7.1 
    7 Stable tag: 1.1.13 
     6Tested up to: 4.7.2 
     7Stable tag: 1.2.0 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • tm-woocommerce-package/trunk/includes/widgets/class-tm-about-store-widget.php

    r1525811 r1599770  
    5656         */ 
    5757        public function widget( $args, $instance ) { 
     58            $img           = ''; 
     59            $enable_button = isset( $instance['enable_button'] ) ? $instance['enable_button'] : 0; 
     60            $id            = ! empty( $instance['id'] )          ? $instance['id']            : ''; 
    5861 
    59             $enable_button = isset( $instance['enable_button'] ) ? $instance['enable_button'] : 0; 
    60             $button_url    = isset( $instance['button_url'] )    ? $instance['button_url']    : ''; 
    61             $button_text   = isset( $instance['button_text'] )   ? apply_filters('wpml_translate_single_string', $instance['button_text'], 'Widgets', 'TM About Store - button text' )          : ''; 
    62             $id            = ! empty( $instance['id'] )          ? $instance['id']            : ''; 
    63             $img           = ''; 
     62            $button_text   = isset( $instance['button_text'] ) ? apply_filters( 'wpml_translate_single_string', $instance['button_text'], 'Widgets', 'TM About Store - button text' ) : ''; 
     63            $button_url   = isset( $instance['button_url'] ) ? apply_filters( 'wpml_translate_single_string', $instance['button_url'], 'Widgets', 'TM About Store - button url' ) : ''; 
    6464 
    6565            if ( '' !== $id ) { 
    66  
    6766                $img = wp_get_attachment_image_src ( $id, 'original' ); 
    6867            } 
     68 
    6969            $before_widget   = array(); 
    7070            $before_widget['before_widget'] = $args['before_widget']; 
     71 
    7172            if ( is_array( $img ) ) { 
    72  
    7373                $before_widget['img_container'] = '<div class="tm_about_store_widget_bg" style="background-image: url(' . $img[0] . ');">'; 
    7474            } 
     75 
    7576            $args['before_widget'] = implode( "\n", $before_widget ); 
    7677            $after_widget = array(); 
     
    8081                $after_widget['button'] = '<a href="' . esc_url( $button_url ) . '" class="button btn">' . $button_text . '</a>'; 
    8182            } 
     83 
    8284            if ( is_array( $img ) ) { 
    83  
    8485                $after_widget['img_container'] = '</div>'; 
    8586            } 
     87 
    8688            $after_widget['after_widget']       = $args['after_widget']; 
    8789            $args['after_widget'] = implode( "\n", $after_widget ); 
     
    113115             */ 
    114116            do_action( 'wpml_register_single_string', 'Widgets', 'TM About Store - button text', $instance['button_text'] ); 
     117            do_action( 'wpml_register_single_string', 'Widgets', 'TM About Store - button url', $instance['button_url'] ); 
    115118            //WMPL 
    116119 
  • tm-woocommerce-package/trunk/includes/widgets/class-tm-banners-grid-widget.php

    r1581854 r1599770  
    295295                </select> 
    296296                </p> 
    297                 <p><label><strong><?php _e( 'Title:', 'tm-woocommrece-package' ); ?></strong></label> 
     297                <p><label><strong><?php _e( 'Title:', 'tm-woocommerce-package' ); ?></strong></label> 
    298298                <input class="widefat tm_banners_grid_widget_banner_title" type="text"></p> 
    299                 <p><label><strong><?php _e( 'Content:', 'tm-woocommrece-package' ); ?></strong></label> 
     299                <p><label><strong><?php _e( 'Content:', 'tm-woocommerce-package' ); ?></strong></label> 
    300300                <textarea class="widefat tm_banners_grid_widget_banner_text" rows="16" cols="20"></textarea></p> 
    301301                <input type="hidden" class="tm_banners_grid_widget_banner_id"> 
  • tm-woocommerce-package/trunk/includes/widgets/class-tm-products-carousel-widget.php

    r1541776 r1599770  
    343343                add_filter( 'post_class', array( $this, 'loop_columns' ), 20, 3 ); 
    344344 
     345                /** 
     346                 * Hook fires before widget loop 
     347                 */ 
     348                do_action( 'tm_products_carousel_widget_loop_before' ); 
     349 
    345350                while ( $products->have_posts() ) { 
    346351 
     
    351356                    ) ); 
    352357                } 
     358 
     359                /** 
     360                 * Hook fires after widget loop 
     361                 */ 
     362                do_action( 'tm_products_carousel_widget_loop_after' ); 
     363 
    353364                $this->hooks( $this->hooks, $instance, false ); 
    354365 
  • tm-woocommerce-package/trunk/tm-woocommerce-package.php

    r1581854 r1599770  
    22/* 
    33    Plugin Name: TM WooCommerce Package 
    4     Version: 1.1.13 
     4    Description: The plugin based on WooCommerce is packed with multiple functional widgets that give you an opportunity to build various layouts for your store. 
     5    Version: 1.2.0 
    56    Author: TemplateMonster 
    67    Author URI: http://www.templatemonster.com/ 
     8    Text Domain: tm-woocommerce-package 
    79*/ 
    810 
     
    162164    public function init() { 
    163165        include_once 'includes/tm-woocommerce-hooks.php'; 
     166        include_once 'includes/tm-woocommerce-product-thumbs.php'; 
    164167    } 
    165168 
     
    286289        // TM Bootstrap Grid 
    287290        wp_register_style( 'bootstrap-grid', tm_wc()->plugin_url() . '/assets/css/grid.css', array() ); 
     291 
     292        wp_enqueue_style( 
     293            'tm-woocommerce-package', 
     294            tm_wc()->plugin_url() . '/assets/css/tm-woocommerce-package.css', 
     295            array(), 
     296            TM_WOOCOMMERCE_VERISON, 
     297            'all' 
     298        ); 
    288299    } 
    289300 
Note: See TracChangeset for help on using the changeset viewer.