function init()
 {
     $this->labels = array('singular_name' => __('Entry', 'crb'), 'plural_name' => __('Entries', 'crb'));
     if (defined('WP_ADMIN') && WP_ADMIN) {
         wp_enqueue_script('jquery-ui-sortable');
     }
     Carbon_Field::init();
 }
Ejemplo n.º 2
0
 function init()
 {
     $this->help_text(__('If you need to add scripts to your footer (like Google Analytics tracking code), you should enter them in this box.', 'crb'));
     add_action('wp_footer', array($this, 'print_scripts'));
     Carbon_Field::init();
 }