Plugin Directory

Changeset 798627


Ignore:
Timestamp:
11/04/2013 03:07:57 PM (12 years ago)
Author:
MicahBlu
Message:

now able to set multiple tab groups on same page

Location:
tab-me/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tab-me/trunk/readme.txt

    r744207 r798627  
    55Requires at least: 3.0.1
    66Tested up to: 3.4
    7 Stable tag: 1.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545== Changelog ==
    4646
     47= 1.0.1 =
     48* Now multiple Tab Me tab groups will works on the same page. Thanks http://profiles.wordpress.org/flymke !
     49
    4750= 1.0 =
    4851* Initial version
  • tab-me/trunk/tab-me.js

    r778017 r798627  
    44 * Core and very simple jQuery for Tab Me Tabs
    55 *
    6  * @since 0.5.1
     6 * @since 0.5
    77 */
    8 (function($){
     8jQuery(document).ready(function($){
    99
    1010    $('.tab-me-tabs li').click(function(){
     
    1313       
    1414    function switch_tabs(obj) {
    15    
    16         $('.tab-me-tab-content').hide();
    17         $('.tab-me-tabs li').removeClass("active");
    18        
     15
     16        obj.parent().parent().find('.tab-me-tab-content').hide();
     17        obj.parent().find('li').removeClass("active");
     18
    1919        var id = obj.find("a", 0).attr("rel");
    2020       
     
    2323        obj.addClass("active");
    2424    }
    25 })(jQuery);
     25});
  • tab-me/trunk/tab-me.php

    r778017 r798627  
    44Plugin URI:
    55Description: Provides a shortcode which allows tabbed content
    6 Version: 0.5
     6Version: 1.0.1
    77Author: Micah Blu
    88Author URI: http://www.micahblu.com/
     
    6969add_shortcode('tabs', 'tabs_func');
    7070
     71
    7172function tab_me_scripts(){
    7273    wp_enqueue_style('tab-me-styles', plugins_url( 'tab-me.css', __FILE__) );
Note: See TracChangeset for help on using the changeset viewer.