Changeset 556685
- Timestamp:
- 06/12/2012 01:39:26 PM (14 years ago)
- Location:
- rollover-tab/trunk
- Files:
-
- 4 edited
-
css/rollover-tab.css (modified) (4 diffs)
-
readme-ja.txt (modified) (5 diffs)
-
readme.txt (modified) (5 diffs)
-
rollover-tab.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rollover-tab/trunk/css/rollover-tab.css
r555293 r556685 2 2 [id$="tabbox"], 3 3 [id$="tabpanels"] { 4 clear:left;5 4 overflow:hidden; 6 5 } 6 [id$="tabbox"] > header { 7 width:100%; 8 height:38px; 9 position:relative; 10 } 7 11 [id$="tabpanels"] { 8 padding: 0 5mm; 12 margin-top:0; 13 padding:0 5mm; 9 14 } 10 15 [id$="tabpanels"] :first-child { 11 margin-top: 0;16 margin-top:0; 12 17 } 13 18 ul[role="tablist"] { 14 19 overflow:hidden; 15 margin:0 0 0 1px;20 margin:0; 16 21 padding:0; 17 22 list-style:none; 23 position:absolute; 24 left:1px; 18 25 } 19 26 ul[role="tablist"]:before { … … 41 48 margin:0; 42 49 padding:0; 43 height:40px;50 height:40px; 44 51 } 45 52 ul[role="tablist"] a { 46 53 outline:0; 47 54 float:left; 55 margin:0; 48 56 height:40px; 49 margin:0;50 57 background:url(../images/tab-inactive-center.png) scroll repeat-x; 51 58 line-height:40px; … … 57 64 content:''; 58 65 float:left; 66 margin:0; 67 padding:0; 59 68 width:10px; 60 69 height:40px; 61 margin:0;62 padding:0;63 70 background:url(../images/tab-inactive-left.png) scroll no-repeat; 64 71 } … … 66 73 content:''; 67 74 float:right; 75 margin:0; 76 padding:0; 68 77 width:10px; 69 78 height:40px; 70 margin:0;71 padding:0;72 79 background:url(../images/tab-inactive-right.png) scroll no-repeat; 73 80 } -
rollover-tab/trunk/readme-ja.txt
r555293 r556685 3 3 Requires at least: 3.1 4 4 Tested up to: 3.3.2 5 Stable tag: 1. 1.05 Stable tag: 1.2.0 6 6 Contributors: Eiji 'Sabaoh' Yamada 7 7 License: GPLv2 … … 17 17 18 18 <pre> 19 [rollover-tabs name="id" norollover="true" border="true" margin="-2 6px" height="1.5in"][rollover-tab name="tab1" label="サンプル1"]19 [rollover-tabs name="id" norollover="true" border="true" margin="-2px" height="1.5in" left="1px" right="1px" scroll="true"][rollover-tab name="tab1" label="サンプル1"] 20 20 content of tab1... 21 21 ... … … 34 34 border: 省略可能です。省略するとボーダーは表示されません。"true" を指定するとボーダーが表示されるようになります。 35 35 36 margin: 省略可能です。上ボーダーがグラフィックと一致しなかった場合に、この属性で位置を調整できます。省略した時の値は "-26px"です。36 margin: 省略可能です。上ボーダーがグラフィックと一致しなかった場合に、この属性で位置を調整できます。省略した時の値はcss/rollover-tab.cssに定義されており、1.2.0からは"-26px"から"0"(テーマに依らない)に変わっています。 37 37 38 38 height: 省略可能です。省略するとパネルの高さは内容によって自動的に調整されます。パネルの高さを固定したい時に、この属性で高さを指定できます。 39 39 40 left: 省略可能です。省略したときの値はcss/rollover-tab.cssに定義されています("1px")。タブの左側にスペースを作りたい時に、大きな値を指定できます。"0"や"0px"はボーダーが欠けるのでお勧めできません。 41 42 right: 省略可能です。省略したときの値はfalseです。タブの位置を右端からの距離で指定したい時に使います。leftが指定された時にはrightは無視されます。"0"や"0px"はボーダーが欠けるのでお勧めできません。 43 44 scroll: 省略可能です。省略するとパネルにはスクロールバーが表示されません。"true" を指定するとスクロールバーが表示されるようになります。 45 40 46 label: タブに表示されるキャプションです。省略できません。 47 48 注意: margin属性の初期値が"-26px"から"0"に変更されました。marginを指定している方は、表示を維持するのに値を変更する必要があります。 41 49 42 50 注意: リッチテキストエディタで投稿やページを編集する際に、隣接する2つのショートコードの間に改行を入れないでください。例えば[rollover-tabs]と[rollover-tab]の間や、[/rollover-tab]と次の[rollover-tab]の間などにです。改行を入れるとワードプレスが勝手に<p>タグをつけてしまうので、表示が崩れます。 … … 52 60 * ボーダーの高さをグラフィックに合わせて調節できるようになりました。 53 61 * パネルの高さを指定できるようになりました。 62 * スタイルシートが改善され、上ボーダーがグラフィックと一致するようになりました。テーマに依らず位置が決まるようになりました。 63 * [rollover-tab ...]と[/rollover-tab]の間で別なショートコード(もしかしたら[rollover-tabs]も?)が使えるようになりました。 64 * タブの位置を左からの距離または右からの距離で指定できるようになりました。 65 * スクロールバーの表示をオン・オフできるようになりました。 54 66 55 67 … … 128 140 129 141 == 変更履歴 == 142 = 1.2.0 = 143 * スタイルシートが改善され、上ボーダーがグラフィックと一致するようになりました。テーマに依らず位置が決まるようになりました。 144 * [rollover-tab ...]と[/rollover-tab]の間で別なショートコード(もしかしたら[rollover-tabs]も?)が使えるようになりました。 145 * タブの位置を左からの距離または右からの距離で指定できるようになりました。 146 * スクロールバーの表示をオン・オフできるようになりました。 147 = 1.1.1 = 148 margin属性の初期値をphpコードからcssに移動しました。 149 これにより、cssを編集して初期値を調節することが可能となりました。 130 150 = 1.1.0 = 131 151 * ボーダーの表示をオン・オフできるようになりました。 -
rollover-tab/trunk/readme.txt
r555293 r556685 3 3 Requires at least: 3.1 4 4 Tested up to: 3.3.2 5 Stable tag: 1. 1.05 Stable tag: 1.2.0 6 6 Contributors: Eiji 'Sabaoh' Yamada 7 7 License: GPLv2 … … 21 21 22 22 <pre> 23 [rollover-tabs name="id" norollover="true" border="true" margin="-2 6px" height="1.5in"][rollover-tab name="tab1" label="sample1"]23 [rollover-tabs name="id" norollover="true" border="true" margin="-2px" height="1.5in" left="1px" right="1px" scroll="true"][rollover-tab name="tab1" label="sample1"] 24 24 content of tab1... 25 25 ... … … 32 32 = Attribute: = 33 33 34 name: internal name (id). [rollover-tabs name="id"] is optional (default value is "rollover"). [rollover-tab name="tab1"] is required.34 name: 35 35 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.36 internal name (id). [rollover-tabs name="id"] is optional (default value is "rollover"). [rollover-tab name="tab1"] is required. 37 37 38 border: optional boolean. As default panel has no border. If border is set "true", border will display. 38 norollover: 39 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.40 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. 41 41 42 height: optional. As default panels' height will adjust automatic. You can assign fixed height to your panels. 42 border: 43 43 44 label: caption of tabs, required. 44 optional boolean. As default panel has no border. If border is set "true", border will display. 45 46 margin: 47 48 optional. As default margin-top was defined in css/rollover-tab.css (Now vlaue has changed to 0 for all themes). If your panels' top border didn't match the tab graphic, you could adjust the position of the top border by either edit css/rollover-tab.css or set margin attribute in each rollover-tabs tag. 49 50 height: 51 52 optional. As default panels' height will adjust automatic. You can assign fixed height to your panels. 53 54 left: 55 56 optional. As default left defined in css/rollover-tab.css (Value is "1px"). If you wanted to make space in left of tabs, you could set greater value to this attribute. "0" or "0px" is NOT recommended due to avoid lack of border. 57 58 right: 59 60 optional. Default value is false. If you wanted to make tabs align right, you could set "1px" or greater value to this attribute. If "left" attribute was setted, this attribute would be ignored. "0" or "0px" is NOT recommended due to avoid lack of border. 61 62 scroll: 63 64 optional boolean. As default panel has no scroll bar. If scroll attribute was set "true", panel will have scroll bar. 65 66 label: 67 68 caption of tabs, required. 69 70 NOTICE: Since 1.2.0, margin attribute's default value changed from "-26px" to "0". So if you've assigned margin value, You had to change your assignment in order to maintain good display. 45 71 46 72 NOTICE: with rich text editor, you must NOT insert any line breaks between [rollover-tabs] and next [rollover-tab], between [/rollover-tab] and next [rollover-tab], between [/rollover-tab] and [/rollover-tabs]. Due to wordpress automatic <p> insertion. … … 55 81 * You can adjust position of top border without editing stylesheet. 56 82 * You can assign height of panels, without editing stylesheet of course. 83 * Stylesheet was improved and top border will match with graphics, theme proof positioning was innovated since 1.2.0. 84 * You can use some other shortcodes between [rollover-tab...] and [/rollover-tab], since 1.2.0. 85 * You can assign position of tabs left or right, since 1.2.0. 86 * You can choose the scroll bar on or off. Since 1.2.0. 57 87 58 88 == Installation == … … 130 160 131 161 == Changelog == 162 = 1.2.0 = 163 * Theme proof positioning was innovated. So "margin" attribute's default value changed from "-26px" in php to "0" in css. 164 * Nested shortcode will proceed between [rollover-tab ...] and [/rollover-tab]. 165 * You can assign position of tabs left or right. 166 * You can choose the scroll bar on or off. 132 167 = 1.1.0 = 133 168 * You can choose the border on or off. -
rollover-tab/trunk/rollover-tab.php
r555293 r556685 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. 1.06 Version: 1.2.0 7 7 Author: Eiji 'Sabaoh' Yamada 8 8 Author URI: http://sabaoh.sakura.ne.jp/wordpress/ … … 114 114 HERE; 115 115 116 $html .= $content;116 $html .= do_shortcode( $content ); 117 117 118 118 $html .= <<< HERE … … 140 140 'norollover' => false, 141 141 'border' => false, 142 'margin' => '-26px', 143 'height' => false 142 'margin' => false, 143 'height' => false, 144 'left' => false, 145 'right' => false, 146 'scroll' => false, 144 147 ), $atts ) ); 145 148 … … 152 155 $html .= ' data-options="autofocus"'; 153 156 $html .= ">\n"; 154 $html .= <<< HERE 157 158 $style = ''; 159 if ( $left ) 160 $style = ' style="left:' . $left . ';"'; 161 elseif ( $right ) 162 $style = ' style="left:auto; right:' . $right . ';"'; 163 $html .= <<< HERE 164 <![if !IE 8]> 155 165 <header> 166 <![endif]> 167 <!--[if IE 8]> 168 <header style="height:22px;"> 169 <![endif]--> 156 170 <![if !lte IE 7]> 157 <ul role="tablist" aria-owns="$name-tabpanels" >171 <ul role="tablist" aria-owns="$name-tabpanels"$style> 158 172 <![endif]> 159 173 <!--[if lte IE 7]> … … 162 176 $html .= "\t\t\t<h2>" . __( 'Index - Please try other (not IE) browser, or IE 8 or above.', 'rollover-tab' ) . "</h2>\n"; 163 177 $html .= <<< HERE 164 <ul >178 <ul aria-owns="$name-tabpanels"> 165 179 <![endif]--> 166 180 … … 172 186 173 187 // 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;"; 188 $style = ''; 189 if ( $margin || $border || $height || $scroll ) { 190 $style = ' style="'; 191 if ( $margin ) 192 $style .= "margin-top:$margin;"; 193 if ( $border ) 194 $style .= 'border:solid thin #a0a0a0;'; 195 if ( $height ) 196 $style .= "height:$height;"; 197 if ( $scroll ) 198 $style .= 'overflow:scroll;'; 199 $style .= '"'; 200 } 179 201 $html .= <<< HERE 180 202 </ul> 181 203 </header> 182 <div id="$name-tabpanels" style="$style">204 <div id="$name-tabpanels"$style> 183 205 184 206 HERE;
Note: See TracChangeset
for help on using the changeset viewer.