|
Revision 4565, 0.7 kB
(checked in by davedash, 5 years ago)
|
sfYUINavigationTabsPlugin: cleaned up documentation by adding examples, added some more options to the tab_item()
|
| Line | |
|---|
| 1 |
This plugin will create some nice navigation tabs based on: |
|---|
| 2 |
|
|---|
| 3 |
http://developer.yahoo.com/ypatterns/examples/tabs.html |
|---|
| 4 |
|
|---|
| 5 |
These are completely customizable via CSS. |
|---|
| 6 |
|
|---|
| 7 |
== Installation == |
|---|
| 8 |
|
|---|
| 9 |
Make a symlink in web/: |
|---|
| 10 |
|
|---|
| 11 |
{{{ |
|---|
| 12 |
|
|---|
| 13 |
ln -s ../plugins/sfYUINavigationTabsPlugin/web/ sfYUINavigationTabsPlugin |
|---|
| 14 |
|
|---|
| 15 |
}}} |
|---|
| 16 |
|
|---|
| 17 |
== Example == |
|---|
| 18 |
|
|---|
| 19 |
{{{ |
|---|
| 20 |
<?php use_helper('sfYUINavigationTabs');?> |
|---|
| 21 |
|
|---|
| 22 |
<?php echo start_tabs() ?> |
|---|
| 23 |
<div class="hd"> |
|---|
| 24 |
<ul> |
|---|
| 25 |
<?php echo tab_item('401K', '@401k') ?> |
|---|
| 26 |
|
|---|
| 27 |
<?php echo tab_item('Peer', 'profile/something') ?> |
|---|
| 28 |
</ul> |
|---|
| 29 |
</div> |
|---|
| 30 |
<?php echo end_tabs() ?> |
|---|
| 31 |
}}} |
|---|
| 32 |
|
|---|
| 33 |
You can also specify certain tabs to be on if the current module matches: |
|---|
| 34 |
|
|---|
| 35 |
{{{ |
|---|
| 36 |
|
|---|
| 37 |
<?php echo tab_item('Peer', 'profile/something', 'module=profile') ?> |
|---|
| 38 |
|
|---|
| 39 |
}}} |
|---|