0, 'title' => '', ), $atts, 'mammoth' ); $form = Mammoth_Forms::get( (int) $atts['id'] ); if ( ! $form ) { if ( current_user_can( 'manage_options' ) ) { return '
' . esc_html__( 'Mammoth Forms: no form with that ID.', 'mammoth-forms' ) . '
'; } return ''; } $html = ''; if ( 'yes' === $atts['title'] || '1' === (string) $atts['title'] ) { $html .= '

' . esc_html( $form['title'] ) . '

'; } return $html . Mammoth_Render::form( $form ); } }