예제 #1
0
 /**
  * Renders the settings form for saving a node template.
  *
  * @since 1.6.3
  * @return void
  */
 public static function render_node_template_settings()
 {
     $post_data = FLBuilderModel::get_post_data();
     $defaults = FLBuilderModel::get_settings_form_defaults('node_template');
     $form = FLBuilderModel::get_settings_form('node_template');
     $node = FLBuilderModel::get_node($post_data['node_id']);
     FLBuilder::render_settings(array('class' => 'fl-builder-node-template-settings', 'attrs' => 'data-node="' . $node->node . '"', 'title' => str_replace('%s', ucwords($node->type), $form['title']), 'tabs' => $form['tabs']), $defaults);
 }
 /**
  * Renders the settings form for saving a user defined template.
  *
  * @since 1.0
  * @return void
  */
 public static function render_user_template_settings()
 {
     $defaults = FLBuilderModel::get_settings_form_defaults('user_template');
     $form = FLBuilderModel::get_settings_form('user_template');
     FLBuilder::render_settings(array('class' => 'fl-builder-user-template-settings', 'title' => $form['title'], 'tabs' => $form['tabs']), $defaults);
 }