Skip to content

Commit

Permalink
Refs #3734, add tooltip to majestic SEO icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Mar 25, 2013
1 parent 513fe7e commit fc578d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en.php
Expand Up @@ -1287,6 +1287,7 @@
'SEO_SEORankingsFor' => 'SEO Rankings for %s',
'SEO_ExternalBacklinks' => 'External Backlinks',
'SEO_ReferrerDomains' => 'Referrer Domains',
'SEO_ViewBacklinksOnMajesticSEO' => 'View External Backlinks report on MajesticSEO.com',
'SitesManager_PluginDescription' => 'Websites Management in Piwik: Add a new Website, Edit an existing one, Show the JavaScript code to include on your pages. All the actions are also available through the API.',
'SitesManager_Sites' => 'Websites',
'SitesManager_TrackingTags' => 'Tracking code for %s',
Expand Down
2 changes: 2 additions & 0 deletions plugins/SEO/API.php
Expand Up @@ -78,12 +78,14 @@ public function getRank( $url )
'rank' => $rank->getExternalBacklinkCount(),
'logo' => 'plugins/SEO/images/majesticseo.png',
'logo_link' => $linkToMajestic,
'logo_tooltip' => Piwik_Translate('SEO_ViewBacklinksOnMajesticSEO'),
'id' => 'external-backlinks',
),
Piwik_Translate('SEO_ReferrerDomains') => array(
'rank' => $rank->getReferrerDomainCount(),
'logo' => 'plugins/SEO/images/majesticseo.png',
'logo_link' => $linkToMajestic,
'logo_tooltip' => Piwik_Translate('SEO_ViewBacklinksOnMajesticSEO'),
'id' => 'referrer-domains',
),
);
Expand Down
2 changes: 1 addition & 1 deletion plugins/SEO/templates/index.tpl
Expand Up @@ -23,7 +23,7 @@
<table cellspacing='2' style='margin:auto;line-height:1.5em;padding-top:10px'>
{foreach from=$ranks item=rank}
<tr>
<td>{if !empty($rank.logo_link)}<a href="{$rank.logo_link}" target="_blank">{/if}<img style='vertical-align:middle;margin-right:6px;' src='{$rank.logo}' border='0' alt="{$rank.label}">{if !empty($rank.logo_link)}</a>{/if} {$rank.label}
<td>{if !empty($rank.logo_link)}<a href="{$rank.logo_link}" target="_blank" {if !empty($rank.logo_tooltip)}title="{$rank.logo_tooltip}"{/if}>{/if}<img style='vertical-align:middle;margin-right:6px;' src='{$rank.logo}' border='0' alt="{$rank.label}">{if !empty($rank.logo_link)}</a>{/if} {$rank.label}
</td><td>
<div style='margin-left:15px'>
{if isset($rank.rank)}{$rank.rank}{else}-{/if}
Expand Down

0 comments on commit fc578d6

Please sign in to comment.