Plugin Directory

Changeset 214048


Ignore:
Timestamp:
03/06/2010 04:53:07 PM (16 years ago)
Author:
nghorta
Message:
 
Location:
sidebartabs/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • sidebartabs/trunk/langs/sidebarTabs-pt_BR.po

    r189024 r214048  
    33"Project-Id-Version: sidebarTabs version 1.1\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2010-01-02 17:27-0300\n"
     5"POT-Creation-Date: 2010-03-06 13:12-0300\n"
    66"PO-Revision-Date: \n"
    77"Last-Translator: Newton de Góes Horta <nghorta@gmail.com>\n"
     
    1717"X-Poedit-SearchPath-0: .\n"
    1818
    19 #: sidebarTabs.php:236
     19#: sidebarTabs.php:253
    2020msgid "Put widgets into tabbed (scrollable) interface in sidebar"
    2121msgstr "Colocar widgets em uma interface com abas na barra lateral (sidebar) do blog"
    2222
    23 #: sidebarTabs.php:237
     23#: sidebarTabs.php:254
    2424msgid "sidebarTabs"
    2525msgstr "sidebarTab"
    2626
    27 #: sidebarTabs.php:269
     27#: sidebarTabs.php:287
    2828msgid "Instance 1"
    2929msgstr "Instância 1"
    3030
    31 #: sidebarTabs.php:277
     31#: sidebarTabs.php:296
    3232msgid "Title:"
    3333msgstr "Título:"
    3434
    35 #: sidebarTabs.php:280
     35#: sidebarTabs.php:299
    3636msgid "Exclude Title:"
    3737msgstr "Excluir Título:"
    3838
    39 #: sidebarTabs.php:283
     39#: sidebarTabs.php:302
    4040msgid "Orders sidebarTabs:"
    4141msgstr "sidebarTabs Ordens:"
    4242
    43 #: sidebarTabs.php:284
     43#: sidebarTabs.php:303
    4444msgid "Seperate mutiple sidebarTabs orders with commas. Leave blank for all."
    4545msgstr "Separe múltiplas ordens de sidebarTabs com vírgula. Deixe em branco para todas."
    4646
    47 #: sidebarTabs.php:286
     47#: sidebarTabs.php:305
    4848msgid "Layout of Instance:"
    4949msgstr "Layout da Instância:"
    5050
    51 #: sidebarTabs.php:288
     51#: sidebarTabs.php:307
    5252msgid "Horizontal"
    5353msgstr "Horizontal"
    5454
    55 #: sidebarTabs.php:289
     55#: sidebarTabs.php:308
    5656msgid "Vertical"
    5757msgstr "Vertical"
    5858
    59 #: sidebarTabs.php:294
     59#: sidebarTabs.php:313
    6060msgid "Effect (Only vertical instances):"
    6161msgstr "Efeito (Somente instâncias verticais):"
    6262
    63 #: sidebarTabs.php:296
     63#: sidebarTabs.php:315
    6464msgid "default"
    6565msgstr "default"
    6666
    67 #: sidebarTabs.php:297
     67#: sidebarTabs.php:316
    6868msgid "fade"
    6969msgstr "fade"
    7070
    71 #: sidebarTabs.php:298
     71#: sidebarTabs.php:317
    7272msgid "slide"
    7373msgstr "slide"
     74
     75#: sidebarTabs.php:322
     76msgid "Display in Sidebar:"
     77msgstr "Exibe na Sidebar:"
     78
     79#: sidebarTabs.php:324
     80msgid "Yes"
     81msgstr "Sim"
     82
     83#: sidebarTabs.php:325
     84#: sidebarTabs_admin.php:202
     85msgid "No"
     86msgstr "Não"
    7487
    7588#: sidebarTabs_admin.php:11
     
    98111
    99112#: sidebarTabs_admin.php:40
    100 #: sidebarTabs_admin.php:461
     113#: sidebarTabs_admin.php:465
    101114msgid "Default args"
    102115msgstr "Default args"
     
    104117#: sidebarTabs_admin.php:43
    105118#: sidebarTabs_admin.php:133
    106 #: sidebarTabs_admin.php:311
    107 #: sidebarTabs_admin.php:345
     119#: sidebarTabs_admin.php:315
     120#: sidebarTabs_admin.php:349
    108121msgid "Back to Manage sidebarTabs"
    109122msgstr "Voltar para Administrar sidebarTabs"
     
    140153
    141154#: sidebarTabs_admin.php:114
    142 #: sidebarTabs_admin.php:501
     155#: sidebarTabs_admin.php:505
    143156msgid "Edit"
    144157msgstr "Editar"
     
    169182
    170183#: sidebarTabs_admin.php:200
    171 #: sidebarTabs_admin.php:475
     184#: sidebarTabs_admin.php:479
    172185msgid "Icon"
    173186msgstr "Ícone"
    174 
    175 #: sidebarTabs_admin.php:202
    176 msgid "No"
    177 msgstr "Não"
    178187
    179188#: sidebarTabs_admin.php:217
     
    181190msgstr "Gravar"
    182191
    183 #: sidebarTabs_admin.php:308
     192#: sidebarTabs_admin.php:312
    184193msgid "Options"
    185194msgstr "Opções"
    186195
    187 #: sidebarTabs_admin.php:317
     196#: sidebarTabs_admin.php:321
    188197msgid "Attention: D'ont forget to Save the changes after you are done. Always save after upgrade of plugin version."
    189198msgstr "Atenção: Não se esqueça de salvar após as alterações serem efetuadas. Sempre salve após a atualização de versão do plugin."
    190199
    191 #: sidebarTabs_admin.php:319
     200#: sidebarTabs_admin.php:323
    192201msgid "Layout of Tabs"
    193202msgstr "Layout das Abas"
    194203
    195 #: sidebarTabs_admin.php:323
     204#: sidebarTabs_admin.php:327
    196205msgid "Select"
    197206msgstr "Selecione"
    198207
    199 #: sidebarTabs_admin.php:325
    200 #: sidebarTabs_admin.php:443
     208#: sidebarTabs_admin.php:329
     209#: sidebarTabs_admin.php:447
    201210msgid "Fixed without icons"
    202211msgstr "Fixo sem ícones"
    203212
    204 #: sidebarTabs_admin.php:326
    205 #: sidebarTabs_admin.php:444
     213#: sidebarTabs_admin.php:330
     214#: sidebarTabs_admin.php:448
    206215msgid "Fixed with icons"
    207216msgstr "Fixo com ícones"
    208217
    209 #: sidebarTabs_admin.php:327
    210 #: sidebarTabs_admin.php:445
     218#: sidebarTabs_admin.php:331
     219#: sidebarTabs_admin.php:449
    211220msgid "Scrollable without icons"
    212221msgstr "Rolável sem ícones"
    213222
    214 #: sidebarTabs_admin.php:328
    215 #: sidebarTabs_admin.php:446
     223#: sidebarTabs_admin.php:332
     224#: sidebarTabs_admin.php:450
    216225msgid "Scrollable with icons"
    217226msgstr "Rolável com ícones"
    218227
    219 #: sidebarTabs_admin.php:340
     228#: sidebarTabs_admin.php:344
    220229msgid "Loading. Wait..."
    221230msgstr "Carregando. Aguarde..."
    222231
    223 #: sidebarTabs_admin.php:386
     232#: sidebarTabs_admin.php:390
    224233#, php-format
    225234msgid "The tab number was set to %s."
    226235msgstr "O número da aba foi setado para %s."
    227236
    228 #: sidebarTabs_admin.php:397
     237#: sidebarTabs_admin.php:401
    229238msgid "The tab number should be at least 1 and so was changed to 1."
    230239msgstr "O número da aba deve ser pelo menos 1."
    231240
    232 #: sidebarTabs_admin.php:401
     241#: sidebarTabs_admin.php:405
    233242msgid "The tab number was changed to be only one higher than the previous total number of tabs."
    234243msgstr "O número da aba foi alterado para um número maior que o total de abas anteriores"
    235244
    236 #: sidebarTabs_admin.php:453
     245#: sidebarTabs_admin.php:457
    237246msgid "Manage sidebarTabs"
    238247msgstr "Administrar sidebarTabs"
    239248
    240 #: sidebarTabs_admin.php:458
     249#: sidebarTabs_admin.php:462
    241250msgid "Delete"
    242251msgstr "Excluir"
    243252
    244 #: sidebarTabs_admin.php:459
     253#: sidebarTabs_admin.php:463
    245254msgid "Create New sidebarTab"
    246255msgstr "Criar nova sidebarTab"
    247256
    248 #: sidebarTabs_admin.php:460
     257#: sidebarTabs_admin.php:464
    249258msgid "sidebarTabs Options"
    250259msgstr "Opções sidebarTabs"
    251260
    252 #: sidebarTabs_admin.php:462
     261#: sidebarTabs_admin.php:466
    253262msgid "Reset ?"
    254263msgstr "Reset ?"
    255264
    256 #: sidebarTabs_admin.php:462
     265#: sidebarTabs_admin.php:466
    257266msgid "Reset"
    258267msgstr "Reset"
    259268
    260 #: sidebarTabs_admin.php:471
     269#: sidebarTabs_admin.php:475
    261270msgid "Order"
    262271msgstr "Ordem"
    263272
    264 #: sidebarTabs_admin.php:472
     273#: sidebarTabs_admin.php:476
    265274msgid "Widget"
    266275msgstr "Widget"
    267276
    268 #: sidebarTabs_admin.php:473
     277#: sidebarTabs_admin.php:477
    269278msgid "Tab Name"
    270279msgstr "Nome da Aba"
    271280
    272 #: sidebarTabs_admin.php:474
     281#: sidebarTabs_admin.php:478
    273282msgid "Description"
    274283msgstr "Descrição"
    275284
    276 #: sidebarTabs_admin.php:476
     285#: sidebarTabs_admin.php:480
    277286msgid "Callback"
    278287msgstr "Callback"
    279288
    280 #: sidebarTabs_admin.php:477
     289#: sidebarTabs_admin.php:481
    281290msgid "Unregister"
    282291msgstr "Unregister"
    283292
    284 #: sidebarTabs_admin.php:478
     293#: sidebarTabs_admin.php:482
    285294msgid "Action"
    286295msgstr "Ação"
    287296
    288 #: sidebarTabs_admin.php:485
     297#: sidebarTabs_admin.php:489
    289298msgid "yes"
    290299msgstr "sim"
    291300
    292 #: sidebarTabs_admin.php:486
     301#: sidebarTabs_admin.php:490
    293302msgid "no"
    294303msgstr "não"
    295304
    296 #: sidebarTabs_admin.php:509
     305#: sidebarTabs_admin.php:513
    297306msgid "Preview (without style) - Layout: "
    298307msgstr "Preview (sem estilo) - Layout: "
    299308
    300 #: sidebarTabs_admin.php:530
     309#: sidebarTabs_admin.php:534
    301310msgid "No instance created. Go to Design > Widget after create the sidebarTabs."
    302311msgstr "Nenhuma instância criada. Vá para Aparência > Widgets após criar as sidebarTabs."
    303312
    304 #: sidebarTabs_fixed.php:15
     313#: sidebarTabs_fixed.php:17
    305314msgid "Preview"
    306315msgstr "Preview"
    307316
    308 #: sidebarTabs_fixed.php:18
    309 #: sidebarTabs_fixed.php:112
     317#: sidebarTabs_fixed.php:20
     318#: sidebarTabs_fixed.php:114
    310319msgid "Active Tab"
    311320msgstr "Aba Ativa"
    312321
    313 #: sidebarTabs_fixed.php:19
    314 #: sidebarTabs_fixed.php:130
     322#: sidebarTabs_fixed.php:21
     323#: sidebarTabs_fixed.php:132
    315324msgid "Inactive Tab"
    316325msgstr "Aba Inativa"
    317326
    318 #: sidebarTabs_fixed.php:20
     327#: sidebarTabs_fixed.php:22
    319328msgid "Mouse Over"
    320329msgstr "Mouse Over"
    321330
    322 #: sidebarTabs_fixed.php:30
     331#: sidebarTabs_fixed.php:32
    323332msgid "Width Corner"
    324333msgstr "Tamanho do Canto"
    325334
    326 #: sidebarTabs_fixed.php:32
     335#: sidebarTabs_fixed.php:34
    327336msgid "(recommended value: 5)"
    328337msgstr "(valor recomendado: 5)"
    329338
    330 #: sidebarTabs_fixed.php:36
     339#: sidebarTabs_fixed.php:38
    331340msgid "Select the corner of tabs"
    332341msgstr "Selecione o canto das abas"
    333342
    334 #: sidebarTabs_fixed.php:97
    335 #: sidebarTabs_scrollable.php:14
     343#: sidebarTabs_fixed.php:99
     344#: sidebarTabs_scrollable.php:16
    336345msgid "Colors"
    337346msgstr "Cores"
    338347
    339 #: sidebarTabs_fixed.php:101
    340 #: sidebarTabs_scrollable.php:18
     348#: sidebarTabs_fixed.php:103
     349#: sidebarTabs_scrollable.php:20
    341350msgid "Enter the color in the fields bellow, or use the buttons to pick it."
    342351msgstr "Entre com as cores nos campos abaixo ou use os botões para selecioná-las."
    343352
    344 #: sidebarTabs_fixed.php:105
     353#: sidebarTabs_fixed.php:107
    345354msgid "Line Color"
    346355msgstr "Cor da Linha"
    347 
    348 #: sidebarTabs_fixed.php:114
    349 #: sidebarTabs_fixed.php:123
    350 #: sidebarTabs_fixed.php:132
    351 msgid "Text color:"
    352 msgstr "Cor do Texto:"
    353356
    354357#: sidebarTabs_fixed.php:116
    355358#: sidebarTabs_fixed.php:125
    356359#: sidebarTabs_fixed.php:134
     360msgid "Text color:"
     361msgstr "Cor do Texto:"
     362
     363#: sidebarTabs_fixed.php:118
     364#: sidebarTabs_fixed.php:127
     365#: sidebarTabs_fixed.php:136
    357366msgid "Background color:"
    358367msgstr "Cor de fundo"
    359368
    360 #: sidebarTabs_fixed.php:121
     369#: sidebarTabs_fixed.php:123
    361370msgid "Mouse Over Tab"
    362371msgstr "Mouse Over Tab"
    363372
    364 #: sidebarTabs_fixed.php:140
    365 #: sidebarTabs_scrollable.php:29
     373#: sidebarTabs_fixed.php:142
     374#: sidebarTabs_scrollable.php:31
    366375msgid "Background color of the panes"
    367376msgstr "Cor de fundo dos painéis"
    368377
    369 #: sidebarTabs_fixed.php:147
    370 #: sidebarTabs_scrollable.php:36
     378#: sidebarTabs_fixed.php:149
     379#: sidebarTabs_scrollable.php:38
    371380msgid "Link color in the panes"
    372381msgstr "Cor do link nos painéis"
    373382
    374 #: sidebarTabs_fixed.php:150
    375 #: sidebarTabs_fixed.php:157
    376 #: sidebarTabs_fixed.php:164
    377 #: sidebarTabs_scrollable.php:39
    378 #: sidebarTabs_scrollable.php:46
    379 #: sidebarTabs_scrollable.php:53
     383#: sidebarTabs_fixed.php:152
     384#: sidebarTabs_fixed.php:159
     385#: sidebarTabs_fixed.php:166
     386#: sidebarTabs_scrollable.php:41
     387#: sidebarTabs_scrollable.php:48
     388#: sidebarTabs_scrollable.php:55
    380389msgid "blank assumes the theme color"
    381390msgstr "branco assume a cor do tema"
    382391
    383 #: sidebarTabs_fixed.php:154
    384 #: sidebarTabs_scrollable.php:43
     392#: sidebarTabs_fixed.php:156
     393#: sidebarTabs_scrollable.php:45
    385394msgid "Hover link color in the panes"
    386395msgstr "Cor do hover link nos painéis"
    387396
    388 #: sidebarTabs_fixed.php:161
    389 #: sidebarTabs_scrollable.php:50
     397#: sidebarTabs_fixed.php:163
     398#: sidebarTabs_scrollable.php:52
    390399msgid "Text color in the panes"
    391400msgstr "Cor do texto nos painéis"
    392401
    393 #: sidebarTabs_fixed.php:168
     402#: sidebarTabs_fixed.php:170
    394403msgid "Background of vertical tabs "
    395 msgstr "Cor de fundo das abas verticais"
    396 
    397 #: sidebarTabs_fixed.php:171
     404msgstr "Fundo das abas verticais"
     405
     406#: sidebarTabs_fixed.php:173
    398407msgid "standard"
    399408msgstr "padrão"
    400409
    401 #: sidebarTabs_fixed.php:174
    402 msgid "colors of tabs"
    403 msgstr "cor das abas"
    404 
    405 #: sidebarTabs_fixed.php:182
    406 msgid "Dimensions / Font of Tabs"
    407 msgstr "Dimensões / Font das Abas"
    408 
    409 #: sidebarTabs_fixed.php:186
     410#: sidebarTabs_fixed.php:176
     411#: sidebarTabs_fixed.php:187
     412msgid "gradient"
     413msgstr "gradiente"
     414
     415#: sidebarTabs_fixed.php:179
     416#: sidebarTabs_fixed.php:190
     417#: sidebarTabs_fixed.php:205
     418msgid "normal"
     419msgstr "normal"
     420
     421#: sidebarTabs_fixed.php:184
     422msgid "Background of horizontal tabs "
     423msgstr "Fundo das abas horizontais"
     424
     425#: sidebarTabs_fixed.php:198
     426msgid "Dimensions / Font of Tabs / CSS Margin Instance"
     427msgstr "Dimensões / Fonte das Abas / CSS das Margens da Instância"
     428
     429#: sidebarTabs_fixed.php:202
    410430msgid "Font Weight of Tabs"
    411431msgstr "Peso das Abas"
    412432
    413 #: sidebarTabs_fixed.php:188
     433#: sidebarTabs_fixed.php:204
    414434msgid "bold"
    415435msgstr "bold"
    416436
    417 #: sidebarTabs_fixed.php:189
    418 msgid "normal"
    419 msgstr "normal"
    420 
    421 #: sidebarTabs_fixed.php:193
     437#: sidebarTabs_fixed.php:209
    422438msgid "Font Size of Tabs"
    423439msgstr "Tamanho da Fonte das Abas"
    424440
    425 #: sidebarTabs_fixed.php:199
     441#: sidebarTabs_fixed.php:215
    426442msgid "Font Family of Tabs"
    427443msgstr "Família de Fontes das Abas"
    428444
    429 #: sidebarTabs_fixed.php:201
     445#: sidebarTabs_fixed.php:217
    430446msgid "Example: verdana, arial, sans-serif. Blank assumes the theme."
    431447msgstr "Exemplo: verdana, arial, sans-serif. Branco assume a do tema."
    432448
    433 #: sidebarTabs_fixed.php:205
     449#: sidebarTabs_fixed.php:221
    434450msgid "Height Tabs"
    435451msgstr "Altura das Abas"
    436452
    437 #: sidebarTabs_fixed.php:207
     453#: sidebarTabs_fixed.php:223
    438454msgid "(recommended value: 26)"
    439455msgstr "(valor recomendado: 26)"
    440456
    441 #: sidebarTabs_fixed.php:211
    442 #: sidebarTabs_scrollable.php:81
     457#: sidebarTabs_fixed.php:227
     458#: sidebarTabs_scrollable.php:83
    443459msgid "Width sidebar of your theme"
    444460msgstr "Largura da sidebar de seu tema"
    445461
    446 #: sidebarTabs_fixed.php:214
    447 #: sidebarTabs_scrollable.php:84
     462#: sidebarTabs_fixed.php:230
     463#: sidebarTabs_scrollable.php:86
    448464msgid "(fixed sidebar)"
    449465msgstr "(sidebar fixa)"
    450466
    451 #: sidebarTabs_fixed.php:215
    452 #: sidebarTabs_scrollable.php:85
     467#: sidebarTabs_fixed.php:231
     468#: sidebarTabs_scrollable.php:87
    453469msgid "(fluid sidebar)"
    454470msgstr "(sidebar fluída)"
    455471
    456 #: sidebarTabs_fixed.php:225
    457 #: sidebarTabs_scrollable.php:105
     472#: sidebarTabs_fixed.php:235
     473#: sidebarTabs_scrollable.php:91
     474msgid "CSS Margin Instance"
     475msgstr "CSS Margens da Instância"
     476
     477#: sidebarTabs_fixed.php:237
     478#: sidebarTabs_scrollable.php:93
     479msgid "blank assumes the default margin of plugin"
     480msgstr "branco assume as margens default do plugin"
     481
     482#: sidebarTabs_fixed.php:247
     483#: sidebarTabs_scrollable.php:114
    458484msgid "Update Settings"
    459485msgstr "Alterar Opções"
    460486
    461 #: sidebarTabs_scrollable.php:22
     487#: sidebarTabs_scrollable.php:24
    462488msgid "Line color of the panes"
    463489msgstr "Cor das linhas dos painéis"
    464490
    465 #: sidebarTabs_scrollable.php:60
    466 msgid "Dimensions"
    467 msgstr "Dimensões"
    468 
    469 #: sidebarTabs_scrollable.php:65
     491#: sidebarTabs_scrollable.php:62
     492msgid "Dimensions / CSS Margin Instance"
     493msgstr "Dimensões / CSS das Margens da Instância"
     494
     495#: sidebarTabs_scrollable.php:67
    470496msgid "<strong>Note:</strong> Set the height (32) and width (39) if you want to use the icons provided with the plugin"
    471497msgstr "<strong>Observação:</strong> Defina a altura (32) e a largura (39) se desejar utilizar os ícones fornecidos com o plugin"
    472498
    473 #: sidebarTabs_scrollable.php:69
     499#: sidebarTabs_scrollable.php:71
    474500msgid "Height Icons"
    475501msgstr "Altura dos Ícones"
    476502
    477 #: sidebarTabs_scrollable.php:75
     503#: sidebarTabs_scrollable.php:77
    478504msgid "Width Icons"
    479505msgstr "Largura dos Ícones"
    480506
     507#~ msgid "colors of tabs"
     508#~ msgstr "cor das abas"
     509#~ msgid "Dimensions"
     510#~ msgstr "Dimensões"
    481511#~ msgid "Layout:"
    482512#~ msgstr "Layout:"
     
    485515#~ msgid "Loads"
    486516#~ msgstr "Carrega"
    487 #~ msgid "Yes"
    488 #~ msgstr "Sim"
    489517#~ msgid "Layout"
    490518#~ msgstr "Layout"
  • sidebartabs/trunk/readme.txt

    r200225 r214048  
    55Requires at least: 2.8
    66Tested up to: 2.9
    7 Stable tag: 2.0.3
     7Stable tag: 2.1
    88
    99Put widgets into tabbed interface in sidebar
     
    2525= Languages =
    2626
    27 Just upload the .mo file in the sidebartabs/langs folder. WordPress will automatically load the language file from this directory, where "locale" is the value you defined in your wp-config.php file in the root of your WordPress installation.
     27Just upload the .mo file in the sidebartabs/langs folder. WordPress will automatically load the language file from this directory, where ‘locale’ is the value you defined in your wp-config.php file in the root of your WordPress installation.
    2828
    2929**Russian [ru_RU]**
     
    7272
    7373== ChangeLog ==
     74= 2.1 =
     75* Added the option "Display in sidebar" in the instance of the plugin;
     76* Implemented new uses of the plugin. See [further details](http://www.blogviche.com.br/new_version.php/) and an [example](http://www.blogviche.com.br/world-cup-2010/);
     77* Added in the parameter "Background of vertical tabs" in "sidebarTabs Options" the option "Normal";
     78* Added the parameter "Background of horizontal tabs" in "sidebarTabs Options" with values "gradient" and "normal";
     79* Added a field in the "sidebarTabs Options" to include the margin (CSS) of the instances of plugin.
     80
    7481= 2.0.3 =
    7582* Fixed bug concerning the parameter "Exclude Title" of the plugin instance;
  • sidebartabs/trunk/sidebarTabs.php

    r200183 r214048  
    55Description: sidebarTabs allows you to easily widgets into Tabs
    66Author: Newton Horta
    7 Version: 2.0.3
     7Version: 2.1
    88Author URI: http://www.blogviche.com.br
    99
     
    4141        $options["fw"] = "normal";
    4242        $options["bvt"] = "0";
     43        $options["bht"] = "0";
     44        $options["margin_c"] = 'margin: 10px 0 10px 0';
    4345        update_option("sidebarTabs", $options);
    4446
     
    6062}
    6163
    62 function get_sidebarTabs($args) {
     64function getSidebarTabs($atts) {
     65    extract(shortcode_atts(array(
     66    "instance" => '',
     67    "before_title" => '',
     68    "after_title" => ''
     69    ), $atts));
     70    $args = array('widget_id' => 'sidebartabs-'.$instance,'before_title' => $before_title,'after_title' => $after_title);
     71    return get_sidebarTabs($args,1,1);
     72}
     73add_shortcode('sidebartabs', 'getSidebarTabs');
     74
     75function get_sidebarTabs($args, $dsb=0, $short_code=0) {
    6376    global $wp_registered_widgets, $wp_registered_sidebars, $sidebars_widgets, $i_widget;
    6477    $op = '';
    6578    $stab = get_option("sidebartabs_widget");
     79    if (!is_array($stab)) return;
    6680    $options = get_option("sidebarTabs");
    6781    $widget_options = get_option("widget_sidebarTabs");
    6882    $widget_id = split('-',$args['widget_id']);
    6983    $widget_id = $widget_id[1];
     84    if (!$widget_options[$widget_id]['display_sb'] && isset($widget_options[$widget_id]['display_sb']) && !$dsb) return;
    7085    $abas = $widget_options[$widget_id]['orderSelect'];
    7186    $layout_instance = $widget_options[$widget_id]['layout_instance'];
    7287    $effect = $widget_options[$widget_id]['effects'];
     88    $exclude = $widget_options[$widget_id]['exclude'];
     89    if (!$exclude && !is_admin()) $op .= $args['before_title'] . $widget_options[$widget_id]['title'] . $args['after_title'];
    7390
    7491    if (is_admin()) {
    7592        $class = 'title_sidebarTabs_admin';
    76         $op .= '<h2 class="'.$class.'">' . $widget_options[$widget_id]['title'] . '</h2>';
     93        $op .= '<h2 class="'.$class.'">' . $widget_options[$widget_id]['title'] . ' (Id => ' . $widget_id . ')</h2>';
    7794    }   
    7895
     
    105122                    $title_icons = '';
    106123                    if ($options['layout'] == 2 || $options['layout'] == 4) $title_icons = ' title="'.$widget['sidebartabname'].'"';
    107                     $op .= '        <li><a href="#tab'.$i.'" class="sb'.$i.'" id="sb'.$i.'"'. $title_icons.'>'.$widget['sidebartabname']."</a></li>\n";
     124                    $op .= '        <li><a href="#tab'.$aba.'" class="sb'.$aba.'" id="sb'.$aba.'"'. $title_icons.'>'.$widget['sidebartabname']."</a></li>\n";
    108125                }
    109126            }   
     
    177194        $op .= "   </div>\n";
    178195    }
    179     echo $op;
    180    
    181196    if ($effect == '') $effect = 'fade';
    182    
    183     get_scripts_sidebarTabs($widget_id,$layout_instance,$effect);
     197    $op .= get_scripts_sidebarTabs($widget_id,$layout_instance,$effect);
     198    if ($short_code) return $op;
     199    else echo $op;
    184200}
    185201
     
    247263        $layout_instance = esc_attr($instance['layout_instance']);
    248264        $effects = esc_attr($instance['effects']);
    249         if (!$exclude) echo $before_title . $title . $after_title;
     265        $display_sb = esc_attr($instance['display_sb']);
    250266        get_sidebarTabs($args);     
    251267    }
     
    262278        $instance['layout_instance'] = strip_tags($new_instance['layout_instance']);
    263279        $instance['effects'] = strip_tags($new_instance['effects']);
     280        $instance['display_sb'] = strip_tags($new_instance['display_sb']);
    264281        return $instance;
    265282    }
     
    274291        $layout_instance = esc_attr($instance['layout_instance']);
    275292        $effects = esc_attr($instance['effects']);
     293        $display_sb = esc_attr($instance['display_sb']);
    276294?>
    277295        <p>
     
    298316                    <option value="fade"<?php selected('fade', $effects); ?>><?php _e('fade', 'sidebartabs'); ?></option>
    299317                    <option value="slide"<?php selected('slide', $effects); ?>><?php _e('slide', 'sidebartabs'); ?></option>
     318                </select>
     319            </label>
     320        </p>
     321        <p>
     322            <label for="<?php echo $this->get_field_id('display_sb'); ?>"><?php _e('Display in Sidebar:', 'sidebartabs'); ?>
     323                <select name="<?php echo $this->get_field_name('display_sb'); ?>" id="<?php echo $this->get_field_id('display_sb'); ?>" class="widefat">
     324                    <option value="1"<?php selected('1', $display_sb); ?>><?php _e('Yes', 'sidebartabs'); ?></option>
     325                    <option value="0"<?php selected('0', $display_sb); ?>><?php _e('No', 'sidebartabs'); ?></option>
    300326                </select>
    301327            </label>
  • sidebartabs/trunk/sidebarTabs_admin.php

    r189024 r214048  
    227227       
    228228        case 'options':     
    229             if (isset($_POST['submit_sidebarTab'])) {      
     229            if (isset($_POST['submit_sidebarTab'])) {   
    230230                $options["active_font"] = $_POST['active_font'];
    231231                $options["active_bg"] = $_POST['active_bg'];
     
    250250                $options["fs"] = $_POST['fs'];
    251251                $options["ff"] = str_replace('"',"'",$_POST['ff']);
    252                 $options["bvt"] = str_replace('"',"'",$_POST['bvt']);
     252                $options["bvt"] = $_POST['bvt'];
     253                $options["bht"] = $_POST['bht'];
     254                $options["margin_c"] = $_POST['margin_c'];
    253255                update_option("sidebarTabs", $options);
    254256                $message_options = $save_options;   
     
    256258            }
    257259            $options=get_option("sidebarTabs");
     260            if (!$options["margin_c"]) $margin_c = 'margin: 10px 0 10px 0';
     261            else $margin_c = $options["margin_c"];
    258262            write_css_icons();
    259263?>     
     
    522526                    $sidebarTabs_status = is_active_widget( $widget['callback'], $widget['id']) ? '1' : '0';
    523527                    if ($sidebarTabs_status) {
    524                         get_sidebarTabs($args);
     528                        get_sidebarTabs($args,'1');
    525529                        $count_widgets++;
    526530                    }
  • sidebartabs/trunk/sidebarTabs_fixed.php

    r169703 r214048  
    99}
    1010$options=get_option("sidebarTabs");
     11if (!$options["margin_c"]) $margin_c = 'margin: 10px 0 10px 0';
     12else $margin_c = $options["margin_c"];
    1113
    1214?>
     
    172174                                    </div>
    173175                                    <div class="bvtd">
    174                                         <input type="radio" value="1" name="bvt" class="align" <?php if ("1" == $options["bvt"]) echo "checked=\"checked\""; ?> /> <?php _e('colors of tabs','sidebartabs'); ?>
     176                                        <input type="radio" value="1" name="bvt" class="align" <?php if ("1" == $options["bvt"]) echo "checked=\"checked\""; ?> /> <?php _e('gradient','sidebartabs'); ?>
     177                                    </div>
     178                                    <div class="bvtn">
     179                                        <input type="radio" value="2" name="bvt" class="align" <?php if ("2" == $options["bvt"]) echo "checked=\"checked\""; ?> /> <?php _e('normal','sidebartabs'); ?>
     180                                    </div>
     181                                </td>
     182                            </tr>   
     183                            <tr valign="top">
     184                                <th scope="row"><?php _e('Background of horizontal tabs ','sidebartabs'); ?></th>
     185                                <td scope="row">
     186                                    <div class="bvtd">
     187                                        <input type="radio" value="0" name="bht" class="align" <?php if ("0" == $options["bht"]) echo "checked=\"checked\""; ?> /> <?php _e('gradient','sidebartabs'); ?>
     188                                    </div>
     189                                    <div class="bvtn">
     190                                        <input type="radio" value="1" name="bht" class="align" <?php if ("1" == $options["bht"]) echo "checked=\"checked\""; ?> /> <?php _e('normal','sidebartabs'); ?>
    175191                                    </div>
    176192                                </td>
     
    180196                    </div> 
    181197                    <div class="stuffbox metabox-holder" style="padding-top:0;">
    182                         <h3><?php _e('Dimensions / Font of Tabs','sidebartabs'); ?></h3>
     198                        <h3><?php _e('Dimensions / Font of Tabs / CSS Margin Instance','sidebartabs'); ?></h3>
    183199                        <br class="clear" />
    184200                        <table class="form-table"> 
     
    214230                                    <input type="radio" value="px" name="unit" <?php if ("px" == $options["unit"]) echo "checked=\"checked\""; ?> /> px <small><?php _e('(fixed sidebar)','sidebartabs'); ?></small>&nbsp;&nbsp;
    215231                                    <input type="radio" value="p" name="unit" <?php if ("p" == $options["unit"]) echo "checked=\"checked\""; ?> /> % <small><?php _e('(fluid sidebar)','sidebartabs'); ?></small>
     232                                </td>
     233                            </tr>   
     234                            <tr valign="top">
     235                                <th scope="row"><?php _e('CSS Margin Instance','sidebartabs'); ?></th>
     236                                <td scope="row">
     237                                    <input type="text" id="margin_c" name="margin_c" size="40" value="<?php echo $margin_c ?>" /><br /> <small>(<?php echo _e('blank assumes the default margin of plugin','sidebartabs'); ?>)</small> 
    216238                                </td>
    217239                            </tr>   
  • sidebartabs/trunk/sidebarTabs_scrollable.php

    r189024 r214048  
    99}
    1010$options=get_option("sidebarTabs");
     11if (!$options["margin_c"]) $margin_c = 'margin: 10px 0 10px 0';
     12else $margin_c = $options["margin_c"];
    1113?>
    1214            <div id="with_icons">   
     
    5860                </div> 
    5961                <div class="stuffbox metabox-holder" style="padding-top:0;">
    60                     <h3><?php _e('Dimensions','sidebartabs'); ?></h3>
     62                    <h3><?php _e('Dimensions / CSS Margin Instance','sidebartabs'); ?></h3>
    6163                    <br class="clear" />
    6264                    <table class="form-table"> 
     
    8688                            </td>
    8789                        </tr>   
     90                        <tr valign="top">
     91                            <th scope="row"><?php _e('CSS Margin Instance','sidebartabs'); ?></th>
     92                            <td scope="row">
     93                                <input type="text" id="margin_c" name="margin_c" size="40" value="<?php echo $margin_c ?>" /><br /> <small>(<?php echo _e('blank assumes the default margin of plugin','sidebartabs'); ?>)</small>     
     94                            </td>
     95                        </tr>   
    8896                    </table>
    8997                    <br />
     
    101109                    <input type="hidden" name="ff" value="<?php echo stripslashes($options["ff"]) ?>" />                   
    102110                    <input type="hidden" name="bvt" value="<?php echo $options["bvt"] ?>" />                   
     111                    <input type="hidden" name="bht" value="<?php echo $options["bht"] ?>" />                   
    103112                </div> 
    104113                <div class="submit" style="clear:both;">
  • sidebartabs/trunk/styleSidebar.php

    r199929 r214048  
    3131
    3232div.sb_container {
    33 /*  margin: 10px 0 !important; */
    34     width: <?php echo $opsbt["width_sidebar"].$unit; ?>
     33    width: <?php echo $opsbt["width_sidebar"].$unit; ?>;
     34<?php if ($opsbt['margin_c'] != '') {
     35    $margin_c = str_replace(';','',$opsbt['margin_c']);
     36    echo $margin_c . ' !important;';
     37}   
     38?> 
    3539}   
    3640div.sidebarTabs_panes {
     
    103107    color:<?php echo $opsbt["inactive_font"]; ?> !important;
    104108    margin-right: 2px !important;
     109<?php if ($opsbt["bht"]) { ?>   
     110    background: <?php echo $opsbt["inactive_bg"]; ?>;
     111<?php } else { ?>   
    105112    background: <?php echo $opsbt["inactive_bg"]; ?> url('images/h30.png') repeat-x 0 0;
     113<?php } ?> 
    106114    position:relative;
    107115    outline: none;
     
    109117    height: <?php echo $opsbt["height_tabs"]; ?>px  !important;
    110118    line-height: <?php echo $opsbt["height_tabs"]; ?>px !important;
    111     border: 1px solid <?php echo $opsbt["line"]; ?>
     119    border: 1px solid <?php echo $opsbt["line"]; ?>;
    112120<?php } else { ?>
    113121    height: <?php echo $opsbt["height_icons"]; ?>px  !important;   
     
    227235div.sb_container a.next {
    228236    margin-left: 3px;
     237    background: none !important;
    229238}   
    230239<?php } ?>
     
    247256    border:1px solid <?php echo $opsbt["line"]; ?>;
    248257<?php } ?>
    249     margin-bottom: 10px !important;
    250258<?php if ($theme_sb == "default") { ?>
    251259    float: left;
    252260<?php } ?>
     261<?php if ($opsbt['margin_c'] != '') {
     262    $margin_c = str_replace(';','',$opsbt['margin_c']);
     263    echo $margin_c . ' !important;';
     264} else { ?>
     265    margin-bottom: 10px;
     266<?php
     267}       
     268?> 
    253269}
    254270
    255271/* accordion header */
    256272.accordion h4.accordion_h4 {
    257 <?php if ($opsbt['bvt']) { ?>   
     273<?php if ($opsbt['bvt'] == 1) { ?> 
    258274    background: <?php echo $opsbt["inactive_bg"]; ?> url('images/h30.png') repeat-x 0 0 !important;
     275<?php } else if ($opsbt['bvt'] == 0) { ?>   
     276    background: #ddd url('images/vertical_bg.png') repeat-x left top !important;
    259277<?php } else { ?>   
    260     background: #ddd url('images/vertical_bg.png') repeat-x left top !important;
    261 <?php } ?> 
     278    background: <?php echo $opsbt["inactive_bg"]; ?> !important;
     279<?php } ?>
    262280    margin:0 !important;
    263281    padding: 0 0 0 10px !important;
  • sidebartabs/trunk/styleSidebar_admin.php

    r189024 r214048  
    138138div.bvtp { float: left; width: 100px; height: 30px; margin: 0 0.7em 0.7em 0; background: url(images/vertical_bg.png) repeat-x; }
    139139div.bvtd { float: left; width: 100px; height: 30px; margin: 0 0.7em 0.7em 0; background: <?php echo $opsbt["active_bg"]; ?>  url(images/h30.png) repeat-x; color: <?php echo $opsbt["active_font"]; ?> ;}
     140div.bvtn { float: left; width: 100px; height: 30px; margin: 0 0.7em 0.7em 0; background-color: <?php echo $opsbt["active_bg"]; ?>; color: <?php echo $opsbt["active_font"]; ?>;}
    140141.icon-sidebarTabs {
    141142    background: transparent url(images/sidebarTabs.png) no-repeat;
Note: See TracChangeset for help on using the changeset viewer.