Commit 2b8673a1 authored by Pierre's avatar Pierre

logodp v2

parent d7056c39
......@@ -7,7 +7,7 @@
[(#FORMULAIRE_RECHERCHE_BARRE)]
<li class="menu-entree item">
<a href="#URL_SITE_SPIP" title="<:accueil_site:>">
<span class="circle"><strong>D</strong><em>p</em></span>
#MODELE{logodp}
</a>
</li>
<BOUCLE_entrees(MENUS_ENTREES){id_menu}{par rang}>#SET{entree,''}
......
......@@ -14,7 +14,54 @@ function trad ($texte, $lang) {
return $text;
}
/* dans /home/pit/workspace/dp/plugins/auto/sarkaspipr/v4.4.16/noisettes/article
* description.html
// [<div class="#EDIT{texte} texte">(#TEXTE**|mailman)</div>]
*
function mailman ($texte) {
//$texte = preg_replace('Membre', '', $texte);
//$texte = propre($texte);
$texte = str_replace("Membre",' ',$texte);
spip_log("texte ".$texte,'test'._LOG_AVERTISSEMENT);
$newtext = "";
$tab_texte = explode("\n", $texte);
foreach ($tab_texte as $ligne){
$ligne= rtrim($ligne);
$tab_ligne = explode(" ", $ligne);
// unset_empty_values($tab_ligne);
$dernier = sizeof($tab_ligne)-1;
$newligne = str_replace_last($ligne, $tab_ligne[$dernier],'&lt;'.ltrim($tab_ligne[$dernier]).'>');
spip_log("ltrim ".ltrim($tab_ligne[$dernier]),'test'._LOG_AVERTISSEMENT);
// spip_log("tab_ligne ".$tab_ligne[sizeof($tab_ligne)-1],'test'._LOG_AVERTISSEMENT);
$newtext .= $newligne."<br />";
spip_log("newligne ".$newligne,'test'._LOG_AVERTISSEMENT);
}
return $newtext;
}
function unset_empty_values(&$array) {
foreach ($array as $k => $v) {
if (empty($v) or $v==" ")
unset($array[$k]);
}
}
function str_replace_last($string ,$search , $replace){
if ((($string_len=strlen($string))==0) || (($search_len=strlen($search))==0)) return $string;
$pos=strrpos($string,$search);
if ($pos>0) return substr($string,0,$pos).$replace.substr($string,$pos+$search_len,max(0,$string_len-($pos+$search_len)));
return $string;
}
*/
/*
// traitement principal. avec ce pipeline, le PDF est mis en cache et recalculé "normalement"
function spipdf_html2pdf_ficelle($html){
......@@ -181,5 +228,7 @@ function spipdf_html2pdf_ficelle($html){
return $html;
}
*/
?>
<span class="circle">
<strong>D</strong>
<em>p</em>
</span>
Dom<span class="circle">\o<em>/</em></span>ine public
......@@ -485,15 +485,25 @@ input.submit:hover {
.circle {
background: #fff none repeat scroll 0 0;
color: lighten(@footerBackground,10%);
border: 1px solid lighten(@footerBackground,10%);
color: @grayDark;
border: 1px solid @grayDark;
border-radius: 50%;
font-family: sans-serif;
height: 200px;
padding: 4px;
width: 200px;
}
#navred .circle {
background: inherit;
border-color: #ccc;
color: #ccc;
}
#navred .circle:hover {
background: @black;
border-color: #ccc;
color: #ccc;
}
.circle:hover {
color: @footerBackground;
border: 1px solid @footerBackground;
border: 1px solid @black;
}
Markdown is supported
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