issue #0001627: Add the logic to the theme plugin, interface change

This commit is contained in:
Arman KYOKCHAN 2013-10-29 07:37:41 +00:00
parent add02110b8
commit 6f5b29be85
4 changed files with 43 additions and 32 deletions

View File

@ -35,7 +35,7 @@
<?=$this->form->pays?>
</div>
<?php }?>
<div data-role="fieldcontain">
<div data-role="fieldcontain" class='fbuttons'>
<?=$this->form->submit?>
<?=$this->form->reset?>
</div>

View File

@ -25,7 +25,16 @@ if (!empty($this->info)) {
<?php
foreach ( $this->liste as $item ) {
?>
<li style="list-style-type:decimal;" class="StyleInfoData" type="1" value="<?=$item['position']?>">
<li style="list-style-type:decimal;border: 1px solid #efefef;
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.60);
-moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.60);
-webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.60);
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-khtml-border-radius: 6px;
border-radius: 6px;
behavior: url(/pie.htc);
padding: 17px;" class="StyleInfoData" type="1" value="<?=$item['position']?>">
<b><a title="Voir la fiche d'identité de cet établissement" href="<?=$this->url(array(
'controller' => 'identite',
'action' => 'fiche',

View File

@ -5,10 +5,9 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
{
$auth = Zend_Auth::getInstance();
$theme = 'default';
if ( $auth->hasIdentity() ) {
$theme = !empty($auth->getIdentity()->theme) ? $auth->getIdentity()->theme : 'default';
if ($auth->getIdentity()->browser->mobile && $auth->getIdentity()->browser->mobile==1) {
$theme = 'mobile';
}
//Sauvegarde des paramètres du themes pour gérer les scripts et styles à utiliser
$paramsTheme = new stdClass();
$paramsTheme->name = $theme;
@ -180,8 +179,8 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
//Style
$view->headLink()
->appendStylesheet('/libs/mobile/1.3.0/jquery.mobile-1.3.0.min.css', 'all');
->appendStylesheet('/libs/mobile/1.3.0/jquery.mobile-1.3.0.min.css', 'all')
->appendStylesheet($paramsTheme->pathStyle.'/main.css', 'all');
//JavaScript
$view->headScript()
->appendFile('/libs/jquery/jquery-1.9.1.min.js', 'text/javascript')

View File

@ -0,0 +1,3 @@
.fbuttons {
text-align: right;
}