BLOG - Modif
Par karando, samedi 11 novembre 2006 à 22:01 :: PHP - Autre Contribution :: #6 :: rss
mettre un rel=nofollow et modifier l'affichage du back pour la liste des billets
donc pour faire ca il faut modifier la ligne 971 du fichier functions.php par
function dcCommentAuthor($s='<a href="%1$s" rel="nofollow" target="_blank">%2$s</a>')
pour avoir toutes les infos dans l'admin sur une seule ligne modifier la partie
echo
'<div class="ligne '.$post_class.'" id="p'.$posts->f('post_id').'">'.
'<h3 class="ligneTitre">'.
$post_img.' '.$post_selected;
if (dc_show_previews)
{
echo
'<a href="#" onclick="openClose(\'content'.$posts->f('post_id').
'\',0); return false;"><img src="images/plus.png" '.
'id="img_content'.$posts->f('post_id').'" '.
'alt="'.__('show/hide').'" title="'.__('show/hide').'" /></a>'.
' ';
}
echo
$posts->f('post_titre').'</h3>'.
'<p class="ligneInfo">'.
'<strong>'.date('d/m/Y @ H:i:s',$posts->getTS()).'</strong> '.
$edit_links.
'<a href="poster.php?post_id='.$posts->f('post_id').'#comments">'.
$str_comments.
'</a> - '.
'<a href="poster.php?post_id='.$posts->f('post_id').'#trackbacks">'.
$str_trackbacks.
'</a></p>'.
'<p class="ligneInfo">'.
sprintf(__('by %s - in %s'),'<strong>'.$posts->getUserCN().'</strong>',
'<strong>'.$posts->f('cat_libelle').'</strong>').
'</p>'.
'<div id="content'.$posts->f('post_id').'" class="preview" style="display:none">';
if (dc_show_previews) {
echo
(($posts->f('post_chapo')!='') ? $posts->f('post_chapo').'<hr class="thin" />' : '').
$posts->f('post_content');
}
echo '</div>'.
'</div>';
par
echo
'<div class="ligne '.$post_class.'" id="p'.$posts->f('post_id').'">'.
'<h3 class="ligneTitre">'.
$post_img.' '.$post_selected;
if (dc_show_previews)
{
echo
'<a href="#" onclick="openClose(\'content'.$posts->f('post_id').
'\',0); return false;"><img src="images/plus.png" '.
'id="img_content'.$posts->f('post_id').'" '.
'alt="'.__('show/hide').'" title="'.__('show/hide').'" /></a>'.
' ';
}
echo
$posts->f('post_titre').
' '.
'<strong>'.date('d/m/Y @ H:i:s',$posts->getTS()).'</strong> '.
$edit_links.
'<a href="poster.php?post_id='.$posts->f('post_id').'#comments">'.
$str_comments.
'</a> - '.
'<a href="poster.php?post_id='.$posts->f('post_id').'#trackbacks">'.
$str_trackbacks.
'</a> '.
sprintf(__('by %s - in %s'),'<strong>'.$posts->getUserCN().'</strong>',
'<strong>'.$posts->f('cat_libelle').'</strong>').
'</h3>'.' '.
'<div id="content'.$posts->f('post_id').'" class="preview" style="display:none">';
if (dc_show_previews) {
echo
(($posts->f('post_chapo')!='') ? $posts->f('post_chapo').'<hr class="thin" />' : '').
$posts->f('post_content');
}
echo '</div>'.'</div>';
Commentaires
Aucun commentaire pour le moment.
Ajouter un commentaire
Les commentaires pour ce billet sont fermés.