post_thumbnail ) { ?>
render_image(
$post->post_thumbnail,
array(
'alt' => get_the_title(),
'width' => '1080',
'height' => '9999',
)
);
?>
get_the_title(),
'width' => '400',
'height' => '284',
);
if ( ! empty( $post->featured_image ) ) {
$image_attrs['srcset'] = $post->featured_image . ' 479w, ' . $post->post_thumbnail . ' 480w';
$image_attrs['sizes'] = '(max-width:479px) 479px, 100vw';
}
$this->render_image( $post->post_thumbnail, $image_attrs );
?>
render_element(
array(
'tag' => $processed_header_level,
'content' => sprintf( '
%3$s', esc_url( $post->post_permalink ), esc_attr( get_the_title() ), esc_html( get_the_title() ) ),
'attrs' => array(
'class' => 'et_pb_module_header',
),
'visibility' => array(
'show_title' => 'on',
),
'required' => array(
'show_title' => 'on',
),
),
true
);
if ( $multi_view->has_value( 'show_categories', 'on' ) && ! empty( $post->post_categories ) ) :
$categories_links = '';
$category_index = 0;
foreach ( $post->post_categories as $category ) {
$category_index++;
$separator = $category_index < count( $post->post_categories ) ? ', ' : '';
$categories_links .= '
' . esc_html( $category['label'] ) . '' . et_core_intentionally_unescaped( $separator, 'fixed_string' );
}
$multi_view->render_element(
array(
'tag' => 'p',
'content' => $categories_links,
'attrs' => array(
'class' => 'post-meta',
),
'visibility' => array(
'show_categories' => 'on',
),
'required' => array(
'show_categories' => 'on',
),
),
true
);
endif;
?>
has_value( 'show_pagination', 'on' ) && ! is_search() ) {
if ( function_exists( 'wp_pagenavi' ) ) {
$pagination = $multi_view->render_element(
array(
'tag' => 'div',
'content' => wp_pagenavi(
array(
'query' => $portfolio,
'echo' => false,
)
),
'visibility' => array(
'show_pagination' => 'on',
),
'required' => array(
'show_pagination' => 'on',
),
)
);
} else {
$next_posts_link_html = $prev_posts_link_html = '';
if ( ! empty( $portfolio->posts_next['url'] ) ) {
$next_posts_link_html = sprintf(
'
%3$s',
$this->module_classname( $render_slug ),
$posts,
( ! $container_is_closed ? '
' : '' ),
$this->module_id(),
$video_background, // #5
$parallax_image_background,
$fullwidth ? '' : '