Changeset 914101
- Timestamp:
- 05/14/2014 07:27:17 PM (12 years ago)
- Location:
- image-formatr
- Files:
-
- 5 edited
- 5 copied
-
tags/1.2.2 (copied) (copied from image-formatr/trunk)
-
tags/1.2.2/image-formatr.php (copied) (copied from image-formatr/trunk/image-formatr.php) (2 diffs)
-
tags/1.2.2/readme.txt (copied) (copied from image-formatr/trunk/readme.txt) (5 diffs)
-
tags/1.2.2/src/class.admin.php (copied) (copied from image-formatr/trunk/src/class.admin.php)
-
tags/1.2.2/src/class.base.php (copied) (copied from image-formatr/trunk/src/class.base.php) (1 diff)
-
tags/1.2.2/src/class.formatr.php (modified) (3 diffs)
-
trunk/image-formatr.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/src/class.base.php (modified) (1 diff)
-
trunk/src/class.formatr.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-formatr/tags/1.2.2/image-formatr.php
r914079 r914101 3 3 * Plugin Name: Image Formatr 4 4 * Plugin URI: http://warriorself.com/blog/about/image-formatr/ 5 * Description: Formats all content images on a page / post giving them borders and captions.6 * Version: 1.2. 1.15 * Description: Formats all content images on a page / post giving them captions and popups. 6 * Version: 1.2.2 7 7 * Author: Steven Almeroth 8 8 * Author URI: http://warriorself.com/sma/ … … 49 49 add_filter($action_links , array($if_instance, 'set_link'), 10); 50 50 add_filter('post_thumbnail_html' , array($if_instance, 'featured_image'), 10, 3); 51 #$debug_sma_eval ='$if_instance'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php');52 #$debug_sma_eval ='$if_instance->get_option("priority")'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');53 51 add_filter('the_content' , array($if_instance, 'filter'), $if_instance->get_option('priority')); 54 52 } -
image-formatr/tags/1.2.2/readme.txt
r914079 r914101 5 5 Tested up to: 3.9.1 6 6 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=Image+Formatr+Wordpress+plugin 7 Stable tag: 1.2. 18 9 Formats all content images on a page / post giving them borders and captions.7 Stable tag: 1.2.2 8 9 Formats all content images on a page / post giving them captions and popups. 10 10 11 11 == Description == 12 12 13 13 Image Formatr is a simple plugin that goes through all the content images on 14 posts and pages with zero user changes and:14 posts & pages, and with zero user changes: 15 15 16 16 1. gives them a standardized thumbnail format using CSS … … 20 20 Thumbnails are not generated, but will be used if available in the media library. 21 21 22 *Note: **Flickr** support added in version 0.10.0.*22 *Note: Supports images on **Flickr**. 23 23 24 24 = Usage = … … 57 57 = Features = 58 58 59 * Standardizes all thumbnails with zero post changes59 * Standardizes all thumbnails without altering posts 60 60 * Supports displaying images from Flickr: <img flickr="1234567890" 61 61 title="The magnificent Ceiba at the Archeological Site of Palenque."> … … 71 71 * Outputs standard XHTML compliant markup 72 72 73 == Credits == 74 75 Image Formatr is Copyright 2013 [Steven Almeroth]([email protected]) and 76 licensed under a GPL license 77 78 Based on: [image-caption](http://wordpress.org/extend/plugins/image-caption/) 79 by [Yaosan Yeo](http://www.channel-ai.com/blog/) 80 81 PrettyPhoto: The JavaScript 82 [Image thumbnail viewer](http://www.no-margin-for-errors.com/projects/prettyPhoto/) 83 library by Stephane Caron is licensed under GPLv2. 73 == Gallery Support == 74 75 To get Wordpress Gallery images to popup, this plugin must run at a priority 76 greater (later) than the [gallery] shortcode which runs at priority 11. Therefore 77 set the <code>priority</code> setting to 12 in the Administration Options. 84 78 85 79 == Overrides == … … 120 114 for which you want to designate a "true" value. 121 115 116 == Credits == 117 118 Image Formatr is Copyright 2013 [Steven Almeroth]([email protected]) and 119 licensed under a GPL license 120 121 Based on: [image-caption](http://wordpress.org/extend/plugins/image-caption/) 122 by [Yaosan Yeo](http://www.channel-ai.com/blog/) 123 124 PrettyPhoto: The JavaScript 125 [Image thumbnail viewer](http://www.no-margin-for-errors.com/projects/prettyPhoto/) 126 library by Stephane Caron is licensed under GPLv2. 127 122 128 == Installation == 123 124 *Note: versions 0.9.4/5/6 do not preserve the plugin options after deactivation.125 Therefore, if you are upgrading from one of these versions then write down your126 Image Formatr settings before you upgrade, log in to the Wordpress adminstration127 (wp-admin), go to **Settings** and then **Image Formatr**.*128 129 129 130 1. Download and extract the plugin to your computer -
image-formatr/tags/1.2.2/src/class.base.php
r914079 r914101 204 204 function get_attachment_url( $param ) 205 205 { 206 global $post, $wpdb; 207 $debug_sma_eval ='$param'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 208 #$debug_sma_eval ='$post->ID'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 209 #$debug_sma_eval ='wp_get_attachment_thumb_url($post->ID)'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 210 211 #$args = array( 'post_type' => 'attachment', 'post_status' => 'any', 'post_parent' => $post->ID ); 212 #$debug_sma_eval ='get_children($args)'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 213 214 #$args = array( 'post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' => 'any', 'post_parent' => $post->ID ); 215 #$debug_sma_eval ='get_posts( $args )'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 216 217 # first check if the attachment id is available in the image class 218 # preg_match('/wp-image-(\d+)/', $param['class'], $matches); // alignnone size-full wp-image-3338 219 #$debug_sma_eval ='$matches'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 220 # if (false and count($matches) > 1) 221 # $attachment_id = $matches[1]; 206 global $wpdb; 222 207 223 208 # we need to go to the database to find the id 224 209 $query = "SELECT ID FROM `$wpdb->posts` WHERE guid='{$param['src']}'"; 225 $debug_sma_eval ='$query'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php');226 210 227 211 $attachment_id = $wpdb->get_var($query); 228 $debug_sma_eval ='$attachment_id'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php');229 230 #$results = $wpdb->get_results($query);231 #$debug_sma_eval ='$results'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php');232 212 233 213 # if the image has been attached, we should have the id now 234 214 if ($attachment_id) { 235 215 $attachment_img_src = wp_get_attachment_image_src($attachment_id, $this->attach_thumb); 236 $debug_sma_eval ='$attachment_img_src'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php');237 216 238 217 if ($attachment_img_src and isset($attachment_img_src[0])) -
image-formatr/tags/1.2.2/src/class.formatr.php
r913444 r914101 122 122 $this-> def_img_short = $this-> addl_img_short; 123 123 } 124 125 #$debug_sma_eval ='$markup'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');126 #$debug_sma_eval ='has_post_thumbnail()'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');127 #$debug_sma_eval ='get_the_post_thumbnail()'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');128 124 129 125 //////////////////////////////// [flickr ] … … 273 269 function format ( $param ) 274 270 { 275 #global $post;276 #$debug_sma_eval ='$param'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');277 #$debug_sma_eval ='$param["anchor"]'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');278 #$debug_sma_eval ='wp_kses($param["anchor"], array("a" => array("href" => array(), "title" => array())), array("http"))'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');279 #$debug_sma_eval ='wp_kses_hair($param["anchor"], array("http","https","ftp","file"))'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');280 #$debug_sma_eval ='wp_kses_split($param["anchor"], array("a" => array("href" => array(), "title" => array())), array("http","https","ftp","file"))'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');281 #preg_match("%href='([^']+)'%", $param["anchor"], $matches);282 #$debug_sma_eval ='$matches'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');283 284 271 // setup dimensions width & height ///////////////////////////////// 285 272 … … 299 286 $param['thumb'] = $param['src']; 300 287 $param['src'] = $matches[1]; 301 #$debug_sma_eval ='$param'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');302 288 } 303 289 -
image-formatr/trunk/image-formatr.php
r914079 r914101 3 3 * Plugin Name: Image Formatr 4 4 * Plugin URI: http://warriorself.com/blog/about/image-formatr/ 5 * Description: Formats all content images on a page / post giving them borders and captions.6 * Version: 1.2. 1.15 * Description: Formats all content images on a page / post giving them captions and popups. 6 * Version: 1.2.2 7 7 * Author: Steven Almeroth 8 8 * Author URI: http://warriorself.com/sma/ … … 49 49 add_filter($action_links , array($if_instance, 'set_link'), 10); 50 50 add_filter('post_thumbnail_html' , array($if_instance, 'featured_image'), 10, 3); 51 #$debug_sma_eval ='$if_instance'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php');52 #$debug_sma_eval ='$if_instance->get_option("priority")'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');53 51 add_filter('the_content' , array($if_instance, 'filter'), $if_instance->get_option('priority')); 54 52 } -
image-formatr/trunk/readme.txt
r914079 r914101 5 5 Tested up to: 3.9.1 6 6 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=Image+Formatr+Wordpress+plugin 7 Stable tag: 1.2. 18 9 Formats all content images on a page / post giving them borders and captions.7 Stable tag: 1.2.2 8 9 Formats all content images on a page / post giving them captions and popups. 10 10 11 11 == Description == 12 12 13 13 Image Formatr is a simple plugin that goes through all the content images on 14 posts and pages with zero user changes and:14 posts & pages, and with zero user changes: 15 15 16 16 1. gives them a standardized thumbnail format using CSS … … 20 20 Thumbnails are not generated, but will be used if available in the media library. 21 21 22 *Note: **Flickr** support added in version 0.10.0.*22 *Note: Supports images on **Flickr**. 23 23 24 24 = Usage = … … 57 57 = Features = 58 58 59 * Standardizes all thumbnails with zero post changes59 * Standardizes all thumbnails without altering posts 60 60 * Supports displaying images from Flickr: <img flickr="1234567890" 61 61 title="The magnificent Ceiba at the Archeological Site of Palenque."> … … 71 71 * Outputs standard XHTML compliant markup 72 72 73 == Credits == 74 75 Image Formatr is Copyright 2013 [Steven Almeroth]([email protected]) and 76 licensed under a GPL license 77 78 Based on: [image-caption](http://wordpress.org/extend/plugins/image-caption/) 79 by [Yaosan Yeo](http://www.channel-ai.com/blog/) 80 81 PrettyPhoto: The JavaScript 82 [Image thumbnail viewer](http://www.no-margin-for-errors.com/projects/prettyPhoto/) 83 library by Stephane Caron is licensed under GPLv2. 73 == Gallery Support == 74 75 To get Wordpress Gallery images to popup, this plugin must run at a priority 76 greater (later) than the [gallery] shortcode which runs at priority 11. Therefore 77 set the <code>priority</code> setting to 12 in the Administration Options. 84 78 85 79 == Overrides == … … 120 114 for which you want to designate a "true" value. 121 115 116 == Credits == 117 118 Image Formatr is Copyright 2013 [Steven Almeroth]([email protected]) and 119 licensed under a GPL license 120 121 Based on: [image-caption](http://wordpress.org/extend/plugins/image-caption/) 122 by [Yaosan Yeo](http://www.channel-ai.com/blog/) 123 124 PrettyPhoto: The JavaScript 125 [Image thumbnail viewer](http://www.no-margin-for-errors.com/projects/prettyPhoto/) 126 library by Stephane Caron is licensed under GPLv2. 127 122 128 == Installation == 123 124 *Note: versions 0.9.4/5/6 do not preserve the plugin options after deactivation.125 Therefore, if you are upgrading from one of these versions then write down your126 Image Formatr settings before you upgrade, log in to the Wordpress adminstration127 (wp-admin), go to **Settings** and then **Image Formatr**.*128 129 129 130 1. Download and extract the plugin to your computer -
image-formatr/trunk/src/class.base.php
r914079 r914101 204 204 function get_attachment_url( $param ) 205 205 { 206 global $post, $wpdb; 207 $debug_sma_eval ='$param'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 208 #$debug_sma_eval ='$post->ID'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 209 #$debug_sma_eval ='wp_get_attachment_thumb_url($post->ID)'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 210 211 #$args = array( 'post_type' => 'attachment', 'post_status' => 'any', 'post_parent' => $post->ID ); 212 #$debug_sma_eval ='get_children($args)'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 213 214 #$args = array( 'post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' => 'any', 'post_parent' => $post->ID ); 215 #$debug_sma_eval ='get_posts( $args )'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 216 217 # first check if the attachment id is available in the image class 218 # preg_match('/wp-image-(\d+)/', $param['class'], $matches); // alignnone size-full wp-image-3338 219 #$debug_sma_eval ='$matches'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php'); 220 # if (false and count($matches) > 1) 221 # $attachment_id = $matches[1]; 206 global $wpdb; 222 207 223 208 # we need to go to the database to find the id 224 209 $query = "SELECT ID FROM `$wpdb->posts` WHERE guid='{$param['src']}'"; 225 $debug_sma_eval ='$query'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php');226 210 227 211 $attachment_id = $wpdb->get_var($query); 228 $debug_sma_eval ='$attachment_id'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php');229 230 #$results = $wpdb->get_results($query);231 #$debug_sma_eval ='$results'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php');232 212 233 213 # if the image has been attached, we should have the id now 234 214 if ($attachment_id) { 235 215 $attachment_img_src = wp_get_attachment_image_src($attachment_id, $this->attach_thumb); 236 $debug_sma_eval ='$attachment_img_src'; $debug_sma_title =__METHOD__.':'.__LINE__; include('debug_output_sma.php');237 216 238 217 if ($attachment_img_src and isset($attachment_img_src[0])) -
image-formatr/trunk/src/class.formatr.php
r913444 r914101 122 122 $this-> def_img_short = $this-> addl_img_short; 123 123 } 124 125 #$debug_sma_eval ='$markup'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');126 #$debug_sma_eval ='has_post_thumbnail()'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');127 #$debug_sma_eval ='get_the_post_thumbnail()'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');128 124 129 125 //////////////////////////////// [flickr ] … … 273 269 function format ( $param ) 274 270 { 275 #global $post;276 #$debug_sma_eval ='$param'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');277 #$debug_sma_eval ='$param["anchor"]'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');278 #$debug_sma_eval ='wp_kses($param["anchor"], array("a" => array("href" => array(), "title" => array())), array("http"))'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');279 #$debug_sma_eval ='wp_kses_hair($param["anchor"], array("http","https","ftp","file"))'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');280 #$debug_sma_eval ='wp_kses_split($param["anchor"], array("a" => array("href" => array(), "title" => array())), array("http","https","ftp","file"))'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');281 #preg_match("%href='([^']+)'%", $param["anchor"], $matches);282 #$debug_sma_eval ='$matches'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');283 284 271 // setup dimensions width & height ///////////////////////////////// 285 272 … … 299 286 $param['thumb'] = $param['src']; 300 287 $param['src'] = $matches[1]; 301 #$debug_sma_eval ='$param'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');302 288 } 303 289
Note: See TracChangeset
for help on using the changeset viewer.