Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function createSharingDialog($services) //Step 2: Build the dialog and save it to a var for later use
- {
- $social_dialog = "<div data-role='dialog' id='share_dialog'>";
- $social_dialog .= "<div data-role='header'><h2>Share</h2></div>";
- $social_dialog .= "<div data-role='content'>";
- foreach($services as $item):
- $social_dialog .= buildSharingLink($item);
- endforeach;
- $social_dialog .= "</div>";
- $social_dialog .= "</div>";
- $GLOBALS['social_dialog'] = $social_dialog;
- return $GLOBALS['social_dialog'];
- }
- ?>
Add Comment
Please, Sign In to add comment