Changeset 793323
- Timestamp:
- 10/25/2013 01:16:04 AM (12 years ago)
- Location:
- easy-faq-with-expanding-text
- Files:
-
- 15 added
- 2 edited
-
tags/3.2.1 (added)
-
tags/3.2.1/arrows.png (added)
-
tags/3.2.1/downarrow.png (added)
-
tags/3.2.1/faq.php (added)
-
tags/3.2.1/faq_checkbox.png (added)
-
tags/3.2.1/faq_heading.png (added)
-
tags/3.2.1/faq_title.png (added)
-
tags/3.2.1/faqmaker.js (added)
-
tags/3.2.1/faqstyle.css (added)
-
tags/3.2.1/minussign.png (added)
-
tags/3.2.1/none.png (added)
-
tags/3.2.1/plusminus.png (added)
-
tags/3.2.1/plussign.png (added)
-
tags/3.2.1/readme.txt (added)
-
tags/3.2.1/uparrow.png (added)
-
trunk/faq.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-faq-with-expanding-text/trunk/faq.php
r777684 r793323 3 3 Plugin Name: Easy FAQ with Expanding Text 4 4 Description: Easily create a Frequently Asked Questions page with answers that slide down when the questions are clicked. No need for a shortcode, HTML coding, or javascript tweaking. 5 Version: 3.2 5 Version: 3.2.1 6 6 Author: bgentry 7 7 Author URI: http://bryangentry.us … … 35 35 add_action('wp_head', 'faq_css_output'); 36 36 37 if ( is_single() || is_page() ) {37 38 38 39 39 add_filter ('the_content', 'faq_function_call' ); //calls the FAQ javascript function for a single post or page 40 40 41 }42 else {41 42 43 43 add_action('get_footer', 'faq_footer'); //if we're on a list of posts, call this function in the footer 44 }44 45 45 } 46 46 } … … 127 127 $faqoptions = get_option('bg_faq_options'); 128 128 $foldup = $faqoptions['foldup']; 129 echo '<script>bgfaq("'.$foldup.'")</script>'; 129 echo '<script>if ( typeof faqStarted == "undefined" ) { 130 faqStarted = true; 131 bgfaq("'.$foldup.'")}</script>'; 130 132 } 131 133 … … 142 144 } 143 145 144 $content .= '<script>bgfaq("'.$foldup.'")</script>'; 146 $content .= '<script>if ( typeof faqStarted == "undefined" ) {'; 147 $content .= 'faqStarted = true;'; 148 $content .= 'bgfaq("'.$foldup.'"); }</script>'; 145 149 return $content; 146 150 } … … 242 246 function faq_get_content_div_class() { 243 247 $faqoptions = get_option('bg_faq_options'); 244 echo '<p><strong>Most of these settings</strong>are available on each individual post. However, these default options will be used on a list of posts or on any posts that do not have these settings explicitly set.</p>'; 248 245 249 echo '<p><label><strong>One answer open at a time?</strong>'; 246 250 if($faqoptions['foldup'] == "yes") -
easy-faq-with-expanding-text/trunk/readme.txt
r777685 r793323 4 4 Tags: faq pages 5 5 Tested up to: 3.6.1 6 Stable tag: 3.2 6 Stable tag: 3.2.1 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 24 24 == Changelog == 25 26 = 3.2.1 = 27 * Added a checking mechanism that ensures the animation effects only get applied once, even on some WordPress pages that strangely tried to call the javascript twice 25 28 26 29 = 3.2 =
Note: See TracChangeset
for help on using the changeset viewer.