Guest User

Untitled

a guest
Jan 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2.  
  3. function createSharingDialog($services) //Step 2: Build the dialog and save it to a var for later use
  4. {
  5. $social_dialog = "<div data-role='dialog' id='share_dialog'>";
  6. $social_dialog .= "<div data-role='header'><h2>Share</h2></div>";
  7. $social_dialog .= "<div data-role='content'>";
  8.  
  9. foreach($services as $item):
  10. $social_dialog .= buildSharingLink($item);
  11. endforeach;
  12.  
  13. $social_dialog .= "</div>";
  14. $social_dialog .= "</div>";
  15.  
  16. $GLOBALS['social_dialog'] = $social_dialog;
  17. return $GLOBALS['social_dialog'];
  18. }
  19.  
  20. ?>
Add Comment
Please, Sign In to add comment