Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.02 KB | None | 0 0
  1. <div class="homebx01 clearfix ani-1">
  2. <div class="homebxhead clearfix">
  3. <div class="bxicon homebxicon01"></div>
  4. <div class="bxheadtxt">Category name</strong></div>
  5. </div>
  6. <div class="cl"></div>
  7. <div class="homebxbody clearfix">
  8. <ul class="bxulsty">
  9. <li class="clearfix"><span></span> <strong>Category Description</strong></li>
  10. </ul>
  11. </div>
  12. <div class="cl"></div>
  13. <a class="morebt clearfix" href="#">Link to particular Categories post.</a>
  14. </div>
  15. <div class="homebx01 clearfix ani-1">
  16. <div class="homebxhead clearfix">
  17. <div class="bxicon homebxicon01"></div>
  18. <div class="bxheadtxt">Category name</strong></div>
  19. </div>
  20. <div class="cl"></div>
  21. <div class="homebxbody clearfix">
  22. <ul class="bxulsty">
  23. <li class="clearfix"><span></span> <strong>Category Description</strong></li>
  24. </ul>
  25. </div>
  26. <div class="cl"></div>
  27. <a class="morebt clearfix" href="#">Link to particular Categories post.</a>
  28. </div>
  29. <div class="homebx01 clearfix ani-1">
  30. <div class="homebxhead clearfix">
  31. <div class="bxicon homebxicon01"></div>
  32. <div class="bxheadtxt">Category name</strong></div>
  33. </div>
  34. <div class="cl"></div>
  35. <div class="homebxbody clearfix">
  36. <ul class="bxulsty">
  37. <li class="clearfix"><span></span> <strong>Category Description</strong></li>
  38. </ul>
  39. </div>
  40. <div class="cl"></div>
  41. <a class="morebt clearfix" href="#">Link to particular Categories post.</a>
  42. </div>
  43.  
  44. function wpse_143641_homebox_shortcode( $atts ) {
  45. return <<<HOMEBOX
  46. <div class="homebx01 clearfix ani-1">
  47. <div class="homebxhead clearfix">
  48. <div class="bxicon homebxicon01"></div>
  49. <div class="bxheadtxt">Category name</strong></div>
  50. </div>
  51. <div class="cl"></div>
  52. <div class="homebxbody clearfix">
  53. <ul class="bxulsty">
  54. <li class="clearfix"><span></span> <strong>Category Description</strong></li>
  55. </ul>
  56. </div>
  57. <div class="cl"></div>
  58. <a class="morebt clearfix" href="#">Link to particular Categories post.</a>
  59. </div>
  60. <div class="homebx01 clearfix ani-1">
  61. <div class="homebxhead clearfix">
  62. <div class="bxicon homebxicon01"></div>
  63. <div class="bxheadtxt">Category name</strong></div>
  64. </div>
  65. <div class="cl"></div>
  66. <div class="homebxbody clearfix">
  67. <ul class="bxulsty">
  68. <li class="clearfix"><span></span> <strong>Category Description</strong></li>
  69. </ul>
  70. </div>
  71. <div class="cl"></div>
  72. <a class="morebt clearfix" href="#">Link to particular Categories post.</a>
  73. </div>
  74. <div class="homebx01 clearfix ani-1">
  75. <div class="homebxhead clearfix">
  76. <div class="bxicon homebxicon01"></div>
  77. <div class="bxheadtxt">Category name</strong></div>
  78. </div>
  79. <div class="cl"></div>
  80. <div class="homebxbody clearfix">
  81. <ul class="bxulsty">
  82. <li class="clearfix"><span></span> <strong>Category Description</strong></li>
  83. </ul>
  84. </div>
  85. <div class="cl"></div>
  86. <a class="morebt clearfix" href="#">Link to particular Categories post.</a>
  87. </div>
  88. HOMEBOX;
  89. }
  90. add_shortcode( 'homebox', 'wpse_143641_homebox_shortcode' );
  91.  
  92. <span style="color:red">Please fill all mandatory fields.</span>
  93. <br/>
  94. <br/>
  95. <?php } ?>
  96. <form action="<?php echo $action; ?>" method="post" name="payuForm">
  97. <input type="hidden" name="key" value="<?php echo $MERCHANT_KEY ?>" />
  98. <input type="hidden" name="hash" value="<?php echo $hash ?>"/>
  99. <input type="hidden" name="txnid" value="<?php echo $txnid ?>" />
  100. <table>
  101. <tr>
  102. <td><b>Mandatory Parameters</b></td>
  103. </tr>
  104. <tr>
  105. <td>Amount: </td>
  106. <td><input name="amount" value="<?php echo (empty($posted['amount'])) ? '' : $posted['amount'] ?>" /></td>
  107. <td>First Name: </td>
  108. <td><input name="firstname" id="firstname" value="<?php echo (empty($posted['firstname'])) ? '' : $posted['firstname']; ?>" /></td>
  109. </tr>
  110. <tr>
  111. <td>Email: </td>
  112. <td><input name="email" id="email" value="<?php echo (empty($posted['email'])) ? '' : $posted['email']; ?>" /></td>
  113. <td>Phone: </td>
  114. <td><input name="phone" value="<?php echo (empty($posted['phone'])) ? '' : $posted['phone']; ?>" /></td>
  115. </tr>
  116. <tr>
  117. <td>Product Info: </td>
  118. <td colspan="3"><textarea name="productinfo"><?php echo (empty($posted['productinfo'])) ? '' : $posted['productinfo'] ?></textarea></td>
  119. </tr>
  120. <tr>
  121. <td>Success URI: </td>
  122. <td colspan="3"><input name="surl" value="<?php echo (empty($posted['surl'])) ? '' : $posted['surl'] ?>" size="64" /></td>
  123. </tr>
  124. <tr>
  125. <td>Failure URI: </td>
  126. <td colspan="3"><input name="furl" value="<?php echo (empty($posted['furl'])) ? '' : $posted['furl'] ?>" size="64" /></td>
  127. </tr>
  128.  
  129. <tr>
  130. <td colspan="3"><input type="hidden" name="service_provider" value="payu_paisa" size="64" /></td>
  131. </tr>
  132.  
  133. <tr>
  134. <td><b>Optional Parameters</b></td>
  135. </tr>
  136. <tr>
  137. <td>Last Name: </td>
  138. <td><input name="lastname" id="lastname" value="<?php echo (empty($posted['lastname'])) ? '' : $posted['lastname']; ?>" /></td>
  139. <td>Cancel URI: </td>
  140. <td><input name="curl" value="" /></td>
  141. </tr>
  142. <tr>
  143. <td>Address1: </td>
  144. <td><input name="address1" value="<?php echo (empty($posted['address1'])) ? '' : $posted['address1']; ?>" /></td>
  145. <td>Address2: </td>
  146. <td><input name="address2" value="<?php echo (empty($posted['address2'])) ? '' : $posted['address2']; ?>" /></td>
  147. </tr>
  148. <tr>
  149. <td>City: </td>
  150. <td><input name="city" value="<?php echo (empty($posted['city'])) ? '' : $posted['city']; ?>" /></td>
  151. <td>State: </td>
  152. <td><input name="state" value="<?php echo (empty($posted['state'])) ? '' : $posted['state']; ?>" /></td>
  153. </tr>
  154. <tr>
  155. <td>Country: </td>
  156. <td><input name="country" value="<?php echo (empty($posted['country'])) ? '' : $posted['country']; ?>" /></td>
  157. <td>Zipcode: </td>
  158. <td><input name="zipcode" value="<?php echo (empty($posted['zipcode'])) ? '' : $posted['zipcode']; ?>" /></td>
  159. </tr>
  160. <tr>
  161. <td>UDF1: </td>
  162. <td><input name="udf1" value="<?php echo (empty($posted['udf1'])) ? '' : $posted['udf1']; ?>" /></td>
  163. <td>UDF2: </td>
  164. <td><input name="udf2" value="<?php echo (empty($posted['udf2'])) ? '' : $posted['udf2']; ?>" /></td>
  165. </tr>
  166. <tr>
  167. <td>UDF3: </td>
  168. <td><input name="udf3" value="<?php echo (empty($posted['udf3'])) ? '' : $posted['udf3']; ?>" /></td>
  169. <td>UDF4: </td>
  170. <td><input name="udf4" value="<?php echo (empty($posted['udf4'])) ? '' : $posted['udf4']; ?>" /></td>
  171. </tr>
  172. <tr>
  173. <td>UDF5: </td>
  174. <td><input name="udf5" value="<?php echo (empty($posted['udf5'])) ? '' : $posted['udf5']; ?>" /></td>
  175. <td>PG: </td>
  176. <td><input name="pg" value="<?php echo (empty($posted['pg'])) ? '' : $posted['pg']; ?>" /></td>
  177. </tr>
  178. <tr>
  179. <?php if(!$hash) { ?>
  180. <td colspan="4"><input type="submit" value="Submit" /></td>
  181. <?php } ?>
  182. </tr>
  183. </table>
  184. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement