Changeset 1074220
- Timestamp:
- 01/23/2015 04:26:46 PM (11 years ago)
- Location:
- cpd-search/trunk
- Files:
-
- 2 edited
-
cpd-search.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpd-search/trunk/cpd-search.php
r1068631 r1074220 5 5 Plugin URI: http://www.cpd.co.uk/wordpress-plugins/ 6 6 Description: Provides a thin layer to the CPD REST API, via PHP/AJAX methods. 7 Version: 3.2. 27 Version: 3.2.3 8 8 Author: The CPD Team 9 9 Author URI: http://www.cpd.co.uk/ 10 10 Text Domain: cpd-search 11 11 12 Copyright 2011-201 4The CPD Team. All rights reserved. Every last one of them.12 Copyright 2011-2015 The CPD Team. All rights reserved. Every last one of them. 13 13 */ 14 14 … … 725 725 } 726 726 727 static function _cpd_media_folder($media) {728 $initial = substr($media->uuid, 0, 1);729 $four = substr($media->uuid, 0, 4);730 return sprintf("https://s3.amazonaws.com/cpd-media-live-%s/%s/%s", $initial, $four, $media->uuid);731 }732 727 static function mediaUrl($media) { 733 return self::_cpd_media_folder($media)."/original/".$media->filename;728 return $media->original_url; 734 729 } 735 730 static function smallThumbUrl($media) { 736 return self::_cpd_media_folder($media)."/thumb.jpg";731 return $media->small_thumb_url; 737 732 } 738 733 static function mediumThumbUrl($media) { 739 return self::_cpd_media_folder($media)."/medium.jpg";734 return $media->medium_thumb_url; 740 735 } 741 736 -
cpd-search/trunk/readme.txt
r1068631 r1074220 4 4 Requires at least: 3.6 5 5 Tested up to: 4.1.0 6 Stable tag: 3.2. 26 Stable tag: 3.2.3 7 7 8 8 Thin layer to provide custom themes and plugins with access to CPD's commercial property database. … … 23 23 24 24 == Changelog == 25 26 = 3.2.3 = 27 * Update methods that generate media URLs to use URLs now provided in server response (since REST 1.0.6). 25 28 26 29 = 3.2.2 =
Note: See TracChangeset
for help on using the changeset viewer.