Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- home.php
- $useragent = strtolower($_SERVER['HTTP_USER_AGENT']);
- $httpaccept = strtolower($_SERVER['HTTP_ACCEPT']);
- // echo Debug::vars($useragent);
- // echo Debug::vars($httpaccept);
- $deviceIphone = 'safari';
- //$deviceIphone = 'chrome';
- if (stripos($useragent, $deviceIphone) > -1)
- {
- $this->template->title = __('BetOnIt | Mobile Homepage');
- $this->template->message = 'Hello, BetOnIt!';
- $this->template->content = View::factory('mobilehome')
- ->bind('post', $post)
- ->bind('errors', $errors)
- ->bind('loginerrors', $loginerrors);
- }
- else { }
- generic.php
- <style type="text/css">
- body {
- padding-top: 20px;
- padding-bottom: 20px;
- padding-left: 20px;
- max-width: 300px;
- }
- .sidebar-nav {
- padding: 9px 0;
- }
- .card-two,.card-three {display:none;}
- .modal-body {min-height:260px;}
- .container {
- max-width: 300px;
- margin-left:auto;
- margin-right:auto;
- width:70%;
- } /* To keep the next/back buttons in the same place */
- </style>
Add Comment
Please, Sign In to add comment