/** * Filter the Gravity Forms Submit Button * since 1.0.0 */ add_filter( 'gform_submit_button', 'dcgd_form_submit_button', 10, 2 ); function dcgd_form_submit_button( $buttonHTML, $form ) { if ( $buttonHTML != '' ) { $buttonValue = ''; // Initialize variable outside the loop $buttonHTMLDOM = new DOMDocument(); @$buttonHTMLDOM->loadHTML( $buttonHTML ); // Use @ to suppress DOMDocument HTML5 warnings $changeElementInput = $buttonHTMLDOM->getElementsByTagName( 'input' ); foreach ( $changeElementInput as $item ) { $buttonValue = trim( $item->getAttribute( 'value' ) ); if ( $buttonValue == '' ) { $buttonValue = 'Submit'; } $item->removeAttribute( 'value' ); $item->setAttribute( 'style' , 'margin:auto' ); } $buttonHTML = $buttonHTMLDOM->saveHTML(); $buttonHTML = str_replace( '' . $buttonValue . ''; } return $buttonHTML; } /** * Filter the Gravity Forms Next Button * since 2.0.0 */ add_filter( 'gform_next_button', 'dcgd_form_next_button', 10, 2 ); function dcgd_form_next_button( $buttonHTML, $form ) { if ( $buttonHTML != '' ) { $buttonValue = ''; $buttonHTMLDOM = new DOMDocument(); @$buttonHTMLDOM->loadHTML( $buttonHTML ); $changeElementInput = $buttonHTMLDOM->getElementsByTagName( 'input' ); foreach ( $changeElementInput as $item ) { $buttonValue = trim( $item->getAttribute( 'value' ) ); if ( $buttonValue == '' ) { $buttonValue = 'Next'; } $item->removeAttribute( 'value' ); $item->setAttribute( 'style' , 'margin:auto' ); } $buttonHTML = $buttonHTMLDOM->saveHTML(); $buttonHTML = str_replace( '' . $buttonValue . ''; } return $buttonHTML; } /** * Filter the Gravity Forms Previous Button * since 2.0.0 */ add_filter( 'gform_previous_button', 'dcgd_form_previous_button', 10, 2 ); function dcgd_form_previous_button( $buttonHTML, $form ) { if ( $buttonHTML != '' ) { $buttonValue = ''; $buttonHTMLDOM = new DOMDocument(); @$buttonHTMLDOM->loadHTML( $buttonHTML ); $changeElementInput = $buttonHTMLDOM->getElementsByTagName( 'input' ); foreach ( $changeElementInput as $item ) { $buttonValue = trim( $item->getAttribute( 'value' ) ); if ( $buttonValue == '' ) { $buttonValue = 'Previous'; } $item->removeAttribute( 'value' ); $item->setAttribute( 'style' , 'margin:auto' ); } $buttonHTML = $buttonHTMLDOM->saveHTML(); $buttonHTML = str_replace( '' . $buttonValue . ''; } return $buttonHTML; } Father Joe's Villages - Preventing and ending homelessness, one life at a time.

Pantheon

Showing the single result

  • Gift from the Sea

    Gift from the Sea, Anne Morrow Lindbergh, 1955 (Book, HB)

    $7.99