Slt,
Ce qui serait bien, c'est d'avoir un gros bouton visible en accueil pour télécharger le CMS.
Comme ton ancien thème.
Le bloc est là mais seulement aux visiteurs car si on est enregistré je pense qu'on a déjà dl pmx.
Mais effectivement peut être mettre un raccourcis même aux enregistrés, à voir mais est ce vraiment utile ?
il y a un block Site au hasard, je peux le trouver ou
Voici le code du bloc
<?php
/**
* This file is part of
* pragmaMx - Web Content Management System.
* Copyright by pragmaMx Developer Team - http://www.pragmamx.org
*
* pragmaMx is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* this file based on:
* php-nuke Web Portal System - http://phpnuke.org/
* Thatware - http://thatware.org/
*/
defined('mxMainFileLoaded') or die('access denied');
/* Der Pfad zu den lokalen Thumbnails */
$imagepath = 'media/images/referenzen/';
/* die Weblinks Ketegorie */
$categorie = 3;
/* Die ersten Teile des Artikeltextes anzeigen,
* - eine beliebige Zahl, die die Menge der angezeigten Zeichen definiert
* HTML-Tags, ausser <br /> werden entfernt und nicht mitgerechnet
*/
$textlen = 220;
$qry = "SELECT lid, url, title, description
FROM " . $GLOBALS['prefix'] . "_links_links AS dd
WHERE dd.cid=" . intval($categorie) . "
ORDER BY RAND()
LIMIT 50";
$row = sql_fetch_assoc(sql_query($qry));
$image = $imagepath . intval($row['lid']) . '.jpg';
if (!file_exists($image)) {
$image = 'http://www.robothumb.com/src/?url=' . urlencode($row['url']) . '&size=120x90';
}
$introlink = '';
if ($textlen) {
$introlink = trim(strip_tags($row['description'], '<br />'));
$introlink = preg_replace('#^(?:<br\s*/*>\s*)*#is', '', $introlink);
$introlink = trim(mxCutString($introlink, $textlen, " ...", " "));
}
$content = '
<h4>' . $row['title'] . '</h4>
<p>
<a href="' . $row['url'] . '" title="" style="text-decoration: none;" target="_blank">
<img class="border float-left" src="' . $image . '" alt="' . htmlspecialchars($row['title']) . '" style="width: 120px; height: 90px;" />
</a>
' . $introlink . '
</p>';
?>
a mettre dans un fichier block-nomdemonbloc.php puis a placer dans rep /blocs/
