Changeset 1418077
- Timestamp:
- 05/16/2016 06:51:09 PM (10 years ago)
- Location:
- profit-button/trunk
- Files:
-
- 3 edited
-
probtn.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
start_probtn.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
profit-button/trunk/probtn.php
r1177052 r1418077 395 395 <br /> 396 396 <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> 397 425 </label> 398 426 </fieldset> -
profit-button/trunk/readme.txt
r1177052 r1418077 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 1.9.1 27 Stable tag: 1.9.13 8 8 License: Licenced under LGPL 9 9 License URI: http://opensource.org/licenses/LGPL-3.0 … … 83 83 84 84 = 1.9.11= 85 Local settings - added width and height 86 87 = 1.9.11= 85 88 Updated init button script 86 89 -
profit-button/trunk/start_probtn.php
r1177052 r1418077 13 13 } 14 14 } 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 } 15 36 ?> 16 37 … … 68 89 if ($source==1) { 69 90 ?> 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(); ?> 76 92 <?php 77 93 } … … 129 145 if ($source==1) { 130 146 ?> 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(); ?> 137 148 <?php 138 149 } … … 165 176 if ($source==1) { 166 177 ?> 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(); ?> 173 179 <?php 174 180 }
Note: See TracChangeset
for help on using the changeset viewer.