Plugin Directory

Changeset 1781472


Ignore:
Timestamp:
12/05/2017 05:24:09 PM (8 years ago)
Author:
devlucasmendes
Message:

Improve buy button, add btn clean filters, alerts msgs; change to premium v1.1

Location:
fastdee/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fastdee/trunk/fastdee.php

    r1773961 r1781472  
    44 * Plugin URI: http://fastdee.com/
    55 * Description: Com o plugin Fastdee! Afiliados agora podem realizar a importação automatizada de ofertas da Lomadee. E também buscar Cupons comissionados.
    6  * Version: 2.7.1
     6 * Version: 2.7.2
    77 * Author: Lucas Mendes Mota da Fonseca
    88 * Author URI: http://devlucasmendes.com
     
    2828    final class Fastdee {
    2929
    30         public $version = '2.7.1';
     30        public $version = '2.7.2';
    3131
    3232        protected static $_instance = null;
  • fastdee/trunk/includes/core/class-fd-base.php

    r1773961 r1781472  
    303303    }
    304304
     305    public function getOfferName( $offer, $force_get_short_name = false ) {
     306        if ( ! $force_get_short_name && property_exists( $offer, 'offer' ) && property_exists( $offer->offer, 'shortName' ) ) {
     307            $shortname = $offer->offer->shortName;
     308        } else {
     309            $shortname = wp_trim_words( $offer->name, 5, '...' );
     310        }
     311
     312        return $shortname;
     313    }
     314
    305315}
  • fastdee/trunk/includes/libraries/alv2/alv2.php

    r1771929 r1781472  
    225225    }
    226226
    227     public function getProductsFromResponse( $response ) {
    228         $arrOffersByStore = array();
    229         if ( $this->isValidResponse( $response ) ) {
    230             foreach ( $response->offers as $offer ) {
    231                 $arrOffersByStore[ $offer->store->id ] = $offer;
    232             }
    233         }
    234 
    235         return $arrOffersByStore;
    236     }
    237227}
Note: See TracChangeset for help on using the changeset viewer.