Plugin Directory

Changeset 338493


Ignore:
Timestamp:
01/29/2011 01:11:41 PM (15 years ago)
Author:
netAction
Message:

noConflict

Location:
nivo-slider-light/trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • nivo-slider-light/trunk/nivo-slider-light.php

    r315537 r338493  
    44Plugin URI: https://www.netaction.de/wordpress-plugin-nivo-slider-light/
    55Description: This is a wrapper for the jQuery plugin NIVO Image Slider from dev7studios.
    6 Version: 1.4
     6Version: 1.5
    77Author: Thomas Schmidt
    88Author URI: http://netaction.de
     
    1111
    1212function NivoInit() {
    13     wp_deregister_script('jquery');
    14     wp_register_script('jquery', WP_PLUGIN_URL.'/nivo-slider-light/jquery-1.4.2.min.js', false, '1.4.2');
    15     wp_enqueue_script('jush', WP_PLUGIN_URL.'/nivo-slider-light/jquery.nivo.slider.pack.js', array('jquery'));
     13    wp_enqueue_script('nivoSliderScript', WP_PLUGIN_URL.'/nivo-slider-light/jquery.nivo.slider.pack.js', array('jquery'));
    1614    wp_enqueue_style('nivoStyleSheet', WP_PLUGIN_URL . '/nivo-slider-light/nivo-slider.css');
    1715    wp_enqueue_style('nivoCustomStyleSheet', WP_PLUGIN_URL . '/nivo-slider-light/custom-nivo-slider.css');
     
    2220?>
    2321<script type="text/javascript">
    24     $(function() {
    25         $(".nivoSlider br").each(function(){ // strip BR elements created by Wordpress
    26             $(this).remove();
     22    jQuery.noConflict();
     23    jquery(function() {
     24        jquery(".nivoSlider br").each(function(){ // strip BR elements created by Wordpress
     25            jquery(this).remove();
    2726        });
    28         $('.nivoSlider').nivoSlider({
     27        jquery('.nivoSlider').nivoSlider({
    2928            effect:'fade', //Specify sets like: 'random,fold,fade,sliceDown'
    3029            animSpeed:500, //Slide transition speed
     
    3534            controlNav:true, //1,2,3...
    3635            controlNavThumbs:false, //Use thumbnails for Control Nav
    37             controlNavThumbsFromRel:false, //Use image rel for thumbs
     36            controlNavThumbsFromRel:false, //Use image rel for thumbs
    3837            controlNavThumbsSearch: '.jpg', //Replace this with...
    3938            controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
  • nivo-slider-light/trunk/readme.txt

    r315537 r338493  
    5151* bugfixes
    5252
     53= 1.5 =
     54* jQuery noConflict
     55
Note: See TracChangeset for help on using the changeset viewer.