Plugin Directory

Changeset 2017885


Ignore:
Timestamp:
01/23/2019 07:22:22 PM (7 years ago)
Author:
shmuel83
Message:

Debug javascript

Location:
list-mixcloud/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • list-mixcloud/trunk/list-mixcloud.php

    r2016504 r2017885  
    44Plugin URI: http://rodolphe-moulin.fr/list-mixcloud
    55Description: Show list or last podcast MixCloud of your channel
    6 Version: 1.1
     6Version: 1.1.1
    77Author: Rodolphe MOULIN
    88Author URI: http://rodolphe-moulin.fr
     
    3030//  widget : mini|picture|classic widget iframe by MixCloud
    3131//  mode : 0 to list to show all podcast in a page, last to show the last upload on frontpage by example
    32 //  playlist : to show list of audio instead of list of widget. Show only one widget
     32//  playlist : 1 to show list of audio instead of list of widget. Show only one widget
    3333add_shortcode('listmixcloud', 'getListMixCloud');
    3434$dom = "";
  • list-mixcloud/trunk/playlist.js

    r2016504 r2017885  
    11jQuery(function ($) {
    22dom = $("#uniqueWidget");
    3 srcRoot = $("#uniqueWidget").attr('src').split("&feed=")[0];
    4 li = $('#plList li').on('click', function () {
    5                 var id = $(this).find(".plItem>.plTitle").attr('idtrack');
    6                 console.log(id);
    7                 dom.attr('src',srcRoot + "&feed="+id);
    8                 $('.plSel').removeClass('plSel');
    9                 $(this).addClass('plSel');
    10             });
     3    if(dom.length) {
     4        srcRoot = $("#uniqueWidget").attr('src').split("&feed=")[0];
     5        li = $('#plList li').on('click', function () {
     6                    var id = $(this).find(".plItem>.plTitle").attr('idtrack');
     7                    console.log(id);
     8                    dom.attr('src',srcRoot + "&feed="+id);
     9                    $('.plSel').removeClass('plSel');
     10                    $(this).addClass('plSel');
     11                });
     12    }
    1113});
  • list-mixcloud/trunk/readme.txt

    r2016504 r2017885  
    33Tags: mixcloud, music, musique, list, widget, plugin, extension, podcast, stream, audio, mp3, listen, preaching
    44Requires at least: 2.7.0
    5 Tested up to: 5.0.2
     5Tested up to: 5.0.3
    66Requires PHP: 5.2.4
    77License: GPLv2 or later
     
    5858== Changelog ==
    5959
     60= 1.1.0 =
     61* Debug javascript
     62
    6063= 1.1 =
    6164* Added an playlist attribut "playlist" in shortcode and widget. If is used, this plugin show list of audio instead of list of mixcloud widget. Show only one widget.
Note: See TracChangeset for help on using the changeset viewer.