Plugin Directory

Changeset 502274


Ignore:
Timestamp:
02/08/2012 03:03:54 PM (14 years ago)
Author:
maca134
Message:

Add option to set the position of galleries if you have a number of plugins which use the 'the_content' filter.

Location:
wp-simple-galleries/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-simple-galleries/trunk/admin/options.php

    r502269 r502274  
    3838        "type" => "text");
    3939
     40    $options[] = array("name" => "Content Filter Priority",
     41        "desc" => "Used to specify the order execution. Lower numbers correspond with earlier execution, so set it to 1 to make it appear before all other plugins on content pages.",
     42        "id" => "wpsimplegallery_filter_priority",
     43        "std" => "10",
     44        "class" => "mini",
     45        "type" => "text");
     46
     47   
     48   
    4049    $post_types_default = array('post' => '1', 'page' => '1');
    4150    $post_types = get_post_types();
     
    5766        "url" => "http://maca134.co.uk/blog/wp-simple-galleries/",
    5867        "type" => "donate");
    59 
     68   
    6069    return $options;
    6170}
  • wp-simple-galleries/trunk/readme.txt

    r502269 r502274  
    44Requires at least: 3.0.0
    55Tested up to: 3.3
    6 Stable tag: 0.13
     6Stable tag: 0.14
    77Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LDZBJ2YP5GBRE
    88
     
    4646
    4747== ChangeLog ==
     48
     49= Version 0.14 =
     50
     51* Add option to set the position of galleries if you have a number of plugins which use the 'the_content' filter.
    4852
    4953= Version 0.13 =
  • wp-simple-galleries/trunk/wp-simple-gallery.php

    r502269 r502274  
    22/*
    33  Plugin Name: WP Simple Galleries
    4   Version: 0.13
     4  Version: 0.14
    55  Description: A simple plugin that adds an image gallery to each post and page.
    66  Plugin URI: http://maca134.co.uk/blog/wp-simple-galleries/
     
    4848        add_action('wp_print_scripts', array(&$this, 'print_scripts'));
    4949        add_action('wp_print_styles', array(&$this, 'print_styles'));
    50         add_filter('the_content', array(&$this, 'output_gallery'));
     50        add_filter('the_content', array(&$this, 'output_gallery'), of_get_option('wpsimplegallery_filter_priority', 10));
    5151        add_image_size('wpsimplegallery_admin_thumb', $this->admin_thumbnail_size, $this->admin_thumbnail_size, true);
    5252        add_image_size('wpsimplegallery_thumb', $this->thumbnail_size_w, $this->thumbnail_size_h, true);
Note: See TracChangeset for help on using the changeset viewer.