Version Description
- Fixed a missing file error
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
- Functions/EWD_UFAQ_Version_Update.php +1 -1
- Functions/EWD_UFAQ_WooCommerce_Tab.php +49 -0
- Main.php +1 -1
- readme.txt +4 -0
Functions/EWD_UFAQ_Version_Update.php
CHANGED
@@ -43,7 +43,7 @@ function EWD_UFAQ_Version_Update_Box() {
|
|
43 |
<h3 class='hndle'><span><?php _e("Thank You!", 'EWD_UFAQ') ?></span></h3>
|
44 |
<div class="inside">
|
45 |
<?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='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>
|
46 |
-
<?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 1.2.
|
47 |
|
48 |
<?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>
|
49 |
<?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 } */ ?>
|
43 |
<h3 class='hndle'><span><?php _e("Thank You!", 'EWD_UFAQ') ?></span></h3>
|
44 |
<div class="inside">
|
45 |
<?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='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>
|
46 |
+
<?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 1.2.1!", "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 } ?>
|
47 |
|
48 |
<?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>
|
49 |
<?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/EWD_UFAQ_WooCommerce_Tab.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
add_filter( 'woocommerce_product_tabs', 'EWD_UFAQ_Woo_FAQ_Tab' );
|
4 |
+
function EWD_UFAQ_Woo_FAQ_Tab( $tabs ) {
|
5 |
+
global $product;
|
6 |
+
|
7 |
+
$WooCommerce_FAQs = get_option("EWD_UFAQ_WooCommerce_FAQs");
|
8 |
+
|
9 |
+
$Product_Post = get_post($product->get_id());
|
10 |
+
$Category = get_term_by('name', $Product_Post->post_title, 'ufaq-category');
|
11 |
+
|
12 |
+
$args = array(
|
13 |
+
'post_type' => 'ufaq',
|
14 |
+
'post_count' => 2,
|
15 |
+
'tax_query' => array(
|
16 |
+
'taxonomy' => 'ufaq-category',
|
17 |
+
'field' => 'name',
|
18 |
+
'terms' => $Category->slug
|
19 |
+
)
|
20 |
+
);
|
21 |
+
|
22 |
+
$Posts = get_posts($args);
|
23 |
+
|
24 |
+
if (sizeOf($Posts) > 0 and $WooCommerce_FAQs == "Yes") {
|
25 |
+
|
26 |
+
$tabs['faq_tab'] = array(
|
27 |
+
'title' => __( 'FAQs', 'EWD_UFAQ' ),
|
28 |
+
'priority' => 50,
|
29 |
+
'callback' => 'EWD_UFAQ_Woo_FAQ_Tab_Content'
|
30 |
+
);
|
31 |
+
|
32 |
+
return $tabs;
|
33 |
+
}
|
34 |
+
|
35 |
+
}
|
36 |
+
|
37 |
+
function EWD_UFAQ_Woo_FAQ_Tab_Content() {
|
38 |
+
|
39 |
+
global $product;
|
40 |
+
|
41 |
+
$Product_Post = get_post($product->get_id());
|
42 |
+
$Category = get_term_by('name', $Product_Post->post_title, 'ufaq-category');
|
43 |
+
|
44 |
+
echo '<h2>FAQs</h2>';
|
45 |
+
echo do_shortcode("[ultimate-faqs include_category='". $Category->slug . "']");;
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
+
?>
|
Main.php
CHANGED
@@ -7,7 +7,7 @@ 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 |
*/
|
12 |
|
13 |
global $ewd_ufaq_message;
|
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.1
|
11 |
*/
|
12 |
|
13 |
global $ewd_ufaq_message;
|
readme.txt
CHANGED
@@ -142,8 +142,12 @@ Video 3 - FAQs Ordering
|
|
142 |
9. All answers displayed in the 'list' FAQ mode
|
143 |
|
144 |
== Changelog ==
|
|
|
|
|
|
|
145 |
= 1.2.0 =
|
146 |
- Added in a new premium feature: WooCommerce FAQs tab, which lets you add a different list of FAQs on the product page for each WooCommerce product
|
|
|
147 |
|
148 |
= 1.1.19 =
|
149 |
- Added another set of labeling options
|
142 |
9. All answers displayed in the 'list' FAQ mode
|
143 |
|
144 |
== Changelog ==
|
145 |
+
= 1.2.1 =
|
146 |
+
- Fixed a missing file error
|
147 |
+
|
148 |
= 1.2.0 =
|
149 |
- Added in a new premium feature: WooCommerce FAQs tab, which lets you add a different list of FAQs on the product page for each WooCommerce product
|
150 |
+
- Added the ability to filter FAQs by category
|
151 |
|
152 |
= 1.1.19 =
|
153 |
- Added another set of labeling options
|