Changeset 1246386
- Timestamp:
- 09/16/2015 04:42:11 AM (11 years ago)
- Location:
- bulk-photo-to-product-importer-extension-for-woocommerce/trunk
- Files:
-
- 9 added
- 1 deleted
- 2 edited
-
assets/images/plugin-directory-assets (added)
-
assets/images/plugin-directory-assets/banner-772x250.png (added)
-
assets/images/plugin-directory-assets/screenshot-1.png (added)
-
assets/images/plugin-directory-assets/screenshot-2.png (added)
-
assets/images/plugin-directory-assets/screenshot-3.png (added)
-
assets/images/plugin-directory-assets/screenshot-4.png (added)
-
assets/images/plugin-directory-assets/screenshot-5.png (added)
-
assets/images/plugin-directory-assets/screenshot-6.png (added)
-
bptpi.php (modified) (3 diffs)
-
deployment-scripts (added)
-
includes/functions.php (modified) (3 diffs)
-
readme.md (deleted)
Legend:
- Unmodified
- Added
- Removed
-
bulk-photo-to-product-importer-extension-for-woocommerce/trunk/bptpi.php
r1245657 r1246386 6 6 Author: The Portland Company, Designed by Spencer Hill, Coded by Redeye Adaya 7 7 Author URI: http://www.theportlandcompany.com 8 Version: 2.4. 08 Version: 2.4.1 9 9 Copyright: 2015 The Portland Company 10 10 License: GPL v3 … … 15 15 if ( ! class_exists( 'PTP_Importer' ) ) { 16 16 17 defined( 'TPC_BPTPI_ROOT' ) or define( 'TPC_BPTPI_ROOT' , dirname( __FILE__ ) ); 18 defined( 'TPC_BPTPI_URL' ) or define( 'TPC_BPTPI_URL' , plugins_url( basename( TPC_BPTPI_ROOT ) ) ); 19 defined( 'TPC_BPTPI_SLUG') or define( 'TPC_BPTPI_SLUG', 'tpc-bptpi'); 20 17 21 class PTP_Importer { 18 22 … … 20 24 * @var string 21 25 */ 22 public $version = '2.4. 0';26 public $version = '2.4.1'; 23 27 24 28 /** -
bulk-photo-to-product-importer-extension-for-woocommerce/trunk/includes/functions.php
r1245657 r1246386 73 73 $overlay_height = imagesy( $overlay_gd_image ); 74 74 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 76 78 77 79 if ($overlay_width > $source_width * $overlay_downsampling_ratio) { … … 98 100 $distance = 100; 99 101 100 if($ settings['watermark_style']== 'tiled')102 if($watermark_style == 'tiled') 101 103 { 102 104 $h_count = $source_width / ($overlay_width + $distance); … … 121 123 } 122 124 } 123 else if ($ settings['watermark_style']== 'centered')125 else if ($watermark_style == 'centered') 124 126 { 125 127 /*
Note: See TracChangeset
for help on using the changeset viewer.