Plugin Directory

Changeset 914101


Ignore:
Timestamp:
05/14/2014 07:27:17 PM (12 years ago)
Author:
huntermaster
Message:

1.2.2 Priority admin option

Location:
image-formatr
Files:
5 edited
5 copied

Legend:

Unmodified
Added
Removed
  • image-formatr/tags/1.2.2/image-formatr.php

    r914079 r914101  
    33  * Plugin Name: Image Formatr
    44  * 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.1
     5  * Description: Formats all content images on a page / post giving them captions and popups.
     6  * Version: 1.2.2
    77  * Author: Steven Almeroth
    88  * Author URI: http://warriorself.com/sma/
     
    4949    add_filter($action_links          , array($if_instance, 'set_link'), 10);
    5050    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');
    5351    add_filter('the_content'          , array($if_instance, 'filter'), $if_instance->get_option('priority'));
    5452}
  • image-formatr/tags/1.2.2/readme.txt

    r914079 r914101  
    55Tested up to: 3.9.1
    66Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=Image+Formatr+Wordpress+plugin
    7 Stable tag: 1.2.1
    8 
    9 Formats all content images on a page / post giving them borders and captions.
     7Stable tag: 1.2.2
     8
     9Formats all content images on a page / post giving them captions and popups.
    1010
    1111== Description ==
    1212
    1313Image Formatr is a simple plugin that goes through all the content images on
    14 posts and pages with zero user changes and:
     14posts & pages, and with zero user changes:
    1515
    1616  1. gives them a standardized thumbnail format using CSS
     
    2020Thumbnails are not generated, but will be used if available in the media library.
    2121
    22 *Note: **Flickr** support added in version 0.10.0.*
     22*Note: Supports images on **Flickr**.
    2323
    2424= Usage =
     
    5757= Features =
    5858
    59   * Standardizes all thumbnails with zero post changes
     59  * Standardizes all thumbnails without altering posts
    6060  * Supports displaying images from Flickr: <img flickr="1234567890"
    6161    title="The magnificent Ceiba at the Archeological Site of Palenque.">
     
    7171  * Outputs standard XHTML compliant markup
    7272
    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
     75To get Wordpress Gallery images to popup, this plugin must run at a priority
     76greater (later) than the [gallery] shortcode which runs at priority 11.  Therefore
     77set the <code>priority</code> setting to 12 in the Administration Options.
    8478
    8579== Overrides ==
     
    120114for which you want to designate a "true" value.
    121115
     116== Credits ==
     117
     118Image Formatr is Copyright 2013 [Steven Almeroth]([email protected]) and
     119licensed under a GPL license
     120
     121Based on: [image-caption](http://wordpress.org/extend/plugins/image-caption/)
     122by [Yaosan Yeo](http://www.channel-ai.com/blog/)
     123
     124PrettyPhoto: The JavaScript
     125[Image thumbnail viewer](http://www.no-margin-for-errors.com/projects/prettyPhoto/)
     126library by Stephane Caron is licensed under GPLv2.
     127
    122128== 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 your
    126 Image Formatr settings before you upgrade, log in to the Wordpress adminstration
    127 (wp-admin), go to **Settings** and then **Image Formatr**.*
    128129
    129130  1. Download and extract the plugin to your computer
  • image-formatr/tags/1.2.2/src/class.base.php

    r914079 r914101  
    204204        function get_attachment_url( $param )
    205205        {
    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;
    222207
    223208            # we need to go to the database to find the id
    224209            $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');
    226210
    227211            $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');
    232212
    233213            # if the image has been attached, we should have the id now
    234214            if ($attachment_id) {
    235215                $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');
    237216
    238217                if ($attachment_img_src and isset($attachment_img_src[0]))
  • image-formatr/tags/1.2.2/src/class.formatr.php

    r913444 r914101  
    122122                $this-> def_img_short  = $this-> addl_img_short;
    123123            }
    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');
    128124
    129125            ////////////////////////////////        [flickr                ]
     
    273269        function format ( $param )
    274270        {
    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 
    284271            // setup dimensions width & height /////////////////////////////////
    285272
     
    299286                    $param['thumb'] = $param['src'];
    300287                    $param['src'] = $matches[1];
    301 #$debug_sma_eval ='$param'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');
    302288            }
    303289
  • image-formatr/trunk/image-formatr.php

    r914079 r914101  
    33  * Plugin Name: Image Formatr
    44  * 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.1
     5  * Description: Formats all content images on a page / post giving them captions and popups.
     6  * Version: 1.2.2
    77  * Author: Steven Almeroth
    88  * Author URI: http://warriorself.com/sma/
     
    4949    add_filter($action_links          , array($if_instance, 'set_link'), 10);
    5050    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');
    5351    add_filter('the_content'          , array($if_instance, 'filter'), $if_instance->get_option('priority'));
    5452}
  • image-formatr/trunk/readme.txt

    r914079 r914101  
    55Tested up to: 3.9.1
    66Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=Image+Formatr+Wordpress+plugin
    7 Stable tag: 1.2.1
    8 
    9 Formats all content images on a page / post giving them borders and captions.
     7Stable tag: 1.2.2
     8
     9Formats all content images on a page / post giving them captions and popups.
    1010
    1111== Description ==
    1212
    1313Image Formatr is a simple plugin that goes through all the content images on
    14 posts and pages with zero user changes and:
     14posts & pages, and with zero user changes:
    1515
    1616  1. gives them a standardized thumbnail format using CSS
     
    2020Thumbnails are not generated, but will be used if available in the media library.
    2121
    22 *Note: **Flickr** support added in version 0.10.0.*
     22*Note: Supports images on **Flickr**.
    2323
    2424= Usage =
     
    5757= Features =
    5858
    59   * Standardizes all thumbnails with zero post changes
     59  * Standardizes all thumbnails without altering posts
    6060  * Supports displaying images from Flickr: &lt;img flickr="1234567890"
    6161    title="The magnificent Ceiba at the Archeological Site of Palenque."&gt;
     
    7171  * Outputs standard XHTML compliant markup
    7272
    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
     75To get Wordpress Gallery images to popup, this plugin must run at a priority
     76greater (later) than the [gallery] shortcode which runs at priority 11.  Therefore
     77set the <code>priority</code> setting to 12 in the Administration Options.
    8478
    8579== Overrides ==
     
    120114for which you want to designate a "true" value.
    121115
     116== Credits ==
     117
     118Image Formatr is Copyright 2013 [Steven Almeroth]([email protected]) and
     119licensed under a GPL license
     120
     121Based on: [image-caption](http://wordpress.org/extend/plugins/image-caption/)
     122by [Yaosan Yeo](http://www.channel-ai.com/blog/)
     123
     124PrettyPhoto: The JavaScript
     125[Image thumbnail viewer](http://www.no-margin-for-errors.com/projects/prettyPhoto/)
     126library by Stephane Caron is licensed under GPLv2.
     127
    122128== 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 your
    126 Image Formatr settings before you upgrade, log in to the Wordpress adminstration
    127 (wp-admin), go to **Settings** and then **Image Formatr**.*
    128129
    129130  1. Download and extract the plugin to your computer
  • image-formatr/trunk/src/class.base.php

    r914079 r914101  
    204204        function get_attachment_url( $param )
    205205        {
    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;
    222207
    223208            # we need to go to the database to find the id
    224209            $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');
    226210
    227211            $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');
    232212
    233213            # if the image has been attached, we should have the id now
    234214            if ($attachment_id) {
    235215                $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');
    237216
    238217                if ($attachment_img_src and isset($attachment_img_src[0]))
  • image-formatr/trunk/src/class.formatr.php

    r913444 r914101  
    122122                $this-> def_img_short  = $this-> addl_img_short;
    123123            }
    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');
    128124
    129125            ////////////////////////////////        [flickr                ]
     
    273269        function format ( $param )
    274270        {
    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 
    284271            // setup dimensions width & height /////////////////////////////////
    285272
     
    299286                    $param['thumb'] = $param['src'];
    300287                    $param['src'] = $matches[1];
    301 #$debug_sma_eval ='$param'; $debug_sma_title =__METHOD__; include('debug_output_sma.php');
    302288            }
    303289
Note: See TracChangeset for help on using the changeset viewer.