示例#1
0
 /**
  * Fields content.
  */
 public function fields($tag)
 {
     beans_remove_action('beans_field_label');
     beans_modify_action_hook('beans_field_description', 'beans_field_wrap_after_markup');
     beans_modify_markup('beans_field_description', 'p');
     beans_add_attribute('beans_field_description', 'class', 'description');
     foreach (beans_get_fields('term_meta', $this->section) as $field) {
         echo '<tr class="form-field">';
         echo '<th scope="row">';
         beans_field_label($field);
         echo '</th>';
         echo '<td>';
         beans_field($field);
         echo '</td>';
         echo '</tr>';
     }
 }
示例#2
0
文件: class.php 项目: Getbeans/Beans
 /**
  * Metabox content.
  */
 public function metabox_content($post)
 {
     foreach (beans_get_fields('post_meta', $this->section) as $field) {
         beans_field($field);
     }
 }
示例#3
0
文件: class.php 项目: Getbeans/Beans
 /**
  * Field content.
  */
 public function render_content()
 {
     beans_field($this->beans_field);
 }
示例#4
0
 /**
  * Metabox content.
  */
 public function metabox_content()
 {
     foreach (beans_get_fields('option', $this->section) as $field) {
         beans_field($field);
     }
 }