Plugin Directory

Changeset 913444


Ignore:
Timestamp:
05/13/2014 05:29:48 PM (11 years ago)
Author:
huntermaster
Message:

1.2.3 add plugin priority option

Location:
image-formatr/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • image-formatr/trunk/image-formatr.php

    r913035 r913444  
    44  * Plugin URI: http://warriorself.com/blog/about/image-formatr/
    55  * Description: Formats all content images on a page / post giving them borders and captions.
    6   * Version: 1.2.2
     6  * Version: 1.2.3
    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     add_filter('the_content'          , array($if_instance, 'filter'), 12);
     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    add_filter('the_content'          , array($if_instance, 'filter'), $if_instance->get_option('priority'));
    5254}
  • image-formatr/trunk/src/class.admin.php

    r912252 r913444  
    55    class ImageFormatrAdmin extends ImageFormatrBase {
    66
    7         // default html admin options for activation
     7        // default admin options for activation
    88        var $def_options = array(
    99                'capatt'    => "title",
     
    2626                'capclass'  => "",
    2727                'group'     => "main",
     28                'imgdefs'   => "",
     29                'imgaddl'   => "",
     30                'flenable'  => "",
     31                'flusername'=> "",
     32                'flnsid'    => "",
     33                'flfrob'    => "",
     34                'fltoken'   => "",
     35                'flapikey'  => "",
     36                'flsecret'  => "",
    2837                'uninstal'  => "",
    2938                'prettyuse' => "on",
     39                'priority'  => "10",
    3040                # legacy options used for deactivation removal
    3141                'highuse'   => null,  # old Highslide library
     
    169179                               ),
    170180
     181                'priority'  => array(
     182                    'title' => 'Plugin load priority',
     183                    'desc'  => 'What priority should this plugin be loaded? (default 10)',
     184                    'html'  => array('An optional integer argument used to specify the order in which the functions associated with a particular action are executed. Lower numbers correspond with earlier execution',
     185                                     'Note: change this priority to <b>12</b> to execute the plugin later, after all <em>short-codes</em> have executed which will add the popup effect to galleries, as well as the regular images.',
     186                                     'See the <a href="http://codex.wordpress.org/Plugin_API#Hook_to_WordPress">Wordpress Codex Plugin API</a>.'),
     187                              ),
    171188                'prettyuse' => array(
    172189                    'title' => 'PrettyPhoto enabled',
     
    210227
    211228            add_settings_section('adv_section', 'Advanced settings', array($this, 'admin_overview'), __FILE__);
     229            $this-> add_settings(array('priority'), 'print_textbox', 'adv_section');
    212230            $this-> add_settings(array('prettyuse', 'uninstal'), 'print_checkbox', 'adv_section');
    213231        }
  • image-formatr/trunk/src/class.formatr.php

    r913035 r913444  
    123123            }
    124124
    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');
     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');
    128128
    129129            ////////////////////////////////        [flickr                ]
Note: See TracChangeset for help on using the changeset viewer.