- Cambios
git-svn-id: https://192.168.0.254/svn/Proyectos.OriginalHouse_Web/trunk@14 54e8636e-a86c-764f-903d-b964358a1ae2
@ -1,59 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
Plugin Name: jQuery Vertical Accordion Menu
|
||||
Plugin URI: http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/
|
||||
Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, accordion
|
||||
Description: Creates a widget, which allows you to create vertical accordion menus from any Wordpress custom menu using jQuery. Features include - handles multiple levels, saved state using cookies and option of selecting "click" or "hover" events for triggering the menu.
|
||||
Author: Lee Chestnutt
|
||||
Version: 2.6
|
||||
Author URI: http://www.designchemical.com
|
||||
*/
|
||||
|
||||
global $registered_skins;
|
||||
|
||||
class dc_jqaccordion {
|
||||
|
||||
function dc_jqaccordion(){
|
||||
global $registered_skins;
|
||||
|
||||
if(!is_admin()){
|
||||
// Header styles
|
||||
add_action( 'wp_head', array('dc_jqaccordion', 'header') );
|
||||
|
||||
// Scripts
|
||||
wp_enqueue_script( 'jquery' );
|
||||
wp_enqueue_script( 'jqueryhoverintent', dc_jqaccordion::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );
|
||||
wp_enqueue_script( 'jquerycookie', dc_jqaccordion::get_plugin_directory() . '/js/jquery.cookie.js', array('jquery') );
|
||||
wp_enqueue_script( 'dcjqaccordion', dc_jqaccordion::get_plugin_directory() . '/js/jquery.dcjqaccordion.2.8.js', array('jquery') );
|
||||
}
|
||||
add_action( 'wp_footer', array('dc_jqaccordion', 'footer') );
|
||||
|
||||
$registered_skins = array();
|
||||
}
|
||||
|
||||
function header(){
|
||||
//echo "\n\t";
|
||||
}
|
||||
|
||||
function footer(){
|
||||
//echo "\n\t";
|
||||
}
|
||||
|
||||
function options(){}
|
||||
|
||||
function get_plugin_directory(){
|
||||
return WP_PLUGIN_URL . '/jquery-vertical-accordion-menu';
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Include the widget
|
||||
include_once('dcwp_jquery_accordion_widget.php');
|
||||
|
||||
// Initialize the plugin.
|
||||
$dcjqaccordion = new dc_jqaccordion();
|
||||
|
||||
// Register the widget
|
||||
add_action('widgets_init', create_function('', 'return register_widget("dc_jqaccordion_widget");'));
|
||||
|
||||
?>
|
||||
@ -1,321 +0,0 @@
|
||||
<?php
|
||||
|
||||
class dc_jqaccordion_widget extends WP_Widget {
|
||||
/** constructor */
|
||||
function dc_jqaccordion_widget() {
|
||||
|
||||
$name = 'jQuery Accordion Menu';
|
||||
$desc = 'Vertical Accordion From Custom Menus';
|
||||
$id_base = 'dc_jqaccordion_widget';
|
||||
$widget_base = 'dc_jqaccordion_widget_item';
|
||||
$css_class = '';
|
||||
$alt_option = 'widget_dcjq_accordion_navigation';
|
||||
|
||||
$widget_ops = array(
|
||||
'classname' => $css_class,
|
||||
'description' => __( $desc, 'dcjq-accordion' ),
|
||||
);
|
||||
parent::WP_Widget( 'nav_menu', __('Custom Menu'), $widget_ops );
|
||||
|
||||
$this->WP_Widget($id_base, __($name, 'dcjqaccordion'), $widget_ops);
|
||||
$this->alt_option_name = $alt_option;
|
||||
|
||||
add_action( 'wp_head', array(&$this, 'styles'), 10, 1 );
|
||||
add_action( 'wp_footer', array(&$this, 'footer'), 10, 1 );
|
||||
|
||||
$this->defaults = array(
|
||||
'title' => '',
|
||||
'event' => 'click',
|
||||
'hoverDelay' => '300',
|
||||
'menuClose' => 'on',
|
||||
'autoClose' => 'on',
|
||||
'saveState' => 'on',
|
||||
'autoExpand' => 'off',
|
||||
'showCount' => 'off',
|
||||
'speed' => 'slow',
|
||||
'disableLink' => 'on',
|
||||
'classDisable' => 'on',
|
||||
'classMenu' => '',
|
||||
'skin' => 'demo.css'
|
||||
);
|
||||
}
|
||||
|
||||
function widget($args, $instance) {
|
||||
extract( $args );
|
||||
// Get menu
|
||||
|
||||
if(! isset($instance['speed']) ){ $instance['speed'] = 'slow'; }
|
||||
|
||||
$widget_options = wp_parse_args( $instance, $this->defaults );
|
||||
extract( $widget_options, EXTR_SKIP );
|
||||
|
||||
$nav_menu = wp_get_nav_menu_object( $instance['nav_menu'] );
|
||||
|
||||
if (!$nav_menu)
|
||||
return;
|
||||
|
||||
$instance['title'] = apply_filters('widget_title', $instance['title'], $instance, $this->id_base);
|
||||
|
||||
$classMenu = ($instance['classMenu'] != '') ? $instance['classMenu'] : 'menu';
|
||||
|
||||
echo $args['before_widget'];
|
||||
|
||||
if ( !empty($instance['title']) )
|
||||
echo $args['before_title'] . $instance['title'] . $args['after_title'];
|
||||
|
||||
?>
|
||||
|
||||
<div class="dcjq-accordion" id="<?php echo $this->id.'-item'; ?>">
|
||||
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'fallback_cb' => '',
|
||||
'menu' => $nav_menu,
|
||||
'container' => false,
|
||||
'menu_class' => $classMenu
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
|
||||
echo $args['after_widget'];
|
||||
}
|
||||
|
||||
/** @see WP_Widget::update */
|
||||
function update( $new_instance, $old_instance ) {
|
||||
$instance['title'] = strip_tags( stripslashes($new_instance['title']) );
|
||||
$instance['nav_menu'] = (int) $new_instance['nav_menu'];
|
||||
$instance['autoClose'] = $new_instance['autoClose'];
|
||||
$instance['menuClose'] = $new_instance['menuClose'];
|
||||
$instance['saveState'] = $new_instance['saveState'];
|
||||
$instance['autoExpand'] = $new_instance['autoExpand'];
|
||||
$instance['disableLink'] = $new_instance['disableLink'];
|
||||
$instance['classDisable'] = $new_instance['classDisable'];
|
||||
$instance['classMenu'] = $new_instance['classMenu'];
|
||||
$instance['showCount'] = $new_instance['showCount'];
|
||||
$instance['event'] = strip_tags( stripslashes($new_instance['event']) );
|
||||
$instance['skin'] = $new_instance['skin'];
|
||||
$instance['speed'] = $new_instance['speed'];
|
||||
$instance['hoverDelay'] = $new_instance['hoverDelay'];
|
||||
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/** @see WP_Widget::form */
|
||||
function form($instance) {
|
||||
$title = isset( $instance['title'] ) ? $instance['title'] : '';
|
||||
$nav_menu = isset( $instance['nav_menu'] ) ? $instance['nav_menu'] : '';
|
||||
if(! isset($instance['autoClose']) ){ $instance['autoClose'] = 'false'; }
|
||||
if(! isset($instance['saveState']) ){ $instance['saveState'] = 'false'; }
|
||||
if(! isset($instance['menuClose']) ){ $instance['menuClose'] = 'false'; }
|
||||
if(! isset($instance['disableLink']) ){ $instance['disableLink'] = 'false'; }
|
||||
if(! isset($instance['classDisable']) ){ $instance['classDisable'] = ''; }
|
||||
if(! isset($instance['classMenu']) ){ $instance['classMenu'] = ''; }
|
||||
if(! isset($instance['autoExpand']) ){ $instance['autoExpand'] = 'false'; }
|
||||
if(! isset($instance['showCount']) ){ $instance['showCount'] = 'false'; }
|
||||
$event = isset( $instance['event'] ) ? $instance['event'] : '';
|
||||
$skin = isset( $instance['skin'] ) ? $instance['skin'] : '';
|
||||
$speed = isset( $instance['speed'] ) ? $instance['speed'] : '';
|
||||
$hoverDelay = isset( $instance['hoverDelay'] ) ? $instance['hoverDelay'] : '';
|
||||
|
||||
$widget_options = wp_parse_args( $instance, $this->defaults );
|
||||
extract( $widget_options, EXTR_SKIP );
|
||||
|
||||
// Get menus
|
||||
$menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) );
|
||||
|
||||
// If no menus exists, direct the user to go and create some.
|
||||
if ( !$menus ) {
|
||||
echo '<p>'. sprintf( __('No menus have been created yet. <a href="%s">Create some</a>.'), admin_url('nav-menus.php') ) .'</p>';
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<p>
|
||||
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:') ?></label>
|
||||
<input type="text" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo $title; ?>" size="20" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="<?php echo $this->get_field_id('nav_menu'); ?>"><?php _e('Select Menu:'); ?></label>
|
||||
<select id="<?php echo $this->get_field_id('nav_menu'); ?>" name="<?php echo $this->get_field_name('nav_menu'); ?>">
|
||||
<?php
|
||||
foreach ( $menus as $menu ) {
|
||||
$selected = $nav_menu == $menu->term_id ? ' selected="selected"' : '';
|
||||
echo '<option'. $selected .' value="'. $menu->term_id .'">'. $menu->name .'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<input type="radio" id="<?php echo $this->get_field_id('event1'); ?>" name="<?php echo $this->get_field_name('event'); ?>" value="click"<?php checked( $event, 'click' ); ?> />
|
||||
<label for="<?php echo $this->get_field_id('event1'); ?>"><?php _e( 'Click' , 'dcjq-accordion' ); ?></label>
|
||||
<input type="radio" id="<?php echo $this->get_field_id('event2'); ?>" name="<?php echo $this->get_field_name('event'); ?>" value="hover"<?php checked( $event, 'hover' ); ?> />
|
||||
<label for="<?php echo $this->get_field_id('event2'); ?>"><?php _e( 'Hover' , 'dcjq-accordion' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<input type="checkbox" value="true" class="checkbox" id="<?php echo $this->get_field_id('autoClose'); ?>" name="<?php echo $this->get_field_name('autoClose'); ?>"<?php checked( $autoClose, 'true' ); ?> />
|
||||
<label for="<?php echo $this->get_field_id('autoClose'); ?>"><?php _e( 'Auto Close Open Menus' , 'dcjq-accordion' ); ?></label><br />
|
||||
|
||||
<input type="checkbox" value="true" class="checkbox" id="<?php echo $this->get_field_id('saveState'); ?>" name="<?php echo $this->get_field_name('saveState'); ?>"<?php checked( $saveState, 'true'); ?> />
|
||||
<label for="<?php echo $this->get_field_id('saveState'); ?>"><?php _e( 'Save Menu State (uses cookies)' , 'dcjq-accordion' ); ?></label><br />
|
||||
|
||||
<input type="checkbox" value="true" class="checkbox" id="<?php echo $this->get_field_id('autoExpand'); ?>" name="<?php echo $this->get_field_name('autoExpand'); ?>"<?php checked( $autoExpand, 'true' ); ?> />
|
||||
<label for="<?php echo $this->get_field_id('autoExpand'); ?>"><?php _e( 'Auto Expand Based on Current Page/Item' , 'dcjq-accordion' ); ?></label><br />
|
||||
|
||||
<input type="checkbox" value="true" class="checkbox" id="<?php echo $this->get_field_id('disableLink'); ?>" name="<?php echo $this->get_field_name('disableLink'); ?>"<?php checked( $disableLink, 'true' ); ?> />
|
||||
<label for="<?php echo $this->get_field_id('disableLink'); ?>"><?php _e( 'Disable Parent Links' , 'dcjq-accordion' ); ?></label><br />
|
||||
|
||||
<input type="checkbox" value="true" class="checkbox" id="<?php echo $this->get_field_id('menuClose'); ?>" name="<?php echo $this->get_field_name('menuClose'); ?>"<?php checked( $menuClose, 'true' ); ?> />
|
||||
<label for="<?php echo $this->get_field_id('menuClose'); ?>"><?php _e( 'Close Menu (hover only)' , 'dcjq-accordion' ); ?></label><br />
|
||||
|
||||
<input type="checkbox" value="true" class="checkbox" id="<?php echo $this->get_field_id('showCount'); ?>" name="<?php echo $this->get_field_name('showCount'); ?>"<?php checked( $showCount, 'true' ); ?> />
|
||||
<label for="<?php echo $this->get_field_id('showCount'); ?>"><?php _e( 'Show Count' , 'dcjq-accordion' ); ?></label>
|
||||
</p>
|
||||
<p>
|
||||
<label for="<?php echo $this->get_field_id('classMenu'); ?>"><?php _e('Menu Class:') ?></label>
|
||||
<input type="text" id="<?php echo $this->get_field_id('classMenu'); ?>" name="<?php echo $this->get_field_name('classMenu'); ?>" value="<?php echo $classMenu; ?>" size="15" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="<?php echo $this->get_field_id('classDisable'); ?>"><?php _e('Disable Class:') ?></label>
|
||||
<input type="text" id="<?php echo $this->get_field_id('classDisable'); ?>" name="<?php echo $this->get_field_name('classDisable'); ?>" value="<?php echo $classDisable; ?>" size="15" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="<?php echo $this->get_field_id('hoverDelay'); ?>"><?php _e('Hover Delay:', 'dcjq-accordion'); ?>
|
||||
<select name="<?php echo $this->get_field_name('hoverDelay'); ?>" id="<?php echo $this->get_field_id('hoverDelay'); ?>" >
|
||||
<option value='0' <?php selected( $hoverDelay, '0'); ?> >No Delay</option>
|
||||
<option value='200' <?php selected( $hoverDelay, '200'); ?> >0.2 sec</option>
|
||||
<option value='400' <?php selected( $hoverDelay, '400'); ?> >0.4 sec</option>
|
||||
<option value='600' <?php selected( $hoverDelay, '600'); ?> >0.6 sec</option>
|
||||
<option value='800' <?php selected( $hoverDelay, '800'); ?> >0.8 sec</option>
|
||||
<option value='1000' <?php selected( $hoverDelay, '1000'); ?> >1.0 sec</option>
|
||||
</select>
|
||||
</label>
|
||||
</p>
|
||||
<p><label for="<?php echo $this->get_field_id('speed'); ?>"><?php _e('Animation Speed:', 'dcjq-accordion'); ?>
|
||||
<select name="<?php echo $this->get_field_name('speed'); ?>" id="<?php echo $this->get_field_id('speed'); ?>" >
|
||||
<option value='slow' <?php selected( $speed, 'slow'); ?> >Slow</option>
|
||||
<option value='normal' <?php selected( $speed, 'normal'); ?> >Normal</option>
|
||||
<option value='fast' <?php selected( $speed, 'fast'); ?> >Fast</option>
|
||||
</select>
|
||||
</label>
|
||||
</p>
|
||||
<p><label for="<?php echo $this->get_field_id('skin'); ?>"><?php _e('Skin:', 'dcjq-accordion'); ?> <?php
|
||||
|
||||
// http://www.codewalkers.com/c/a/File-Manipulation-Code/List-files-in-a-directory-no-subdirectories/
|
||||
|
||||
echo "<select name='".$this->get_field_name('skin')."' id='".$this->get_field_id('skin')."'>";
|
||||
echo "<option value='no-theme' ".selected( $skin, 'no-theme', false).">No theme</option>";
|
||||
|
||||
//The path to the style directory
|
||||
$dirpath = plugin_dir_path(__FILE__) . 'skins/';
|
||||
|
||||
$dh = opendir($dirpath);
|
||||
while (false !== ($file = readdir($dh))) {
|
||||
//Don't list subdirectories
|
||||
if (!is_dir("$dirpath/$file")) {
|
||||
//Remove file extension
|
||||
$newSkin = htmlspecialchars(ucfirst(preg_replace('/\..*$/', '', $file)));
|
||||
echo "<option value='$newSkin' ".selected($skin, $newSkin, false).">" . $newSkin . '</option>';
|
||||
}
|
||||
}
|
||||
closedir($dh);
|
||||
echo "</select>"; ?> </label><br />
|
||||
</p>
|
||||
<div class="widget-control-actions alignright">
|
||||
<p><small><a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/"><?php esc_attr_e('Visit plugin site', 'dcjq-accordion'); ?></a></small></p>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
/** Adds ID based dropdown menu skin to the header. */
|
||||
function styles(){
|
||||
|
||||
if(!is_admin()){
|
||||
|
||||
$all_widgets = $this->get_settings();
|
||||
|
||||
foreach ($all_widgets as $key => $wpdcjqaccordion){
|
||||
$widget_id = $this->id_base . '-' . $key;
|
||||
|
||||
if(is_active_widget(false, $widget_id, $this->id_base)){
|
||||
|
||||
$skin = $wpdcjqaccordion['skin'];
|
||||
$skin = htmlspecialchars(ucfirst(preg_replace('/\..*$/', '', $skin)));
|
||||
if($skin != 'No-theme'){
|
||||
echo "\n\t<link rel=\"stylesheet\" href=\"".dc_jqaccordion::get_plugin_directory()."/skin.php?widget_id=".$key."&skin=".strtolower($skin)."\" type=\"text/css\" media=\"screen\" />";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Adds ID based activation script to the footer */
|
||||
function footer(){
|
||||
|
||||
if(!is_admin()){
|
||||
|
||||
$all_widgets = $this->get_settings();
|
||||
|
||||
foreach ($all_widgets as $key => $wpdcjqaccordion){
|
||||
|
||||
$widget_id = $this->id_base . '-' . $key;
|
||||
|
||||
if(is_active_widget(false, $widget_id, $this->id_base)){
|
||||
|
||||
$autoClose = $wpdcjqaccordion['autoClose'];
|
||||
if($autoClose == ''){$autoClose = 'false';}
|
||||
|
||||
$saveState = $wpdcjqaccordion['saveState'];
|
||||
if($saveState == ''){$saveState = 'false';}
|
||||
|
||||
$disableLink = $wpdcjqaccordion['disableLink'];
|
||||
if($disableLink == ''){$disableLink = 'false';}
|
||||
|
||||
$classDisable = $wpdcjqaccordion['classDisable'];
|
||||
|
||||
$classMenu = $wpdcjqaccordion['classMenu'];
|
||||
if($classMenu == ''){$classMenu = 'menu';}
|
||||
|
||||
$menuClose = $wpdcjqaccordion['menuClose'];
|
||||
if($menuClose == ''){$menuClose = 'false';}
|
||||
|
||||
$autoExpand = $wpdcjqaccordion['autoExpand'];
|
||||
if($autoExpand == ''){$autoExpand = 'false';}
|
||||
|
||||
$showCount = $wpdcjqaccordion['showCount'];
|
||||
if($showCount == ''){$showCount = 'false';}
|
||||
|
||||
$hoverDelay = $wpdcjqaccordion['hoverDelay'];
|
||||
if($hoverDelay == ''){$hoverDelay = 600;}
|
||||
|
||||
$accordionId = '#'.$widget_id.'-item .'.$classMenu;
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($) {
|
||||
jQuery('<?php echo $accordionId; ?>').dcAccordion({
|
||||
eventType: '<?php echo $wpdcjqaccordion['event']; ?>',
|
||||
hoverDelay: <?php echo $hoverDelay; ?>,
|
||||
menuClose: <?php echo $menuClose; ?>,
|
||||
autoClose: <?php echo $autoClose; ?>,
|
||||
saveState: <?php echo $saveState; ?>,
|
||||
autoExpand: <?php echo $autoExpand; ?>,
|
||||
classExpand: 'current-menu-item',
|
||||
classDisable: '<?php echo $classDisable; ?>',
|
||||
showCount: <?php echo $showCount; ?>,
|
||||
disableLink: <?php echo $disableLink; ?>,
|
||||
cookie: '<?php echo $widget_id; ?>',
|
||||
speed: '<?php echo $wpdcjqaccordion['speed']; ?>'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // class dc_jqaccordion_widget
|
||||
@ -1,96 +0,0 @@
|
||||
/**
|
||||
* Cookie plugin
|
||||
*
|
||||
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a cookie with the given name and value and other optional parameters.
|
||||
*
|
||||
* @example $.cookie('the_cookie', 'the_value');
|
||||
* @desc Set the value of a cookie.
|
||||
* @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
|
||||
* @desc Create a cookie with all available options.
|
||||
* @example $.cookie('the_cookie', 'the_value');
|
||||
* @desc Create a session cookie.
|
||||
* @example $.cookie('the_cookie', null);
|
||||
* @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
|
||||
* used when the cookie was set.
|
||||
*
|
||||
* @param String name The name of the cookie.
|
||||
* @param String value The value of the cookie.
|
||||
* @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
|
||||
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
|
||||
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
|
||||
* If set to null or omitted, the cookie will be a session cookie and will not be retained
|
||||
* when the the browser exits.
|
||||
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
|
||||
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
|
||||
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
|
||||
* require a secure protocol (like HTTPS).
|
||||
* @type undefined
|
||||
*
|
||||
* @name $.cookie
|
||||
* @cat Plugins/Cookie
|
||||
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get the value of a cookie with the given name.
|
||||
*
|
||||
* @example $.cookie('the_cookie');
|
||||
* @desc Get the value of a cookie.
|
||||
*
|
||||
* @param String name The name of the cookie.
|
||||
* @return The value of the cookie.
|
||||
* @type String
|
||||
*
|
||||
* @name $.cookie
|
||||
* @cat Plugins/Cookie
|
||||
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
||||
*/
|
||||
jQuery.cookie = function(name, value, options) {
|
||||
if (typeof value != 'undefined') { // name and value given, set cookie
|
||||
options = options || {};
|
||||
if (value === null) {
|
||||
value = '';
|
||||
options.expires = -1;
|
||||
}
|
||||
var expires = '';
|
||||
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
|
||||
var date;
|
||||
if (typeof options.expires == 'number') {
|
||||
date = new Date();
|
||||
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
|
||||
} else {
|
||||
date = options.expires;
|
||||
}
|
||||
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
|
||||
}
|
||||
// CAUTION: Needed to parenthesize options.path and options.domain
|
||||
// in the following expressions, otherwise they evaluate to undefined
|
||||
// in the packed version for some reason...
|
||||
var path = options.path ? '; path=' + (options.path) : '';
|
||||
var domain = options.domain ? '; domain=' + (options.domain) : '';
|
||||
var secure = options.secure ? '; secure' : '';
|
||||
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
|
||||
} else { // only name given, get cookie
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
};
|
||||
@ -1,213 +0,0 @@
|
||||
/*
|
||||
* DC jQuery Vertical Accordion Menu - jQuery vertical accordion menu plugin
|
||||
* Copyright (c) 2011 Design Chemical
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
$.fn.dcAccordion = function(options) {
|
||||
//set default options
|
||||
var defaults = {
|
||||
classParent : 'dcjq-parent',
|
||||
classActive : 'active',
classArrow : 'dcjq-icon',
classCount : 'dcjq-count',
|
||||
classExpand : 'dcjq-current-parent',
|
||||
classDisable : '',
|
||||
eventType : 'click',
|
||||
hoverDelay : 300,
|
||||
menuClose : true,
|
||||
autoClose : true,
|
||||
autoExpand : false,
|
||||
speed : 'slow',
|
||||
saveState : true,
|
||||
disableLink : true,
showCount : false,
|
||||
cookie : 'dcjq-accordion'
|
||||
};
|
||||
//call in the default otions
|
||||
var options = $.extend(defaults, options);
|
||||
this.each(function(options){
|
||||
var obj = this;
|
||||
$objLinks = $('li > a',obj);
|
||||
$objSub = $('li > ul',obj);
|
||||
if(defaults.classDisable){
|
||||
$objLinks = $('li:not(.'+defaults.classDisable+') > a',obj);
|
||||
$objSub = $('li:not(.'+defaults.classDisable+') > ul',obj);
|
||||
}
|
||||
|
||||
classActive = defaults.classActive;
|
||||
|
||||
setUpAccordion();
|
||||
if(defaults.saveState == true){
|
||||
checkCookie(defaults.cookie, obj, classActive);
|
||||
}
|
||||
if(defaults.autoExpand == true){
|
||||
$('li.'+defaults.classExpand+' > a').addClass(classActive);
|
||||
}
|
||||
resetAccordion();
|
||||
if(defaults.eventType == 'hover'){
|
||||
var config = {
|
||||
sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
|
||||
interval: defaults.hoverDelay, // number = milliseconds for onMouseOver polling interval
|
||||
over: linkOver, // function = onMouseOver callback (REQUIRED)
|
||||
timeout: defaults.hoverDelay, // number = milliseconds delay before onMouseOut
|
||||
out: linkOut // function = onMouseOut callback (REQUIRED)
|
||||
};
|
||||
$objLinks.hoverIntent(config);
|
||||
var configMenu = {
|
||||
sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
|
||||
interval: 1000, // number = milliseconds for onMouseOver polling interval
|
||||
over: menuOver, // function = onMouseOver callback (REQUIRED)
|
||||
timeout: 1000, // number = milliseconds delay before onMouseOut
|
||||
out: menuOut // function = onMouseOut callback (REQUIRED)
|
||||
};
|
||||
$(obj).hoverIntent(configMenu);
|
||||
// Disable parent links
|
||||
if(defaults.disableLink == true){
|
||||
$objLinks.click(function(e){
|
||||
if($(this).siblings('ul').length >0){
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
$objLinks.click(function(e){
|
||||
$activeLi = $(this).parent('li');
|
||||
$parentsLi = $activeLi.parents('li');
|
||||
$parentsUl = $activeLi.parents('ul');
|
||||
// Prevent browsing to link if has child links
|
||||
if(defaults.disableLink == true){
|
||||
if($(this).siblings('ul').length >0){
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
// Auto close sibling menus
|
||||
if(defaults.autoClose == true){
|
||||
autoCloseAccordion($parentsLi, $parentsUl);
|
||||
}
|
||||
if ($('> ul',$activeLi).is(':visible')){
|
||||
$('ul',$activeLi).slideUp(defaults.speed);
|
||||
$('a',$activeLi).removeClass(classActive);
|
||||
} else {
|
||||
$(this).siblings('ul').slideToggle(defaults.speed);
|
||||
$('> a',$activeLi).addClass(classActive);
|
||||
}
|
||||
// Write cookie if save state is on
|
||||
if(defaults.saveState == true){
|
||||
createCookie(defaults.cookie, obj, classActive);
|
||||
}
|
||||
});
|
||||
}
|
||||
// Set up accordion
|
||||
function setUpAccordion(){
|
||||
$arrow = '<span class="'+defaults.classArrow+'"></span>';
|
||||
var classParentLi = defaults.classParent+'-li';
|
||||
$objSub.show();
|
||||
$('li',obj).each(function(){
|
||||
if($('> ul',this).length > 0){
$(this).addClass(classParentLi);
|
||||
$('> a',this).addClass(defaults.classParent).append($arrow);
|
||||
}
|
||||
});
|
||||
$objSub.hide();
|
||||
if(defaults.classDisable){
|
||||
$('li.'+defaults.classDisable+' > ul').show();
|
||||
}
|
||||
if(defaults.showCount == true){
|
||||
$('li.'+classParentLi,obj).each(function(){
|
||||
if(defaults.disableLink == true){
|
||||
var getCount = parseInt($('ul a:not(.'+defaults.classParent+')',this).length);
|
||||
} else {
|
||||
var getCount = parseInt($('ul a',this).length);
|
||||
}
|
||||
$('> a',this).append(' <span class="'+defaults.classCount+'">('+getCount+')</span>');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function linkOver(){
|
||||
|
||||
$activeLi = $(this).parent('li');
|
||||
$parentsLi = $activeLi.parents('li');
|
||||
$parentsUl = $activeLi.parents('ul');
|
||||
|
||||
// Auto close sibling menus
|
||||
if(defaults.autoClose == true){
|
||||
autoCloseAccordion($parentsLi, $parentsUl);
|
||||
|
||||
}
|
||||
|
||||
if ($('> ul',$activeLi).is(':visible')){
|
||||
$('ul',$activeLi).slideUp(defaults.speed);
|
||||
$('a',$activeLi).removeClass(classActive);
|
||||
} else {
|
||||
$(this).siblings('ul').slideToggle(defaults.speed);
|
||||
$('> a',$activeLi).addClass(classActive);
|
||||
}
|
||||
|
||||
// Write cookie if save state is on
|
||||
if(defaults.saveState == true){
|
||||
createCookie(defaults.cookie, obj, classActive);
|
||||
}
|
||||
}
|
||||
|
||||
function linkOut(){
|
||||
}
|
||||
|
||||
function menuOver(){
|
||||
}
|
||||
|
||||
function menuOut(){
|
||||
|
||||
if(defaults.menuClose == true){
|
||||
$objSub.slideUp(defaults.speed);
|
||||
// Reset active links
|
||||
$('a',obj).removeClass(classActive);
|
||||
createCookie(defaults.cookie, obj, classActive);
|
||||
}
|
||||
}
|
||||
|
||||
// Auto-Close Open Menu Items
|
||||
function autoCloseAccordion($parentsLi, $parentsUl){
|
||||
$objSub.not($parentsUl).slideUp(defaults.speed);
|
||||
// Reset active links
|
||||
$('a',obj).removeClass(classActive);
|
||||
$('> a',$parentsLi).addClass(classActive);
|
||||
}
|
||||
// Reset accordion using active links
|
||||
function resetAccordion(){
|
||||
$objSub.hide();
|
||||
var $parentsLi = $('a.'+classActive,obj).parents('li');
|
||||
$('> a',$parentsLi).addClass(classActive);
|
||||
$allActiveLi = $('a.'+classActive,obj);
|
||||
$($allActiveLi).siblings('ul').show();
|
||||
}
|
||||
});
|
||||
// Retrieve cookie value and set active items
|
||||
function checkCookie(cookieId, obj, classActive){
|
||||
var cookieVal = $.cookie(cookieId);
|
||||
if(cookieVal != null){
|
||||
// create array from cookie string
|
||||
var activeArray = cookieVal.split(',');
|
||||
$.each(activeArray, function(index,value){
|
||||
var $cookieLi = $('li:eq('+value+')',obj);
|
||||
$('> a',$cookieLi).addClass(classActive);
|
||||
var $parentsLi = $cookieLi.parents('li');
|
||||
$('> a',$parentsLi).addClass(classActive);
|
||||
});
|
||||
}
|
||||
}
|
||||
// Write cookie
|
||||
function createCookie(cookieId, obj, classActive){
|
||||
var activeIndex = [];
|
||||
// Create array of active items index value
|
||||
$('li a.'+classActive,obj).each(function(i){
|
||||
var $arrayItem = $(this).parent('li');
|
||||
var itemIndex = $('li',obj).index($arrayItem);
|
||||
activeIndex.push(itemIndex);
|
||||
});
|
||||
// Store in cookie
|
||||
$.cookie(cookieId, activeIndex, { path: '/' });
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
||||
@ -1,9 +0,0 @@
|
||||
/**
|
||||
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
|
||||
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
|
||||
*
|
||||
* @param f onMouseOver function || An object with configuration options
|
||||
* @param g onMouseOut function || Nothing (use configuration options object)
|
||||
* @author Brian Cherne <brian@cherne.net>
|
||||
*/
|
||||
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
|
||||
@ -1,106 +0,0 @@
|
||||
=== JQuery Accordion Menu Widget ===
|
||||
Contributors: remix4
|
||||
Donate link: http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/#form-donate
|
||||
Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, widget
|
||||
Requires at least: 3.0
|
||||
Tested up to: 3.13
|
||||
Stable tag: 2.6
|
||||
|
||||
Creates a widget, which allows you to create vertical accordion menus from any Wordpress custom menu using jQuery.
|
||||
|
||||
== Description ==
|
||||
|
||||
Creates a widget, which allows you to create vertical accordion menus from any Wordpress custom menu using jQuery. Features include - handles multiple levels, saved state using cookies, add count of number of links and option of selecting "click" or "hover" events for triggering the menu. Uses the jquery cookie plugin by [Klaus Hartl](http://www.stilbuero.de).
|
||||
|
||||
= Menu Options =
|
||||
|
||||
The widget has several parameters that can be configured to help cutomise the vertical accordion menu:
|
||||
|
||||
* Click/Hover - Selects the event type that will trigger the menu to open/close
|
||||
* Auto-close open menus - If checked this will allow only one menu item to be expanded at any time. Clicking on a new menu item will automatically close the previous one.
|
||||
* Save menu state (uses cookies) - Selecting this will allow the menu to remember its open/close state when browsing to a new page.
|
||||
* Auto Expand Based on Current Page/Item - If checked, this option will automatically expand sub-menus based on the current page/post based on the inherent Wordpress custom menu css classes - e.g. select this option if you would like the menu to automatically expand when the user clicks a link other than the accordion menu.
|
||||
* Disable parent links - If selected, any menu items that have child elements will have their links disabled and will only open/close their relevant sub-menus. Do not select this if you want the user to still be able to browse to that item's page.
|
||||
* Close menu (hover only) - If checked the menu will automatically fully close after 1 second when the mouse moves off the menu - only available if event type is "hover"
|
||||
* Show Count - If checked the menu will automatically add a count showing the number of links under each parent menu item
|
||||
* Class Menu - Set the CSS class of the Wordpress menu. If blank the default class "menu" will be used
|
||||
* Class Disable - Input the CSS class for parent menu items that should be disabled - i.e. the child sub-menu remains open
|
||||
* Hover delay - This setting adds a delay to the hover event to help prevent the menu opening/closing accidentally. A higher number means the cursor must stop moving for longer before the menu action will trigger
|
||||
* Animation Speed - The speed at which the menu will open/close
|
||||
* Skin - Several sample skins are available to give examples of css that can be used to style your accordion menu
|
||||
|
||||
Note: care should be taken when selecting the hover event as this may impact useability - adding a hover delay and reducing the animation speed may help reduce problems with useability
|
||||
|
||||
[__See Demo__](http://www.designchemical.com/lab/demo-wordpress-vertical-accordion-menu-plugin/)
|
||||
[__Plugin Home Page__](http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/)
|
||||
|
||||
== Installation ==
|
||||
|
||||
1. Upload the plugin through `Plugins > Add New > Upload` interface or upload `jquery-vertical-accordion-menu` folder to the `/wp-content/plugins/` directory
|
||||
2. Activate the plugin through the 'Plugins' menu in WordPress
|
||||
3. In the widgets section, select the jQuery accordion menu widget and add to one of your widget areas
|
||||
4. Select one of the WP menus, set the required settings and save your widget
|
||||
|
||||
== Frequently Asked Questions ==
|
||||
|
||||
= The menu appears on the page but does not work. Why? =
|
||||
|
||||
First - make sure that your custom menu has at least 2 levels. If it has only one level the open/close effect is not active.
|
||||
|
||||
One main reason for the menu failing to load properly is caused by the necessary code missing from the page footer. The plugin adds the required jQuery code to your template footer. Make sure that your template files contain the wp_footer() function.
|
||||
|
||||
Another likely cause is due to other non-functioning plugins, which may have errors and cause the plugin javascript to not load. Remove any unwanted plugins and try again. Checking with Firebug will show where these error are occuring.
|
||||
|
||||
== Screenshots ==
|
||||
|
||||
1. Widget in edit mode
|
||||
2. Sample vertical accordion menus
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 2.6 =
|
||||
* Added: Ability to disable parent menu items using a CSS class
|
||||
* Added: Ability to set menu CSS Class - default "menu"
|
||||
* Update: Revision to auto-expand system
|
||||
* Update: jquery.dcjqaccordion.2.8.js
|
||||
|
||||
= 2.5.4 =
|
||||
* Fix: Bug with save state option
|
||||
|
||||
= 2.5.3 =
|
||||
* Added: jQuery accordion plugin includes check for cookie function
|
||||
|
||||
= 2.5.2 =
|
||||
* Update: jquery.dcjqaccordion.2.7.js - fix bug with count option
|
||||
|
||||
= 2.5.1 =
|
||||
* Fix: Bug when using "No Theme" option
|
||||
|
||||
= 2.5 =
|
||||
* Added: Auto-expand now independent of save state option
|
||||
|
||||
= 2.4 =
|
||||
* Added: Ability to auto-expand menu based on the Wordpress current page/menu item classes
|
||||
|
||||
= 2.3 =
|
||||
* Edit: Plugin now works with Cufon text
|
||||
|
||||
= 2.2 =
|
||||
* Added: Option to show count of number of child links
|
||||
* Edit: Plugin updated to use jquery plugin version 2.3
|
||||
* Edit: Cookie name set based on widget ID
|
||||
|
||||
= 2.1 =
|
||||
* Edit: Security for dynamic skins
|
||||
|
||||
= 2.0 =
|
||||
* Added : Ability to select either hover or click to activate menu
|
||||
* Added : Hover delay setting for hover event
|
||||
* Added : Close menu option for hover event
|
||||
|
||||
= 1.1 =
|
||||
* Fixed : Duplicate ID with themes adding ID to widget container
|
||||
* Fixed : Set cookie path
|
||||
|
||||
= 1.0 =
|
||||
* First release
|
||||
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 36 KiB |
@ -1,37 +0,0 @@
|
||||
<?php
|
||||
|
||||
header("Content-type: text/css");
|
||||
|
||||
$id = $_GET['widget_id'];
|
||||
$id = clean($id);
|
||||
$skin = $_GET['skin'];
|
||||
$skin = clean($skin);
|
||||
if(!empty($skin)){
|
||||
$skin .= '.css';
|
||||
$css = file_get_contents('./skins/' . $skin );
|
||||
$widget_skin = preg_replace('/%ID%/',$id, $css);
|
||||
echo $widget_skin;
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
function clean($str = '', $html = false) {
|
||||
if (empty($str)) return;
|
||||
|
||||
if (is_array($str)) {
|
||||
foreach($str as $key => $value) $str[$key] = clean($value, $html);
|
||||
} else {
|
||||
if (get_magic_quotes_gpc()) $str = stripslashes($str);
|
||||
|
||||
if (is_array($html)) $str = strip_tags($str, implode('', $html));
|
||||
elseif (preg_match('|<([a-z]+)>|i', $html)) $str = strip_tags($str, $html);
|
||||
elseif ($html !== true) $str = strip_tags($str);
|
||||
|
||||
$str = trim($str);
|
||||
$str = str_replace(".", "", $str);
|
||||
$str = str_replace("/", "", $str);
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
?>
|
||||
@ -1,7 +0,0 @@
|
||||
#dc_jqaccordion_widget-%ID%-item{font: bold 13px Arial, sans-serif;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul, #dc_jqaccordion_widget-%ID%-item ul li {margin: 0; padding: 0; border: none;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a {padding: 10px 10px 10px 28px; background: #000 url(skins/images/bg_graphite.png) repeat-x 0 0; text-decoration:none; display: block; color: #fff; font-weight: normal;border-bottom: 1px solid #fff;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul ul a {background: #343434;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #000 url(skins/images/graphite_arrow_right.png) no-repeat 0 0; font-weight: bold; color: #fff;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {background: #000 url(skins/images/graphite_arrow_down.png) no-repeat 0 0;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a:hover {background: #121212;}
|
||||
@ -1,7 +0,0 @@
|
||||
#dc_jqaccordion_widget-%ID%-item{ border-top: 1px solid #013d6c; border-right: 1px solid #013d6c; border-left: 1px solid #013d6c;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul, #dc_jqaccordion_widget-%ID%-item ul li {margin: 0; padding: 0; border: none;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a {padding: 10px 10px 10px 15px; background: #0D5995; text-decoration:none; display: block; color: #fff; border-bottom: 1px solid #013d6c; border-top: 1px solid #4695d3;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul ul a {padding: 10px 10px 10px 25px;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {padding: 10px 10px 10px 15px;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {background: #0D5995 url(skins/images/checkers.png) repeat 0 0;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a:hover {background: #05477c;}
|
||||
@ -1,7 +0,0 @@
|
||||
#dc_jqaccordion_widget-%ID%-item{border-top: 1px solid #cfcfcf; border-right: 1px solid #cfcfcf; border-left: 1px solid #cfcfcf;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul, #dc_jqaccordion_widget-%ID%-item ul li {margin: 0; padding: 0; border: none;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a {padding: 10px 15px; background: #fff url(skins/images/bg_clean.png) repeat-x top center; font-weight: bold; text-transform: uppercase; text-decoration:none; display: block; color: #222; border-bottom: 1px solid #cfcfcf;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul ul a {padding: 10px 10px 10px 25px; background: #fff; font-weight: normal; text-transform: capitalize;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent {padding: 10px 15px; background: #efefef url(skins/images/bg_clean.png) repeat-x top center; font-weight: bold; text-transform: uppercase;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #fff url(skins/images/bg_clean_on.png) repeat-x top center;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a:hover {background: #ececec; color: #990000;}
|
||||
@ -1,7 +0,0 @@
|
||||
#dc_jqaccordion_widget-%ID%-item{background-color: #fff; border-top: 1px solid #ccc; border-right: 1px solid #ccc; border-left: 1px solid #ccc;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul, #dc_jqaccordion_widget-%ID%-item ul, #dc_jqaccordion_widget-%ID%-item ul li {margin: 0; padding: 0; border: none;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a {background-repeat: no-repeat; background-position: 10px center; border-top: 1px solid #fff; border-bottom: 1px solid #ccc; padding: 10px 10px 10px 32px; text-decoration:none; display: block; color: #222; font-weight: bold;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul ul a {font-weight: normal;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent {background-image: url(skins/images/plus_grey.png); font-weight: bold; background-color: #fff;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {background-image: url(skins/images/minus_grey.png); background-color: #f3f3f3;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a:hover {color: #990000;}
|
||||
@ -1,8 +0,0 @@
|
||||
#dc_jqaccordion_widget-%ID%-item{font: bold 14px Arial, sans-serif; border-top: 1px solid #111; border-right: 1px solid #111; border-left: 1px solid #111;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul, #dc_jqaccordion_widget-%ID%-item ul li {margin: 0; padding: 0; border: none;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a {padding: 10px 10px 10px 50px; background: #0C0C0C url(skins/images/bg_black.png) repeat-x 0 -1px; text-decoration:none; display: block; color: #ddd; border-bottom: 1px solid #222; border-top: 1px solid #777; position: relative;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul ul a {background: #424549;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #0C0C0C url(skins/images/bg_black.png) repeat-x 0 -1px;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a .dcjq-icon {position: absolute; top: 50%; left: 14px; width: 34px; margin-top: -17px; height: 34px; background: url(skins/images/arrow_black_right.png) no-repeat 0 center;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active .dcjq-icon {background: url(skins/images/arrow_black_down.png) no-repeat 0 center;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a:hover {background: #232323; color: #fff;}
|
||||
@ -1,7 +0,0 @@
|
||||
#dc_jqaccordion_widget-%ID%-item{font: bold 14px Arial, sans-serif; border-top: 1px solid #ccc; border-right: 1px solid #ccc; border-left: 1px solid #ccc;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul, #dc_jqaccordion_widget-%ID%-item ul li {margin: 0; padding: 0; border: none;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a {padding: 10px 10px 10px 50px; background: #ececec; text-decoration:none; display: block; color: #333; border-bottom: 1px solid #ccc; border-top: 1px solid #fff; position: relative; text-shadow: 1px 1px 1px #fff;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #D7D4D4 url(skins/images/bg_grey.png) repeat-x 0 -1px;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a .dcjq-icon {position: absolute; top: 50%; left: 14px; width: 34px; margin-top: -17px; height: 34px; background: url(skins/images/arrow_grey_right.png) no-repeat 0 center;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active .dcjq-icon {background: url(skins/images/arrow_grey_down.png) no-repeat 0 center;}
|
||||
#dc_jqaccordion_widget-%ID%-item ul a:hover {background: #fff; color: #990000;}
|
||||
|
Before Width: | Height: | Size: 53 B |
|
Before Width: | Height: | Size: 827 B |
|
Before Width: | Height: | Size: 247 B |
|
Before Width: | Height: | Size: 237 B |
|
Before Width: | Height: | Size: 53 B |
|
Before Width: | Height: | Size: 476 B |
|
Before Width: | Height: | Size: 614 B |
|
Before Width: | Height: | Size: 365 B |
|
Before Width: | Height: | Size: 470 B |
|
Before Width: | Height: | Size: 514 B |
|
Before Width: | Height: | Size: 452 B |
|
Before Width: | Height: | Size: 441 B |
|
Before Width: | Height: | Size: 165 B |
|
Before Width: | Height: | Size: 173 B |
|
Before Width: | Height: | Size: 188 B |
|
Before Width: | Height: | Size: 826 B |
|
Before Width: | Height: | Size: 93 B |
|
Before Width: | Height: | Size: 175 B |
|
Before Width: | Height: | Size: 142 B |
|
Before Width: | Height: | Size: 144 B |
|
Before Width: | Height: | Size: 178 B |
|
Before Width: | Height: | Size: 697 B |
|
Before Width: | Height: | Size: 262 B |
|
Before Width: | Height: | Size: 154 B |
|
Before Width: | Height: | Size: 400 B |
|
Before Width: | Height: | Size: 383 B |
|
Before Width: | Height: | Size: 386 B |
|
Before Width: | Height: | Size: 142 B |
|
Before Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 609 B |
|
Before Width: | Height: | Size: 530 B |
|
Before Width: | Height: | Size: 168 B |
|
Before Width: | Height: | Size: 150 B |
|
Before Width: | Height: | Size: 169 B |
|
Before Width: | Height: | Size: 181 B |
|
Before Width: | Height: | Size: 156 B |
|
Before Width: | Height: | Size: 141 B |