source/php/Module/Index/Index.php
public function getThumbnail($item)
    {
        if ($item['image_display'] == 'custom' || $item['link_type'] == 'external') {
            return wp_get_attachment_image_src(
                $item['custom_image']['ID'],
                apply_filters(
                    'Modularity/index/image',
                    municipio_to_aspect_ratio('16:9', $this->thumbnailSize),
                    $this->args
                )
            );
        } elseif ($item['image_display'] == 'false') {
            return false;
        }

        return wp_get_attachment_image_src(
            get_post_thumbnail_id($item['page']->ID),
            apply_filters(
                'Modularity/index/image',
                municipio_to_aspect_ratio('16:9', $this->thumbnailSize),
                $this->args
            )
        );
    }
public function getThumbnail($item)
    {
        if ($item['image_display'] == 'custom' || $item['link_type'] == 'external') {
            return wp_get_attachment_image_src(
                $item['custom_image']['ID'],
                apply_filters(
                    'Modularity/index/image',
                    municipio_to_aspect_ratio('16:9', $this->thumbnailSize),
                    $this->args
                )
            );
        } elseif ($item['image_display'] == 'false') {
            return false;
        }

        return wp_get_attachment_image_src(
            get_post_thumbnail_id($item['page']->ID),
            apply_filters(
                'Modularity/index/image',
                municipio_to_aspect_ratio('16:9', $this->thumbnailSize),
                $this->args
            )
        );
    }
public function getThumbnail ( $ item ) { if ( $ item [ 'image_display' ] == 'custom' || $ item [ 'link_type' ] == 'external' ) { return wp_get_attachment_image_src ( $ item [ 'custom_image' ] [ 'ID' ] , apply_filters ( 'Modularity/index/image' , municipio_to_aspect_ratio ( '16:9' , $ this -> thumbnailSize ) , $ this -> args ) ) ; } elseif ( $ item [ 'image_display' ] == 'false' ) { return false ; } return wp_get_attachment_image_src ( get_post_thumbnail_id ( $ item [ 'page' ] -> ID ) , apply_filters ( 'Modularity/index/image' , municipio_to_aspect_ratio ( '16:9' , $ this -> thumbnailSize ) , $ this -> args ) ) ; }
Get post thumbnail in correct size
@param  [type] $item [description]
@return [type]       [description]
Get post thumbnail in correct size