diff --git a/CHANGELOG.md b/CHANGELOG.md index fd50929..2ac4762 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.1.3 + +- Better scoped the widget styles. +- Made more use of existing CSS within Matomo instead of using custom styles. + ## 1.1.2 - Minor adjustment to plugin metadata. diff --git a/Widgets/GetMozInfo.php b/Widgets/GetMozInfo.php index 8f2212a..af96ffd 100644 --- a/Widgets/GetMozInfo.php +++ b/Widgets/GetMozInfo.php @@ -173,112 +173,112 @@ public function render(){ $output.= '
'; if(isset($content['ut']) && $content['ut'] !== ''){ - $output.= '
Homepage Title
'.$content['ut'].'
'; + $output.= '
Homepage Title
'.$content['ut'].'
'; } if(isset($content['uu'])){ - $output.= '
Canonical URL
'.$content['uu'].'
'; + $output.= '
Canonical URL
'.$content['uu'].'
'; } if(isset($content['ufq'])){ - $output.= '
Subdomain
'.$content['ufq'].'
'; + $output.= '
Subdomain
'.$content['ufq'].'
'; } if(isset($content['upl'])){ - $output.= '
Root Domain
'.$content['upl'].'
'; + $output.= '
Root Domain
'.$content['upl'].'
'; } if(isset($content['upa'])){ - $output.= '
Homepage Authority
'.number_format($content['upa']).' / 100
'; + $output.= '
Homepage Authority
'.number_format($content['upa']).' / 100
'; } if(isset($content['pda'])){ - $output.= '
Domain Authority
'.number_format($content['pda']).' / 100
'; + $output.= '
Domain Authority
'.number_format($content['pda']).' / 100
'; } if(isset($content['ueid'])){ - $output.= '
Homepage External Equity Links
'.number_format($content['ueid']).'
'; + $output.= '
Homepage External Equity Links
'.number_format($content['ueid']).'
'; } if(isset($content['feid'])){ - $output.= '
Subdomain External Links
'.number_format($content['feid']).'
'; + $output.= '
Subdomain External Links
'.number_format($content['feid']).'
'; } if(isset($content['peid'])){ - $output.= '
Root Domain External Links
'.number_format($content['peid']).'
'; + $output.= '
Root Domain External Links
'.number_format($content['peid']).'
'; } if(isset($content['ujid'])){ - $output.= '
Equity Links
'.number_format($content['ujid']).'
'; + $output.= '
Equity Links
'.number_format($content['ujid']).'
'; } if(isset($content['uifq'])){ - $output.= '
Subdomains Linking
'.number_format($content['uifq']).'
'; + $output.= '
Subdomains Linking
'.number_format($content['uifq']).'
'; } if(isset($content['uipl'])){ - $output.= '
Root Domains Linking
'.number_format($content['uipl']).'
'; + $output.= '
Root Domains Linking
'.number_format($content['uipl']).'
'; } if(isset($content['fid'])){ - $output.= '
Subdomain, Subdomains Linking
'.number_format($content['fid']).'
'; + $output.= '
Subdomain, Subdomains Linking
'.number_format($content['fid']).'
'; } if(isset($content['pid'])){ - $output.= '
Root Domain, Root Domains Linking
'.number_format($content['pid']).'
'; + $output.= '
Root Domain, Root Domains Linking
'.number_format($content['pid']).'
'; } if(isset($content['umrp'])){ - $output.= '
MozRank: Homepage
'.number_format(round($content['umrp'],1)).' / 10
'; + $output.= '
MozRank: Homepage
'.number_format(round($content['umrp'],1)).' / 10
'; } if(isset($content['fmrp'])){ - $output.= '
MozRank: Subdomain
'.number_format(round($content['fmrp'],1)).' / 10
'; + $output.= '
MozRank: Subdomain
'.number_format(round($content['fmrp'],1)).' / 10
'; } if(isset($content['pmrp'])){ - $output.= '
MozRank: Root Domain
'.number_format(round($content['pmrp'],1)).' / 10
'; + $output.= '
MozRank: Root Domain
'.number_format(round($content['pmrp'],1)).' / 10
'; } if(isset($content['utrp'])){ - $output.= '
MozTrust: Homepage
'.number_format(round($content['utrp'],1)).' / 10
'; + $output.= '
MozTrust: Homepage
'.number_format(round($content['utrp'],1)).' / 10
'; } if(isset($content['ftrp'])){ - $output.= '
MozTrust: Subdomain
'.number_format(round($content['ftrp'],1)).' / 10
'; + $output.= '
MozTrust: Subdomain
'.number_format(round($content['ftrp'],1)).' / 10
'; } if(isset($content['ptrp'])){ - $output.= '
MozTrust: Root Domain
'.number_format(round($content['ptrp'],1)).' / 10
'; + $output.= '
MozTrust: Root Domain
'.number_format(round($content['ptrp'],1)).' / 10
'; } if(isset($content['uemrp'])){ - $output.= '
MozRank: Homepage External Equity
'.number_format(round($content['uemrp'],1)).' / 10
'; + $output.= '
MozRank: Homepage External Equity
'.number_format(round($content['uemrp'],1)).' / 10
'; } if(isset($content['fejp'])){ - $output.= '
MozRank: Subdomain, External Equity
'.number_format(round($content['fejp'],1)).' / 10
'; + $output.= '
MozRank: Subdomain, External Equity
'.number_format(round($content['fejp'],1)).' / 10
'; } if(isset($content['pejp'])){ - $output.= '
MozRank: Root Domain, External Equity
'.number_format(round($content['pejp'],1)).' / 10
'; + $output.= '
MozRank: Root Domain, External Equity
'.number_format(round($content['pejp'],1)).' / 10
'; } if(isset($content['pjp'])){ - $output.= '
MozRank: Subdomain Combined
'.number_format(round($content['pjp'],1)).' / 10
'; + $output.= '
MozRank: Subdomain Combined
'.number_format(round($content['pjp'],1)).' / 10
'; } if(isset($content['fjp'])){ - $output.= '
MozRank: Root Domain Combined
'.number_format(round($content['fjp'],1)).' / 10
'; + $output.= '
MozRank: Root Domain Combined
'.number_format(round($content['fjp'],1)).' / 10
'; } if(isset($content['fspsc'])){ - $output.= '
Subdomain Spam Score
'.number_format($content['fspsc']).'
'; + $output.= '
Subdomain Spam Score
'.number_format($content['fspsc']).'
'; } if(isset($content['us'])){ - $output.= '
HTTP Status Code
'.$content['us'].'
'; + $output.= '
HTTP Status Code
'.$content['us'].'
'; } if(isset($content['uid'])){ - $output.= '
Links to Homepage
'.number_format($content['uid']).'
'; + $output.= '
Links to Homepage
'.number_format($content['uid']).'
'; } if(isset($content['fuid'])){ - $output.= '
Links to Subdomain
'.number_format($content['fuid']).'
'; + $output.= '
Links to Subdomain
'.number_format($content['fuid']).'
'; } if(isset($content['puid'])){ - $output.= '
Links to Root Domain
'.number_format($content['puid']).'
'; + $output.= '
Links to Root Domain
'.number_format($content['puid']).'
'; } if(isset($content['fipl'])){ - $output.= '
Root Domains Linking to Subdomain
'.number_format($content['fipl']).'
'; + $output.= '
Root Domains Linking to Subdomain
'.number_format($content['fipl']).'
'; } if(isset($content['ued'])){ - $output.= '
External links
'.number_format($content['ued']).'
'; + $output.= '
External links
'.number_format($content['ued']).'
'; } if(isset($content['fed'])){ - $output.= '
External links to subdomain
'.number_format($content['fed']).'
'; + $output.= '
External links to subdomain
'.number_format($content['fed']).'
'; } if(isset($content['ped'])){ - $output.= '
External links to root domain
'.number_format($content['ped']).'
'; + $output.= '
External links to root domain
'.number_format($content['ped']).'
'; } if(isset($content['pib'])){ - $output.= '
Linking C Blocks
'.number_format($content['pib']).'
'; + $output.= '
Linking C Blocks
'.number_format($content['pib']).'
'; } if(isset($content['ulc'])){ - $output.= '
Time last crawled
'.number_format($content['ulc']).'
'; + $output.= '
Time last crawled
'.number_format($content['ulc']).'
'; } $output.= '
'; $output.= '

Show More Info

'; diff --git a/plugin.json b/plugin.json index c73ba96..32b6a4a 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "name": "MozWidgetByAmperage", - "version": "1.1.2", + "version": "1.1.3", "description": "Show Moz.com info for the current site as a dashboard widget. Also links to the latest Moz Pro Campaign Custom Report, if available.", "theme": false, "keywords": [ diff --git a/stylesheets/moz.less b/stylesheets/moz.less index a1653fb..0f4b71b 100644 --- a/stylesheets/moz.less +++ b/stylesheets/moz.less @@ -1,11 +1,14 @@ -.widget-body { padding:10px 15px; font-size:1.1em; overflow:auto; - .more { display:block; margin:0 auto; text-align:center; } - p { margin:0 auto; } -} -.moz-info { - dt { margin:0 0 0.25em; font-weight:normal; } - dd { display:inline-block; margin:0 0 0.5em; padding:0.5em; font-size:1.5em; font-weight:bold; color:#444; background-color:#F1F0EB; border-radius:10px; - span { font-size:0.7em; cursor:default; user-select:none; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; } +#widgetMozWidgetByAmperagegetMozInfo { + .widget-body { padding:10px 15px; font-size:1.1em; overflow:auto; + .more { display:block; margin:0 auto; text-align:center; } + p { margin:0 auto; } + } + .moz-info { + dt { margin:0 0 0.25em; font-weight:normal; } + dd { display:inline-block; margin:0 0 0.5em; padding:0.5em 0.8em; font-size:1.5em; font-weight:bold; + &:before { display:none; } + span { font-size:0.7em; cursor:default; user-select:none; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; } + } + .more-info { display:none; } } - .more-info { display:none; } } \ No newline at end of file