Plugin Directory

Changeset 555293


Ignore:
Timestamp:
06/09/2012 01:49:47 PM (14 years ago)
Author:
Sabaoh
Message:

Version 1.1.0

Location:
rollover-tab/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • rollover-tab/trunk/css/rollover-tab.css

    r555139 r555293  
    66    }
    77    [id$="tabpanels"] {
    8         margin: -5mm 5mm 0;
     8        padding: 0 5mm;
    99    }
    1010    [id$="tabpanels"] :first-child {
     
    1313    ul[role="tablist"] {
    1414        overflow:hidden;
    15         margin:0;
     15        margin:0 0 0 1px;
    1616        padding:0;
    1717        list-style:none;
     
    2525        width:10px;
    2626        height:40px;
    27         background:url(../images/tab-fadein.png) scroll no-repeat;
     27        background:url(../images/tab-left.png) scroll no-repeat;
    2828    }
    2929    ul[role="tablist"]:after {
     
    3535        width:10px;
    3636        height:40px;
    37         background:url(../images/tab-fadeout.png) scroll no-repeat;
     37        background:url(../images/tab-right.png) scroll no-repeat;
    3838    }
    3939    ul[role="tablist"] > li {
  • rollover-tab/trunk/readme-ja.txt

    r555139 r555293  
    33Requires at least: 3.1
    44Tested up to: 3.3.2
    5 Stable tag: 1.0.2
     5Stable tag: 1.1.0
    66Contributors: Eiji 'Sabaoh' Yamada
    77License: GPLv2
     
    1717
    1818<pre>
    19 [rollover-tabs name="id" norollover="true"][rollover-tab name="tab1" label="サンプル1"]
     19[rollover-tabs name="id" norollover="true" border="true" margin="-26px" height="1.5in"][rollover-tab name="tab1" label="サンプル1"]
    2020content of tab1...
    2121...
     
    3232norollover: 省略可能です。省略するとタブはマウスを重ねるだけで切り替わります。"true"を指定すると、タブはクリックしないと切り替わらないようになります。
    3333
     34border: 省略可能です。省略するとボーダーは表示されません。"true" を指定するとボーダーが表示されるようになります。
     35
     36margin: 省略可能です。上ボーダーがグラフィックと一致しなかった場合に、この属性で位置を調整できます。省略した時の値は"-26px"です。
     37
     38height: 省略可能です。省略するとパネルの高さは内容によって自動的に調整されます。パネルの高さを固定したい時に、この属性で高さを指定できます。
     39
    3440label: タブに表示されるキャプションです。省略できません。
    3541
     
    4349* リッチなグラフィックでタブを表示します。
    4450* デフォルトではタブにマウスを重ねるだけでタブが切り替わります。オプションでクリックしないと切り替わらないようにもできます。
     51* ボーダーの表示をオン・オフできるようになりました。
     52* ボーダーの高さをグラフィックに合わせて調節できるようになりました。
     53* パネルの高さを指定できるようになりました。
    4554
    4655
     
    119128
    120129== 変更履歴 ==
     130= 1.1.0 =
     131* ボーダーの表示をオン・オフできるようになりました。
     132* ボーダーの高さをグラフィックに合わせて調節できるようになりました。
     133* パネルの高さを指定できるようになりました。
    121134= 1.0.2 =
    122135スタイルシートを改善しました。
  • rollover-tab/trunk/readme.txt

    r555190 r555293  
    33Requires at least: 3.1
    44Tested up to: 3.3.2
    5 Stable tag: 1.0.2
     5Stable tag: 1.1.0
    66Contributors: Eiji 'Sabaoh' Yamada
    77License: GPLv2
     
    2121
    2222<pre>
    23 [rollover-tabs name="id" norollover="true"][rollover-tab name="tab1" label="sample1"]
     23[rollover-tabs name="id" norollover="true" border="true" margin="-26px" height="1.5in"][rollover-tab name="tab1" label="sample1"]
    2424content of tab1...
    2525...
     
    3636norollover: optional boolean. As default tab panels will switch when your mouse is on the tab (click is not necessary). If norollover is set "true", panels will switch when you click the tab.
    3737
     38border: optional boolean. As default panel has no border. If border is set "true", border will display.
     39
     40margin: optional. Default value is "-26px". If your panels' top border doesn't match the tab graphic, you can adjust the position of the top border.
     41
     42height: optional. As default panels' height will adjust automatic. You can assign fixed height to your panels.
     43
    3844label: caption of tabs, required.
    3945
     
    4652* Tabs with label will display in rich graphical background.
    4753* As default, tabs will switch when your mouse is on the tab. Optional, you can choose click-needed-switching.
    48 
     54* You can choose the border on or off.
     55* You can adjust position of top border without editing stylesheet.
     56* You can assign height of panels, without editing stylesheet of course.
    4957
    5058== Installation ==
     
    112120
    113121== Screenshots ==
    114 1. screenshot-1.png
     1221. Graphics will match white-background themes.
    115123
    116124
     
    122130
    123131== Changelog ==
     132= 1.1.0 =
     133* You can choose the border on or off.
     134* You can adjust position of top border.
     135* You can assign height of panels.
    124136= 1.0.2 =
    125137stylesheet improved.
  • rollover-tab/trunk/rollover-tab.php

    r555139 r555293  
    44Plugin URI:  http://sabaoh.sakura.ne.jp/wordpress/
    55Description: With this plugin, you can use [rollover-tabs name="rollover"][rollover-tab name="tab1" label="example"]...[rollover-tab ...]...[/rollover-tabs] shortcode. This may display in graphical tabs it's switched only mouse over. Not IE browser (chrome, firefox, opera, and safari was tested), IE 8 or above is required. And when browser is IE 5, IE 6 or IE 7, update recommendation will appear.
    6 Version:     1.0.2
     6Version:     1.1.0
    77Author:      Eiji 'Sabaoh' Yamada
    88Author URI:  http://sabaoh.sakura.ne.jp/wordpress/
     
    139139        'name' => 'rollover',
    140140        'norollover' => false,
     141        'border' => false,
     142        'margin' => '-26px',
     143        'height' => false
    141144    ), $atts ) );
    142145
     
    146149        // generate graphical tabs - header
    147150        $html = '<section id="' . $name . '-tabbox"';
    148         if ( !$norollover ) {
     151        if ( !$norollover )
    149152            $html .= ' data-options="autofocus"';
    150         }
    151153        $html .= ">\n";
    152154        $html .= <<< HERE
     
    170172
    171173        // close header and start panels
     174        $style = "margin-top:$margin;";
     175        if ( $border )
     176            $style .= 'border:solid thin #a0a0a0;';
     177        if ( $height )
     178            $style .= "height:$height;";
    172179        $html .= <<< HERE
    173180            </ul>
    174181    </header>
    175     <div id="$name-tabpanels">
     182    <div id="$name-tabpanels" style="$style">
    176183
    177184HERE;
Note: See TracChangeset for help on using the changeset viewer.