[Evocms-plugins-commits] SF.net SVN: evocms-plugins: [771] jquery_dropdown_plugin/trunk
Brought to you by:
blueyed
From: <af...@us...> - 2008-07-11 01:04:23
|
Revision: 771 http://evocms-plugins.svn.sourceforge.net/evocms-plugins/?rev=771&view=rev Author: afwas Date: 2008-07-10 18:04:19 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Version 1.1 is geared towards release in the wild. Modified Paths: -------------- jquery_dropdown_plugin/trunk/_jquery_dropdown.plugin.php Added Paths: ----------- jquery_dropdown_plugin/trunk/README.html jquery_dropdown_plugin/trunk/dropdown.css jquery_dropdown_plugin/trunk/dropdown.js jquery_dropdown_plugin/trunk/jQ_dropdown_setting.png Added: jquery_dropdown_plugin/trunk/README.html =================================================================== --- jquery_dropdown_plugin/trunk/README.html (rev 0) +++ jquery_dropdown_plugin/trunk/README.html 2008-07-11 01:04:19 UTC (rev 771) @@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>jQuery Dropdown plugin</title> +</head> +<body> +<h1>jQuery Dropdown plugin</h1> +<h3>Introduction</h3> +<p>This plugin provides a dropdown to lists, especially aimed at widgets. It is written in jQuery.</p> +<p>The widget will appear collapsed by default and will expand when hovered with the mouse. This seems useful with widgets like the User Tools that don't need to be visible to anybody or the Category list if it's large and not visually appealing.</p> + +<h3>Usage</h3> +<div> +<p>Install the plugin the way you normally would. +<br /> +In the settings of any widget (Blog settings -> Widgets -> choose a widget) add "dropdown" to the class in the field CSS Class.</p> +<br /> +<img src="jQ_dropdown_setting.png" alt="Setting for jQuery Dropdown plugin" /> +<!-- +<br /> +<p>You can change the classname "dropdown" in the Plugin settings. You could install multiple plugins with each another classname. However the plugin works perfectly well with multiple widgets on one blog.</p> +--> +</div> +</body> +</html> \ No newline at end of file Property changes on: jquery_dropdown_plugin/trunk/README.html ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: jquery_dropdown_plugin/trunk/_jquery_dropdown.plugin.php =================================================================== --- jquery_dropdown_plugin/trunk/_jquery_dropdown.plugin.php 2008-07-10 14:28:42 UTC (rev 770) +++ jquery_dropdown_plugin/trunk/_jquery_dropdown.plugin.php 2008-07-11 01:04:19 UTC (rev 771) @@ -1,16 +1,17 @@ <?php /** * - * This file implements the Resize Admin Textarea plugin for {@link http://b2evolution.net/}. + * This file implements the jQuery Dropdown plugin for {@link http://b2evolution.net/}. * * @copyright (c)2008 by Foppe HEMMINGA - {@link http://www.blog.hemminga.net/}. * * @license GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php * + * * @package plugins * * @author Foppe HEMMINGA - * @version 1.0 + * @version 1.1 * * */ @@ -36,9 +37,9 @@ */ var $code = 'ADjQDropdown'; var $priority = 50; - var $version = '1.0'; + var $version = '1.1'; var $author = 'Foppe HEMMINGA'; - var $help_url = 'http://www.blog.hemminga.net/'; + var $help_url = 'http://www.blog.hemminga.net/index.php/2008/07/10/jquery-dropdown-plugin?blog=8'; var $group = 'Amazing Discoveries'; var $apply_rendering = 'never'; @@ -50,7 +51,7 @@ */ function PluginInit( & $params ) { - $this->short_desc = $this->T_('Adds jQuery Dropdown lo widget lists that have a class="dropdown".'); + $this->short_desc = $this->T_('Adds jQuery Dropdown to widget lists that have a class="dropdown".'); $this->long_desc = $this->T_(''); } @@ -61,12 +62,12 @@ function GetDefaultSettings() { return array( - 'classname' => array( + /* 'classname' => array( 'label' => $this->T_( 'Class name' ), 'note' => $this->T_( 'Change this if you want the default class to have another name.' ), 'type' => 'text', 'defaultvalue' => 'dropdown' - ) + ) */ ); } @@ -84,38 +85,17 @@ function SkinBeginHtmlHead() { $drp_trigger = $this->Settings->get( 'classname' ); + $plug_url = $this->get_plugin_url(); - $drp_comm_start = '<!-- Start jQuery Dropdown plugin -->'; - $drp_comm_end = '<!-- End jQuery Dropdown plugin -->'; - $drp_code = '<script type="text/javascript"> - //<![CDATA[ - jQuery(document).ready(function() - { - jQuery(".' . $drp_trigger . '").hover(function() - { - jQuery(this).children("ul").css("display", "none"); - jQuery(this).children("ul").slideDown("normal"); - }, - function() - { - jQuery(this).children("ul").slideUp("fast"); - }); - } - ) - //]]> - </script>'; - $drp_css = '<style type="text/css"> - .' . $drp_trigger . ' ul { - display: none; - } - </style>'; - + // $drp_comm_start = '<!-- Start jQuery Dropdown plugin -->'; + // $drp_comm_end = '<!-- End jQuery Dropdown plugin -->'; + - add_headline( $drp_comm_start ); - add_headline( $drp_css ); + // add_headline( $drp_comm_start ); + require_css( $plug_url . 'dropdown.css', true ); require_js( '#jquery#' ); - add_headline( $drp_code ); - add_headline( $drp_comm_end ); + require_js( $plug_url . 'dropdown.js', true ); + // add_headline( $drp_comm_end ); } Added: jquery_dropdown_plugin/trunk/dropdown.css =================================================================== --- jquery_dropdown_plugin/trunk/dropdown.css (rev 0) +++ jquery_dropdown_plugin/trunk/dropdown.css 2008-07-11 01:04:19 UTC (rev 771) @@ -0,0 +1,3 @@ +.dropdown ul { + display: none; +} \ No newline at end of file Property changes on: jquery_dropdown_plugin/trunk/dropdown.css ___________________________________________________________________ Name: svn:mime-type + text/plain Added: jquery_dropdown_plugin/trunk/dropdown.js =================================================================== --- jquery_dropdown_plugin/trunk/dropdown.js (rev 0) +++ jquery_dropdown_plugin/trunk/dropdown.js 2008-07-11 01:04:19 UTC (rev 771) @@ -0,0 +1,13 @@ +jQuery(document).ready(function() + { + jQuery(".dropdown").hover(function() + { + jQuery(this).children("ul").css("display", "none"); + jQuery(this).children("ul").slideDown("normal"); + }, + function() + { + jQuery(this).children("ul").slideUp("fast"); + }); + } +) \ No newline at end of file Added: jquery_dropdown_plugin/trunk/jQ_dropdown_setting.png =================================================================== (Binary files differ) Property changes on: jquery_dropdown_plugin/trunk/jQ_dropdown_setting.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |