if (isset($this->params['prefix'])) {
if ($this->params['prefix'] == Configure::read('Routing.admin')) {
$this->isAdmin = true;
+ $this->layout = 'admin_'.$this->layout;
} elseif ($this->params['prefix'] == 'm') {
$this->isMobile = true;
}
$this->redirect($pc_url);
}
-
- // 管理画面はテンプレート変更
- if ($this->isAdmin) {
- $this->layout = 'admin_'.$this->layout;
- }
}
function beforeRender()
// キャラデータ取得
$orig_character = $this->Character->find('first', array(
'conditions' => $conditions,
+ 'order' => array('Character.modified' => 'desc'),
'contain' => array(
'User',
'System' => array(
<th><?php echo $paginator->sort('id');?></th>
<th><?php echo $paginator->sort('name');?></th>
<th><?php echo $paginator->sort('system_id');?></th>
+ <th><?php echo $paginator->sort('modified');?></th>
+ <th><?php echo $paginator->sort('user_id');?></th>
<th><?php echo $paginator->sort('sort_order');?></th>
<th><?php echo $paginator->sort('status');?></th>
<th><?php echo $paginator->sort('public_flag');?></th>
- <th><?php echo $paginator->sort('user_id');?></th>
- <th><?php echo $paginator->sort('notes');?></th>
- <th><?php echo $paginator->sort('created');?></th>
- <th><?php echo $paginator->sort('modified');?></th>
- <th><?php echo $paginator->sort('deleted_date');?></th>
</th>
</tr>
<?php
<?php echo $html->link($character['System']['name'], array('controller' => 'systems', 'action' => 'view', $character['System']['id'])); ?>
</td>
<td>
- <?php echo $character['Character']['sort_order']; ?>
-</td>
-<td>
- <?php echo $select->get_i18n_status($character['Character']['status'], $status); ?>
-</td>
-<td>
- <?php echo $select->get_i18n_public_flag($character['Character']['public_flag'], $public_flags) ?>
+ <?php echo $character['Character']['modified']; ?>
</td>
<td>
<?php echo $html->link($character['User']['name'], array('controller' => 'users', 'action' => 'view', $character['User']['id']), array(), false, false); ?>
</td>
<td>
- <?php echo $character['Character']['notes']; ?>
-</td>
-<td>
- <?php echo $character['Character']['created']; ?>
+ <?php echo $character['Character']['sort_order']; ?>
</td>
<td>
- <?php echo $character['Character']['modified']; ?>
+ <?php echo $select->get_i18n_status($character['Character']['status'], $status); ?>
</td>
<td>
- <?php echo $character['Character']['deleted_date']; ?>
+ <?php echo $select->get_i18n_public_flag($character['Character']['public_flag'], $public_flags) ?>
</td>
</tr>
<?php endforeach; ?>
| <?php echo $paginator->numbers();?>
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
-
-<div class="actions">
-<ul>
-<li><?php echo $html->link(__('List Systems', true), array('controller' => 'systems', 'action' => 'index')); ?> </li>
-</ul>
-</div>
)
);
?>
-
-<div class="actions">
-<ul>
-<li><?php echo $html->link(__('List Characters', true), array('action' => 'index')); ?> </li>
-<li><?php echo $html->link(__('List Systems', true), array('controller' => 'systems', 'action' => 'index')); ?> </li>
-</ul>
-</div>
--- /dev/null
+<ul>
+<li><?php echo $html->link(__('List of Characters', true), '/admin/characters/index'); ?></li>
+</ul>
--- /dev/null
+<ul>
+<li><?php echo $html->link(__('List of Systems', true), '/admin/systems/index'); ?></li>
+<li><?php echo $html->link(__('Add New System', true), '/admin/systems/add'); ?></li>
+</ul>
--- /dev/null
+<ul>
+<li><?php echo $html->link(__('List of Users', true), '/admin/users/listview'); ?></li>
+<li><?php echo $html->link(__('Add New User', true), '/admin/users/add'); ?></li>
+</ul>
--- /dev/null
+<ul>
+ <li><?php echo $html->link(__('Edit Your Infomation', true), array('action' => 'edit', $user['User']['id'])); ?> </li>
+ <li><?php echo $html->link(__('Change Password', true), array('action' => 'change_password', $user['User']['id'])); ?> </li>
+ <li><?php echo $html->link(__('Delete Your Account', true), array('action' => 'delete', $user['User']['id'])); ?> </li>
+</ul>
echo '<table id="'.$tableId.'">';
$this->disp_th4profile_tables($profile['ProfileTable'], $tableId);
echo '<tbody>';
- echo "<BR><BR>";
if (!empty($profile['CharactersHasProfile'])) {
$this->disp_form_td4characters_has_profiles($profile['CharactersHasProfile']);
}
// Javascript
// jQuery
echo $javascript->link('jquery-1.3.2.min.js');
+ // droppy
+ echo $javascript->link('jquery.droppy.js');
// 独自ライブラリ
- echo $javascript->link('common_100110.js');
// readyイベント
?>
<script type="text/javascript">
$(document).ready(function(){
- //サブメニューを表示
- toggleSubMenu();
+ //サブメニューを表示
+ $('#nav').droppy({speed: 0});
});
</script>
</ul>
</div>
-<div id="subNavi">
-</div>
-
<div class="mainNavi">
-<ul>
-<li><?php echo $html->link(__('Home', true), '/admin/users/index'); ?>
+<ul id="nav">
+<li><?php echo $html->link(__('Home', true), array('controller' => 'users', 'action' => 'index')); ?>
+
<li>
-<?php echo $html->link(__('Users', true), '/admin/users/index'); ?>
- <div class="subNavi">
-<ul>
-<li><?php echo $html->link(__('List of Users', true), '/admin/users/listview'); ?></li>
-<li><?php echo $html->link(__('Add New User', true), '/admin/users/add'); ?></li>
-</ul>
- </div>
+<?php echo $html->link(__('Users', true), array('controller' => 'users', 'action' => 'index')); ?>
+<?php
+echo $this->renderElement('admin_user_sidenav', array(
+ ));
+?>
</li>
-<li><?php echo $html->link(__('Members', true), '/users/index'); ?></li>
+<li>
+<?php echo $html->link(__('Systems', true), array('controller' => 'systems', 'action' => 'index')); ?>
+<?php
+echo $this->renderElement('admin_system_sidenav', array(
+ ));
+?>
+</li>
-<li><?php echo $html->link(__('Logout', true), '/users/logout'); ?></li>
+<li>
+<?php echo $html->link(__('Characters', true), array('controller' => 'characters', 'action' => 'index')); ?>
+<?php
+echo $this->renderElement('admin_character_sidenav', array(
+ ));
+?>
+</li>
+
+
+<li><?php echo $html->link(__('Members', true), array('admin' => false, 'controller' => 'users', 'action' => 'index')); ?></li>
+
+<li><?php echo $html->link(__('Logout', true), array('admin' => false, 'controller' => 'users', 'action' => 'logout')); ?></li>
</ul>
</div>
+
</div>
+
<div id="content">
+
+<div id="subNavi">
+<?php
+switch ($this->params["controller"]) {
+ case 'users':
+ echo $this->renderElement('admin_user_sidenav', array());
+ break;
+ case 'systems':
+ case 'profiles':
+ case 'profile_selects':
+ case 'profile_tables':
+ echo $this->renderElement('admin_system_sidenav', array());
+ break;
+ case 'characters':
+ echo $this->renderElement('admin_character_sidenav', array());
+ break;
+}
+?>
+</div>
+
+<?php $session->flash('auth'); ?>
<?php $session->flash(); ?>
-<?php if ($session->check('Message.auth')): ?>
-<div><?php $session->flash('auth'); ?></div>
-<?php endif; ?>
+
<?php echo $content_for_layout; ?>
</div>
<div id="footer">
// Javascript
// jQuery
echo $javascript->link('jquery-1.3.2.min.js');
+ // droppy
+ echo $javascript->link('jquery.droppy.js');
// 独自ライブラリ
- echo $javascript->link('common_100110.js');
// readyイベント
?>
<script type="text/javascript">
$(document).ready(function(){
- //サブメニューを表示
- toggleSubMenu();
+ //サブメニューを表示
+ $('#nav').droppy();
});
</script>
</ul>
</div>
-<div id="subNavi">
-</div>
-
<div class="mainNavi">
-<ul>
+<ul id="nav">
<?php if ($user['User']['id']): ?>
- <li><?php echo $html->link(__('Home', true), '/users/index'); ?>
- <li><?php echo $html->link(__('Users', true), '/users/listview'); ?></li>
+ <li><?php echo $html->link(__('Home', true), array('controller' => 'users', 'action' => 'index')); ?>
- <li><?php echo $html->link(__('Configuration', true), array('action' => 'edit', $user['User']['id'])); ?>
- <div class="subNavi">
-<ul>
- <li><?php echo $html->link(__('Edit Your Infomation', true), array('action' => 'edit', $user['User']['id'])); ?> </li>
- <li><?php echo $html->link(__('Change Password', true), array('action' => 'change_password', $user['User']['id'])); ?> </li>
- <li><?php echo $html->link(__('Delete Your Account', true), array('action' => 'delete', $user['User']['id'])); ?> </li>
-</ul>
- </div>
+ <li><?php echo $html->link(__('Users', true), array('controller' => 'users', 'action' => 'listview')); ?></li>
+<?php endif; ?>
+
+ <li><?php echo $html->link(__('Systems', true), array('controller' => 'systems', 'action' => 'index')); ?></li>
+
+ <li><?php echo $html->link(__('Characters', true), array('controller' => 'characters', 'action' => 'index')); ?></li>
+
+
+<?php if ($user['User']['id']): ?>
+ <li><?php echo $html->link(__('Configuration', true), array('controller' => 'users', 'action' => 'edit', $user['User']['id'])); ?>
<?php endif; ?>
<?php if ($isAdministrator): ?>
-<li><?php echo $html->link(__('Administration', true), '/admin/users/index'); ?></li>
+<li><?php echo $html->link(__('Administration', true), array('admin' => true, 'controller' => 'users', 'action' => 'index')); ?></li>
<?php endif; ?>
<?php if ($user['User']['id']): ?>
</div>
</div>
<div id="content">
+
+<div id="subNavi">
+<?php
+if ($this->params["controller"] == 'users') {
+ switch ($this->params["action"]) {
+ case 'edit':
+ case 'change_password':
+ case 'delete':
+ echo $this->renderElement('config_sidenav', array());
+ break;
+ }
+}
+?>
+</div>
+
+<?php $session->flash('auth'); ?>
<?php $session->flash(); ?>
-<?php if ($session->check('Message.auth')): ?>
-<div><?php $session->flash('auth'); ?></div>
-<?php endif; ?>
<?php echo $content_for_layout; ?>
</div>
<div id="footer">
</fieldset>
<?php echo $form->end('Submit');?>
</div>
-<div class="actions">
-<ul>
-<li><?php echo $html->link(__('List ProfileSelects', true), array('action' => 'admin_listview', $profile['Profile']['id'])); ?> </li>
-<li><?php echo $html->link(__('List Profiles', true), array('controller' => 'systems', 'action' => 'admin_view', $profile['System']['id'])); ?> </li>
-</ul>
+
+<div class="backButton">
+<?php
+echo $form->create('', array('url' => array(
+ 'action' => 'admin_listview', $profile['Profile']['id']),
+ 'type' => 'GET',
+ 'id' => 'CancelButton'
+));
+echo $form->end('Cancel');
+?>
</div>
</fieldset>
<?php echo $form->end('Submit');?>
</div>
-<div class="actions">
-<ul>
-<li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('ProfileSelect.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('ProfileSelect.id'))); ?></li>
-<li><?php echo $html->link(__('List ProfileSelects', true), array('action' => 'admin_listview', $profileSelect['Profile']['id'])); ?> </li>
-<li><?php echo $html->link(__('List Profiles', true), array('controller' => 'systems', 'action' => 'admin_view', $profileSelect['Profile']['system_id'])); ?> </li>
-</ul>
+
+<div class="backButton">
+<?php
+echo $form->create('', array(
+ 'url' => '/admin/profile_selects/listview/'. $this->data['ProfileSelect']['profile_id'],
+ 'type' => 'GET',
+ 'id' => 'CancelButton'
+));
+echo $form->end('Cancel');
+?>
</div>
</p>
</div>
+
+<hr>
+<div class="back">
+<?php
+echo $form->create(
+ '', array(
+ 'url' => array(
+ 'controller' => 'systems', 'action' => 'admin_view', $profile['System']['id']),
+ 'type' => 'GET',
+ 'id' => 'CancelButton'
+));
+echo $form->end('Back');
+?>
+</div>
<?php echo $form->end('Submit');?>
</div>
-<div class="actions">
-<ul>
-<li><?php echo $html->link(__('List ProfileTables', true), array('action' => 'admin_listview', $profile['Profile']['id'])); ?> </li>
-<li><?php echo $html->link(__('List Profiles', true), array('controller' => 'systems', 'action' => 'admin_view', $profile['System']['id'])); ?> </li>
-</ul>
+
+<div class="backButton">
+<?php
+echo $form->create('', array('url' => array(
+ 'action' => 'admin_listview', $profile['Profile']['id']),
+ 'type' => 'GET',
+ 'id' => 'CancelButton'
+));
+echo $form->end('Cancel');
+?>
</div>
<?php echo $form->end('Submit');?>
</div>
-<div class="actions">
-<ul>
-<li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('ProfileTable.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('ProfileTable.id'))); ?></li>
-<li><?php echo $html->link(__('List ProfileTables', true), array('action' => 'index'));?></li>
-<li><?php echo $html->link(__('List Profiles', true), array('controller' => 'profiles', 'action' => 'index')); ?> </li>
-<li><?php echo $html->link(__('New Profile', true), array('controller' => 'profiles', 'action' => 'add')); ?> </li>
-</ul>
+<div class="backButton">
+<?php
+echo $form->create('', array(
+ 'url' => '/admin/profile_tables/listview/'. $this->data['ProfileTable']['profile_id'],
+ 'type' => 'GET',
+ 'id' => 'CancelButton'
+));
+echo $form->end('Cancel');
+?>
</div>
</p>
</div>
+
+<hr>
+<div class="back">
+<?php
+echo $form->create(
+ '', array(
+ 'url' => array(
+ 'controller' => 'systems', 'action' => 'admin_view', $profile['System']['id']),
+ 'type' => 'GET',
+ 'id' => 'CancelButton'
+));
+echo $form->end('Back');
+?>
+</div>
<div class="backButton">
<?php
echo $form->create(
- '',
- array('url' => array('controller' => 'systems', 'action' => 'admin_index'),
+ '', array(
+ 'url' => array(
+ 'controller' => 'systems', 'action' => 'admin_view', $System['System']['id']),
'type' => 'GET',
'id' => 'CancelButton'
));
echo $form->end('Cancel');
?>
</div>
-
-<div class="actions">
- <ul>
- <li><?php echo $html->link(__('List Profiles', true), array('controller' => 'systems', 'action' => 'admin_view', $System['System']['id']));?></li>
- </ul>
-</div>
<div class="backButton">
<?php
-echo $form->create('', array('url' => array(
- 'controller' => 'systems', 'action' => 'admin_view', $this->data['System']['id']),
+echo $form->create(
+ '',
+ array(
+ 'url' => '/admin/systems/view/'.$this->data['System']['id'],
'type' => 'GET',
'id' => 'CancelButton'
));
?>
</div>
-<div class="actions">
- <ul>
- <li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('Profile.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Profile.id'))); ?></li>
- <li><?php echo $html->link(__('List Profiles', true), array('controller' => 'systems', 'action' => 'admin_view', $this->data['System']['id']));?></li>
- </ul>
-</div>
?>
</div>
-<div class="actions">
-<ul>
-<li><?php echo $html->link(__('List Systems', true), array('action' => 'index'));?></li>
-<li><?php echo $html->link(__('List Characters', true), array('controller' => 'characters', 'action' => 'index')); ?> </li>
-<li><?php echo $html->link(__('New Character', true), array('controller' => 'characters', 'action' => 'add')); ?> </li>
-<li><?php echo $html->link(__('List Profiles', true), array('controller' => 'profiles', 'action' => 'index')); ?> </li>
-<li><?php echo $html->link(__('New Profile', true), array('controller' => 'profiles', 'action' => 'add')); ?> </li>
-</ul>
-</div>
?>
</div>
-<div class="actions">
-<ul>
-<li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('System.id')), null, sprintf(__('Are you sure you want to delete %s?', true), $form->value('System.name'))); ?></li>
-<li><?php echo $html->link(__('List Systems', true), array('action' => 'index'));?></li>
-</ul>
-</div>
| <?php echo $paginator->numbers();?>
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
-<div class="actions">
-<ul>
-<li><?php echo $html->link(__('New System', true), array('action' => 'add')); ?></li>
-<li><?php echo $html->link(__('List Characters', true), array('controller' => 'characters', 'action' => 'index')); ?> </li>
-<li><?php echo $html->link(__('List Profiles', true), array('controller' => 'profiles', 'action' => 'index')); ?> </li>
-<li><?php echo $html->link(__('New Profile', true), array('controller' => 'profiles', 'action' => 'add')); ?> </li>
-</ul>
-</div>
<ul>
<li><?php echo $html->link(__('Edit System', true), array('action' => 'edit', $system['System']['id'])); ?> </li>
<li><?php echo $html->link(__('Delete System', true), array('action' => 'delete', $system['System']['id']), null, sprintf(__('Are you sure you want to delete %s?', true), $system['System']['name'])); ?> </li>
-<li><?php echo $html->link(__('List Systems', true), array('action' => 'index')); ?> </li>
</ul>
</div>
</dd>
</dl>
-</div>
<?php
echo $token->create();
<div class="backButton">
<?php
-echo $form->create('', array('url' => array(
+ echo $form->create('', array('url' => array(
'controller' => 'users', 'action' => 'admin_view', $this->data['User']['id']),
- 'type' => 'GET',
- 'id' => 'CancelButton'
-));
-echo $form->end('Cancel');
+ 'type' => 'GET',
+ 'id' => 'CancelButton'
+ ));
+ echo $form->end('Cancel');
?>
</div>
-
-<div class="actions">
-<ul>
-<li><?php echo $html->link(__('Back', true), array('action' => 'view', $target_user['User']['id'])); ?> </li>
-</ul>
-</div>
<div class="users listview">
-<h2><?php __('Users');?></h2>
-
-<h4><?php //todo:toggle echo $html->link(__('Search Users', true)); ?></h4>
<fieldset class="searchFieldset" id="adminSearchFieldset">
<legend><?php __('Search User');?></legend>
<div class="search form">
</div>
<?php $paginator->options(array('url' => $searchword)); ?>
</fieldset>
-<br>
+<h2><?php __('Users List'); ?></h2>
+<p>
<div class="paging">
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
| <?php echo $paginator->numbers();?>
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
+</p>
+
+<p>
<table>
<tr>
<th><?php echo $paginator->sort('id');?></th>
| <?php echo $paginator->numbers();?>
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
+</p>
</dd>
</dl>
</div>
+
<div class="actions">
<ul>
<li><?php echo $html->link(__('Change Password', true), array('action' => 'change_password', $target_user['User']['id'])); ?> </li>
.mainNavi {
background-color: #616161;
- font-size: 120%;
+ font-size: 110%;
height: 27px;
padding-left: 5px;
clear: both;
}
-.mainNavi ul {
+#nav {
+ position: relative;
+ display: block;
margin: 0;
+ padding: 0;
+ background-color: transparent;
+ height: 27px;
}
-.mainNavi ul li:hover {
+#nav li {
+ position: relative;
+ display: block;
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ float: left;
}
-
-.mainNavi a {
+#nav *:hover {
+ background-color: none;
+}
+#nav li a {
display: block;
color: #fff;
padding: 5px;
}
-.mainNavi a:visited {
+#nav li a:visited {
color: #fff;
}
-.mainNavi a:hover {
+#nav li a:hover {
color: #FFFF44;
}
-
-.subNavi {
+#nav ul {
+ position: absolute;
display: none;
+ margin: 0;
+ padding: 0;
+ width: 145px;
+ top: 25px;
+}
+* html #nav ul { line-height: 0; } /* IE6 "fix" */
+#nav ul a { zoom: 1; } /* IE6/7 fix */
+#nav ul li {
+ float: none;
}
+#nav ul ul {
+ top: 0;
+ left: 146px;
+ font-size: 100%;
+}
+
+#nav ul li a {
+ border-right: 2px ridge #eee;
+ border-left: 2px ridge #eee;
+ background-color: #222;
+}
+#nav ul a.hover {
+ background-color: #222;
+}
+#nav ul a {
+ border-bottom: 2px groove #eee;
+ border-right: none;
+}
+* html #nav ul li { margin-bottom: -3px; } /* IE6ハック */
+*:first-child+html #nav ul li { margin-bottom: -4px; }/*IE7ハック */
+
#subNavi {
- background-color: transparent;
+ background-color: #FFFFFF;
color: #333333;
- font-size: 110%;
+ font-size: 90%;
width: 100%;
height: 26px;
- padding-left: 5px;
clear: both;
}
#subNavi ul {
}
#subNavi ul li {
- background-color: #cccccc;
- color: #333333;
- padding: 5px 8px;
-}
-#subNavi ul li:hover {
- background-color: #eeeeee;
- color: #333333;
- text-decoration: none;
+ padding-right: 5px;
}
#subNavi ul li a {
- color: #333333;
+ color: #003399;
}
#subNavi ul li a:visited {
- color: #333333;
+ color: #003399;
}
#subNavi ul li a:hover {
- background-color: #eeeeee;
- color: #333333;
- text-decoration: none;
+ color: #0033cc;
+ text-decoration: underline;
}
#content {
}
fieldset {
border: 1px solid #ccc;
- margin-top: 30px;
padding: 16px 20px;
}
fieldset legend {
+++ /dev/null
-
-/* ナビ */
-//サブメニューを表示
-function toggleSubMenu() {
- $(".mainNavi ul li").hover(function() {
- var subMenu = $(this).find("div").html();
-
- $('#subNavi').html(subMenu);
- //サブメニュー隠す
- $('#subNavi').hover(function() {
- }, function() {
- $('#subNavi').html('');
- });
- $('#mainNavi').hover(function() {
- $('#subNavi').html('');
- });
- $('#content').hover(function() {
- $('#subNavi').html('');
- });
- });
-}
-
--- /dev/null
+/*
+ * Droppy 0.1.2
+ * (c) 2008 Jason Frame (jason@onehackoranother.com)
+ */
+(function($) {
+
+ $.fn.droppy = function(options) {
+
+ options = $.extend({speed: 250, className: 'droppy'}, options || {});
+
+ this.each(function() {
+
+ var root = this, zIndex = 1000;
+
+ $(root).addClass(options.className);
+ $(root).find('li:has(> ul) > a').addClass('has-subnav');
+
+ function getSubnav(ele) {
+ if (ele.nodeName.toLowerCase() == 'li') {
+ var subnav = $('> ul', ele);
+ return subnav.length ? subnav[0] : null;
+ } else {
+ return ele;
+ }
+ };
+
+ function getActuator(ele) {
+ if (ele.nodeName.toLowerCase() == 'ul') {
+ return $(ele).parents('li')[0];
+ } else {
+ return ele;
+ }
+ };
+
+ function hide() {
+ var subnav = getSubnav(this);
+ if (!subnav) return;
+ $.data(subnav, 'cancelHide', false);
+ setTimeout(function() {
+ if (!$.data(subnav, 'cancelHide')) {
+ $(subnav).slideUp(options.speed);
+ }
+ }, 500);
+ };
+
+ function show() {
+ var subnav = getSubnav(this);
+ if (!subnav) return;
+ $.data(subnav, 'cancelHide', true);
+ $(subnav).css({zIndex: zIndex++}).slideDown(options.speed);
+ if (this.nodeName.toLowerCase() == 'ul') {
+ var li = getActuator(this);
+ $(li).addClass('hover');
+ $('> a', li).addClass('hover');
+ }
+ };
+
+ if (typeof $.fn.hoverIntent == 'function') {
+ $('ul, li', this).hoverIntent($.extend({
+ sensitivity: 2, interval: 50, timeout: 100
+ }, options.hoverIntent || {}, {over: show, out: hide}));
+ } else {
+ $('ul, li', this).hover(show, hide);
+ }
+
+ $('li', this).hover(
+ function() { $(this).addClass('hover'); $('> a', this).addClass('hover'); },
+ function() { $(this).removeClass('hover'); $('> a', this).removeClass('hover'); }
+ );
+
+ });
+
+ };
+
+})(jQuery);