Plugin Directory

Changeset 2557877


Ignore:
Timestamp:
07/02/2021 07:21:54 PM (5 years ago)
Author:
fransoft
Message:

Style changes

Location:
floating-related-posts/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • floating-related-posts/trunk/README.txt

    r2441344 r2557877  
    22Tags: related, floating, related posts, similar posts, related articles, contextual
    33Requires at least: 3.3.1
    4 Tested up to: 5.6
    5 Stable tag: 1.0.5
     4Tested up to: 5.7
     5Stable tag: 1.0.7
    66License: GPLv2 or later
    77
  • floating-related-posts/trunk/floating-related-posts-pro.php

    r2402353 r2557877  
    44 * Plugin URI:
    55 * Description: Shows a floating banner with a list of related posts
    6  * Version: 1.0.5
     6 * Version: 1.0.7
    77 * Author: Fransoft
    88 * Text Domain: floating-related-posts-pro
     
    1414
    1515
    16 define ('FRPOSTPRO_VERSION', '1.0.5');
     16define ('FRPOSTPRO_VERSION', '1.0.7');
    1717define ('FRPOSTPRO_DEF_PLUGIN_NAME', 'Floating Related Posts');
    1818define ('FRPOSTPRO_DEF_PLUGIN', 'floating-related-posts-pro');
  • floating-related-posts/trunk/resources/js/floating-related-posts-pro.js

    r2402353 r2557877  
    44     $(function() {
    55
     6     
    67
    78        if(frpostpro_js.length > 0 ){
     9
     10
    811
    912                    var cookieName = 'frpostpro_close';
     
    1720
    1821                    var counter = 0;
     22
     23                    function shuffle(a) {
     24                        var j, x, i;
     25                        for (i = a.length - 1; i > 0; i--) {
     26                            j = Math.floor(Math.random() * (i + 1));
     27                            x = a[i];
     28                            a[i] = a[j];
     29                            a[j] = x;
     30                        }
     31                        return a;
     32                    }
     33
     34                    if(frpostpro_settings['frpostpro-order'] == 'random'){
     35                        frpostpro_js = shuffle(frpostpro_js);
     36                    }
    1937
    2038                    function showSlide() {
Note: See TracChangeset for help on using the changeset viewer.