Logo image avec le module file
This commit is contained in:
parent
137bfe690e
commit
f2eb3b0acd
@ -21,6 +21,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
$front->setControllerDirectory(array(
|
||||
'default' => __DIR__ . '/modules/default/controllers',
|
||||
'admin' => __DIR__ . '/modules/admin/controllers',
|
||||
'file' => __DIR__ . '/modules/file/controllers',
|
||||
));
|
||||
|
||||
return $front;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php if ($this->isPost) :?>
|
||||
|
||||
<div style="text-align:center;">
|
||||
<img src="/fichier/logo/<?=$this->image?>"/>
|
||||
<img src="/file/image/logo/q/<?=$this->image?>"/>
|
||||
<br/>
|
||||
<a href="<?=$this->url(array('controller'=>'logo','action'=>'delete','image'=>$this->image))?>" id="logo_delete">
|
||||
Supprimer le logo existant</a>
|
||||
@ -46,7 +46,7 @@ var options = {
|
||||
$('#crop').ajaxForm(options);
|
||||
|
||||
</script>
|
||||
<img src="/fichier/logo/<?=$this->image?>" id="cropbox" />
|
||||
<img src="/file/image/logo/q/<?=$this->image?>" id="cropbox" />
|
||||
<br/>
|
||||
<form id="crop" name="crop"
|
||||
action="<?=$this->url(array('controller'=>'logo', 'action'=>'crop'),null, true);?>" method="post">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php if ( !empty($this->logo) ){?>
|
||||
|
||||
<div style="text-align:center;">
|
||||
<img src="/fichier/logo/<?=$this->logo?>"/>
|
||||
<img src="/file/image/logo/q/<?=$this->logo?>"/>
|
||||
<br/>
|
||||
<a id="logo_crop" href="<?=$this->url(array('controller'=>'logo', 'action'=>'crop', 'logo'=>$this->logo), null, true)?>">
|
||||
Editer l'image</a>
|
||||
@ -19,5 +19,5 @@ Envoyer une image</a>
|
||||
<a id="logo_url" href="<?=$this->url(array('controller'=>'logo', 'action'=>'url', 'siren'=>$this->siren), null, true)?>">
|
||||
Saisir URL</a>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } ?>
|
@ -2,7 +2,7 @@
|
||||
|
||||
<div style="text-align:center;">
|
||||
<?php if ($this->image):?>
|
||||
<img src="/fichier/logo/<?=$this->image?>"/>
|
||||
<img src="/file/image/logo/q/<?=$this->image?>"/>
|
||||
<br/>
|
||||
<a id="logo_crop" href="<?=$this->url(array('controller'=>'logo', 'action'=>'crop', 'image'=>$this->image), null, true)?>">
|
||||
Editer l'image</a>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<?php if ($this->image): ?>
|
||||
<div style="text-align:center;">
|
||||
<img src="/fichier/logo/<?=$this->image?>" />
|
||||
<img src="/file/image/logo/q/<?=$this->image?>" />
|
||||
<br/>
|
||||
<a id="logo_crop" href="<?=$this->url(array('controller'=>'logo', 'action'=>'crop', 'image'=>$this->image), null, true)?>">
|
||||
Editer l'image</a>
|
||||
|
@ -30,7 +30,7 @@ class Logo
|
||||
} else {
|
||||
$strSize = '';
|
||||
}
|
||||
return '<img src="/fichier/logo/'.$logo.'" '.$strSize.'/>';
|
||||
return '<img src="/file/image/logo/q/'.$logo.'" '.$strSize.'/>';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user