<?php
/**
 * @return string
 * newsmax_ruby_post_feat_1
 */
if ( ! function_exists( 'newsmax_ruby_post_feat_1' ) ) {
	function newsmax_ruby_post_feat_1( $options = array() ) {

		$review = newsmax_ruby_post_review_icon( 'is-size-2 is-absolute' );

		$str = '';
		$str .= '<article class="post-wrap post-feat post-feat-1">';
		$str .= '<div class="post-thumb-outer">';
		if ( has_post_thumbnail() ) {

			$param                  = array();
			$param['size']          = 'newsmax_ruby_crop_1100x580';
			$param['size_mobile_h'] = 'newsmax_ruby_crop_750x350';
			$param['size_mobile']   = 'newsmax_ruby_crop_364x225';
			$param['class_name']    = 'is-bg-thumb';

			$str .= newsmax_ruby_post_mask_overlay();
			$str .= newsmax_ruby_post_thumb( $param );

			if ( ! empty( $review ) ) {
				$str .= $review;
			}
		} else {
			$str .= newsmax_ruby_post_no_thumbnail();
		}

		$str .= '</div>';

		$str .= '<div class="is-header-overlay is-light-text">';
		$str .= '<div class="post-header-outer">';
		if ( ! empty( $options['share'] ) ) {
			$str .= newsmax_ruby_post_meta_info_share();
		}
		if ( empty( $review ) ) {
			$str .= newsmax_ruby_post_format( 'is-size-2 is-absolute', true );
		}
		$str .= '<div class="post-header">';
		if ( ! empty( $options['cat_info'] ) ) {
			$str .= newsmax_ruby_post_cat_info();
		}
		$str .= newsmax_ruby_post_title( 'is-size-0' );
		if ( ! empty( $options['meta_info'] ) ) {
			$str .= newsmax_ruby_post_meta_info();
		}
		$str .= '</div><!--#post header-->';
		$str .= '</div>';
		$str .= '</div>';
		$str .= '</article>';

		return $str;
	}
}