Plugin Directory

Changeset 1076396


Ignore:
Timestamp:
01/27/2015 02:19:33 AM (11 years ago)
Author:
endual
Message:

Adding and tagging version 0.1.1

Location:
wp-customer-feedback/trunk
Files:
4 edited

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()});
     1jQuery(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  
    66Requires at least: 3.3
    77Tested up to: 4.1
    8 Stable tag: 0.1.0
     8Stable tag: 0.1.1
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8080== Frequently Asked Questions ==
    8181
    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? =
    8383
    8484The 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.
     
    9393== Changelog ==
    9494
     95= 0.1.1 =
     96Removed footer text
     97Updated screenshots to reflect UI update
     98Improved feedback email
     99Changed image asset location
     100Bug fixes
     101
    95102= 0.1 =
    96103Initial release
  • wp-customer-feedback/trunk/wp-customer-feedback.php

    r1073156 r1076396  
    33 *
    44 * Plugin Name: WP Customer Feedback
    5  * Plugin URI: http://endual.com/wp-customer-feedback//
     5 * Plugin URI: http://endual.com/wp-customer-feedback/
    66 * Description: Simple way to get user feedback for your site
    77 * Version: 0.1.0
    88 * Author: Adrian Gray
    9  * Author URI: http://http://endual.com/about-adrian-gray/
     9 * Author URI: http://endual.com/about-adrian-gray/
    1010 * License: GPLv2
    1111 */
     
    4545        }
    4646        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);
    4848    }
    4949
     
    7373            $email = sanitize_text_field( $_POST["email"] );
    7474            if ( $email == '' ) {
    75                 $message = "no email";
     75                $message = "no email\n";
    7676            } else {
    77                 $message = "from: $email\n\n";
     77                $message = "from: $email\n";
    7878            }
     79      $message .= "----------------------------\n";
     80      $message .= "comment:\n\n";
    7981            $message .= $comment;
    8082            $to = get_option( 'admin_email' );
Note: See TracChangeset for help on using the changeset viewer.