0, 'post_id' => 0, 'items' => 0, 'template' => '', 'layout' => '', 'columns' => 0, 'tablet' => 0, 'mobile' => 0, 'heading' => null, ), $atts, 'smart_related' ); $display = SRPP_Display::get( $atts['id'] ); if ( ! $display ) { return ''; } if ( ! SRPP_Conditions::passes( $display, absint( $atts['post_id'] ), 'manual' ) ) { return ''; } $args = array( 'post_id' => $atts['post_id'] ? absint( $atts['post_id'] ) : (int) get_the_ID(), 'items' => absint( $atts['items'] ), 'template' => sanitize_key( $atts['template'] ), 'layout' => sanitize_key( $atts['layout'] ), 'cols_d' => absint( $atts['columns'] ), 'cols_t' => absint( $atts['tablet'] ), 'cols_m' => absint( $atts['mobile'] ), 'placement' => 'shortcode', ); if ( null !== $atts['heading'] ) { $args['heading'] = $atts['heading']; } return srpp()->render->render( $display, $args ); } }