name = 'media_cluster'; /* * label (string) Multiple words, can include spaces, visible when selecting a field type */ $this->label = __('Media Cluster', 'acf_media_cluster'); /* * category (string) basic | content | choice | relational | jquery | layout | CUSTOM GROUP NAME */ $this->category = 'content'; /* * defaults (array) Array of default settings which are merged into the field object. These are used later in settings */ $this->defaults = array( 'font_size' => 14, ); /* * l10n (array) Array of strings that are used in JavaScript. This allows JS strings to be translated in PHP and loaded via: * var message = acf._e('FIELD_NAME', 'error'); */ $this->l10n = array( 'error' => __('Error! Please enter a higher value', 'acf_media_cluster'), ); /* * settings (array) Store plugin settings (url, path, version) as a reference for later use with assets */ $this->settings = $settings; // do not delete! parent::__construct(); } /* * render_field() * * Create the HTML interface for your field * * @param $field (array) the $field being rendered * * @type action * @since 3.6 * @date 23/01/13 * * @param $field (array) the $field being edited * @return n/a */ function render_field( $field ){ require( dirname(dirname(__FILE__)) . '/includes/render_field.php'); } } // initialize new acf_media_cluster_field( $this->settings ); // class_exists check endif; ?>