File "acf-code-field.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/acf-code-field/acf-code-field.php
File
size: 1.09 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
load_plugin_textdomain('acf-code-field', false, dirname(plugin_basename(__FILE__)) . '/lang/');
define('ACFCF_CODEMIRROR_VERSION', 'codemirror-5.23.0');
define('ACFCF_PLUGIN_DIR', dirname(__FILE__));
include_once 'lib/class.acf-code-field-util.php';
function include_field_types_code_field($version)
{
include_once 'acf-code-field-v5.php';
}
add_action('acf/include_field_types', 'include_field_types_code_field');
function register_fields_code_field()
{
include_once 'acf-code-field-v4.php';
}
add_action('acf/register_fields', 'register_fields_code_field');
add_action('admin_notices', 'acf_check');
function acf_check()
{
if (!class_exists('acf') && current_user_can('manage_options')) {
$class = 'notice notice-error';
$message = sprintf(__('Uh-oh. ACF not installed. Please install the <a href="%s" class="thickbox">Advanced Custom Fields plugin.</a>', 'sample-text-domain'), '/wp-admin/plugin-install.php?tab=plugin-information&plugin=advanced-custom-fields&TB_iframe=true&width=600&height=550');
printf('<div class="%1$s"><p>%2$s</p></div>', $class, $message);
}
}