Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hire_equipment_func($atts) {
- extract( shortcode_atts( array(
- 'img' => '',
- 'user' => '',
- 'text' => '',
- 'length' => '',
- 'material' => '',
- 'power' => '',
- ), $atts ) );
- $atts = array_change_key_case((array)$atts, CASE_LOWER);
- return $output1;
- $output1 =
- '<div class="hire-equipment-item">
- <div class="hire-equipment-item-img"><img src="' . $atts['img'] . '" height=200px" width="200px" alt=""></div><br />
- <div class="hire-equipment-item-user">' . $atts['user'] . '</div>
- <div class="hire-equipment-item-text">' . $atts['text'] . '</div>
- </div>';
- $output2 =
- '<div class="hire-equipment-item">
- <div class="hire-equipment-item-img"><img src="' . $atts['img'] . '" height=200px" width="200px" alt=""></div><br />
- <div class="hire-equipment-item-user">' . $atts['user'] . '</div>
- <div class="hire-equipment-more-information">
- <table class="hire-equipment-more-information-table" cellpadding="15px">
- <tr>
- <th>Length:</th>
- <th>Material:</th>
- <th>Power:</th>
- </tr>
- <tr>
- <td> ' . $atts['length'] . ' </td>
- <td> ' . $atts['material'] . ' </td>
- <td> ' . $atts['power'] . ' </td>
- </tr>
- </table>
- </div>
- </div>';
- }
- add_shortcode( 'hire_equipment', 'hire_equipment_func' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement