issue #0001627 : Update librairies for mobile version JQuery Mobile version 1.4.2
@ -8,20 +8,21 @@
|
||||
<?=$this->headScript()?>
|
||||
</head>
|
||||
<body>
|
||||
<div data-role="page" data-theme="b">
|
||||
<div data-role="header">
|
||||
<a href="<?=$this->url(array('controller'=>'index'), null, true)?>" data-role="button"
|
||||
data-icon="home" data-iconpos="notext">Menu</a>
|
||||
<h1><?=$this->headTitle()?></h1>
|
||||
<a href="<?=$this->url(array('controller'=>'index'), null, true)?>" data-role="button"
|
||||
data-icon="search" data-iconpos="notext">Recherche</a>
|
||||
</div>
|
||||
<div data-role="content">
|
||||
<div data-role="page">
|
||||
<div data-role="header" role="banner">
|
||||
<h2 class="ui-title" role="heading" aria-level="1">Extranet</h2>
|
||||
<a href="#" data-role="button" role="button">Menu</a>
|
||||
<a href="#" data-role="button" role="button">Search</a>
|
||||
</div><!-- /header -->
|
||||
|
||||
<div role="main" class="ui-content">
|
||||
<?=$this->layout()->content?>
|
||||
</div>
|
||||
</div><!-- /content -->
|
||||
|
||||
<div data-role="footer" data-position="fixed">
|
||||
<h4>Menu</h4>
|
||||
</div>
|
||||
</div>
|
||||
<h4>Scores & Decisions</h4>
|
||||
</div><!-- /footer -->
|
||||
|
||||
</div><!-- /page -->
|
||||
</body>
|
||||
</html>
|
@ -1,27 +0,0 @@
|
||||
<?=$this->doctype()?>
|
||||
<html>
|
||||
<head>
|
||||
<?=$this->headMeta()?>
|
||||
<?=$this->headTitle()?>
|
||||
<?=$this->headStyle()?>
|
||||
<?=$this->headLink()?>
|
||||
<?=$this->headScript()?>
|
||||
</head>
|
||||
<body>
|
||||
<div data-role="page" data-theme="b">
|
||||
<div data-role="header">
|
||||
<a href="<?=$this->url(array('controller'=>'index'), null, true)?>" data-role="button"
|
||||
data-icon="home" data-iconpos="notext">Menu</a>
|
||||
<h1><?=$this->headTitle()?></h1>
|
||||
<a href="<?=$this->url(array('controller'=>'index'), null, true)?>" data-role="button"
|
||||
data-icon="search" data-iconpos="notext">Recherche</a>
|
||||
</div>
|
||||
<div data-role="content">
|
||||
<?=$this->layout()->content?>
|
||||
</div>
|
||||
<div data-role="footer" data-position="fixed">
|
||||
<h4>Menu</h4>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
36
application/views/mobile/scripts/user/login.phtml
Normal file
@ -0,0 +1,36 @@
|
||||
<?=$this->doctype()?>
|
||||
<html>
|
||||
<head>
|
||||
<?=$this->headMeta()?>
|
||||
<?=$this->headTitle()?>
|
||||
<?=$this->headStyle()?>
|
||||
<?=$this->headLink()?>
|
||||
<?=$this->headScript()?>
|
||||
</head>
|
||||
<body>
|
||||
<div data-role="page">
|
||||
<div data-role="header" role="banner">
|
||||
<h2 class="ui-title" role="heading" aria-level="1">Extranet</h2>
|
||||
</div><!-- /header -->
|
||||
|
||||
<div role="main" class="ui-content">
|
||||
<form method="post" action="<?=$this->url(array('controller'=>'user', 'action'=>'login'),null, true)?>">
|
||||
|
||||
<label for="user" class="ui-hidden-accessible">Identifiant</label>
|
||||
<input name="login" id="user" placeholder="Identifiant" value="" type="text" required>
|
||||
|
||||
<label for="password" class="ui-hidden-accessible">Mot de passe</label>
|
||||
<input name="pass" id="password" placeholder="Mot de passe" value="" type="password" required>
|
||||
|
||||
<input value="Connexion" data-icon="user" type="button">
|
||||
|
||||
</form>
|
||||
</div><!-- /content -->
|
||||
|
||||
<div data-role="footer" data-position="fixed">
|
||||
<h4>Scores & Décisions SAS</h4>
|
||||
</div><!-- /footer -->
|
||||
|
||||
</div><!-- /page -->
|
||||
</body>
|
||||
</html>
|
@ -4,7 +4,7 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
|
||||
public function routeShutdown(Zend_Controller_Request_Abstract $request)
|
||||
{
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$theme = 'default';
|
||||
$theme = 'default'; //$theme = 'default';
|
||||
if ( $auth->hasIdentity() ) {
|
||||
$theme = !empty($auth->getIdentity()->theme) ? $auth->getIdentity()->theme : 'default';
|
||||
}
|
||||
@ -187,20 +187,38 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
|
||||
|
||||
case 'mobile': //@todo
|
||||
|
||||
$view->doctype('HTML5');
|
||||
$view->doctype('HTML5');
|
||||
|
||||
$view->headMeta()
|
||||
->appendName('charset', 'utf-8')
|
||||
->appendName('viewport', 'width=device-width, initial-scale=1');
|
||||
$view->headMeta()
|
||||
->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
|
||||
->appendHttpEquiv('Content-Language', 'fr-FR')
|
||||
->appendName('viewport', 'width=device-width, initial-scale=1');
|
||||
|
||||
//Favicon - Touch icon for iOS 2.0+ and Android 2.1+
|
||||
$view->headLink()->headLink(array(
|
||||
'rel' => 'apple-touch-icon-precomposed',
|
||||
'href' => '/favicon-152.png'
|
||||
));
|
||||
//Favicon - targeted to any additional png size
|
||||
$view->headLink()->headLink(array(
|
||||
'rel' => 'icon',
|
||||
'type' => 'image/png',
|
||||
'href' => '/favicon-32.png'
|
||||
));
|
||||
$view->headLink()->headLink(array(
|
||||
'rel' => 'shortcut icon',
|
||||
'type' => 'image/x-icon',
|
||||
'href' => '/favicon.ico')
|
||||
);
|
||||
|
||||
//Style
|
||||
$view->headLink()
|
||||
->appendStylesheet('/libs/mobile/1.4.0/jquery.mobile-1.4.0.min.css', 'all');
|
||||
->appendStylesheet('/libs/mobile/1.4.2/jquery.mobile-1.4.2.min.css', 'all');
|
||||
|
||||
//JavaScript
|
||||
$view->headScript()
|
||||
->appendFile('/libs/jquery/jquery-1.11.0.min.js', 'text/javascript')
|
||||
->appendFile('/libs/mobile/1.4.0/jquery.mobile-1.4.0.min.js', 'text/javascript')
|
||||
->appendFile('/libs/jquery/jquery-2.1.0.min.js', 'text/javascript')
|
||||
->appendFile('/libs/mobile/1.4.2/jquery.mobile-1.4.2.min.js', 'text/javascript')
|
||||
->appendFile($paramsTheme->pathScript.'/script.js', 'text/javascript');
|
||||
|
||||
break;
|
||||
|
4
public/libs/jquery/jquery-2.1.0.min.js
vendored
Normal file
Before Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 107 B |
Before Width: | Height: | Size: 123 B |
Before Width: | Height: | Size: 125 B |
Before Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 126 B |
Before Width: | Height: | Size: 109 B |
Before Width: | Height: | Size: 107 B |
Before Width: | Height: | Size: 115 B |
Before Width: | Height: | Size: 109 B |
Before Width: | Height: | Size: 112 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 119 B |
Before Width: | Height: | Size: 122 B |
Before Width: | Height: | Size: 118 B |
Before Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 94 B |
Before Width: | Height: | Size: 99 B |
Before Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 118 B |
Before Width: | Height: | Size: 100 B |
Before Width: | Height: | Size: 106 B |
Before Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 195 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 91 B |
Before Width: | Height: | Size: 93 B |
Before Width: | Height: | Size: 92 B |
Before Width: | Height: | Size: 95 B |
Before Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 125 B |
Before Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 257 B |
Before Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 179 B |
Before Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 130 B |
Before Width: | Height: | Size: 126 B |
Before Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 124 B |
Before Width: | Height: | Size: 129 B |
Before Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 233 B |
Before Width: | Height: | Size: 257 B |
Before Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 192 B |
Before Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 120 B |
Before Width: | Height: | Size: 129 B |
Before Width: | Height: | Size: 198 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 110 B |
Before Width: | Height: | Size: 114 B |
Before Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 189 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 182 B |
Before Width: | Height: | Size: 179 B |
Before Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 68 B |
Before Width: | Height: | Size: 70 B |
Before Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 226 B |
Before Width: | Height: | Size: 85 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 198 B |
Before Width: | Height: | Size: 229 B |
Before Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 226 B |
Before Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 129 B |
Before Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 119 B |