Plugin Directory

Changeset 1454680


Ignore:
Timestamp:
07/14/2016 12:15:04 PM (10 years ago)
Author:
pgogy
Message:

Fixed display issues

Location:
decision-tree
Files:
63 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • decision-tree/trunk/decisiontree.php

    r1430106 r1454680  
    44    Plugin Name: Decision Tree
    55    Description: Displays a decision tree on a WordPress Site
    6     Version: 0.2
     6    Version: 0.3
    77    Author: pgogy
    88    Author URI: http://www.pgogy.com
  • decision-tree/trunk/decisiontree_editor.php

    r1430106 r1454680  
    141141                                <span class="expand" onclick="javascript:expand_choice(this)">+</span>
    142142                                <p class="title" onclick="javascript:edit_title(this)"><?PHP echo $choice->name; ?></p>
    143                                 <input type="text" value="" size="100" />
     143                                <input type="text" value="<?PHP echo $choice->name; ?>" size="100" />
    144144                                <a onclick="javascript:save_text(this)">Change</a>
    145145                                <div>
     
    239239                        <textarea></textarea>
    240240                        <p>
    241                             Colour <input class="color" type="text" value="#ffffff" />
     241                            <span>Colour</span><input class="color" type="text" value="#ffffff" />
    242242                        </p>
    243243                    </div>         
  • decision-tree/trunk/decisiontree_posthandling.php

    r1430106 r1454680  
    2929               
    3030                if(isset($_POST['data_save'])){
     31               
    3132                    file_put_contents($wp_dir['basedir'] . "/decisiontree/" . $post_id . ".inc", $_POST['data_save']);
    3233                }
  • decision-tree/trunk/decisiontree_show.php

    r1430106 r1454680  
    7171            echo "<div class='choice'>";
    7272            echo "<div id='" . $choice['id'] . "'>";
    73             echo "<p>" . $choice['html'] . "</p>";
    74 
     73           
     74            if(isset($choice['colour'])){
     75                $colour = $choice['colour'];
     76            }else{
     77                $colour = "#fff";
     78            }
     79               
     80            echo "<p style='background:#" . $colour . "'>" . $choice['html'] . "</p>";
     81           
    7582            echo "<div>";
    7683
     
    8693
    8794                       
     95        }else{
     96            return $content;
    8897        }
    8998       
  • decision-tree/trunk/readme.txt

    r1430106 r1454680  
    44Requires at least: 3.0.0
    55Tested up to: 4.5
    6 Stable tag: 0.2
     6Stable tag: 0.3
    77
    88Allows a user to create a decision tree which allows a series of questions and choices to be worked through.
     
    2424== Changelog ==
    2525
     260.3 Fixed colour and display bug
     27
    2628== Screenshots ==
    2729
  • decision-tree/trunk/scripts/decisiontree_control.js

    r888679 r1454680  
    3636                    .next()
    3737                    .next()
     38                    .next()
    3839                    .children()
    3940                    .last()
    4041                    .children()
    41                     .first()
     42                    .last()
    4243                    .val();
    4344               
Note: See TracChangeset for help on using the changeset viewer.