Ultimate FAQ - Version 1.3.0

Version Description

  • Added a feature that has been requested by a number of users, an FAQ shortcode helper, which lets you build shortcodes without having to remember and manually input the attributes. This feature can be turned off via the settings page, if you'd like to keep your tinyMCE button bar free of extra buttons
  • Fixed an error where category titles were no longer displaying
Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Ultimate FAQ
Version 1.3.0
Comparing to
See all releases

Code changes from version 1.2.11 to 1.3.0

Functions/EWD_UFAQ_Version_Update.php CHANGED
@@ -45,7 +45,7 @@ function EWD_UFAQ_Version_Update_Box() {
45
  <h3 class='hndle'><span><?php _e("Thank You!", 'EWD_UFAQ') ?></span></h3>
46
  <div class="inside">
47
  <?php if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate FAQs plugin.", "EWD_UFAQ"); ?><br> <a href='https://www.youtube.com/channel/UCZPuaoetCJB1vZOmpnMxJNw'><?php _e("Subscribe to our YouTube channel ", "EWD_UFAQ"); ?></a> <?php _e("for tutorial videos on this and our other plugins!", "EWD_UFAQ");?> </li></ul>
48
- <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 1.2.11!", "EWD_UFAQ"); ?><br> <a href='https://wordpress.org/support/view/plugin-reviews/ultimate-faqs?filter=5'><?php _e("Please rate our plugin", "EWD_UFAQ"); ?></a> <?php _e("if you find Ultimate FAQs useful!", "EWD_UFAQ");?> </li></ul><?php } ?>
49
 
50
  <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul>
51
  <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 2.2.9!", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul><?php } */ ?>
45
  <h3 class='hndle'><span><?php _e("Thank You!", 'EWD_UFAQ') ?></span></h3>
46
  <div class="inside">
47
  <?php if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate FAQs plugin.", "EWD_UFAQ"); ?><br> <a href='https://www.youtube.com/channel/UCZPuaoetCJB1vZOmpnMxJNw'><?php _e("Subscribe to our YouTube channel ", "EWD_UFAQ"); ?></a> <?php _e("for tutorial videos on this and our other plugins!", "EWD_UFAQ");?> </li></ul>
48
+ <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 1.3.0!", "EWD_UFAQ"); ?><br> <a href='https://wordpress.org/support/view/plugin-reviews/ultimate-faqs?filter=5'><?php _e("Please rate our plugin", "EWD_UFAQ"); ?></a> <?php _e("if you find Ultimate FAQs useful!", "EWD_UFAQ");?> </li></ul><?php } ?>
49
 
50
  <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul>
51
  <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 2.2.9!", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul><?php } */ ?>
Functions/Update_Admin_Databases.php CHANGED
@@ -44,6 +44,7 @@ function EWD_UFAQ_UpdateOptions() {
44
  if (isset($_POST['display_back_to_top'])) {update_option('EWD_UFAQ_Display_Back_To_Top', $_POST['display_back_to_top']);}
45
  if (isset($_POST['include_permalink'])) {update_option('EWD_UFAQ_Include_Permalink', $_POST['include_permalink']);}
46
  if (isset($_POST['permalink_type'])) {update_option('EWD_UFAQ_Permalink_Type', $_POST['permalink_type']);}
 
47
 
48
  if (isset($_POST['display_style']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Display_Style', $_POST['display_style']);}
49
  if (isset($_POST['color_block_shape']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Color_Block_Shape', $_POST['color_block_shape']);}
44
  if (isset($_POST['display_back_to_top'])) {update_option('EWD_UFAQ_Display_Back_To_Top', $_POST['display_back_to_top']);}
45
  if (isset($_POST['include_permalink'])) {update_option('EWD_UFAQ_Include_Permalink', $_POST['include_permalink']);}
46
  if (isset($_POST['permalink_type'])) {update_option('EWD_UFAQ_Permalink_Type', $_POST['permalink_type']);}
47
+ if (isset($_POST['show_tinymce'])) {update_option('EWD_UFAQ_Show_TinyMCE', $_POST['show_tinymce']);}
48
 
49
  if (isset($_POST['display_style']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Display_Style', $_POST['display_style']);}
50
  if (isset($_POST['color_block_shape']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Color_Block_Shape', $_POST['color_block_shape']);}
Main.php CHANGED
@@ -7,14 +7,14 @@ Author: Etoile Web Design
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: EWD_UFAQ
10
- Version: 1.2.11
11
  */
12
 
13
  global $ewd_ufaq_message;
14
  global $UFAQ_Full_Version;
15
  global $EWD_UFAQ_Version;
16
 
17
- $EWD_UFAQ_Version = '1.2.6';
18
 
19
  define( 'EWD_UFAQ_CD_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
20
  define( 'EWD_UFAQ_CD_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
@@ -126,6 +126,7 @@ function Set_EWD_UFAQ_Options() {
126
  if (get_option("EWD_UFAQ_Display_Back_To_Top") == "") {update_option("EWD_UFAQ_Display_Back_To_Top", "No");}
127
  if (get_option("EWD_UFAQ_Include_Permalink") == "") {update_option("EWD_UFAQ_Include_Permalink", "Yes");}
128
  if (get_option("EWD_UFAQ_Permalink_Type") == "") {update_option("EWD_UFAQ_Permalink_Type", "SamePage");}
 
129
 
130
  if (get_option("EWD_UFAQ_Display_Style") == "") {update_option("EWD_UFAQ_Display_Style", "Default");}
131
  if (get_option("EWD_UFAQ_Color_Block_Shape") == "") {update_option("EWD_UFAQ_Color_Block_Shape", "Square");}
@@ -164,6 +165,34 @@ if (isset($_POST['Upgrade_To_Full'])) {
164
  add_action('admin_init', 'EWD_UFAQ_Upgrade_To_Full');
165
  }
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  include "Functions/Error_Notices.php";
168
  include "Functions/EWD_UFAQ_Add_Social_Media_Buttons.php";
169
  include "Functions/EWD_UFAQ_Add_Views_Column.php";
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: EWD_UFAQ
10
+ Version: 1.3.0
11
  */
12
 
13
  global $ewd_ufaq_message;
14
  global $UFAQ_Full_Version;
15
  global $EWD_UFAQ_Version;
16
 
17
+ $EWD_UFAQ_Version = '1.3.0';
18
 
19
  define( 'EWD_UFAQ_CD_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
20
  define( 'EWD_UFAQ_CD_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
126
  if (get_option("EWD_UFAQ_Display_Back_To_Top") == "") {update_option("EWD_UFAQ_Display_Back_To_Top", "No");}
127
  if (get_option("EWD_UFAQ_Include_Permalink") == "") {update_option("EWD_UFAQ_Include_Permalink", "Yes");}
128
  if (get_option("EWD_UFAQ_Permalink_Type") == "") {update_option("EWD_UFAQ_Permalink_Type", "SamePage");}
129
+ if (get_option("EWD_UFAQ_Show_TinyMCE") == "") {update_option("EWD_UFAQ_Show_TinyMCE", "Yes");}
130
 
131
  if (get_option("EWD_UFAQ_Display_Style") == "") {update_option("EWD_UFAQ_Display_Style", "Default");}
132
  if (get_option("EWD_UFAQ_Color_Block_Shape") == "") {update_option("EWD_UFAQ_Color_Block_Shape", "Square");}
165
  add_action('admin_init', 'EWD_UFAQ_Upgrade_To_Full');
166
  }
167
 
168
+ $Show_TinyMCE = get_option("EWD_UFAQ_Show_TinyMCE");
169
+ if ($Show_TinyMCE == "Yes") {
170
+ add_filter( 'mce_buttons', 'EWD_UFAQ_Register_TinyMCE_Buttons' );
171
+ add_filter( 'mce_external_plugins', 'EWD_UFAQ_Register_TinyMCE_Javascript' );
172
+ add_action('admin_head', 'EWD_UFAQ_Output_TinyMCE_Vars');
173
+ }
174
+
175
+ function EWD_UFAQ_Register_TinyMCE_Buttons( $buttons ) {
176
+ array_push( $buttons, 'separator', 'UFAQ_Shortcodes' );
177
+ return $buttons;
178
+ }
179
+
180
+ function EWD_UFAQ_Register_TinyMCE_Javascript( $plugin_array ) {
181
+ $plugin_array['UFAQ_Shortcodes'] = plugins_url( '/js/tinymce-plugin.js',__FILE__ );
182
+
183
+ return $plugin_array;
184
+ }
185
+
186
+ function EWD_UFAQ_Output_TinyMCE_Vars() {
187
+ global $UFAQ_Full_Version;
188
+ $UFAQ_Categories = get_terms('ufaq-category');
189
+
190
+ echo "<script type='text/javascript'>";
191
+ echo "var ufaq_premium = '" . $UFAQ_Full_Version . "';\n";
192
+ echo "var ufaq_categories = " . json_encode($UFAQ_Categories) . ";\n";
193
+ echo "</script>";
194
+ }
195
+
196
  include "Functions/Error_Notices.php";
197
  include "Functions/EWD_UFAQ_Add_Social_Media_Buttons.php";
198
  include "Functions/EWD_UFAQ_Add_Views_Column.php";
Shortcodes/DisplayFAQs.php CHANGED
@@ -179,7 +179,7 @@ function Display_FAQs($atts) {
179
  if ($orig_order_setting == "set_order") {$params['meta_key'] = 'ufaq_order';}
180
  $FAQ_Query = new WP_Query($params);
181
 
182
- if ($Category != "EWD_UFAQ_ALL_CATEGORIES" and sizeOf($faqs) > 0) {
183
  $ReturnString .= "<div class='ufaq-faq-category'>";
184
  $ReturnString .= "<div class='ufaq-faq-category-title";
185
  if ($Category_Toggle == "Yes") {$ReturnString .= " ufaq-faq-category-title-toggle";}
@@ -312,7 +312,7 @@ function Display_FAQs($atts) {
312
  $Counter++;
313
  endwhile;
314
 
315
- if ($Category != "EWD_UFAQ_ALL_CATEGORIES" and sizeOf($faqs) > 0) {
316
  $ReturnString .= "</div>";
317
  $ReturnString .= "</div>";
318
  $HeaderString .= "</div>";
179
  if ($orig_order_setting == "set_order") {$params['meta_key'] = 'ufaq_order';}
180
  $FAQ_Query = new WP_Query($params);
181
 
182
+ if ($Category != "EWD_UFAQ_ALL_CATEGORIES" and $FAQ_Query->post_count > 0) {
183
  $ReturnString .= "<div class='ufaq-faq-category'>";
184
  $ReturnString .= "<div class='ufaq-faq-category-title";
185
  if ($Category_Toggle == "Yes") {$ReturnString .= " ufaq-faq-category-title-toggle";}
312
  $Counter++;
313
  endwhile;
314
 
315
+ if ($Category != "EWD_UFAQ_ALL_CATEGORIES" and $FAQ_Query->post_count > 0) {
316
  $ReturnString .= "</div>";
317
  $ReturnString .= "</div>";
318
  $HeaderString .= "</div>";
html/OptionsPage.php CHANGED
@@ -12,6 +12,7 @@
12
  $Display_Back_To_Top = get_option("EWD_UFAQ_Display_Back_To_Top");
13
  $Include_Permalink = get_option("EWD_UFAQ_Include_Permalink");
14
  $Permalink_Type = get_option("EWD_UFAQ_Permalink_Type");
 
15
 
16
  $Display_Style = get_option("EWD_UFAQ_Display_Style");
17
  $Color_Block_Shape = get_option("EWD_UFAQ_Color_Block_Shape");
@@ -235,6 +236,16 @@
235
  </fieldset>
236
  </td>
237
  </tr>
 
 
 
 
 
 
 
 
 
 
238
  </table>
239
  </div>
240
 
12
  $Display_Back_To_Top = get_option("EWD_UFAQ_Display_Back_To_Top");
13
  $Include_Permalink = get_option("EWD_UFAQ_Include_Permalink");
14
  $Permalink_Type = get_option("EWD_UFAQ_Permalink_Type");
15
+ $Show_TinyMCE = get_option("EWD_UFAQ_Show_TinyMCE");
16
 
17
  $Display_Style = get_option("EWD_UFAQ_Display_Style");
18
  $Color_Block_Shape = get_option("EWD_UFAQ_Color_Block_Shape");
236
  </fieldset>
237
  </td>
238
  </tr>
239
+ <tr>
240
+ <th scope="row">Show Editor Helper</th>
241
+ <td>
242
+ <fieldset><legend class="screen-reader-text"><span>Show Editor Helper</span></legend>
243
+ <label title='Yes'><input type='radio' name='show_tinymce' value='Yes' <?php if($Show_TinyMCE == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
244
+ <label title='No'><input type='radio' name='show_tinymce' value='No' <?php if($Show_TinyMCE == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
245
+ <p>Should the shortcode builder be shown above the WordPress page/post editor, in the tollbar buttons?</p>
246
+ </fieldset>
247
+ </td>
248
+ </tr>
249
  </table>
250
  </div>
251
 
js/tinymce-plugin.js ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function() {
2
+ tinymce.PluginManager.add('UFAQ_Shortcodes', function( editor, url ) {
3
+ editor.on('init', function(args){EWD_UFAQ_Disable_Non_Premium();});
4
+ editor.addButton( 'UFAQ_Shortcodes', {
5
+ title: 'FAQ Shortcodes',
6
+ text: 'FAQs',
7
+ type: 'menubutton',
8
+ icon: 'wp_code',
9
+ menu: [{
10
+ text: 'Display FAQs',
11
+ value: 'ultimate-faqs',
12
+ onclick: function() {
13
+ var win = editor.windowManager.open( {
14
+ title: 'Insert Ultimate FAQs Shortcode',
15
+ body: [{
16
+ type: 'listbox',
17
+ name: 'post_count',
18
+ label: '# of FAQs:',
19
+ 'values': [
20
+ {text: 'All', value: '-1'},
21
+ {text: '1', value: '1'},
22
+ {text: '2', value: '2'},
23
+ {text: '3', value: '3'},
24
+ {text: '4', value: '4'},
25
+ {text: '5', value: '5'}
26
+ ]
27
+ },
28
+ {
29
+ type: 'listbox',
30
+ name: 'include_category',
31
+ label: 'Category to include:',
32
+ 'values': EWD_UFAQ_Create_Category_List('All')
33
+ },
34
+ {
35
+ type: 'listbox',
36
+ name: 'exclude_category',
37
+ label: 'Category to exclude:',
38
+ 'values': EWD_UFAQ_Create_Category_List('None')
39
+ }],
40
+ onsubmit: function( e ) {
41
+ if (e.data.post_count != -1) {var post_text = "post_count='" + e.data.post_count + "'";}
42
+ else {var post_text = "";}
43
+ if (e.data.include_category != -1) {var inc_cat_text = "include_category='" + e.data.include_category + "'";}
44
+ else {var inc_cat_text = "";}
45
+ if (e.data.exclude_category != -1) {var excl_cat_text = "exclude_category='" + e.data.exclude_category + "'";}
46
+ else {var excl_cat_text = "";}
47
+
48
+ editor.insertContent( '[ultimate-faqs '+post_text+' '+inc_cat_text+' '+excl_cat_text+']');
49
+ }
50
+ });
51
+ }
52
+ },
53
+ {
54
+ text: 'Search FAQs',
55
+ onPostRender: function() {EWD_UFAQ_Search_Non_Premium();},
56
+ value: 'ultimate-faq-search',
57
+ id: 'faq-search',
58
+ onclick: function() {
59
+ var premium = EWD_UFAQ_Is_Premium();
60
+ if (!premium) {return;}
61
+
62
+ var win = editor.windowManager.open( {
63
+ title: 'Insert Ultimate FAQs Shortcode',
64
+ body: [{
65
+ type: 'listbox',
66
+ name: 'include_category',
67
+ label: 'Category to include:',
68
+ 'values': EWD_UFAQ_Create_Category_List('All')
69
+ },
70
+ {
71
+ type: 'listbox',
72
+ name: 'exclude_category',
73
+ label: 'Category to exclude:',
74
+ 'values': EWD_UFAQ_Create_Category_List('None')
75
+ },
76
+ {
77
+ type: 'checkbox',
78
+ name: 'show_on_load',
79
+ label: 'Show all FAQs on pageload:'
80
+ }],
81
+ onsubmit: function( e ) {
82
+ if (e.data.include_category != -1) {var inc_cat_text = "include_category='" + e.data.include_category + "'";}
83
+ else {var inc_cat_text = "";}
84
+ if (e.data.exclude_category != -1) {var excl_cat_text = "exclude_category='" + e.data.exclude_category + "'";}
85
+ else {var excl_cat_text = "";}
86
+ if (e.data.show_on_load) {var show_on_load_text = "show_on_load='Yes'";}
87
+ else {var show_on_load_text = "";}
88
+
89
+ editor.insertContent( '[ultimate-faq-search '+inc_cat_text+' '+excl_cat_text+' '+show_on_load_text+']');
90
+ }
91
+ });
92
+ }
93
+ },
94
+ {
95
+ text: 'Submit FAQ',
96
+ value: 'submit-question',
97
+ onPostRender: function() {EWD_UFAQ_Submit_Non_Premium();},
98
+ id: 'faq-question',
99
+ onclick: function() {
100
+ var premium = EWD_UFAQ_Is_Premium();
101
+ if (!premium) {return;}
102
+
103
+ editor.insertContent( '[submit-question]' );
104
+ }
105
+ },
106
+ {
107
+ text: 'Recent FAQs',
108
+ value: 'recent-faqs',
109
+ onclick: function() {
110
+ var win = editor.windowManager.open( {
111
+ title: 'Insert Ultimate FAQs Shortcode',
112
+ body: [{
113
+ type: 'listbox',
114
+ name: 'post_count',
115
+ label: '# of FAQs:',
116
+ 'values': [
117
+ {text: 'All', value: '-1'},
118
+ {text: '1', value: '1'},
119
+ {text: '2', value: '2'},
120
+ {text: '3', value: '3'},
121
+ {text: '4', value: '4'},
122
+ {text: '5', value: '5'}
123
+ ]
124
+ }],
125
+ onsubmit: function( e ) {
126
+ if (e.data.post_count != -1) {var post_text = "post_count='" + e.data.post_count + "'";}
127
+ else {var post_text = "";}
128
+
129
+ editor.insertContent( '[recent-faqs '+post_text+']');
130
+ }
131
+ });
132
+ }
133
+ },
134
+ {
135
+ text: 'Popular FAQs',
136
+ value: 'popular-faqs',
137
+ onclick: function() {
138
+ var win = editor.windowManager.open( {
139
+ title: 'Insert Ultimate FAQs Shortcode',
140
+ body: [{
141
+ type: 'listbox',
142
+ name: 'post_count',
143
+ label: '# of FAQs:',
144
+ 'values': [
145
+ {text: 'All', value: '-1'},
146
+ {text: '1', value: '1'},
147
+ {text: '2', value: '2'},
148
+ {text: '3', value: '3'},
149
+ {text: '4', value: '4'},
150
+ {text: '5', value: '5'}
151
+ ]
152
+ }],
153
+ onsubmit: function( e ) {
154
+ if (e.data.post_count != -1) {var post_text = "post_count='" + e.data.post_count + "'";}
155
+ else {var post_text = "";}
156
+
157
+ editor.insertContent( '[popular-faqs '+post_text+']');
158
+ }
159
+ });
160
+ }
161
+ }],
162
+ });
163
+ });
164
+ })();
165
+
166
+
167
+ function EWD_UFAQ_Create_Category_List(initial) {
168
+ if (initial == "All") {var result = [{text: 'All', value: '-1'}];}
169
+ else {var result = [{text: 'None', value: '-1'}];}
170
+ var d = {};
171
+
172
+ jQuery(ufaq_categories).each(function(index, el) {
173
+ var d = {};
174
+ console.log(el);
175
+ d['text'] = el.name;
176
+ d['value'] = el.slug;
177
+ console.log(d);
178
+ result.push(d)
179
+ console.log(result);
180
+ });
181
+
182
+ /*d['text'] = 'Default';
183
+ d['value'] = 'default';
184
+ result.push(d);*/
185
+ return result;
186
+ }
187
+
188
+ function EWD_UFAQ_Search_Non_Premium() {
189
+ var premium = EWD_UFAQ_Is_Premium();
190
+
191
+ if (!premium) {
192
+ jQuery('#faq-search').css('opacity', '0.5');
193
+ jQuery('#faq-search').css('cursor', 'default');
194
+ }
195
+ }
196
+
197
+ function EWD_UFAQ_Submit_Non_Premium() {
198
+ var premium = EWD_UFAQ_Is_Premium();
199
+
200
+ if (!premium) {
201
+ jQuery('#faq-question').css('opacity', '0.5');
202
+ jQuery('#faq-question').css('cursor', 'default');
203
+ }
204
+ }
205
+
206
+ function EWD_UFAQ_Is_Premium() {
207
+ if (ufaq_premium == "Yes") {return true;}
208
+
209
+ return false;
210
+ }
readme.txt CHANGED
@@ -12,9 +12,9 @@ A simple FAQ plugin that lets you create, order and publicize FAQs, insert 3 sty
12
 
13
  <a href='http://www.etoilewebdesign.com/ultimate-faq-demo/'>FAQ Demo</a>
14
 
15
- [youtube https://www.youtube.com/watch?v=GOuiqcF9DTQ]
16
 
17
- Create, organize and publicize your FAQ in no time through your Wordpress Admin Panel with the incredibly easy-to-use, responsive Ultimate FAQ plugin. You can use either the accordion FAQ style, to display one FAQ answer on click, or the list FAQ style, to have FAQ answers displayed by default. FAQ features include FAQ statistics that show how many times FAQs have been viewed, FAQ styling options, FAQ categories and FAQ tags, display and FAQ ordering options, among many others.
18
 
19
  Want to decide exactly what order your FAQs are displayed in? Use our simple FAQ drag-and-drop reordering feature! Create SEO-friendly links to individual FAQ posts to simply direct customers to exactly the right FAQ answer, right away. You can even let your customers add to your custom FAQ list with the [submit-question] smart FAQ shortcode, which lets visitors submit an FAQ question and even propose an FAQ answer for it! Easily add links to popular social media, such as Facebook, Twitter and Pinterest so that your customers can help you spread the word about your FAQ!
20
 
@@ -146,6 +146,10 @@ Video 3 - FAQs Ordering
146
  9. All answers displayed in the 'list' FAQ mode
147
 
148
  == Changelog ==
 
 
 
 
149
  = 1.2.11 =
150
  - Global post variable is now reset after the FAQs query loop
151
 
12
 
13
  <a href='http://www.etoilewebdesign.com/ultimate-faq-demo/'>FAQ Demo</a>
14
 
15
+ [youtube https://www.youtube.com/watch?v=xeGVZnVrZ6I]
16
 
17
+ Create, organize and publicize your FAQ in no time through your Wordpress Admin Panel with the incredibly easy-to-use, responsive Ultimate FAQ plugin. You can use either the accordion FAQ style, to display one FAQ answer on click, or the list FAQ style, to have FAQ answers displayed by default. FAQ features include FAQ statistics that show how many times FAQs have been viewed, FAQ styling options, FAQ categories and FAQ tags, display and FAQ ordering options, among many others. Includes an FAQ shortcode helper, that lets you create shortcodes with attributes without having to enter them manually.
18
 
19
  Want to decide exactly what order your FAQs are displayed in? Use our simple FAQ drag-and-drop reordering feature! Create SEO-friendly links to individual FAQ posts to simply direct customers to exactly the right FAQ answer, right away. You can even let your customers add to your custom FAQ list with the [submit-question] smart FAQ shortcode, which lets visitors submit an FAQ question and even propose an FAQ answer for it! Easily add links to popular social media, such as Facebook, Twitter and Pinterest so that your customers can help you spread the word about your FAQ!
20
 
146
  9. All answers displayed in the 'list' FAQ mode
147
 
148
  == Changelog ==
149
+ = 1.3.0 =
150
+ - Added a feature that has been requested by a number of users, an FAQ shortcode helper, which lets you build shortcodes without having to remember and manually input the attributes. This feature can be turned off via the settings page, if you'd like to keep your tinyMCE button bar free of extra buttons
151
+ - Fixed an error where category titles were no longer displaying
152
+
153
  = 1.2.11 =
154
  - Global post variable is now reset after the FAQs query loop
155