diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-01-29 22:17:29 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-01-29 22:17:29 +0000 |
| commit | 39533cec38e81ead0735ddbf90a85e580bf1b34c (patch) | |
| tree | 2313dd08ab97abbfa4d2c50a97f45eb409d137e6 /plugins | |
| parent | 82c819393950660c08a42ac7d4f10e5f4adf05f3 (diff) | |
| download | nexus-39533cec38e81ead0735ddbf90a85e580bf1b34c.tar.gz nexus-39533cec38e81ead0735ddbf90a85e580bf1b34c.tar.bz2 nexus-39533cec38e81ead0735ddbf90a85e580bf1b34c.zip | |
apply .selected class to surrounding <li> instead of <a> - this allows for better styling options and opens doors to funky menu effects
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/menu.suckerfish.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/menu.suckerfish.php b/plugins/menu.suckerfish.php index 655e198..a9b63d9 100644 --- a/plugins/menu.suckerfish.php +++ b/plugins/menu.suckerfish.php @@ -5,7 +5,7 @@ * * @abstract creates a simple <ul> and <li> based list of items * @author xing@synapse.plus.com - * @version $Revision: 1.9 $ + * @version $Revision: 1.10 $ * @package nexus * @subpackage plugins */ @@ -96,7 +96,11 @@ function write_suckerfish_cache( $pMenuHash ) { $permCloseIds[] = $item['item_id']; } } - $data .= '<li>'; + if( $item['rsrc_type'] == 'content_id' ) { + $data .= '<li{if $gContent->mContentId == '.$item['rsrc'].'} class="selected"{/if}>'; + } else { + $data .= '<li>'; + } $gBitSmarty->assign( 'item', $item ); $data .= $gBitSmarty->fetch( NEXUS_PKG_PATH.'templates/'.NEXUS_PLUGIN_GUID_SUCKERFISH.'/item.tpl' ); } |
