Spice Box - Version 0.2.8

Version Description

  • Added some more field in feedback form.
  • Style Feedback form.
Download this release

Release Info

Developer spicethemes
Plugin Icon wp plugin Spice Box
Version 0.2.8
Comparing to
See all releases

Code changes from version 0.2.7 to 0.2.8

feedback-mail.php CHANGED
@@ -1,18 +1,30 @@
1
  <?php
2
 
3
  if( isset($_POST["Resason"]) || isset($_POST["TextReason"])) {
4
-
5
  $pass = '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'; // not the key, but the token
6
 
7
  $url = 'https://api.sendgrid.com/';
8
 
 
 
 
 
 
 
 
 
9
  $params = array(
10
  'to' => 'info@spicethemes.com',
11
  'subject' => 'Spicepress Theme Feedback',
12
- 'html' => $_POST["Resason"] ." ". $_POST["TextReason"],
13
  'from' => 'spicepress@spicethemes.com',
14
  );
15
 
 
 
 
 
16
  $request = $url.'api/mail.send.json';
17
  $headr = array();
18
  // set authorization header
1
  <?php
2
 
3
  if( isset($_POST["Resason"]) || isset($_POST["TextReason"])) {
4
+ $HtmlText ='';
5
  $pass = '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'; // not the key, but the token
6
 
7
  $url = 'https://api.sendgrid.com/';
8
 
9
+ if($_POST["TextReason"]!=''){
10
+ $HtmlText = " Resaon: "." " . $_POST["Resason"] ." <br> ". "Resaon Text:"." ". $_POST["TextReason"] ." <br> " . "User site url: ". " ". $_POST["SiteUrl"].
11
+ " <br> " ."User Email: " . " ". $_POST['SiteAdminEmail'];
12
+ }
13
+ else{
14
+ $HtmlText = " Resaon: "." " . $_POST["Resason"] ." <br> ". "User site url: ". " ". $_POST["SiteUrl"].
15
+ " <br> " ."User Email: " . " ". $_POST['SiteAdminEmail'];
16
+ }
17
  $params = array(
18
  'to' => 'info@spicethemes.com',
19
  'subject' => 'Spicepress Theme Feedback',
20
+ 'html' => $HtmlText,
21
  'from' => 'spicepress@spicethemes.com',
22
  );
23
 
24
+
25
+
26
+ //"ITEMPURCHASED" => ($value != 0) ? array ("DVD", "Book", "Comic") : null
27
+
28
  $request = $url.'api/mail.send.json';
29
  $headr = array();
30
  // set authorization header
inc/css/feedback-popup.css CHANGED
@@ -758,10 +758,11 @@ body.spicepress-editor-inactive #spicepress-editor,body.spicepress-editor-inacti
758
  transition:all .5s
759
  }
760
  #spicepress-deactivate-feedback-modal .dialog-widget-header{
761
- padding:18px 15px;
762
  -webkit-box-shadow:0 0 8px rgba(0,0,0,.1);
763
  box-shadow:0 0 8px rgba(0,0,0,.1);
764
- text-align:left
 
765
  }
766
  #spicepress-deactivate-feedback-modal .dialog-message{
767
  padding:30px 30px 0;
@@ -777,13 +778,14 @@ body.spicepress-editor-inactive #spicepress-editor,body.spicepress-editor-inacti
777
  display:none
778
  }
779
  #spicepress-deactivate-feedback-modal .spicepress-deactivate-feedback-dialog-label{
780
- display:block;
781
- font-size:13px;
782
- color:#6d7882
 
783
  }
784
  #spicepress-deactivate-feedback-modal .spicepress-feedback-text{
785
  margin:10px 0 0 30px;
786
- padding:5px;
787
  font-size:13px;
788
  -webkit-box-shadow:none;
789
  box-shadow:none;
@@ -804,7 +806,8 @@ body.spicepress-editor-inactive #spicepress-editor,body.spicepress-editor-inacti
804
  padding:12px 20px;
805
  font-size:14px;
806
  width:180px;
807
- height:38px
 
808
  }
809
  #spicepress-deactivate-feedback-modal .dialog-submit.spicepress-loading:before{
810
  display:inline-block;
@@ -815,7 +818,7 @@ body.spicepress-editor-inactive #spicepress-editor,body.spicepress-editor-inacti
815
  }
816
  #spicepress-deactivate-feedback-modal .dialog-skip{
817
  font-size:12px;
818
- color:#a4afb7;
819
  background:none;
820
  float:right;
821
  width:auto
@@ -825,16 +828,17 @@ body.spicepress-editor-inactive #spicepress-editor,body.spicepress-editor-inacti
825
  font-size:19px
826
  }
827
  #spicepress-deactivate-feedback-dialog-header-title{
828
- font-size:15px;
829
  text-transform:uppercase;
830
  font-weight:700;
831
- padding-left:5px
 
832
  }
833
  #spicepress-deactivate-feedback-dialog-form-caption{
834
- font-weight:700;
835
- font-size:15px;
836
- color:#495157;
837
- line-height:1.4
838
  }
839
  #spicepress-deactivate-feedback-dialog-form-body{
840
  padding-top:30px
@@ -1159,5 +1163,18 @@ body.spicepress-editor-inactive #spicepress-editor,body.spicepress-editor-inacti
1159
  -webkit-flex-grow:1;
1160
  -ms-flex-positive:1;
1161
  flex-grow:1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1162
  }
1163
-
758
  transition:all .5s
759
  }
760
  #spicepress-deactivate-feedback-modal .dialog-widget-header{
761
+ padding:18px 30px;
762
  -webkit-box-shadow:0 0 8px rgba(0,0,0,.1);
763
  box-shadow:0 0 8px rgba(0,0,0,.1);
764
+ text-align:left;
765
+ background-color: #b7084e;
766
  }
767
  #spicepress-deactivate-feedback-modal .dialog-message{
768
  padding:30px 30px 0;
778
  display:none
779
  }
780
  #spicepress-deactivate-feedback-modal .spicepress-deactivate-feedback-dialog-label{
781
+ display: block;
782
+ font-size: 14px;
783
+ color: #3a3737;
784
+ font-weight: 500;
785
  }
786
  #spicepress-deactivate-feedback-modal .spicepress-feedback-text{
787
  margin:10px 0 0 30px;
788
+ padding:7px 10px;
789
  font-size:13px;
790
  -webkit-box-shadow:none;
791
  box-shadow:none;
806
  padding:12px 20px;
807
  font-size:14px;
808
  width:180px;
809
+ height:38px;
810
+ font-weight: 500;
811
  }
812
  #spicepress-deactivate-feedback-modal .dialog-submit.spicepress-loading:before{
813
  display:inline-block;
818
  }
819
  #spicepress-deactivate-feedback-modal .dialog-skip{
820
  font-size:12px;
821
+ color:#adadad;
822
  background:none;
823
  float:right;
824
  width:auto
828
  font-size:19px
829
  }
830
  #spicepress-deactivate-feedback-dialog-header-title{
831
+ font-size:20px;
832
  text-transform:uppercase;
833
  font-weight:700;
834
+ padding-left:0px;
835
+ color: #fff;
836
  }
837
  #spicepress-deactivate-feedback-dialog-form-caption{
838
+ font-weight: 700;
839
+ font-size: 16px;
840
+ color: #121212;
841
+ line-height: 1.4;
842
  }
843
  #spicepress-deactivate-feedback-dialog-form-body{
844
  padding-top:30px
1163
  -webkit-flex-grow:1;
1164
  -ms-flex-positive:1;
1165
  flex-grow:1
1166
+
1167
+ }
1168
+
1169
+ input[type="text"]::-webkit-input-placeholder,
1170
+ textarea::-webkit-input-placeholder {
1171
+ color: #adadad;
1172
+ }
1173
+ input[type="text"]::-moz-placeholder,
1174
+ textarea::-moz-placeholder {
1175
+ color: #adadad;
1176
+ }
1177
+ input[type="text"]:-ms-input-placeholder,
1178
+ textarea:-ms-input-placeholder {
1179
+ color: #adadad;
1180
  }
 
inc/feedback-pop-up-form.php CHANGED
@@ -4,18 +4,20 @@
4
  <div id="spicepress-deactivate-feedback-dialog-header">
5
 
6
  <span id="spicepress-deactivate-feedback-dialog-header-title"><?php _e('Quick Feedback', 'spicepress');?></span><br>
7
- <p style="color:#6d7882; margin-top:5px"> <?php _e('Your feedback is valuable for us.','spicepress');?> </p>
 
8
  </div>
9
  </div>
10
  <div class="dialog-message dialog-lightbox-message">
11
  <form id="spicepress-deactivate-feedback-dialog-form" method="post">
12
 
13
  <input type="hidden" name="ajaxurl" id="ajaxurl" value="<?php echo SPICEB_PLUGIN_URL.'feedback-mail.php'?>">
14
-
 
15
  <div id="spicepress-deactivate-feedback-dialog-form-caption"><?php echo _e('What we have done wrong?','spicepress');?></div>
16
  <div id="spicepress-deactivate-feedback-dialog-form-body">
17
  <div class="spicepress-deactivate-feedback-dialog-input-wrapper">
18
- <input id="spicepress-deactivate-feedback-no_longer_needed" class="spicepress-deactivate-feedback-dialog-input" type="radio" name="reason_key" value="It lacks options">
19
  <label for="spicepress-deactivate-feedback-no_longer_needed" class="spicepress-deactivate-feedback-dialog-label"><?php _e('Very limited options','spicepress');?></label>
20
 
21
  </div>
@@ -27,6 +29,7 @@
27
  <div class="spicepress-deactivate-feedback-dialog-input-wrapper">
28
  <input id="spicepress-deactivate-feedback-couldnt_get_the_plugin_to_work" class="spicepress-deactivate-feedback-dialog-input" type="radio" name="reason_key" value="Is not working with a plugin that I need">
29
  <label for="spicepress-deactivate-feedback-couldnt_get_the_plugin_to_work" class="spicepress-deactivate-feedback-dialog-label"><?php _e('Is not working with a plugin that I need','spicepress');?></label>
 
30
  </div>
31
  <div class="spicepress-deactivate-feedback-dialog-input-wrapper">
32
  <input id="spicepress-deactivate-feedback-temporary_deactivation" class="spicepress-deactivate-feedback-dialog-input" type="radio" name="reason_key" value="I don't know how to make it look like demo">
4
  <div id="spicepress-deactivate-feedback-dialog-header">
5
 
6
  <span id="spicepress-deactivate-feedback-dialog-header-title"><?php _e('Quick Feedback', 'spicepress');?></span><br>
7
+ <p style="color:#ffffff; font-weight: 400; font-size: 14px;
8
+ margin: 8px 0 0px;"> <?php _e('Your feedback is valuable for us.','spicepress');?> </p>
9
  </div>
10
  </div>
11
  <div class="dialog-message dialog-lightbox-message">
12
  <form id="spicepress-deactivate-feedback-dialog-form" method="post">
13
 
14
  <input type="hidden" name="ajaxurl" id="ajaxurl" value="<?php echo SPICEB_PLUGIN_URL.'feedback-mail.php'?>">
15
+ <input type="hidden" name="plugin_site" id="plugin_site" value='<?php echo get_home_url(); ?>'>
16
+ <input type="hidden" name="admin_mail" id="admin_mail" value="<?php echo get_option('admin_email'); ?>">
17
  <div id="spicepress-deactivate-feedback-dialog-form-caption"><?php echo _e('What we have done wrong?','spicepress');?></div>
18
  <div id="spicepress-deactivate-feedback-dialog-form-body">
19
  <div class="spicepress-deactivate-feedback-dialog-input-wrapper">
20
+ <input id="spicepress-deactivate-feedback-no_longer_needed" class="spicepress-deactivate-feedback-dialog-input" type="radio" name="reason_key" checked value="It lacks options">
21
  <label for="spicepress-deactivate-feedback-no_longer_needed" class="spicepress-deactivate-feedback-dialog-label"><?php _e('Very limited options','spicepress');?></label>
22
 
23
  </div>
29
  <div class="spicepress-deactivate-feedback-dialog-input-wrapper">
30
  <input id="spicepress-deactivate-feedback-couldnt_get_the_plugin_to_work" class="spicepress-deactivate-feedback-dialog-input" type="radio" name="reason_key" value="Is not working with a plugin that I need">
31
  <label for="spicepress-deactivate-feedback-couldnt_get_the_plugin_to_work" class="spicepress-deactivate-feedback-dialog-label"><?php _e('Is not working with a plugin that I need','spicepress');?></label>
32
+ <textarea class="spicepress-feedback-text" id="reason_not_working_with_needed_plugin" name="reason_not_working_with_needed_plugin" placeholder="<?php _e('Plugin Name','spicepress'); ?>"></textarea>
33
  </div>
34
  <div class="spicepress-deactivate-feedback-dialog-input-wrapper">
35
  <input id="spicepress-deactivate-feedback-temporary_deactivation" class="spicepress-deactivate-feedback-dialog-input" type="radio" name="reason_key" value="I don't know how to make it look like demo">
inc/js/custom-js.js CHANGED
@@ -3,13 +3,18 @@
3
  $('#submit').click(function(e) {
4
  var ajaxurl = $('#ajaxurl').val();
5
  var resaon = $('input[name=reason_key]:checked').val();
 
 
6
  var reasontext = '';
7
  if(resaon=="I want to try a new design, I don't like Spicepress style"){
8
  reasontext = $('#reason_found_a_better_plugin').val();
9
  }else if(resaon == 'Other'){
10
  reasontext = $('#reason_other').val();
 
 
11
  }
12
- var dataString = 'Resason='+resaon+'&TextReason='+reasontext;
 
13
  $.ajax({
14
  type:'POST',
15
  data:dataString,
3
  $('#submit').click(function(e) {
4
  var ajaxurl = $('#ajaxurl').val();
5
  var resaon = $('input[name=reason_key]:checked').val();
6
+ var SiteAdminEmail = $('#admin_mail').val();
7
+ var SiteUrl = $('#plugin_site').val();
8
  var reasontext = '';
9
  if(resaon=="I want to try a new design, I don't like Spicepress style"){
10
  reasontext = $('#reason_found_a_better_plugin').val();
11
  }else if(resaon == 'Other'){
12
  reasontext = $('#reason_other').val();
13
+ } else if(resaon == 'Is not working with a plugin that I need'){
14
+ reasontext = $('#reason_not_working_with_needed_plugin').val();
15
  }
16
+ var dataString = 'Resason='+resaon+'&TextReason='+reasontext+'&SiteUrl='+SiteUrl+'&SiteAdminEmail='+SiteAdminEmail;
17
+
18
  $.ajax({
19
  type:'POST',
20
  data:dataString,
readme.txt CHANGED
@@ -51,6 +51,11 @@ This plugin create repeater controls in the customizer settings allowing you to
51
 
52
  * Added Child Theme Name
53
 
54
- = 0.2.6 =
 
 
 
 
55
 
56
- * Added feedback popup form.
 
51
 
52
  * Added Child Theme Name
53
 
54
+ = 0.2.7 =
55
+
56
+ * Added feedback popup form.
57
+
58
+ = 0.2.8 =
59
 
60
+ * Added some more field in feedback form.
61
+ * Style Feedback form.
spicebox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SpiceBox
4
  Plugin URI:
5
  Description: Enhances SpiceThemes with extra functionality.
6
- Version: 0.2.7
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox
3
  Plugin Name: SpiceBox
4
  Plugin URI:
5
  Description: Enhances SpiceThemes with extra functionality.
6
+ Version: 0.2.8
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox