Current path: home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/d4/app/Admin/Controllers/
?? Go up: /home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/d4/app/Admin
<?php
namespace KS_PAC_DCFH\Admin\Controllers;
if (!defined('ABSPATH')) {
exit;
}
class Constants
{
private static $_instance;
public static function instance(): self
{
if (self::$_instance === null) {
self::$_instance = new self();
}
return self::$_instance;
}
public static function form_placeholders($key = '')
{
$fields = [
'entry_number' => __('Entry Number', 'divi-contact-form-helper'),
'read_by' => __('Read By', 'divi-contact-form-helper'),
'submitter' => __('Submitter', 'divi-contact-form-helper'),
'page_title' => __('Page Title', 'divi-contact-form-helper'),
'page_url' => __('Page URL', 'divi-contact-form-helper'),
'referer_url' => __('Referer URL', 'divi-contact-form-helper'),
'entry_date' => __('Entry Date', 'divi-contact-form-helper'),
'entry_time' => __('Entry Time', 'divi-contact-form-helper'),
'ip_address' => __('IP Address', 'divi-contact-form-helper'),
'browser' => __('Browser', 'divi-contact-form-helper'),
'platform' => __('Platform', 'divi-contact-form-helper'),
];
if ('' !== $key && isset($fields[$key])) {
return $fields[$key];
}
return $fields;
}
public static function site_placeholders(): array
{
return [
'dcfh_post_title',
'dcfh_post_url',
'dcfh_site_name',
'dcfh_site_url',
'dcfh_admin_email'
];
}
public static function clone_types(): array
{
return [
'' => __('Please Select', 'divi-contact-form-helper'),
'title' => __('Title', 'divi-contact-form-helper'),
'content' => __('Content', 'divi-contact-form-helper'),
'featured_image' => __('Featured Image', 'divi-contact-form-helper'),
'custom_field' => __('Custom Field', 'divi-contact-form-helper'),
];
}
public static function get_templates_types(): array
{
return [
'general' => __('General', 'divi-contact-form-helper'),
'admin' => __('Admin', 'divi-contact-form-helper'),
'confirmation' => __('Confirmation', 'divi-contact-form-helper'),
'reply_send' => __('Reply/Send Email', 'divi-contact-form-helper'),
//'post_clone' => __('Post Clone', 'divi-contact-form-helper'),
];
}
}