Changeset 1245657
- Timestamp:
- 09/15/2015 06:49:49 AM (11 years ago)
- Location:
- bulk-photo-to-product-importer-extension-for-woocommerce/trunk
- Files:
-
- 2 deleted
- 8 edited
-
assets/images/plugin-directory-assets (deleted)
-
assets/js/admin.js (modified) (1 diff)
-
bptpi.php (modified) (2 diffs)
-
classes/ajax.php (modified) (1 diff)
-
classes/settings.php (modified) (1 diff)
-
deployment-scripts (deleted)
-
includes/functions.php (modified) (3 diffs)
-
index.php (modified) (1 diff)
-
readme.md (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bulk-photo-to-product-importer-extension-for-woocommerce/trunk/assets/js/admin.js
r1178647 r1245657 1060 1060 data = 'hide_variations=0&' + data; 1061 1061 } 1062 if ( $('#tiled-watermark').is(':checked') ) {1063 data = data.replace('tiled_watermark=0', 'tiled_watermark=1');1064 } else {1065 data = 'tiled_watermark=0&' + data;1066 }1067 1062 1068 1063 that.find('input[type=submit]').after('<div class="ptp-loading">Saving...</div>'); -
bulk-photo-to-product-importer-extension-for-woocommerce/trunk/bptpi.php
r1240559 r1245657 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. 3.198 Version: 2.4.0 9 9 Copyright: 2015 The Portland Company 10 10 License: GPL v3 … … 20 20 * @var string 21 21 */ 22 public $version = '2. 3.19';22 public $version = '2.4.0'; 23 23 24 24 /** -
bulk-photo-to-product-importer-extension-for-woocommerce/trunk/classes/ajax.php
r1235446 r1245657 499 499 echo json_encode( array( 500 500 'success' => true, 501 'html' => ptp_dropdown_categories( array( 'name' => 'term_id', 'show_option_none' => 'Select a ' . $bptpi_category_naming_scheme, 'walker' => new Walker_Without_Children() ) )501 'html' => ptp_dropdown_categories( array( 'name' => 'term_id', 'show_option_none' => 'Select a category' . $bptpi_category_naming_scheme, 'walker' => new Walker_Without_Children() ) ) 502 502 ) ); 503 503 -
bulk-photo-to-product-importer-extension-for-woocommerce/trunk/classes/settings.php
r1178647 r1245657 32 32 $this->defaults = apply_filters( 'ptp_settings_args', array( 33 33 'interval' => 5, 34 'hide_variations' => 1 34 'hide_variations' => 1, 35 'watermark_style' => 'none' 35 36 ) ); 36 37 -
bulk-photo-to-product-importer-extension-for-woocommerce/trunk/includes/functions.php
r1178647 r1245657 65 65 //Edited: 6/13/2014 Adjusted overlay image to stretch regardless of the watermark size 66 66 //Edit Start 67 68 $overlay_gd_image = imagecreatefrompng( $watermark_file_path ); 69 $width = imagesx( $overlay_gd_image ); 70 $height = imagesy( $overlay_gd_image ); 71 $overlay_width = imagesx( $overlay_gd_image ); 67 68 $overlay_gd_image = imagecreatefrompng( $watermark_file_path ); 69 70 $width = imagesx( $overlay_gd_image ); 71 $height = imagesy( $overlay_gd_image ); 72 $overlay_width = imagesx( $overlay_gd_image ); 72 73 $overlay_height = imagesy( $overlay_gd_image ); 74 75 $overlay_downsampling_ratio = 0.1; 76 77 if ($overlay_width > $source_width * $overlay_downsampling_ratio) { 78 $overlay_width_resampled = $source_width * $overlay_downsampling_ratio; // Overlay image will have 20$ width of the image 79 $overlay_width_delta = $overlay_width_resampled * 100 / $overlay_width; // Detecting ratio 80 $overlay_height_resampled = $overlay_height * ($overlay_width_delta / 100); // Maintaining aspect ratio 81 82 $overlay_resampled = imagecreatetruecolor($overlay_width_resampled, $overlay_height_resampled); 83 imagealphablending($overlay_resampled, false); 84 imagesavealpha($overlay_resampled, true); 85 imagecopyresampled($overlay_resampled, $overlay_gd_image, 0, 0, 0, 0, $overlay_width_resampled, $overlay_height_resampled, $overlay_width, $overlay_height); 86 87 $overlay_gd_image = $overlay_resampled; 88 89 $width = imagesx( $overlay_gd_image ); 90 $height = imagesy( $overlay_gd_image ); 91 $overlay_width = imagesx( $overlay_gd_image ); 92 $overlay_height = imagesy( $overlay_gd_image ); 93 } 94 95 73 96 74 97 // Gaps in between watermark tiles pixels unit 75 $distance = 50;98 $distance = 100; 76 99 77 if($settings[' tiled_watermark'] == 1)100 if($settings['watermark_style'] == 'tiled') 78 101 { 79 102 $h_count = $source_width / ($overlay_width + $distance); … … 98 121 } 99 122 } 100 else 123 else if ($settings['watermark_style'] == 'centered') 101 124 { 102 125 /* … … 129 152 ); 130 153 */ 154 155 $overlay_mid_x = ($source_width / 2.0) - ($width / 2.0); 156 $overlay_mid_y = ($source_height / 2.0) - ($height / 2.0); 157 131 158 imagecopyresized ( 132 159 $source_gd_image, 133 160 $overlay_gd_image, 161 $overlay_mid_x, 162 $overlay_mid_y, 134 163 0, 135 164 0, 136 0, 137 0, 138 $source_width, 139 $source_height, 165 $width, 166 $height, 140 167 $width, 141 168 $height -
bulk-photo-to-product-importer-extension-for-woocommerce/trunk/index.php
r1178647 r1245657 50 50 51 51 <div class="form-field category"> 52 <span><?php echo ptp_dropdown_categories( array( 'name' => 'term_id', 'show_option_none' => 'Select a ' . $bptpi_category_naming_scheme, 'walker' => new Walker_Without_Children() ) ); ?></span>52 <span><?php echo ptp_dropdown_categories( array( 'name' => 'term_id', 'show_option_none' => 'Select a category' . $bptpi_category_naming_scheme, 'walker' => new Walker_Without_Children() ) ); ?></span> 53 53 <span class="add-category dashicons dashicons-plus-alt"></span> 54 54 <div class="quick-add-category-con"></div> -
bulk-photo-to-product-importer-extension-for-woocommerce/trunk/readme.md
r1240559 r1245657 1 1 # Bulk Photo to Product Importer Extension for WooCommerce (Free) # 2 **Contributors:** d363f86b, s3w47m88, adredz 2 **Contributors:** d363f86b, s3w47m88, adredz, tafhim 3 3 Repository: http://plugins.svn.wordpress.org/bulk-photo-to-product-importer-extension-for-woocommerce/ 4 4 -
bulk-photo-to-product-importer-extension-for-woocommerce/trunk/readme.txt
r1178647 r1245657 1 1 === Bulk Photo to Product Importer Extension for WooCommerce (Free) === 2 Contributors: d363f86b, s3w47m88, adredz 2 Contributors: d363f86b, s3w47m88, adredz, tafhim 3 3 Repository: http://plugins.svn.wordpress.org/bulk-photo-to-product-importer-extension-for-woocommerce/ 4 4
Note: See TracChangeset
for help on using the changeset viewer.