Changeset 563294
- Timestamp:
- 06/24/2012 09:39:42 PM (14 years ago)
- Location:
- slick-contact-forms
- Files:
-
- 31 added
- 2 deleted
- 3 edited
-
tags/1.3.6 (added)
-
tags/1.3.6/css (added)
-
tags/1.3.6/css/admin.css (added)
-
tags/1.3.6/css/form.css (added)
-
tags/1.3.6/css/images (added)
-
tags/1.3.6/css/images/bg_input.png (added)
-
tags/1.3.6/css/images/dc_icon32.png (added)
-
tags/1.3.6/dcwp_slick_contact.php (added)
-
tags/1.3.6/inc (added)
-
tags/1.3.6/inc/dcwp_admin.php (added)
-
tags/1.3.6/inc/dcwp_plugin_admin.php (added)
-
tags/1.3.6/js (added)
-
tags/1.3.6/js/jquery.slick.contact.1.3.2.js (added)
-
tags/1.3.6/readme.txt (added)
-
tags/1.3.6/screenshot-1.png (added)
-
tags/1.3.6/screenshot-2.png (added)
-
tags/1.3.6/skin.php (added)
-
tags/1.3.6/skins (added)
-
tags/1.3.6/skins/black.css (added)
-
tags/1.3.6/skins/dark_grey.css (added)
-
tags/1.3.6/skins/grey.css (added)
-
tags/1.3.6/skins/images (added)
-
tags/1.3.6/skins/images/bg_input.png (added)
-
tags/1.3.6/skins/images/loading_black.gif (added)
-
tags/1.3.6/skins/images/loading_white.gif (added)
-
tags/1.3.6/skins/images/tab_black.png (added)
-
tags/1.3.6/skins/images/tab_dark_grey.png (added)
-
tags/1.3.6/skins/images/tab_grey.png (added)
-
tags/1.3.6/skins/images/tab_white.png (added)
-
tags/1.3.6/skins/white.css (added)
-
tags/1.3.6/slick_mail.php (added)
-
trunk/dcwp_slick_contact.php (modified) (6 diffs)
-
trunk/js/jquery.easing.js (deleted)
-
trunk/js/jquery.hoverIntent.minified.js (deleted)
-
trunk/js/jquery.slick.contact.1.3.2.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
slick-contact-forms/trunk/dcwp_slick_contact.php
r527378 r563294 6 6 Description: Create quick and easy floating or slide out contact forms with animated validation error messages. 7 7 Author: Lee Chestnutt 8 Version: 1.3. 58 Version: 1.3.6 9 9 Author URI: http://www.designchemical.com/blog/ 10 10 Copyright 2012 Lee Chestnutt … … 16 16 17 17 function dc_jqslickcontact(){ 18 18 19 global $registered_skins; 19 20 … … 21 22 // Header styles 22 23 add_action( 'wp_head', array('dc_jqslickcontact', 'header') ); 23 // Scripts24 wp_enqueue_script( 'jquery' );25 wp_enqueue_script( 'jqueryeasing', dc_jqslickcontact::get_plugin_directory() . '/js/jquery.easing.js', array('jquery') );26 wp_enqueue_script( 'jqueryhoverintent', dc_jqslickcontact::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );27 wp_enqueue_script( 'dcjqslickcontact', dc_jqslickcontact::get_plugin_directory() . '/js/jquery.slick.contact.1.3.2.js', array('jquery') );28 24 // Shortcodes 29 25 add_shortcode( 'dcscf-link', 'dcscf_contact_link_shortcode' ); … … 35 31 36 32 function header(){ 37 //echo "\n\t"; 33 // Scripts 34 wp_enqueue_script( 'jquery' ); 35 wp_enqueue_script( 'dcjqslickcontact', dc_jqslickcontact::get_plugin_directory() . '/js/jquery.slick.contact.1.3.2.js', array('jquery') ); 38 36 } 39 37 … … 51 49 if(is_admin()) { 52 50 53 54 51 $dc_jqslickcontact_admin = new dc_jqslickcontact_admin(); 55 56 52 } 57 53 58 54 // Initialize the plugin. 59 55 $dcjqslickcontact = new dc_jqslickcontact(); 60 61 56 62 57 // Register the widget … … 74 69 75 70 return "<a href='#' class='dcscf-$action'>$text</a>"; 76 77 71 } 78 72 ?> -
slick-contact-forms/trunk/js/jquery.slick.contact.1.3.2.js
r433404 r563294 1 /** 2 * hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+ 3 * <http://cherne.net/brian/resources/jquery.hoverIntent.html> 4 * 5 * @param f onMouseOver function || An object with configuration options 6 * @param g onMouseOut function || Nothing (use configuration options object) 7 * @author Brian Cherne <brian@cherne.net> 8 */ 9 (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); 10 11 /* 12 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 13 * 14 * Uses the built in easing capabilities added In jQuery 1.1 15 * to offer multiple easing options 16 * 17 * TERMS OF USE - jQuery Easing 18 * 19 * Open source under the BSD License. 20 * 21 * Copyright © 2008 George McGinley Smith 22 * All rights reserved. 23 */ 24 25 // t: current time, b: begInnIng value, c: change In value, d: duration 26 jQuery.easing['jswing'] = jQuery.easing['swing']; 27 28 jQuery.extend( jQuery.easing, 29 { 30 def: 'easeOutQuad', 31 swing: function (x, t, b, c, d) { 32 //alert(jQuery.easing.default); 33 return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 34 }, 35 easeInQuad: function (x, t, b, c, d) { 36 return c*(t/=d)*t + b; 37 }, 38 easeOutQuad: function (x, t, b, c, d) { 39 return -c *(t/=d)*(t-2) + b; 40 }, 41 easeInOutQuad: function (x, t, b, c, d) { 42 if ((t/=d/2) < 1) return c/2*t*t + b; 43 return -c/2 * ((--t)*(t-2) - 1) + b; 44 }, 45 easeInCubic: function (x, t, b, c, d) { 46 return c*(t/=d)*t*t + b; 47 }, 48 easeOutCubic: function (x, t, b, c, d) { 49 return c*((t=t/d-1)*t*t + 1) + b; 50 }, 51 easeInOutCubic: function (x, t, b, c, d) { 52 if ((t/=d/2) < 1) return c/2*t*t*t + b; 53 return c/2*((t-=2)*t*t + 2) + b; 54 }, 55 easeInQuart: function (x, t, b, c, d) { 56 return c*(t/=d)*t*t*t + b; 57 }, 58 easeOutQuart: function (x, t, b, c, d) { 59 return -c * ((t=t/d-1)*t*t*t - 1) + b; 60 }, 61 easeInOutQuart: function (x, t, b, c, d) { 62 if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 63 return -c/2 * ((t-=2)*t*t*t - 2) + b; 64 }, 65 easeInQuint: function (x, t, b, c, d) { 66 return c*(t/=d)*t*t*t*t + b; 67 }, 68 easeOutQuint: function (x, t, b, c, d) { 69 return c*((t=t/d-1)*t*t*t*t + 1) + b; 70 }, 71 easeInOutQuint: function (x, t, b, c, d) { 72 if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 73 return c/2*((t-=2)*t*t*t*t + 2) + b; 74 }, 75 easeInSine: function (x, t, b, c, d) { 76 return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 77 }, 78 easeOutSine: function (x, t, b, c, d) { 79 return c * Math.sin(t/d * (Math.PI/2)) + b; 80 }, 81 easeInOutSine: function (x, t, b, c, d) { 82 return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 83 }, 84 easeInExpo: function (x, t, b, c, d) { 85 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 86 }, 87 easeOutExpo: function (x, t, b, c, d) { 88 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 89 }, 90 easeInOutExpo: function (x, t, b, c, d) { 91 if (t==0) return b; 92 if (t==d) return b+c; 93 if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 94 return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 95 }, 96 easeInCirc: function (x, t, b, c, d) { 97 return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 98 }, 99 easeOutCirc: function (x, t, b, c, d) { 100 return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 101 }, 102 easeInOutCirc: function (x, t, b, c, d) { 103 if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 104 return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 105 }, 106 easeInElastic: function (x, t, b, c, d) { 107 var s=1.70158;var p=0;var a=c; 108 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 109 if (a < Math.abs(c)) { a=c; var s=p/4; } 110 else var s = p/(2*Math.PI) * Math.asin (c/a); 111 return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 112 }, 113 easeOutElastic: function (x, t, b, c, d) { 114 var s=1.70158;var p=0;var a=c; 115 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 116 if (a < Math.abs(c)) { a=c; var s=p/4; } 117 else var s = p/(2*Math.PI) * Math.asin (c/a); 118 return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 119 }, 120 easeInOutElastic: function (x, t, b, c, d) { 121 var s=1.70158;var p=0;var a=c; 122 if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 123 if (a < Math.abs(c)) { a=c; var s=p/4; } 124 else var s = p/(2*Math.PI) * Math.asin (c/a); 125 if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 126 return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 127 }, 128 easeInBack: function (x, t, b, c, d, s) { 129 if (s == undefined) s = 1.70158; 130 return c*(t/=d)*t*((s+1)*t - s) + b; 131 }, 132 easeOutBack: function (x, t, b, c, d, s) { 133 if (s == undefined) s = 1.70158; 134 return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 135 }, 136 easeInOutBack: function (x, t, b, c, d, s) { 137 if (s == undefined) s = 1.70158; 138 if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 139 return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 140 }, 141 easeInBounce: function (x, t, b, c, d) { 142 return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 143 }, 144 easeOutBounce: function (x, t, b, c, d) { 145 if ((t/=d) < (1/2.75)) { 146 return c*(7.5625*t*t) + b; 147 } else if (t < (2/2.75)) { 148 return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 149 } else if (t < (2.5/2.75)) { 150 return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 151 } else { 152 return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 153 } 154 }, 155 easeInOutBounce: function (x, t, b, c, d) { 156 if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 157 return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 158 } 159 }); 160 1 161 /* 2 162 * DC jQuery Slick Contact Forms -
slick-contact-forms/trunk/readme.txt
r527378 r563294 4 4 Tags: jquery, flyout, drop down, floating, sliding, contact forms, validation, animated, widget 5 5 Requires at least: 3.0 6 Tested up to: 3. 3.17 Stable tag: 1.3. 56 Tested up to: 3.4 7 Stable tag: 1.3.6 8 8 9 9 Slick contact forms allows you quickly and easily create contact forms for any area on your Wordpress site using widgets … … 133 133 == Changelog == 134 134 135 = 1.3.6 = 136 * Edit: Consolidated jquery scripts into single file 137 135 138 = 1.3.5 = 136 139 * Edit: Edit slick_mail.php filter function name
Note: See TracChangeset
for help on using the changeset viewer.