/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Form
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Form/Template.php (7344B)
getLoadingView();
}
/**
* Get form view filepath
*
* @since 2.7.0
*
* @return string
*/
public function getFormView()
{
return GIVE_PLUGIN_DIR . 'src/Views/Form/defaultFormTemplate.php';
}
/**
* Get receipt view filepath
*
* @since 2.7.0
*
* @return string
*/
public function getReceiptView()
{
return GIVE_PLUGIN_DIR . 'src/Views/Form/defaultFormReceiptTemplate.php';
}
/**
* return form template ID.
*
* @since 2.7.0
* @return string
*/
abstract public function getID();
/**
* Get form template name.
*
* @since 2.7.0
* @return string
*/
abstract public function getName();
/**
* Get form template image.
*
* @since 2.7.0
* @return string
*/
abstract public function getImage();
/**
* Get options config
*
* @since 2.7.0
* @return array
*/
abstract public function getOptionsConfig();
/**
* Get form template options
*
* @return Options
*/
public function getOptions()
{
return Options::fromArray($this->getOptionsConfig());
}
/**
* Get failed/cancelled donation message.
*
* @since 2.7.0
* @return string
*/
public function getFailedDonationMessage()
{
return esc_html__(
'We\'re sorry, your donation failed to process. Please try again or contact site support.',
'give'
);
}
/**
* Get failed donation page URL.
*
* @since 2.7.0
*
* @param int $formId
*
* @return mixed
*/
public function getFailedPageURL($formId)
{
return FormUtils::createFailedPageURL(Give()->routeForm->getURL(get_post_field('post_name', $formId)));
}
/**
* Get donate now button label text.
*
* @since 2.7.0
* @return string
*/
public function getDonateNowButtonLabel()
{
return __('Donate Now', 'give');
}
/**
* Get continue to donation form button label text.
*
* @since 2.7.0
* @return string
*/
public function getContinueToDonationFormLabel()
{
return __('Donate Now', 'give');
}
/**
* Get donation introduction text.
*
* @since 2.7.0
* @return string|null
*/
public function getDonationIntroductionContent()
{
return null;
}
/**
* Return content position on donation form.
*
* Note: Even you are free to add introduction content at any place on donation form
* But still this depends upon form template style and configuration on which places you are allowed to show display introduction content.
*
* @since 2.7.0
* @return string|null
*/
public function getDonationIntroductionContentPosition()
{
return null;
}
/**
* Get receipt details.
*
* @since 2.7.0
*
* @param int $donationId
*
* @return DonationReceipt
*/
public function getReceiptDetails($donationId)
{
$receipt = new DonationReceipt($donationId);
/**
* Fire the action for receipt object.
*
* @since 2.7.0
*/
do_action('give_new_receipt', $receipt);
return $receipt;
}
/**
* Get form heading
*
* @since 2.7.0
*
* @param int $formId
*
* @return string
*/
public function getFormHeading($formId)
{
return get_the_title($formId);
}
/**
* Get form image
*
* @since 2.7.0
*
* @param int $formId
*
* @return string
*/
public function getFormFeaturedImage($formId)
{
return get_the_post_thumbnail_url($formId, 'full');
}
/**
* Get form excerpt
*
* @since 2.7.0
*
* @param int|null $formId
*
* @return string
*/
public function getFormExcerpt($formId)
{
return get_the_excerpt($formId);
}
}