Plugin Directory

Changeset 1095904


Ignore:
Timestamp:
02/21/2015 03:06:22 PM (11 years ago)
Author:
iluminatus
Message:

Fixing pagination, jQuery function improved to fix and speed up paginated results.

Location:
network-latest-posts/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • network-latest-posts/trunk/network-latest-posts-widget.php

    r1095315 r1095904  
    22/*
    33    Network Latest Posts Widget
    4     Version 3.6.1
     4    Version 3.6.2
    55    Author L'Elite
    66    Author URI http://laelite.info/
  • network-latest-posts/trunk/network-latest-posts.php

    r1095315 r1095904  
    44Plugin URI: http://en.8elite.com/network-latest-posts
    55Description: Display the latest posts from the blogs in your network using it as a function, shortcode or widget.
    6 Version: 3.6.1
     6Version: 3.6.2
    77Author: Jose Luis SAYAGO
    88Author URI: http://laelite.info/
     
    838838                'total' => $total,
    839839                'current' => $pag,
    840                 'type' => 'list'
     840                'type' => 'list',
     841                'add_args'  => true
    841842            ));
    842843            // Close pagination wrapper
     
    851852            <script type="text/javascript" charset="utf-8">
    852853                //<![CDATA[
    853                 jQuery(document).ready(function(){
    854                     jQuery(".nlp-instance-'.$instance.' .pagination a").live("click", function(e){
    855                         e.preventDefault();
    856                         var link = jQuery(this).attr("href");
    857                         jQuery(".nlp-instance-'.$instance.' .nlposts-wrapper").html("<style type=\"text/css\">p.loading { text-align:center;margin:0 auto; padding:20px; }</style><p class=\"loading\"><img src=\"'.plugins_url('/img/loader.gif', __FILE__) .'\" /></p>");
    858                         jQuery(".nlp-instance-'.$instance.' .nlposts-wrapper").fadeOut("slow",function(){
    859                             jQuery(".nlp-instance-'.$instance.' .nlposts-wrapper").load(link+" .nlp-instance-'.$instance.' .nlposts-wrapper > *").fadeIn(3000);
     854                    jQuery(document).ready(function(){
     855                        jQuery(".nlp-instance-'.$instance.' .pagination a").live("click", function(e){
     856                            e.preventDefault();
     857                            var link = jQuery(this).attr("href");
     858                            jQuery(".nlp-instance-'.$instance.' .nlposts-wrapper").html("<style type=\"text/css\">p.loading { text-align:center;margin:0 auto; padding:20px; }</style><p class=\"loading\"><img src=\"'.plugins_url('/img/loader.gif', __FILE__) .'\" /></p>");
     859                            jQuery.ajax({
     860                                url: link,
     861                                dataType: "html",
     862                                success: function(data){
     863                                    jQuery(".nlp-instance-'.$instance.' .nlposts-wrapper").html( jQuery(data).find(".nlposts-wrapper").html() ).fadeIn(3000);
     864                                }
     865                            });
    860866                        });
    861 
    862867                    });
    863                 });
    864868                //]]>
    865             </script>';
     869            </script>
     870            ';
    866871            // Close content box
    867872            echo $html_tags['content_c'];
  • network-latest-posts/trunk/readme.txt

    r1095315 r1095904  
    55Requires at least: 3.0
    66Tested up to: 4.1.1
    7 Stable tag: 3.6.1
     7Stable tag: 3.6.2
    88
    99This plugin allows you to pull all the recent posts from the blogs in your WordPress network and display them in your main site (or internal sites)
     
    149149== Changelog ==
    150150
     151= 3.6.2 =
     152* Pagination fixed, improved jQuery function to fix and speed up paginated results.
     153
    151154= 3.6.1 =
    152155* Improved widget class security for compatibility with certain PHP configurations.
Note: See TracChangeset for help on using the changeset viewer.