Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. function hire_equipment_func($atts) {
  2.  
  3. extract( shortcode_atts( array(
  4. 'img' => '',
  5. 'user' => '',
  6. 'text' => '',
  7. 'length' => '',
  8. 'material' => '',
  9. 'power' => '',
  10. ), $atts ) );
  11.  
  12. $atts = array_change_key_case((array)$atts, CASE_LOWER);
  13.  
  14. return $output1;
  15.  
  16. $output1 =
  17.  
  18. '<div class="hire-equipment-item">
  19.  
  20. <div class="hire-equipment-item-img"><img src="' . $atts['img'] . '" height=200px" width="200px" alt=""></div><br />
  21.  
  22. <div class="hire-equipment-item-user">' . $atts['user'] . '</div>
  23.  
  24. <div class="hire-equipment-item-text">' . $atts['text'] . '</div>
  25.  
  26. </div>';
  27.  
  28. $output2 =
  29.  
  30. '<div class="hire-equipment-item">
  31.  
  32. <div class="hire-equipment-item-img"><img src="' . $atts['img'] . '" height=200px" width="200px" alt=""></div><br />
  33.  
  34. <div class="hire-equipment-item-user">' . $atts['user'] . '</div>
  35.  
  36. <div class="hire-equipment-more-information">
  37.  
  38. <table class="hire-equipment-more-information-table" cellpadding="15px">
  39.  
  40. <tr>
  41.  
  42. <th>Length:</th>
  43. <th>Material:</th>
  44. <th>Power:</th>
  45.  
  46. </tr>
  47.  
  48. <tr>
  49.  
  50. <td> ' . $atts['length'] . ' </td>
  51. <td> ' . $atts['material'] . ' </td>
  52. <td> ' . $atts['power'] . ' </td>
  53.  
  54. </tr>
  55.  
  56. </table>
  57.  
  58. </div>
  59.  
  60. </div>';
  61.  
  62. }
  63. add_shortcode( 'hire_equipment', 'hire_equipment_func' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement