Skip to content
Snippets Groups Projects
Commit 23403823 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #16180 remove shitty »  before sito label in sito widget

parent 9622d939
Branches
Tags
3 merge requests!529Hotline 6.56,!419Dev #15884 ccbs la boucle skin,!402Dev #15884 ccbs la boucle skin
......@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OPAC3 - Class_Module_Sito -> Sitothèque
......@@ -35,7 +35,7 @@ class ZendAfi_View_Helper_Accueil_Sito extends ZendAfi_View_Helper_Accueil_Base
//---------------------------------------------------------------------
// CONSTRUCTION du Html
//---------------------------------------------------------------------
//---------------------------------------------------------------------
public function getHtml() {
extract($this->preferences);
$contenu = '';
......@@ -46,7 +46,7 @@ class ZendAfi_View_Helper_Accueil_Sito extends ZendAfi_View_Helper_Accueil_Base
explode('-', $id_categorie));
shuffle($sites);
$contenu.=$this->renderSitesSlice($sites,$nb_aff);
$contenu.=$this->renderSitesSlice($sites,$nb_aff);
$titre= sprintf('<a href="%s" title="%s">%s</a>',
htmlspecialchars(BASE_URL.'/opac/sito/viewselection/id_module/'.$this->id_module),
$this->translate()->_('Sélection de sites'),
......@@ -58,14 +58,14 @@ class ZendAfi_View_Helper_Accueil_Sito extends ZendAfi_View_Helper_Accueil_Base
$last_sito = Class_Sitotheque::getLoader()->findAllBy(array('limit' => 50));
shuffle($last_sito);
if(!$titre)
if(!$titre)
$titre = $this->translate()->_("Derniers sites ajoutés");
$titre= sprintf('<a href="%s" title="%s">%s</a>',
htmlspecialchars(BASE_URL.'/opac/sito/viewrecent/nb/50'),
$this->translate()->_('Liste des derniers sites ajoutés'),
$titre);
$contenu.=$this->renderSitesSlice($last_sito,$nb_aff);
$contenu.=$this->renderSitesSlice($last_sito,$nb_aff);
}
$this->titre=$titre;
$this->contenu = $contenu;
......@@ -111,14 +111,14 @@ class ZendAfi_View_Helper_Accueil_Sito extends ZendAfi_View_Helper_Accueil_Base
$sites = array_slice($sites, 0, $nb_aff);
if (!$this->isGroupByCategorie())
return $this->renderSites($sites,
if (!$this->isGroupByCategorie())
return $this->renderSites($sites,
'<div style="clear:both;width:100%;background:transparent url('.URL_IMG.'box/menu/separ.gif) repeat-x scroll center bottom;margin-bottom:5px">&nbsp;</div>');
$categories = $this->groupSitesByCategorie($sites);
$htmls = array();
foreach ($categories as $libelle_categorie => $sites)
$htmls []= sprintf('<li><h2><a href="#">%s</a></h2><ul><li>%s</li></ul></li>',
$htmls []= sprintf('<li><h2><a href="#">%s</a></h2><ul><li>%s</li></ul></li>',
$libelle_categorie,
$this->renderSites($sites));
......@@ -148,7 +148,7 @@ class ZendAfi_View_Helper_Accueil_Sito extends ZendAfi_View_Helper_Accueil_Base
if ($img_url = $this->getThumbnail($site->getUrl()))
$html.= sprintf('<img src="%s" alt="%s" />',$img_url, $this->translate()->_('vignette du site %s', $site->getTitre()));
$html .= '&raquo;&nbsp;'.$site->getTitre().'</a></h2>';
$html .= $site->getTitre().'</a></h2>';
$html .= $site->getDescription();
return '<div class="sitotheque">'.$html.'</div>';
......
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