Plugin Directory

Changeset 1246386


Ignore:
Timestamp:
09/16/2015 04:42:11 AM (11 years ago)
Author:
d363f86b
Message:

Fixed plugin path definitions which when missing, made this plugin incompatible with the premium version

Location:
bulk-photo-to-product-importer-extension-for-woocommerce/trunk
Files:
9 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • bulk-photo-to-product-importer-extension-for-woocommerce/trunk/bptpi.php

    r1245657 r1246386  
    66Author: The Portland Company, Designed by Spencer Hill, Coded by Redeye Adaya
    77Author URI: http://www.theportlandcompany.com
    8 Version: 2.4.0
     8Version: 2.4.1
    99Copyright: 2015 The Portland Company
    1010License: GPL v3
     
    1515if ( ! class_exists( 'PTP_Importer' ) ) {
    1616
     17defined( 'TPC_BPTPI_ROOT'      ) or define( 'TPC_BPTPI_ROOT'     , dirname( __FILE__ ) );
     18defined( 'TPC_BPTPI_URL'       ) or define( 'TPC_BPTPI_URL'      , plugins_url( basename( TPC_BPTPI_ROOT ) ) );
     19defined( 'TPC_BPTPI_SLUG') or define( 'TPC_BPTPI_SLUG', 'tpc-bptpi');
     20
    1721class PTP_Importer {
    1822
     
    2024     * @var string
    2125     */
    22     public $version = '2.4.0';
     26    public $version = '2.4.1';
    2327
    2428    /**
  • bulk-photo-to-product-importer-extension-for-woocommerce/trunk/includes/functions.php

    r1245657 r1246386  
    7373    $overlay_height = imagesy( $overlay_gd_image );
    7474
    75     $overlay_downsampling_ratio = 0.1;
     75    $overlay_downsampling_ratio = 0.1; // Water mark size max ratio
     76
     77    $watermark_style = isset($settings['watermark_style']) ? $settings['watermark_style'] : 'tiled'; // Defaulting to tiled
    7678
    7779    if ($overlay_width > $source_width * $overlay_downsampling_ratio) {
     
    98100    $distance = 100;
    99101   
    100     if($settings['watermark_style'] == 'tiled')
     102    if($watermark_style == 'tiled')
    101103    {
    102104        $h_count = $source_width / ($overlay_width + $distance);
     
    121123        }
    122124    }
    123     else if ($settings['watermark_style'] == 'centered')
     125    else if ($watermark_style == 'centered')
    124126    {
    125127        /*
Note: See TracChangeset for help on using the changeset viewer.