acf_field_leaflet_field_plugin

Plugin Name: Advanced Custom Fields: Leaflet Field Plugin URI: https://github.com/jensjns/acf-leaflet-field Description: Adds a Leaflet map-field to Advanced Custom Fields.

Defined (1)

The class is defined in the following location(s).

/acf-leaflet_field.php  
  1. class acf_field_leaflet_field_plugin 
  2. /** 
  3. * Construct 
  4. * @description: 
  5. * @since: 3.6 
  6. * @created: 1/04/13 
  7. */ 
  8.  
  9. function __construct() 
  10. // set text domain 
  11. $domain = 'acf-leaflet_field'; 
  12. $mofile = trailingslashit(dirname(__File__)) . 'lang/' . $domain . '-' . get_locale() . '.mo'; 
  13. load_textdomain( $domain, $mofile ); 
  14.  
  15. // version 5 (PRO) 
  16. add_action('acf/include_field_types', array($this, 'register_fields_v5')); 
  17.  
  18. // version 4+ 
  19. add_action('acf/register_fields', array($this, 'register_fields_v4')); 
  20.  
  21. // version 3- 
  22. if(function_exists('register_field')) 
  23. add_action( 'init', array( $this, 'init' )); 
  24.  
  25. /** 
  26. * Init 
  27. * @description: 
  28. * @since: 3.6 
  29. * @created: 1/04/13 
  30. */ 
  31.  
  32. function init() 
  33. register_field('acf_field_leaflet_field', dirname(__File__) . '/leaflet_field-v3.php'); 
  34.  
  35. /** 
  36. * register_fields 
  37. * @description: 
  38. * @since: 3.6 
  39. * @created: 1/04/13 
  40. */ 
  41.  
  42. function register_fields_v4() 
  43. include_once('leaflet_field-v4.php'); 
  44.  
  45. function register_fields_v5() 
  46. include_once('leaflet_field-v5.php'); 
  47.