From 6684ca294e961ba4c45a351a1f347c2a18faa055 Mon Sep 17 00:00:00 2001 From: mattab Date: Fri, 29 Mar 2013 14:37:53 +1300 Subject: refs #3734 better integration of Majesticseo.com links * linking on metric value * Display + linking on "Majestic" --- core/Version.php | 2 +- lang/en.php | 4 ++-- plugins/CoreHome/templates/styles.css | 4 ++++ plugins/SEO/templates/index.tpl | 12 ++++++++---- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/core/Version.php b/core/Version.php index d6e1bca6ba..20f3052322 100644 --- a/core/Version.php +++ b/core/Version.php @@ -20,5 +20,5 @@ final class Piwik_Version * Current Piwik version * @var string */ - const VERSION = '1.12-b1'; + const VERSION = '1.12-b2'; } diff --git a/lang/en.php b/lang/en.php index 526eb354bb..4f36dea2e2 100644 --- a/lang/en.php +++ b/lang/en.php @@ -1289,8 +1289,8 @@ And thank you for using Piwik!', 'SEO_Bing_IndexedPages' => 'Bing indexed pages', 'SEO_Dmoz' => 'DMOZ entries', 'SEO_SEORankingsFor' => 'SEO Rankings for %s', - 'SEO_ExternalBacklinks' => 'External Backlinks', - 'SEO_ReferrerDomains' => 'Referrer Domains', + 'SEO_ExternalBacklinks' => 'External Backlinks (Majestic)', + 'SEO_ReferrerDomains' => 'Referrer Domains (Majestic)', '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', diff --git a/plugins/CoreHome/templates/styles.css b/plugins/CoreHome/templates/styles.css index 005e8840bc..0b679f48b9 100644 --- a/plugins/CoreHome/templates/styles.css +++ b/plugins/CoreHome/templates/styles.css @@ -233,3 +233,7 @@ a.Piwik_Popover_Error_Back { #header_message #checkForUpdates:hover { text-decoration: none; } + +/* Used to link within content text, without adding visual clutter */ +.linkContent { color:#333; text-decoration:none} +.linkContent:hover { text-decoration:underline;} \ No newline at end of file diff --git a/plugins/SEO/templates/index.tpl b/plugins/SEO/templates/index.tpl index 721ca46ee5..0a100bddb3 100644 --- a/plugins/SEO/templates/index.tpl +++ b/plugins/SEO/templates/index.tpl @@ -17,23 +17,27 @@ {'General_Error'|translate} {else} {capture name=cleanUrl} - {$urlToRank|escape:'html'} + {$urlToRank|escape:'html'} {/capture} {'SEO_SEORankingsFor'|translate:$smarty.capture.cleanUrl} {foreach from=$ranks item=rank} - -- cgit v1.2.3
{if !empty($rank.logo_link)}{/if}{/capture} + {capture assign=majesticLink}{$seoLink}Majestic{/capture} + {if !empty($rank.logo_link)}{$seoLink}{/if}{$rank.label}{if !empty($rank.logo_link)}{/if} {$rank.label} + alt="{$rank.label}">{if !empty($rank.logo_link)}{/if} {$rank.label|replace:"Majestic":$majesticLink}
+ {if !empty($rank.logo_link)}{$seoLink}{/if} {if isset($rank.rank)}{$rank.rank}{else}-{/if} {if $rank.id=='pagerank'} /10 {elseif $rank.id=='google-index' || $rank.id=='bing-index'} {'SEO_Pages'|translate} {/if} + {if !empty($rank.logo_link)}{/if}