WordPress.org

Plugin Directory

Changeset 764911


Ignore:
Timestamp:
08/30/13 20:11:01 (8 months ago)
Author:
aaroncampbell
Message:

Tag version 0.4.0

Location:
efficient-related-posts
Files:
2 added
4 deleted
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • efficient-related-posts/tags/0.4.0/efficient-related-posts.php

    r764879 r764911  
    44 * Plugin URI: http://xavisys.com/wordpress-plugins/efficient-related-posts/ 
    55 * Description: A related posts plugin that works quickly even with thousands of posts and tags 
    6  * Version: 0.3.8 
     6 * Version: 0.4.0 
    77 * Author: Aaron D. Campbell 
    88 * Author URI: http://xavisys.com/ 
     
    1515 * http://codex.wordpress.org/Writing_a_Plugin#Avoiding_Function_Name_Collisions 
    1616 */ 
    17 require_once('xavisys-plugin-framework.php'); 
    18 class efficientRelatedPosts extends XavisysPlugin { 
     17require_once('range-plugin-framework.php'); 
     18class efficientRelatedPosts extends RangePlugin { 
    1919    /** 
    2020     * @var efficientRelatedPosts - Static property to hold our singleton instance 
     
    6161    } 
    6262 
    63     public function addOptionsMetaBoxes() { 
    64         add_meta_box( $this->_slug . '-general-settings', __('General Settings', $this->_slug), array($this, 'generalSettingsMetaBox'), 'xavisys-' . $this->_slug, 'main'); 
    65         add_meta_box( $this->_slug . '-process-posts', __('Build Relations', $this->_slug), array($this, 'processPostsMetaBox'), 'xavisys-' . $this->_slug, 'main-2'); 
     63    public function add_options_meta_boxes() { 
     64        add_meta_box( $this->_slug . '-general-settings', __('General Settings', $this->_slug), array($this, 'generalSettingsMetaBox'), 'range-' . $this->_slug, 'main'); 
     65        add_meta_box( $this->_slug . '-process-posts', __('Build Relations', $this->_slug), array($this, 'processPostsMetaBox'), 'range-' . $this->_slug, 'main-2'); 
    6666        if (get_option('erp-processedPosts')) { 
    67             add_meta_box( $this->_slug . '-continue-processing-posts', __('Continue Processing Posts/Pages', $this->_slug), array($this, 'continueProcessingPostsMetaBox'), 'xavisys-' . $this->_slug, 'main-2'); 
     67            add_meta_box( $this->_slug . '-continue-processing-posts', __('Continue Processing Posts/Pages', $this->_slug), array($this, 'continueProcessingPostsMetaBox'), 'range-' . $this->_slug, 'main-2'); 
    6868        } 
    6969    } 
     
    304304                    ); 
    305305                } 
    306                 $link = "<a href='{$p['permalink']}' title='" . esc_attr(wptexturize($p['post_title']))."'>".wptexturize($p['post_title']).'</a>'; 
    307                 /** 
    308                  * @todo Make a before and after setting for this 
    309                  */ 
     306                $title = apply_filters( 'erp-related-link-content', wptexturize( $p['post_title'] ), $p, $settings ); 
     307                $link = '<a href="' . esc_url( $p['permalink'] ) . '" title="' . esc_attr( wptexturize( $p['post_title'] ) ) . '">' . $title . '</a>'; 
     308                $link = apply_filters( 'erp-related-link', $link, $p, $settings ); 
    310309                $output .= "<li>{$link}</li>"; 
    311310            } 
    312311        } 
    313312 
    314         /** 
    315          * @todo Make a before and after setting for this 
    316          */ 
    317313        $output = "<ul class='related_post'>{$output}</ul>"; 
    318314 
    319         if ( !empty($settings['title']) ) { 
     315        if ( !empty($settings['title']) ) 
    320316            $output = "<h3 class='related_post_title'>{$settings['title']}</h3>{$output}"; 
    321         } 
     317 
     318        $output = apply_filters( 'erp-related-links-output', $output, $p, $settings ); 
    322319 
    323320        return $output; 
     
    406403                        //unset($related_post->matches); 
    407404                        $related_post->permalink = get_permalink($related_post->ID); 
    408                         if ( function_exists('get_the_post_image') ) { 
    409                             $related_post->post_image = get_the_post_image($related_post->ID); 
    410                         } 
     405                        if ( function_exists('get_the_post_thumbnail') ) 
     406                            $related_post->post_image = get_the_post_thumbnail( $related_post->ID, apply_filters( 'erp-related-post-image-size', 'post-thumbnail' ) ); 
     407 
    411408                        $relatedPostsToStore[] = (array)$related_post; 
    412409                    } 
  • efficient-related-posts/tags/0.4.0/readme.txt

    r764879 r764911  
    44Tags: related posts, posts, related, seo 
    55Requires at least: 2.8 
    6 Tested up to: 3.1 
    7 Stable tag: 0.3.8 
    8  
    9 A related posts plugin that works quickly even with thousands of posts and tags.  Can be added automatically to the end of posts. Requires PHP5. 
     6Tested up to: 3.7 
     7Stable tag: 0.4.0 
     8 
     9A related posts plugin that works quickly even with thousands of posts and tags.  Can be added automatically to the end of posts. 
    1010 
    1111== Description == 
    1212 
    13 There is a <a href="http://xavisys.com/problem-related-post-plugins/">problem 
     13There is a <a href="http://bluedogwebservices.com/problem-related-post-plugins/">problem 
    1414with related posts plugins</a>, and Efficient Related Posts is fixing that by 
    1515approaching the problem from a different direction and offering a very different 
     
    3737related posts, although I recommend not doing that anyway. 
    3838 
    39 Requires PHP5. 
    40  
    4139== Installation == 
    4240 
    43 1. Verify that you have PHP5, which is required for this plugin. 
    44 1. Upload the whole `efficient-related-posts` directory to the `/wp-content/plugins/` directory 
    45 1. Activate the plugin through the 'Plugins' menu in WordPress 
    46 1. Configure related posts by going to Settings -> Related Posts 
     411. Use automatic installer to install and active the plugin. 
    4742 
    4843== Frequently Asked Questions == 
     
    10398== Upgrade Notice == 
    10499 
    105 = 0.3.7 = 
    106 Adds support for post images 
    107 Fixes notices that are thrown during activation and when processing all posts 
    108 Uses the new WordPress function for escaping data 
     100= 0.4.0 = 
     101Properly store post image, usable through filters 
     102Add several handy new filters 
     103Upgrade to new Range plugin framework 
    109104 
    110105== Changelog == 
     106 
     107= 0.4.0 = 
     108* Properly store post image, usable through filters 
     109* Add several handy new filters 
     110* Upgrade to new Range plugin framework 
    111111 
    112112= 0.3.8 = 
  • efficient-related-posts/trunk/efficient-related-posts.php

    r355000 r764911  
    44 * Plugin URI: http://xavisys.com/wordpress-plugins/efficient-related-posts/ 
    55 * Description: A related posts plugin that works quickly even with thousands of posts and tags 
    6  * Version: 0.3.8 
     6 * Version: 0.4.0 
    77 * Author: Aaron D. Campbell 
    88 * Author URI: http://xavisys.com/ 
     
    1515 * http://codex.wordpress.org/Writing_a_Plugin#Avoiding_Function_Name_Collisions 
    1616 */ 
    17 require_once('xavisys-plugin-framework.php'); 
    18 class efficientRelatedPosts extends XavisysPlugin { 
     17require_once('range-plugin-framework.php'); 
     18class efficientRelatedPosts extends RangePlugin { 
    1919    /** 
    2020     * @var efficientRelatedPosts - Static property to hold our singleton instance 
     
    6161    } 
    6262 
    63     public function addOptionsMetaBoxes() { 
    64         add_meta_box( $this->_slug . '-general-settings', __('General Settings', $this->_slug), array($this, 'generalSettingsMetaBox'), 'xavisys-' . $this->_slug, 'main'); 
    65         add_meta_box( $this->_slug . '-process-posts', __('Build Relations', $this->_slug), array($this, 'processPostsMetaBox'), 'xavisys-' . $this->_slug, 'main-2'); 
     63    public function add_options_meta_boxes() { 
     64        add_meta_box( $this->_slug . '-general-settings', __('General Settings', $this->_slug), array($this, 'generalSettingsMetaBox'), 'range-' . $this->_slug, 'main'); 
     65        add_meta_box( $this->_slug . '-process-posts', __('Build Relations', $this->_slug), array($this, 'processPostsMetaBox'), 'range-' . $this->_slug, 'main-2'); 
    6666        if (get_option('erp-processedPosts')) { 
    67             add_meta_box( $this->_slug . '-continue-processing-posts', __('Continue Processing Posts/Pages', $this->_slug), array($this, 'continueProcessingPostsMetaBox'), 'xavisys-' . $this->_slug, 'main-2'); 
     67            add_meta_box( $this->_slug . '-continue-processing-posts', __('Continue Processing Posts/Pages', $this->_slug), array($this, 'continueProcessingPostsMetaBox'), 'range-' . $this->_slug, 'main-2'); 
    6868        } 
    6969    } 
     
    304304                    ); 
    305305                } 
    306                 $link = "<a href='{$p['permalink']}' title='" . esc_attr(wptexturize($p['post_title']))."'>".wptexturize($p['post_title']).'</a>'; 
    307                 /** 
    308                  * @todo Make a before and after setting for this 
    309                  */ 
     306                $title = apply_filters( 'erp-related-link-content', wptexturize( $p['post_title'] ), $p, $settings ); 
     307                $link = '<a href="' . esc_url( $p['permalink'] ) . '" title="' . esc_attr( wptexturize( $p['post_title'] ) ) . '">' . $title . '</a>'; 
     308                $link = apply_filters( 'erp-related-link', $link, $p, $settings ); 
    310309                $output .= "<li>{$link}</li>"; 
    311310            } 
    312311        } 
    313312 
    314         /** 
    315          * @todo Make a before and after setting for this 
    316          */ 
    317313        $output = "<ul class='related_post'>{$output}</ul>"; 
    318314 
    319         if ( !empty($settings['title']) ) { 
     315        if ( !empty($settings['title']) ) 
    320316            $output = "<h3 class='related_post_title'>{$settings['title']}</h3>{$output}"; 
    321         } 
     317 
     318        $output = apply_filters( 'erp-related-links-output', $output, $p, $settings ); 
    322319 
    323320        return $output; 
     
    406403                        //unset($related_post->matches); 
    407404                        $related_post->permalink = get_permalink($related_post->ID); 
    408                         if ( function_exists('get_the_post_image') ) { 
    409                             $related_post->post_image = get_the_post_image($related_post->ID); 
    410                         } 
     405                        if ( function_exists('get_the_post_thumbnail') ) 
     406                            $related_post->post_image = get_the_post_thumbnail( $related_post->ID, apply_filters( 'erp-related-post-image-size', 'post-thumbnail' ) ); 
     407 
    411408                        $relatedPostsToStore[] = (array)$related_post; 
    412409                    } 
  • efficient-related-posts/trunk/readme.txt

    r355275 r764911  
    44Tags: related posts, posts, related, seo 
    55Requires at least: 2.8 
    6 Tested up to: 3.1 
    7 Stable tag: 0.3.8 
    8  
    9 A related posts plugin that works quickly even with thousands of posts and tags.  Can be added automatically to the end of posts. Requires PHP5. 
     6Tested up to: 3.7 
     7Stable tag: 0.4.0 
     8 
     9A related posts plugin that works quickly even with thousands of posts and tags.  Can be added automatically to the end of posts. 
    1010 
    1111== Description == 
    1212 
    13 There is a <a href="http://xavisys.com/problem-related-post-plugins/">problem 
     13There is a <a href="http://bluedogwebservices.com/problem-related-post-plugins/">problem 
    1414with related posts plugins</a>, and Efficient Related Posts is fixing that by 
    1515approaching the problem from a different direction and offering a very different 
     
    3737related posts, although I recommend not doing that anyway. 
    3838 
    39 Requires PHP5. 
    40  
    4139== Installation == 
    4240 
    43 1. Verify that you have PHP5, which is required for this plugin. 
    44 1. Upload the whole `efficient-related-posts` directory to the `/wp-content/plugins/` directory 
    45 1. Activate the plugin through the 'Plugins' menu in WordPress 
    46 1. Configure related posts by going to Settings -> Related Posts 
     411. Use automatic installer to install and active the plugin. 
    4742 
    4843== Frequently Asked Questions == 
     
    10398== Upgrade Notice == 
    10499 
    105 = 0.3.7 = 
    106 Adds support for post images 
    107 Fixes notices that are thrown during activation and when processing all posts 
    108 Uses the new WordPress function for escaping data 
     100= 0.4.0 = 
     101Properly store post image, usable through filters 
     102Add several handy new filters 
     103Upgrade to new Range plugin framework 
    109104 
    110105== Changelog == 
     106 
     107= 0.4.0 = 
     108* Properly store post image, usable through filters 
     109* Add several handy new filters 
     110* Upgrade to new Range plugin framework 
    111111 
    112112= 0.3.8 = 
Note: See TracChangeset for help on using the changeset viewer.