mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
change order
This commit is contained in:
parent
2565999c3d
commit
ff16c2346f
|
@ -128,8 +128,8 @@ class PortableInfoboxRenderService extends WikiaService {
|
|||
$helper = new PortableInfoboxRenderServiceHelper();
|
||||
|
||||
if ( array_key_exists( 'image', $data ) ) {
|
||||
$data[ 'image' ] = $helper->extendImageData( $data[ 'image' ] );
|
||||
$data[ 'image' ][ 'context' ] = self::MEDIA_CONTEXT_INFOBOX_HERO_IMAGE;
|
||||
$data[ 'image' ] = $helper->extendImageData( $data[ 'image' ] );
|
||||
$markup = $this->renderItem( 'hero-mobile', $data );
|
||||
} else {
|
||||
$markup = $this->renderItem( 'title', $data[ 'title' ] );
|
||||
|
|
Loading…
Reference in a new issue