Changeset 1076396
- Timestamp:
- 01/27/2015 02:19:33 AM (11 years ago)
- Location:
- wp-customer-feedback/trunk
- Files:
-
- 4 edited
-
css/feedback.css (modified) (1 diff)
-
js/feedback.js (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
wp-customer-feedback.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-customer-feedback/trunk/css/feedback.css
r1073156 r1076396 1 #cfbp-panel{position:fixed;left:0;top:0;width:300px;height: 326px;background:#FFF;z-index:9997000;border:1px solid #999;border-radius:8px 8px 0 0;text-align:center}#cfbp-panel h3#cfbp-footer,#cfbp-panel h3#cfbp-title{color:#FFF;font:14px sans-serif;padding-top:8px;margin-top:0}#cfbp-panel h3#cfbp-footer{color:#888;margin:0;padding-top:10px}#cfbp-panel #rating-header{height:30px;width:300px;background:#ED5100;border-radius:8px 8px 0 0}#cfbp-panel #rating-stars{margin-top:10px;width:300px;color:#fff}#cfbp-panel #rating-stars #rating-star1,#cfbp-panel #rating-stars #rating-star2,#cfbp-panel #rating-stars #rating-star3,#cfbp-panel #rating-stars #rating-star4,#cfbp-panel #rating-stars #rating-star5{display:inline-block}#cfbp-panel #rating-stars input{position:absolute;top:0;left:0;opacity:0}#cfbp-panel #rating-stars label{display:inline-block;width:0;height:1.5em;border-width:0 .75em;border-style:solid;border-color:#eee;background:#eee;font:24px sans-serif;line-height:1.6em;text-indent:-.5em;text-shadow:1px 0 1px #b3b3b3}#cfbp-panel .comment{width:300px}#cfbp-panel .comment textarea{margin:10px 0;width:280px;height:140px}#cfbp-panel .comment label{background-color:#eee}#cfbp-panel .comment .email{width:280px;color:#111;font-size:16px;background-color:#eee}#cfbp-panel input.rating-submit{margin:10px;float:right;border:none;border-radius:2px;font-size:12px;padding:10px 30px 11px;text-transform:uppercase}1 #cfbp-panel{position:fixed;left:0;top:0;width:300px;height:288px;background:#FFF;z-index:9997000;border:1px solid #999;border-radius:8px 8px 0 0;text-align:center}#cfbp-panel h3#cfbp-footer,#cfbp-panel h3#cfbp-title{color:#FFF;font:14px sans-serif;padding-top:8px;margin-top:0}#cfbp-panel h3#cfbp-footer{color:#888;margin:0;padding-top:10px}#cfbp-panel #rating-header{height:30px;width:300px;background:#ED5100;border-radius:8px 8px 0 0}#cfbp-panel .comment{width:300px}#cfbp-panel .comment textarea{margin:10px 0;width:280px;height:140px}#cfbp-panel .comment label{background-color:#eee}#cfbp-panel .comment .email{width:280px;color:#111;font-size:16px;background-color:#eee}#cfbp-panel input.rating-submit{margin:10px;float:right;border:none;border-radius:2px;font-size:12px;padding:10px 30px 11px;text-transform:uppercase} -
wp-customer-feedback/trunk/js/feedback.js
r1073156 r1076396 1 jQuery(document).ready(function(e){var n,t,a,i,r,o,c,l, p,s;return r=!1,i=!1,n=function(){var n,t;return n=endual.color,this.delay=1e3*endual.delay,t="",t+='<div id="cfbp-panel" style="transform: matrix(1, 0, 0, 1, 381, 1017); visibility: visible;">',t+='<form accept-charset="UTF-8" action="" class="cs-rating" data-remote="true" id="wp-cfbp" method="post">',t+='<div id="rating-header">',t+="<h3 id='cfbp-title'>Tell us what you think of this!</h3>",t+="</div>",t+='<div class="comment">',t+='<textarea name="comment" placeholder="Tell us what you think of this!"></textarea>',t+='<input class="email" type="email" name="email" placeholder="Your email address?"></textarea>',t+='<input class="rating-submit" name="commit" type="submit" value="Submit">',t+="</div>",t+="</form>",t+="<h3 id='cfbp-footer'>WP Customer Feedback</h3>",t+="</div>",e("body").append(t),e("#rating-header").css({background:n}),e("<style type='text/css'> .hilite{ color:"+n+";} .checked{ color:"+n+";}</style>").appendTo("head")},l=function(){return o(),e(window).on("resize",c),e(window).on("scroll",c),e("#cfbp-panel #rating-header").click(function(){return p()}),e("#wp-cfbp").submit(function(){var n,a;return a=e("#wp-cfbp").serializeArray(),n={},e.map(a,function(e){return n[e.name]=e.value}),n.action="process_form_data",e.post(endual.ajaxurl,n,t),!1})},o=function(){var n,t;return t=e(window).innerHeight()+2,n=e(window).width()-400,e("#cfbp-panel").css({transform:"translate( "+n+"px, "+t+"px )"}),s()},s=function(){var n;return n=e(window).innerHeight()-30,e("#cfbp-panel").delay(this.delay).animate({top:"-32"},600,"swing",function(){return r=!0})},c=function(){var n,t;return t=e(window).innerHeight()-30,r&&(t+=32),n=e(window).width()-400,e("#cfbp-panel").css({transform:"translate( "+n+"px, "+t+"px )"})},p=function(){var n;if(!i)return i=!0,n=296,e("#cfbp-panel").animate({top:"-="+n},600,"swing")},t=function(){var n;return e("#cfbp-panel .comment").html("<p>Thankyou for helping make our site better for everyone!</p>"),n=e(window).innerHeight()+2,e("#cfbp-panel").animate({top:"+=130"},600,"swing").delay(3e3).animate({top:"+=200"},600,"swing",a),e(window).off("resize",c)},a=function(){return e("#cfbp-panel").hide()},n(),l()});1 jQuery(document).ready(function(e){var n,t,a,i,r,o,c,l,s,p;return r=!1,i=!1,n=function(){var n,t;return n=endual.color,this.delay=1e3*endual.delay,t="",t+='<div id="cfbp-panel" style="transform: matrix(1, 0, 0, 1, 381, 1017); visibility: visible;">',t+='<form accept-charset="UTF-8" action="" class="cs-rating" data-remote="true" id="wp-cfbp" method="post">',t+='<div id="rating-header">',t+="<h3 id='cfbp-title'>Tell us what you think of this!</h3>",t+="</div>",t+='<div class="comment">',t+='<textarea name="comment" placeholder="Tell us what you think of this!"></textarea>',t+='<input class="email" type="email" name="email" placeholder="Your email address?"></textarea>',t+='<input class="rating-submit" name="commit" type="submit" value="Submit">',t+="</div>",t+="</form>",t+="</div>",e("body").append(t),e("#rating-header").css({background:n}),e("<style type='text/css'> .hilite{ color:"+n+";} .checked{ color:"+n+";}</style>").appendTo("head")},l=function(){return o(),e(window).on("resize",c),e(window).on("scroll",c),e("#cfbp-panel #rating-header").click(function(){return s()}),e("#wp-cfbp").submit(function(){var n,a;return a=e("#wp-cfbp").serializeArray(),n={},e.map(a,function(e){return n[e.name]=e.value}),n.action="process_form_data",e.post(endual.ajaxurl,n,t),!1})},o=function(){var n,t;return t=e(window).innerHeight()+2,n=e(window).width()-400,e("#cfbp-panel").css({transform:"translate( "+n+"px, "+t+"px )"}),p()},p=function(){var n;return n=e(window).innerHeight()-30,e("#cfbp-panel").delay(this.delay).animate({top:"-32"},600,"swing",function(){return r=!0})},c=function(){var n,t;return t=e(window).innerHeight()-30,r&&(t+=32),n=e(window).width()-400,e("#cfbp-panel").css({transform:"translate( "+n+"px, "+t+"px )"})},s=function(){var n;if(!i)return i=!0,n=258,e("#cfbp-panel").animate({top:"-="+n},600,"swing")},t=function(){var n;return e("#cfbp-panel .comment").html("<br /><br /><p>Thanks for letting us know!</p>"),n=e(window).innerHeight()+2,e("#cfbp-panel").animate({top:"+=130"},600,"swing").delay(3e3).animate({top:"+=200"},600,"swing",a),e(window).off("resize",c)},a=function(){return e("#cfbp-panel").hide()},n(),l()}); -
wp-customer-feedback/trunk/readme.txt
r1073156 r1076396 6 6 Requires at least: 3.3 7 7 Tested up to: 4.1 8 Stable tag: 0.1. 08 Stable tag: 0.1.1 9 9 License: GPLv2 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 80 80 == Frequently Asked Questions == 81 81 82 = Why can't I see the feedback panel on the home page? 82 = Why can't I see the feedback panel on the home page? = 83 83 84 84 The panel only displays on specific pages or posts - it won't show on a list of posts. If you set the homepage to display a page, and add [get-feedback] to the page, you should see the feedback panel. … … 93 93 == Changelog == 94 94 95 = 0.1.1 = 96 Removed footer text 97 Updated screenshots to reflect UI update 98 Improved feedback email 99 Changed image asset location 100 Bug fixes 101 95 102 = 0.1 = 96 103 Initial release -
wp-customer-feedback/trunk/wp-customer-feedback.php
r1073156 r1076396 3 3 * 4 4 * Plugin Name: WP Customer Feedback 5 * Plugin URI: http://endual.com/wp-customer-feedback/ /5 * Plugin URI: http://endual.com/wp-customer-feedback/ 6 6 * Description: Simple way to get user feedback for your site 7 7 * Version: 0.1.0 8 8 * Author: Adrian Gray 9 * Author URI: http:// http://endual.com/about-adrian-gray/9 * Author URI: http://endual.com/about-adrian-gray/ 10 10 * License: GPLv2 11 11 */ … … 45 45 } 46 46 wp_enqueue_style( 'endual-feedback', plugins_url( '/css/feedback.css', __FILE__ ) ); 47 wp_register_script( 'endual-feedback', plugins_url( '/js/feedback.js', __FILE__ ), array( 'jquery' ), '0.1. 0', true);47 wp_register_script( 'endual-feedback', plugins_url( '/js/feedback.js', __FILE__ ), array( 'jquery' ), '0.1.1', true); 48 48 } 49 49 … … 73 73 $email = sanitize_text_field( $_POST["email"] ); 74 74 if ( $email == '' ) { 75 $message = "no email ";75 $message = "no email\n"; 76 76 } else { 77 $message = "from: $email\n \n";77 $message = "from: $email\n"; 78 78 } 79 $message .= "----------------------------\n"; 80 $message .= "comment:\n\n"; 79 81 $message .= $comment; 80 82 $to = get_option( 'admin_email' );
Note: See TracChangeset
for help on using the changeset viewer.