public function RenderEditor()
 {
     parent::RenderEditor();
     echo '<div id="cb_controller_editor_fields">';
     $controller = clearbase_get_controller();
     if ($controller instanceof Clearbase_View_Controller) {
         $controller->RenderEditor();
     }
     echo '<div class="waiting-overlay"></div></div>';
 }
 public function __construct($fields = array())
 {
     parent::__construct(array_merge(array(array('id' => 'image', 'type' => 'sectionstart'), array('title' => __("Image", 'clearbase'), 'type' => 'html', 'render' => array(&$this, RenderImage)), array('id' => 'post.post_title', 'type' => 'post_title'), array('id' => 'post.post_excerpt', 'title' => __("Caption", 'clearbase'), 'desc' => __("Specifies the image caption", 'clearbase'), 'type' => 'textarea', 'css' => 'min-width:300px;'), array('id' => 'image', 'type' => 'sectionend')), $fields));
 }
 public function __construct($fields = array())
 {
     global $cb_post, $cb_post_type_obj;
     $labels = $cb_post_type_obj->labels;
     parent::__construct(array_merge(array(array('id' => 'folder', 'type' => 'sectionstart'), array('id' => 'post.post_title', 'type' => 'post_title'), array('id' => 'post.post_content', 'title' => __("Description", 'clearbase'), 'desc' => __("Specifies the {$labels->singular_name} description", 'clearbase'), 'type' => 'textarea', 'css' => 'min-width:300px;'), array('id' => 'folder', 'type' => 'sectionend')), $fields));
 }
 public function __construct($fields = array())
 {
     parent::__construct(array_merge(array(array('id' => 'menu', 'type' => 'sectionstart', 'title' => __("Menu Settings")), array('id' => 'postmeta.menu.show', 'title' => __("Show Menu", 'clearbase'), 'desc' => __("If checked, creates a custom Wordpress Admin menu", 'clearbase'), 'type' => 'checkbox', 'default' => 'no'), array('id' => 'postmeta.menu.title', 'title' => __("Menu Title", 'clearbase'), 'desc' => __("Specifies the title for the menu", 'clearbase'), 'type' => 'text', 'css' => 'min-width:300px;'), array('id' => 'postmeta.menu.page_title', 'title' => __("Page Title", 'clearbase'), 'desc' => __("Specifies the page title for the editing screen", 'clearbase'), 'type' => 'text', 'css' => 'min-width:300px;'), array('id' => 'postmeta.menu.position', 'title' => __("Menu Position", 'clearbase'), 'desc' => __("Specifies the menu position", 'clearbase'), 'type' => 'text', 'css' => 'min-width:300px;', 'default' => '21'), array('id' => 'postmeta.menu.icon_url', 'title' => __("Icon Url", 'clearbase'), 'desc' => __("Specifies the menu icon", 'clearbase'), 'type' => 'text', 'css' => 'min-width:300px;'), array('id' => 'postmeta.menu.capability', 'title' => __("Capability", 'clearbase'), 'desc' => __("Specifies the user capability", 'clearbase'), 'type' => 'text', 'css' => 'min-width:300px;', 'default' => 'manage_options'), array('id' => 'menu', 'type' => 'sectionend')), $fields));
 }