Esempio n. 1
0
 /**
  * General Tab
  *
  * @param $sections
  * @param $toolset_options
  *
  * @return mixed
  */
 public function general($sections, $toolset_options)
 {
     $view = new Types_Helper_Twig();
     // Information Table
     $setting = new Types_Setting_Preset_Information_Table();
     $sections[$setting->get_id()] = array('slug' => $setting->get_id(), 'title' => __('"Front-end Display" table', 'types'), 'content' => $view->render('/setting/checkbox.twig', array('description' => __('Show information about Template, Archive, Views and Forms on:', 'types'), 'setting' => $setting)));
     return $sections;
 }
 private function prepare_informations()
 {
     $setting = new Types_Setting_Preset_Information_Table();
     if (!$setting->get_value('show-on-field-group')) {
         return false;
     }
     $information = new Types_Information_Controller();
     $information->prepare();
 }