Plugin Directory

Changeset 1418077


Ignore:
Timestamp:
05/16/2016 06:51:09 PM (10 years ago)
Author:
hintsolutions
Message:

1.9.3 version

Location:
profit-button/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • profit-button/trunk/probtn.php

    r1177052 r1418077  
    395395                                    <br />
    396396                                    <span class="description">Please enter button hint text.</span>
     397                                </label>
     398                            </fieldset>
     399                        </td>
     400                    </tr>
     401                   
     402                    <tr class="localSettings">
     403                        <th scope="row">Button size (width)</th>
     404                        <td>
     405                            <fieldset>
     406                                <label>
     407                                    <input name="probtn_settings[probtn_size_width]" type="text" id="probtn_size_width"
     408                                    value="<?php echo (isset($options['probtn_size_width']) && $options['probtn_size_width'] != '') ? $options['probtn_size_width'] : '64'; ?>"/>
     409                                    <br />
     410                                    <span class="description">Please enter button width.</span>
     411                                </label>
     412                            </fieldset>
     413                        </td>                       
     414                    </tr>
     415                   
     416                    <tr class="localSettings">
     417                        <th scope="row">Button size (height)</th>
     418                    <td>
     419                            <fieldset>
     420                                <label>
     421                                    <input name="probtn_settings[probtn_size_height]" type="text" id="probtn_size_height"
     422                                    value="<?php echo (isset($options['probtn_size_height']) && $options['probtn_size_height'] != '') ? $options['probtn_size_height'] : '64'; ?>"/>
     423                                    <br />
     424                                    <span class="description">Please enter button height.</span>
    397425                                </label>
    398426                            </fieldset>
  • profit-button/trunk/readme.txt

    r1177052 r1418077  
    55Requires at least: 3.3
    66Tested up to: 3.5.1
    7 Stable tag: 1.9.12
     7Stable tag: 1.9.13
    88License: Licenced under LGPL
    99License URI: http://opensource.org/licenses/LGPL-3.0
     
    8383
    8484= 1.9.11=
     85Local settings - added width and height
     86
     87= 1.9.11=
    8588Updated init button script
    8689
  • profit-button/trunk/start_probtn.php

    r1177052 r1418077  
    1313        }
    1414    }
     15   
     16    function getParamExist($paramKey="") {
     17        if ((isset($_GET[$paramKey])) && ($_GET[$paramKey]!="")) {
     18            return $_GET[$paramKey];
     19        } else {
     20            return "";
     21        }
     22    }
     23   
     24    function addParams() {
     25        //if ($source==1) {
     26            echo checkParamExist("ButtonImage","probtn_image");
     27            echo checkParamExist("ButtonDragImage","probtn_image");
     28            echo checkParamExist("ButtonOpenImage","probtn_image");
     29            echo checkParamExist("ButtonInactiveImage","probtn_image");
     30            echo checkParamExist("ContentURL","probtn_contenturl");
     31            echo checkParamExist("HintText","probtn_hinttext");
     32            echo '\'ButtonSize\': {\'W\': '.getParamExist("probtn_size_width").', \'H\': '.getParamExist("probtn_size_height").' },';
     33            echo '\'ButtonDragSize\': {\'W\': '.getParamExist("probtn_size_width").', \'H\': '.getParamExist("probtn_size_height").' },';
     34        //}
     35    }
    1536?>
    1637
     
    6889                if ($source==1) {
    6990                ?>
    70                     <?php echo checkParamExist("ButtonImage","probtn_image") ?>
    71                     <?php echo checkParamExist("ButtonDragImage","probtn_image") ?>
    72                     <?php echo checkParamExist("ButtonOpenImage","probtn_image") ?>
    73                     <?php echo checkParamExist("ButtonInactiveImage","probtn_image") ?>
    74                     <?php echo checkParamExist("ContentURL","probtn_contenturl") ?>
    75                     <?php echo checkParamExist("HintText","probtn_hinttext") ?>
     91                    <?php echo addParams(); ?>
    7692                <?php
    7793                }
     
    129145if ($source==1) {
    130146?>
    131     <?php echo checkParamExist("ButtonImage","probtn_image") ?>
    132     <?php echo checkParamExist("ButtonDragImage","probtn_image") ?>
    133     <?php echo checkParamExist("ButtonOpenImage","probtn_image") ?>
    134     <?php echo checkParamExist("ButtonInactiveImage","probtn_image") ?>
    135     <?php echo checkParamExist("ContentURL","probtn_contenturl") ?>
    136     <?php echo checkParamExist("HintText","probtn_hinttext") ?>
     147    <?php echo addParams(); ?>
    137148<?php
    138149}
     
    165176if ($source==1) {
    166177?>
    167     <?php echo checkParamExist("ButtonImage","probtn_image") ?>
    168     <?php echo checkParamExist("ButtonDragImage","probtn_image") ?>
    169     <?php echo checkParamExist("ButtonOpenImage","probtn_image") ?>
    170     <?php echo checkParamExist("ButtonInactiveImage","probtn_image") ?>
    171     <?php echo checkParamExist("ContentURL","probtn_contenturl") ?>
    172     <?php echo checkParamExist("HintText","probtn_hinttext") ?>
     178    <?php echo addParams(); ?>
    173179<?php
    174180}
Note: See TracChangeset for help on using the changeset viewer.