Plugin Directory

Changeset 879239


Ignore:
Timestamp:
03/21/2014 03:49:37 AM (12 years ago)
Author:
bgentry
Message:

added white visual cue options

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

Legend:

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

    r820690 r879239  
    33Plugin Name: Easy FAQ with Expanding Text
    44Description: 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.4
     5Version: 3.2.5
    66Author: bgentry
    77Author URI: http://bryangentry.us
     
    6161        $closedimg = plugins_url( 'downarrow.png', __FILE__ );
    6262        $openedimg = plugins_url( 'uparrow.png', __FILE__ );   
    63         }
     63        }   
     64    elseif ( $visualCue == 'updownWhite' ) {
     65        $closedimg = plugins_url( 'downarrowWhite.png', __FILE__ );
     66        $openedimg = plugins_url( 'uparrowWhite.png', __FILE__ );   
     67    }
     68    elseif ( $visualCue == 'plusminusWhite' ) {
     69        $closedimg = plugins_url( 'plussignWhite.png', __FILE__ );
     70        $openedimg = plugins_url( 'minussignWhite.png', __FILE__ );
     71    }
    6472        if( $closedimg ) {
    6573        //if the user set up images to show...
     
    255263echo '<h3>Visual Cues</h3>';
    256264echo '<p>The plugin can place a visual cue next to the questions so your readers can know to click on them. Choose a visual cue:</p>';
    257 $visualCues = array( array('plusminus', 'Plus Sign and Minus Sign', 'plusminus.png'), array('updown', 'Up Arrow and Down Arrow', 'arrows.png'), array('none', 'None', 'none.png'));
     265$visualCues = array( array('plusminus', 'Plus Sign and Minus Sign', 'plusminus.png'), array('updown', 'Up Arrow and Down Arrow', 'arrows.png'),array('plusminusWhite', 'White Plus Minus Sign', 'plusminusWhite.png'), array('updownWhite', 'White Up and Down Arrows', 'arrowsWhite.png'), array('none', 'None', 'none.png'));
    258266foreach ( $visualCues as $cue ) {
    259267$checked = ( $faqoptions['visualcue'] == $cue[0] ) ? ' checked="checked"' : '';
     
    312320    <li><label><input type="radio" name="bgFAQfoldup" value="yes" <?php echo $foldupYesChecked; ?>>Yes</label><label><input type="radio" name="bgFAQfoldup" value="no" <?php echo $foldupNoChecked; ?>>No</label><label><input type="radio" name="bgFAQfoldup" value="default" <?php echo $foldupDefaultChecked; ?>>Default from plugin settings</label></li>
    313321    <p>Do you want a visual cue on the questions on this page?</p>
    314     <?php  $visualCues = array( array('plusminus', 'Plus Sign / Minus Sign', 'plusminus.png'), array('updown', 'Up Arrow / Down Arrow', 'arrows.png'), array('none', 'None', 'none.png'), array('default', 'Default from plugin settings', 'none.png') );
     322    <?php  $visualCues = array( array('plusminus', 'Plus Sign / Minus Sign', 'plusminus.png'), array('updown', 'Up Arrow / Down Arrow', 'arrows.png'), array('plusminusWhite', 'White Plus Minus Sign', 'plusminusWhite.png'), array('updownWhite', 'White Up and Down Arrows', 'arrowsWhite.png'), array('none', 'None', 'none.png'), array('default', 'Default from plugin settings', 'none.png') );
    315323    foreach ( $visualCues as $cue ) {
    316324        $checked = ( $visualCuesOption == $cue[0] ) ? ' checked="checked"' : '';
  • easy-faq-with-expanding-text/trunk/readme.txt

    r820690 r879239  
    44Tags: faq pages
    55Tested up to: 3.8
    6 Stable tag: 3.2.4
     6Stable tag: 3.2.5
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323
    2424== Changelog ==
     25
     26=3.2.5=
     27* Added a second color (white) for the optional visual cues that appear next to the drop down headings.
    2528
    2629=3.2.4=
Note: See TracChangeset for help on using the changeset viewer.