Changeset 555293
- Timestamp:
- 06/09/2012 01:49:47 PM (14 years ago)
- Location:
- rollover-tab/trunk
- Files:
-
- 2 added
- 4 edited
-
css/rollover-tab.css (modified) (4 diffs)
-
images/tab-left.png (added)
-
images/tab-right.png (added)
-
readme-ja.txt (modified) (5 diffs)
-
readme.txt (modified) (6 diffs)
-
rollover-tab.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rollover-tab/trunk/css/rollover-tab.css
r555139 r555293 6 6 } 7 7 [id$="tabpanels"] { 8 margin: -5mm 5mm 0;8 padding: 0 5mm; 9 9 } 10 10 [id$="tabpanels"] :first-child { … … 13 13 ul[role="tablist"] { 14 14 overflow:hidden; 15 margin:0 ;15 margin:0 0 0 1px; 16 16 padding:0; 17 17 list-style:none; … … 25 25 width:10px; 26 26 height:40px; 27 background:url(../images/tab- fadein.png) scroll no-repeat;27 background:url(../images/tab-left.png) scroll no-repeat; 28 28 } 29 29 ul[role="tablist"]:after { … … 35 35 width:10px; 36 36 height:40px; 37 background:url(../images/tab- fadeout.png) scroll no-repeat;37 background:url(../images/tab-right.png) scroll no-repeat; 38 38 } 39 39 ul[role="tablist"] > li { -
rollover-tab/trunk/readme-ja.txt
r555139 r555293 3 3 Requires at least: 3.1 4 4 Tested up to: 3.3.2 5 Stable tag: 1. 0.25 Stable tag: 1.1.0 6 6 Contributors: Eiji 'Sabaoh' Yamada 7 7 License: GPLv2 … … 17 17 18 18 <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"] 20 20 content of tab1... 21 21 ... … … 32 32 norollover: 省略可能です。省略するとタブはマウスを重ねるだけで切り替わります。"true"を指定すると、タブはクリックしないと切り替わらないようになります。 33 33 34 border: 省略可能です。省略するとボーダーは表示されません。"true" を指定するとボーダーが表示されるようになります。 35 36 margin: 省略可能です。上ボーダーがグラフィックと一致しなかった場合に、この属性で位置を調整できます。省略した時の値は"-26px"です。 37 38 height: 省略可能です。省略するとパネルの高さは内容によって自動的に調整されます。パネルの高さを固定したい時に、この属性で高さを指定できます。 39 34 40 label: タブに表示されるキャプションです。省略できません。 35 41 … … 43 49 * リッチなグラフィックでタブを表示します。 44 50 * デフォルトではタブにマウスを重ねるだけでタブが切り替わります。オプションでクリックしないと切り替わらないようにもできます。 51 * ボーダーの表示をオン・オフできるようになりました。 52 * ボーダーの高さをグラフィックに合わせて調節できるようになりました。 53 * パネルの高さを指定できるようになりました。 45 54 46 55 … … 119 128 120 129 == 変更履歴 == 130 = 1.1.0 = 131 * ボーダーの表示をオン・オフできるようになりました。 132 * ボーダーの高さをグラフィックに合わせて調節できるようになりました。 133 * パネルの高さを指定できるようになりました。 121 134 = 1.0.2 = 122 135 スタイルシートを改善しました。 -
rollover-tab/trunk/readme.txt
r555190 r555293 3 3 Requires at least: 3.1 4 4 Tested up to: 3.3.2 5 Stable tag: 1. 0.25 Stable tag: 1.1.0 6 6 Contributors: Eiji 'Sabaoh' Yamada 7 7 License: GPLv2 … … 21 21 22 22 <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"] 24 24 content of tab1... 25 25 ... … … 36 36 norollover: 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. 37 37 38 border: optional boolean. As default panel has no border. If border is set "true", border will display. 39 40 margin: 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 42 height: optional. As default panels' height will adjust automatic. You can assign fixed height to your panels. 43 38 44 label: caption of tabs, required. 39 45 … … 46 52 * Tabs with label will display in rich graphical background. 47 53 * 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. 49 57 50 58 == Installation == … … 112 120 113 121 == Screenshots == 114 1. screenshot-1.png122 1. Graphics will match white-background themes. 115 123 116 124 … … 122 130 123 131 == 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. 124 136 = 1.0.2 = 125 137 stylesheet improved. -
rollover-tab/trunk/rollover-tab.php
r555139 r555293 4 4 Plugin URI: http://sabaoh.sakura.ne.jp/wordpress/ 5 5 Description: 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.26 Version: 1.1.0 7 7 Author: Eiji 'Sabaoh' Yamada 8 8 Author URI: http://sabaoh.sakura.ne.jp/wordpress/ … … 139 139 'name' => 'rollover', 140 140 'norollover' => false, 141 'border' => false, 142 'margin' => '-26px', 143 'height' => false 141 144 ), $atts ) ); 142 145 … … 146 149 // generate graphical tabs - header 147 150 $html = '<section id="' . $name . '-tabbox"'; 148 if ( !$norollover ) {151 if ( !$norollover ) 149 152 $html .= ' data-options="autofocus"'; 150 }151 153 $html .= ">\n"; 152 154 $html .= <<< HERE … … 170 172 171 173 // 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;"; 172 179 $html .= <<< HERE 173 180 </ul> 174 181 </header> 175 <div id="$name-tabpanels" >182 <div id="$name-tabpanels" style="$style"> 176 183 177 184 HERE;
Note: See TracChangeset
for help on using the changeset viewer.