title = $title; return $this; } /** * Set document page body. * * @param string $body * * @return IframeContentView $this */ public function setBody($body) { $this->body = $body; return $this; } /** * Set body classes. * * @param array $classes * * @return IframeContentView $this */ public function setBodyClasses($classes) { $this->bodyClasses = array_merge($this->bodyClasses, (array)$classes); return $this; } /** * Set post ID. * * @param $postId * * @since 2.22.1 * @return IframeContentView $this */ public function setPostId($postId) { $this->postId = $postId; return $this; } /** * Render view. * * Note: if you want to overwrite this function then do not forget to add action hook in footer and header. * We use these hooks to manipulated donation form related actions. * * @since 2.7.0 */ public function render() { ob_start(); ?> > <?php echo apply_filters('the_title', $this->title, $this->postId); ?> body; /** * Fire the action hook in footer */ do_action('give_embed_footer'); ?> body; } }