parameter = array( 'url' => get_bloginfo('url') ); $this->title = $prefix.__('SEO', 'wp-piwik'); $this->method = 'SEO.getRank'; } public function show() { $response = self::$wpPiwik->request($this->apiID[$this->method]); if (!empty($response['result']) && $response['result'] ='error') echo ''.__('Piwik error', 'wp-piwik').': '.htmlentities($response['message'], ENT_QUOTES, 'utf-8'); else { echo '
'; if (is_array($response)) foreach ($response as $val) echo ''; else echo ''; echo '
'.(isset($val['logo_link']) && !empty($val['logo_link'])?''.$val['label'].'':$val['label']).''.$val['rank'].'
SEO module currently not available.
'; } } }