Skip to content
Snippets Groups Projects
Commit b79a8c4c authored by Julian Maurice's avatar Julian Maurice
Browse files

rel #12849 Change file format of viewnotice.phtml

parent 125324d9
Branches
Tags
3 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!50Ft/Rf12808,!48Ft/Rf12808
<?php
$this->openBoite("Notice");
$script_loader = Class_ScriptLoader::getInstance()
->addStyleSheet(URL_ADMIN_JS.'slimbox/slimbox2')
->addAdminScript('slimbox/slimbox2.min.js')
->addStyleSheet(URL_ADMIN_JS.'rating/jquery.rating')
->addAdminScript('rating/jquery.rating.pack')
->addSkinstylesheet('recherche')
->addOpacScripts(['subModal',
'recherche',
'liste_notices_mur'])
->addJQueryReady(sprintf('$("#reseaux-sociaux").load("%s")',
$this->url(array('controller' => 'recherche',
'action' => 'reseau',
'id_notice' => $this->notice->getId(),
'type_doc' => $this->notice->getTypeDoc()))));
?>
<div class="navigation">
<a class="retour" href="<?php echo $this->url($this->criteres_recherche->getUrlRetourListe(), null, true).'#'.$this->notice->getId(); ?>">
<?php echo $this->_('Retour à la liste') ?>
</a>
<?php echo $this->tagAnchor($this->url_panier,
$this->_('Ajouter au Panier'),
['class'=>'panier'.
($this->notice->isInPanier()
? ' dans_panier'
: ''),
'data-popup' => 'true',
'data-action' => $this->url_panier,
'title' => $this->notice->getPaniersLibelles()]); ?>
<?php
echo $this->Notice_LienReserver($this->notice);
if ($this->notice_navigation)
echo $this->Notice_Navigation($this->notice_navigation);
?>
<div class="clear"></div>
</div>
<div class="notice_vignette">
<?php
if ($this->notice->hasVignette()) {
printf('<a id="vignette" href="%s" title="%s">',
$this->notice->getUrlImage(),
htmlentities($this->notice->getTitrePrincipal()));
printf('<img src="%s" width="100" border="0" alt="%s" />',
$this->notice->getUrlVignette(),
$this->_('Vignette'));
echo '</a>';
echo '<script type="text/javascript">$("a[id=\'vignette\']").slimbox({}, null, null)</script>';
}
else
echo $this->notice_Vignette($this->notice);
if ($this->display_modifier_vignette_link)
echo sprintf('<a href="#" onclick="showPopWin(\'%s\', 750, 350); return false;">%s</a>',
$this->url(['module' => 'admin',
'controller' => 'upload',
'action' => 'vignette-notice',
]),
$this->_('Modifier la vignette'));
?>
<div id="reseaux-sociaux"></div>
</div>
<div class="view_notice type_doc_<?php echo $this->notice->getTypeDoc(); ?>">
<div>
<div class="image">
<?php echo $this->iconeSupport($this->notice->getTypeDoc()) ?>
<?php if($this->picto_genre) echo BR.BR.'<img src="'.URL_IMG.'genres/'.$this->picto_genre.'" alt="Genre" />'?>
</div>
<div style="margin-left: 30px">
<div>
<h1>
<?php
echo "<span>".$this->notice->getTitreEtSousTitre()."</span>";
echo $this->readSpeaker('recherche',
'readnotice',
["id" => $this->notice->getId()]);
?>
</h1>
</div>
<div><h1><?php echo "<span>".$this->notice->getAuteurPrincipal()."</span>" ?></h1></div>
</div>
</div>
</div>
<?php
// Entete Notice
echo sprintf('<div class="entete_notice">%s</div>'.
'<div class="flags_notice">%s</div>'.
'<div class="blocs_notice">%s</div>'.
'<div>%s</div>',
$this->notice_Entete($this->notice, $this->preferences),
$this->notice_Flags($this->notice, $this->preferences),
$this->notice_Blocs($this->notice, $this->preferences)."<div class='clear'></div>",
$this->notice_Onglets($this->notice, $this->preferences));
$this->closeBoite();
?>
<?php
$this->openBoite("Notice");
$script_loader = Class_ScriptLoader::getInstance()
->addStyleSheet(URL_ADMIN_JS.'slimbox/slimbox2')
->addAdminScript('slimbox/slimbox2.min.js')
->addStyleSheet(URL_ADMIN_JS.'rating/jquery.rating')
->addAdminScript('rating/jquery.rating.pack')
->addSkinstylesheet('recherche')
->addOpacScripts(['subModal',
'recherche',
'liste_notices_mur'])
->addJQueryReady(sprintf('$("#reseaux-sociaux").load("%s")',
$this->url(array('controller' => 'recherche',
'action' => 'reseau',
'id_notice' => $this->notice->getId(),
'type_doc' => $this->notice->getTypeDoc()))));
?>
<div class="navigation">
<a class="retour" href="<?php echo $this->url($this->criteres_recherche->getUrlRetourListe(), null, true).'#'.$this->notice->getId(); ?>">
<?php echo $this->_('Retour à la liste') ?>
</a>
<?php echo $this->tagAnchor($this->url_panier,
$this->_('Ajouter au Panier'),
['class'=>'panier'.
($this->notice->isInPanier()
? ' dans_panier'
: ''),
'data-popup' => 'true',
'data-action' => $this->url_panier,
'title' => $this->notice->getPaniersLibelles()]); ?>
<?php
echo $this->Notice_LienReserver($this->notice);
if ($this->notice_navigation)
echo $this->Notice_Navigation($this->notice_navigation);
?>
<div class="clear"></div>
</div>
<div class="notice_vignette">
<?php
if ($this->notice->hasVignette()) {
printf('<a id="vignette" href="%s" title="%s">',
$this->notice->getUrlImage(),
htmlentities($this->notice->getTitrePrincipal()));
printf('<img src="%s" width="100" border="0" alt="%s" />',
$this->notice->getUrlVignette(),
$this->_('Vignette'));
echo '</a>';
echo '<script type="text/javascript">$("a[id=\'vignette\']").slimbox({}, null, null)</script>';
}
else
echo $this->notice_Vignette($this->notice);
if ($this->display_modifier_vignette_link)
echo sprintf('<a href="#" onclick="showPopWin(\'%s\', 750, 350); return false;">%s</a>',
$this->url(['module' => 'admin',
'controller' => 'upload',
'action' => 'vignette-notice',
]),
$this->_('Modifier la vignette'));
?>
<div id="reseaux-sociaux"></div>
</div>
<div class="view_notice type_doc_<?php echo $this->notice->getTypeDoc(); ?>">
<div>
<div class="image">
<?php echo $this->iconeSupport($this->notice->getTypeDoc()) ?>
<?php if($this->picto_genre) echo BR.BR.'<img src="'.URL_IMG.'genres/'.$this->picto_genre.'" alt="Genre" />'?>
</div>
<div style="margin-left: 30px">
<div>
<h1>
<?php
echo "<span>".$this->notice->getTitreEtSousTitre()."</span>";
echo $this->readSpeaker('recherche',
'readnotice',
["id" => $this->notice->getId()]);
?>
</h1>
</div>
<div><h1><?php echo "<span>".$this->notice->getAuteurPrincipal()."</span>" ?></h1></div>
</div>
</div>
</div>
<?php
// Entete Notice
echo sprintf('<div class="entete_notice">%s</div>'.
'<div class="flags_notice">%s</div>'.
'<div class="blocs_notice">%s</div>'.
'<div>%s</div>',
$this->notice_Entete($this->notice, $this->preferences),
$this->notice_Flags($this->notice, $this->preferences),
$this->notice_Blocs($this->notice, $this->preferences)."<div class='clear'></div>",
$this->notice_Onglets($this->notice, $this->preferences));
$this->closeBoite();
?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment