Guest User

Untitled

a guest
Dec 18th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. home.php
  2.  
  3.  
  4. $useragent = strtolower($_SERVER['HTTP_USER_AGENT']);
  5. $httpaccept = strtolower($_SERVER['HTTP_ACCEPT']);
  6.  
  7. // echo Debug::vars($useragent);
  8. // echo Debug::vars($httpaccept);
  9.  
  10. $deviceIphone = 'safari';
  11. //$deviceIphone = 'chrome';
  12.  
  13. if (stripos($useragent, $deviceIphone) > -1)
  14. {
  15. $this->template->title = __('BetOnIt | Mobile Homepage');
  16. $this->template->message = 'Hello, BetOnIt!';
  17.  
  18. $this->template->content = View::factory('mobilehome')
  19. ->bind('post', $post)
  20. ->bind('errors', $errors)
  21. ->bind('loginerrors', $loginerrors);
  22. }
  23. else { }
  24.  
  25. generic.php
  26.  
  27. <style type="text/css">
  28. body {
  29.  
  30. padding-top: 20px;
  31. padding-bottom: 20px;
  32. padding-left: 20px;
  33. max-width: 300px;
  34. }
  35. .sidebar-nav {
  36. padding: 9px 0;
  37. }
  38. .card-two,.card-three {display:none;}
  39. .modal-body {min-height:260px;}
  40. .container {
  41. max-width: 300px;
  42. margin-left:auto;
  43. margin-right:auto;
  44. width:70%;
  45. } /* To keep the next/back buttons in the same place */
  46. </style>
Add Comment
Please, Sign In to add comment