Plugin Directory

Changeset 1285301


Ignore:
Timestamp:
11/13/2015 03:14:32 AM (10 years ago)
Author:
bgentry
Message:

fixing lines causing php notices for some users

Location:
easy-faq-with-expanding-text
Files:
21 added
2 edited

Legend:

Unmodified
Added
Removed
  • easy-faq-with-expanding-text/trunk/faq.php

    r1079427 r1285301  
    22/*
    33Plugin Name: Easy FAQ with Expanding Text
    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.8.1
     4Description: Easily create a Frequently Asked Questions page with answers that slide down when the questions are clicked...or a non-FAQ page with the same effect. No need for a shortcode, HTML coding, or javascript tweaking.
     5Version: 3.2.8.2
    66Author: bgentry
    77Author URI: http://bryangentry.us
     
    119119        if ( $foldupOptions == 'default' || $foldupOptions == false ) {
    120120            $faqoptions = get_option('bg_faq_options');
    121             $foldup = $faqoptions['foldup'];
     121            $foldup = ($faqoptions['foldup']) ? $faqoptions['foldup'] : 'no';
    122122        }
    123123        else {
     
    134134function faq_footer() {
    135135    $faqoptions = get_option('bg_faq_options');
    136     $foldup = $faqoptions['foldup'];
     136    $foldup = ($faqoptions['foldup']) ? $faqoptions['foldup'] : 'no';
    137137    echo '<script>if ( typeof faqStarted == "undefined" ) {
    138138    faqStarted = true; 
     
    146146    if ( $foldupOptions == 'default' || $foldupOptions == false ) {
    147147            $faqoptions = get_option('bg_faq_options');
    148             $foldup = $faqoptions['foldup'];
     148            $foldup = ($faqoptions['foldup']) ? $faqoptions['foldup'] : 'no';
    149149    }
    150150    else {
     
    332332        $foldupDefaultChecked = '';
    333333    } else {
    334         $foldup = $faqoptions['foldup'];
     334        $foldup = ($faqoptions['foldup']) ? $faqoptions['foldup'] : 'no';
    335335        $foldupYesChecked = '';
    336336        $foldupNoChecked = '';
     
    410410    if ( $foldupOptions == 'default' || $foldupOptions == false ) {
    411411        $faqoptions = get_option('bg_faq_options');
    412         $foldup = $faqoptions['foldup'];
     412        $foldup = ($faqoptions['foldup']) ? $faqoptions['foldup'] : 'no';
    413413    }
    414414        else {
  • easy-faq-with-expanding-text/trunk/readme.txt

    r1079427 r1285301  
    33Donate link: http://bryangentry.us/pay-me
    44Tags: faq pages
    5 Tested up to: 4.1
    6 Stable tag: 3.2.8.1
     5Tested up to: 4.3.1
     6Stable tag: 3.2.8.2
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212== Description ==
    1313
    14 Lots of pages online have a dropdown text feature, where clicking a heading reveals next or photos underneath it. This plugin provides the easiest way to create these effects in your WordPress pages and posts. Anyone who can use the WordPress post editor can use this plugin to create animated FAQ pages, or other pages that have this effect. No need for a shortcode or other coding needed!
     14Easily create headings that users can click on to reveal additional text below in WordPress pages and posts. Anyone who can use the WordPress post editor can use this plugin to create animated FAQ pages, or other pages that have this effect. No need for a shortcode or other coding needed!
    1515
    16 To create your FAQ page, just click a checkbox on the post editing screen. In the content of the page, select a heading style for the questions or titles that you want to appear, and the paragraphs, lists, photos, and videos beneath them will be hidden until the heading is clicked. OR you can use the shortcodes [bg_faq_start] and [bg_faq_end] to wrap the section of content that you want to have this effect.
     16To create your FAQ page, create a new page or post, click a checkbox on the post editing screen. In the content of the page, select a heading style for the questions or titles that you want to appear, and the paragraphs, lists, photos, and videos beneath them will be hidden until the heading is clicked. OR you can use the shortcodes [bg_faq_start] and [bg_faq_end] to wrap the section of content that you want to have this effect.
    1717
    1818== Installation ==
     
    2323
    2424== Changelog ==
     25
     26=3.2.8.2=
     27*Fixed a few more lines causing PHP notices on servers with certain PHP error notice settings.
    2528
    2629=3.2.8.1=
Note: See TracChangeset for help on using the changeset viewer.