diff --git a/services/PortableInfoboxRenderService.class.php b/services/PortableInfoboxRenderService.class.php index 51e8c25..82bf958 100644 --- a/services/PortableInfoboxRenderService.class.php +++ b/services/PortableInfoboxRenderService.class.php @@ -21,7 +21,7 @@ class PortableInfoboxRenderService extends WikiaService { * @param $layout * @return string - infobox HTML */ - public function renderInfobox( array $infoboxdata, $theme, $layout, $accentColor, $accentColorText ) { + public function renderInfobox( array $infoboxdata, $theme, $layout ) { wfProfileIn( __METHOD__ ); $helper = new PortableInfoboxRenderServiceHelper(); @@ -31,13 +31,6 @@ class PortableInfoboxRenderService extends WikiaService { $this->imagesWidth = $helper->isEuropaTheme() ? PortableInfoboxRenderServiceHelper::EUROPA_THUMBNAIL_WIDTH : PortableInfoboxRenderServiceHelper::DEFAULT_DESKTOP_THUMBNAIL_WIDTH; - $colors = [ - 'hasAccentColor' => !empty( $accentColor ), - 'hasAccentColorText' => !empty( $accentColorText), - 'accentColor' => $accentColor, - 'accentColorText' => $accentColorText, - ]; - foreach ( $infoboxdata as $item ) { $type = $item[ 'type' ]; diff --git a/templates/PortableInfoboxItemHeader.mustache b/templates/PortableInfoboxItemHeader.mustache index 10e3b89..044f4ca 100644 --- a/templates/PortableInfoboxItemHeader.mustache +++ b/templates/PortableInfoboxItemHeader.mustache @@ -1,2 +1 @@ -