# give/4.16.9/src/Views/Form/defaultFormTemplate.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 21 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Views/Form/defaultFormTemplate.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Views/Form/defaultFormTemplate.php
- Modified: 2022-09-20T22:57:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/Views/Form/defaultFormTemplate.php#L10-L20`.

```php
<?php
/**
 * Donation form view.
 *
 * @since 2.7.0
 */

use Give\Helpers\Form\Template\Utils\Frontend as FrontendFormTemplateUtils;
use Give\Views\IframeContentView;

$formId = FrontendFormTemplateUtils::getFormId();
$iframeView = new IframeContentView();

// Fetch the Give Form.
ob_start();
give_get_donation_form(['id' => $formId]);

echo $iframeView->setTitle(get_post_field('post_title', $formId))->setPostId($formId)
                ->setBody(ob_get_clean())
                ->render();

```
