PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/plugins/wp-homepage-slideshow/html/settings.php

https://bitbucket.org/lgorence/quickpress
PHP | 207 lines | 204 code | 2 blank | 1 comment | 31 complexity | 29aef977b4837ca7ebf8ecf05bf9c9b1 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <?php
  2. global $wpdb, $ghss;
  3. $ops = get_option('hss_settings', array());
  4. //$ops = array_merge($hss_settings, $ops);
  5. ?>
  6. <div class="wrap">
  7. <h2><?php _e('Create XML File'); ?></h2>
  8. <form action="" method="post">
  9. <input type="hidden" name="task" value="save_hss_settings" />
  10. <table>
  11. <tr>
  12. <td><?php _e('Slideshow width (px)'); ?></td>
  13. <td><input type="text" name="settings[bannerWidth]" value="<?php print @$ops['bannerWidth']; ?>" /></td>
  14. </tr>
  15. <tr>
  16. <td><?php _e('Slideshow height (px)'); ?></td>
  17. <td><input type="text" name="settings[bannerHeight]" value="<?php print @$ops['bannerHeight']; ?>" /></td>
  18. </tr>
  19. <tr>
  20. <td><?php _e('Auto slide time'); ?></td>
  21. <td><input type="text" name="settings[autoSlideTime]" value="<?php print @$ops['autoSlideTime']; ?>" /></td>
  22. </tr>
  23. <tr>
  24. <td><?php _e('Enable Play/Pause'); ?></td>
  25. <td>
  26. <input type="radio" name="settings[showPlay]" value="1" <?php print (@$ops['showPlay'] == '1') ? 'checked' : ''; ?>><span><?php _e('Yes'); ?></span>
  27. <input type="radio" name="settings[showPlay]" value="0" <?php print (@$ops['showPlay'] == '0') ? 'checked' : ''; ?>><span><?php _e('No'); ?></span>
  28. </td>
  29. </tr>
  30. <tr>
  31. <td><?php _e('Slideshow Background Color'); ?></td>
  32. <td><input type="text" name="settings[backgroundColor]" value="<?php print @$ops['backgroundColor']; ?>" /></td>
  33. </tr>
  34. <tr>
  35. <td><?php _e('Images width'); ?></td>
  36. <td><input type="text" name="settings[imagewidth]" value="<?php print @$ops['imagewidth']; ?>" /></td>
  37. </tr>
  38. <tr>
  39. <td><?php _e('Gradient Color 1'); ?></td>
  40. <td><input type="text" name="settings[gradientColor1]" class="color {hash:false,caps:false}" value="<?php print @$ops['gradientColor1']; ?>" /></td>
  41. </tr>
  42. <tr>
  43. <td><?php _e('Gradient Color 2'); ?></td>
  44. <td><input type="text" name="settings[gradientColor2]" class="color {hash:false,caps:false}" value="<?php print @$ops['gradientColor2']; ?>" /></td>
  45. </tr>
  46. <tr>
  47. <td><?php _e('Menu color'); ?></td>
  48. <td><input type="text" name="settings[menuColor]" class="color {hash:false,caps:false}" value="<?php print @$ops['menuColor']; ?>" /></td>
  49. </tr>
  50. <tr>
  51. <td><?php _e('Menu over color'); ?></td>
  52. <td><input type="text" name="settings[menuOverColor]" class="color {hash:false,caps:false}" value="<?php print @$ops['menuOverColor']; ?>" /></td>
  53. </tr>
  54. <tr>
  55. <td><?php _e('Menu text color'); ?></td>
  56. <td><input type="text" name="settings[menuTextColor]" class="color {hash:false,caps:false}" value="<?php print @$ops['menuTextColor']; ?>" /></td>
  57. </tr>
  58. <tr>
  59. <td><?php _e('Menu text over color'); ?></td>
  60. <td><input type="text" name="settings[menuOverTextColor]" class="color {hash:false,caps:false}" value="<?php print @$ops['menuOverTextColor']; ?>" /></td>
  61. </tr>
  62. <tr>
  63. <td><?php _e('Image Transition Time'); ?></td>
  64. <td><input type="text" name="settings[transitionTime]" value="<?php print @$ops['transitionTime']; ?>" /></td>
  65. </tr>
  66. <tr>
  67. <td><?php _e('Menu scroll speed'); ?></td>
  68. <td><input type="text" name="settings[menuScrollSpeed]" value="<?php print @$ops['menuScrollSpeed']; ?>" /></td>
  69. </tr>
  70. <tr>
  71. <td><?php _e('Show Description Box'); ?></td>
  72. <td>
  73. <input type="radio" name="settings[descbox_visible]" value="yes" <?php print (@$ops['descbox_visible'] == 'yes') ? 'checked' : ''; ?>><span><?php _e('Yes'); ?></span>
  74. <input type="radio" name="settings[descbox_visible]" value="no" <?php print (@$ops['descbox_visible'] == 'no') ? 'checked' : ''; ?>><span><?php _e('No'); ?></span>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td><?php _e('Box width'); ?></td>
  79. <td><input type="text" name="settings[boxwidth]" value="<?php print @$ops['boxwidth']; ?>" /></td>
  80. </tr>
  81. <tr>
  82. <td><?php _e('Box height'); ?></td>
  83. <td><input type="text" name="settings[boxheight]" value="<?php print @$ops['boxheight']; ?>" /></td>
  84. </tr>
  85. <tr>
  86. <td><?php _e('Description header text font size'); ?></td>
  87. <td><input type="text" name="settings[infoFontSizeBig]" value="<?php print @$ops['infoFontSizeBig']; ?>" /></td>
  88. </tr>
  89. <tr>
  90. <td><?php _e('Description text font size'); ?></td>
  91. <td><input type="text" name="settings[infoFontSizeSmall]" value="<?php print @$ops['infoFontSizeSmall']; ?>" /></td>
  92. </tr>
  93. <tr>
  94. <td><?php _e('Menu font size'); ?></td>
  95. <td><input type="text" name="settings[menuFontSize]" value="<?php print @$ops['menuFontSize']; ?>" /></td>
  96. </tr>
  97. <tr>
  98. <td><?php _e('Image Effect'); ?></td>
  99. <td>
  100. <select name="settings[transition_type]">
  101. <option value="easeIn" <?php print (@$ops['transition_type'] == "easeIn") ? 'selected' : ''; ?>>Ease In</option>
  102. <option value="easeInBounce" <?php print (@$ops['transition_type'] == "easeInBounce") ? 'selected' : ''; ?>>Ease in Bounce</option>
  103. <option value="easeInSine" <?php print (@$ops['transition_type'] == "easeInSine") ? 'selected' : ''; ?>>Ease in Sine</option>
  104. </select>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td><?php _e('Effect Direction'); ?></td>
  109. <td>
  110. <select name="settings[transition]">
  111. <option value="left" <?php print (@$ops['transition'] == "left") ? 'selected' : ''; ?>>Left</option>
  112. <option value="right" <?php print (@$ops['transition'] == "right") ? 'selected' : ''; ?>>Right</option>
  113. <option value="bottom" <?php print (@$ops['transition'] == "bottom") ? 'selected' : ''; ?>>Bottom</option>
  114. <option value="top" <?php print (@$ops['transition'] == "top") ? 'selected' : ''; ?>>Top</option>
  115. </select>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td><?php _e('Corner Radius'); ?></td>
  120. <td><input type="text" name="settings[cornerRadius]" value="<?php print @$ops['cornerRadius']; ?>" /></td>
  121. </tr>
  122. <tr>
  123. <td><?php _e('DescriptionBox X-Position'); ?></td>
  124. <td><input type="text" name="settings[box_x]" value="<?php print @$ops['box_x']; ?>" /></td>
  125. </tr>
  126. <tr>
  127. <td><?php _e('DescriptionBox Y-Position'); ?></td>
  128. <td><input type="text" name="settings[box_y]" value="<?php print @$ops['box_y']; ?>" /></td>
  129. </tr>
  130. <tr>
  131. <td><?php _e('Viewmore Button Width'); ?></td>
  132. <td><input type="text" name="settings[button_width]" value="<?php print @$ops['button_width']; ?>" /></td>
  133. </tr>
  134. <tr>
  135. <td><?php _e('Description background color'); ?></td>
  136. <td><input type="text" name="settings[FindMoreColorBack]" class="color {hash:false,caps:false}" value="<?php print @$ops['FindMoreColorBack']; ?>" /></td>
  137. </tr>
  138. <tr>
  139. <td><?php _e('Description text color'); ?></td>
  140. <td><input type="text" name="settings[FindMoreColorText]" class="color {hash:false,caps:false}" value="<?php print @$ops['FindMoreColorText']; ?>" /></td>
  141. </tr>
  142. <tr>
  143. <td><?php _e('Description alpha'); ?></td>
  144. <td>
  145. <select name="settings[FindMoreAlpha]">
  146. <option value="0" <?php print (@$ops['FindMoreAlpha'] == 0) ? 'selected' : ''; ?>>0</option>
  147. <option value="0.1" <?php print (@$ops['FindMoreAlpha'] == 0.1) ? 'selected' : ''; ?>>0.1</option>
  148. <option value="0.2" <?php print (@$ops['FindMoreAlpha'] == 0.2) ? 'selected' : ''; ?>>0.2</option>
  149. <option value="0.3" <?php print (@$ops['FindMoreAlpha'] == 0.3) ? 'selected' : ''; ?>>0.3</option>
  150. <option value="0.4" <?php print (@$ops['FindMoreAlpha'] == 0.4) ? 'selected' : ''; ?>>0.4</option>
  151. <option value="0.5" <?php print (@$ops['FindMoreAlpha'] == 0.5) ? 'selected' : ''; ?>>0.5</option>
  152. <option value="0.6" <?php print (@$ops['FindMoreAlpha'] == 0.6) ? 'selected' : ''; ?>>0.6</option>
  153. <option value="0.7" <?php print (@$ops['FindMoreAlpha'] == 0.7) ? 'selected' : ''; ?>>0.7</option>
  154. <option value="0.8" <?php print (@$ops['FindMoreAlpha'] == 0.8) ? 'selected' : ''; ?>>0.8</option>
  155. <option value="0.9" <?php print (@$ops['FindMoreAlpha'] == 0.9) ? 'selected' : ''; ?>>0.9</option>
  156. <option value="1" <?php print (@$ops['FindMoreAlpha'] == 1) ? 'selected' : ''; ?>>1</option>
  157. </select>
  158. </tr>
  159. <tr>
  160. <td><?php _e('View More button text'); ?></td>
  161. <td><input type="text" name="settings[FindMoreName]" value="<?php print @$ops['FindMoreName']; ?>" /></td>
  162. </tr>
  163. <tr>
  164. <td><?php _e('View More button color'); ?></td>
  165. <td><input type="text" name="settings[FindMoreButtonColor]" class="color {hash:false,caps:false}" value="<?php print @$ops['FindMoreButtonColor']; ?>" /></td>
  166. </tr>
  167. <tr>
  168. <td><?php _e('View More button text color'); ?></td>
  169. <td><input type="text" name="settings[FindMoreButtonTextColor]" class="color {hash:false,caps:false}" value="<?php print @$ops['FindMoreButtonTextColor']; ?>" /></td>
  170. </tr>
  171. <tr>
  172. <td><?php _e('Description header text'); ?></td>
  173. <td>
  174. <input type="radio" name="settings[showDesBigTxt]" value="1" <?php print (@$ops['showDesBigTxt'] == 1) ? 'checked' : ''; ?>><span><?php _e('Show'); ?></span>
  175. <input type="radio" name="settings[showDesBigTxt]" value="0" <?php print (@$ops['showDesBigTxt'] == 0) ? 'checked' : ''; ?>><span><?php _e('Hide'); ?></span>
  176. </td>
  177. </tr>
  178. <tr>
  179. <td><?php _e('Description text'); ?></td>
  180. <td>
  181. <input type="radio" name="settings[showDesSmlTxt]" value="1" <?php print (@$ops['showDesSmlTxt'] == 1) ? 'checked' : ''; ?>><span><?php _e('Show'); ?></span>
  182. <input type="radio" name="settings[showDesSmlTxt]" value="0" <?php print (@$ops['showDesSmlTxt'] == 0) ? 'checked' : ''; ?>><span><?php _e('Hide'); ?></span>
  183. </td>
  184. </tr>
  185. <tr>
  186. <td><?php _e('Traget Link'); ?></td>
  187. <td>
  188. <input type="radio" name="settings[target]" value="_blank" <?php print (@$ops['target'] == "_blank") ? 'checked' : ''; ?>><span><?php _e('New Window'); ?></span>
  189. <input type="radio" name="settings[target]" value="_self" <?php print (@$ops['target'] == "_self") ? 'checked' : ''; ?>><span><?php _e('Same Window'); ?></span>
  190. </td>
  191. </tr>
  192. <tr>
  193. <td><?php _e('Select the wmode of flash'); ?></td>
  194. <td>
  195. <select name="settings[wmode]">
  196. <option value="opaque" <?php print (@$ops['wmode'] == "opaque") ? 'selected' : ''; ?>>opaque</option>
  197. <option value="transparent" <?php print (@$ops['wmode'] == "transparent") ? 'selected' : ''; ?>>transparent</option>
  198. <option value="window" <?php print (@$ops['wmode'] == "window") ? 'selected' : ''; ?>>window</option>
  199. </select>
  200. </td>
  201. </tr>
  202. </table>
  203. <p><button type="submit" class="button-primary"><?php _e('Save Config'); ?></button></p>
  204. </form>
  205. </div>