Skip to content
Extraits de code Groupes Projets
Valider 9ad72b7b rédigé par mattpiwik's avatar mattpiwik
Parcourir les fichiers

Refs #3525 Display DMOZ only if more than one entry found

git-svn-id: http://dev.piwik.org/svn/trunk@7458 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent c7774d86
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -73,12 +73,19 @@ class Piwik_SEO_API
'logo' => 'plugins/SEO/images/whois.png',
'id' => 'domain-age',
),
Piwik_Translate('SEO_Dmoz') => array(
'rank' => $rank->getDmoz(),
'logo' => Piwik_getSearchEngineLogoFromUrl('http://dmoz.org'),
'id' => 'dmoz',
),
);
// Add DMOZ only if > 0 entries found
$dmozRank = array(
'rank' => $rank->getDmoz(),
'logo' => Piwik_getSearchEngineLogoFromUrl('http://dmoz.org'),
'id' => 'dmoz',
);
if($dmozRank['rank'] > 0)
{
$data[Piwik_Translate('SEO_Dmoz')] = $dmozRank;
}
$dataTable = new Piwik_DataTable();
$dataTable->addRowsFromArrayWithIndexLabel($data);
return $dataTable;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter