public function initContent()
 {
     $this->multiple_fieldsets = true;
     if (Tools::isSubmit('regenerateThumbnails')) {
         SimpleBlogPost::regenerateThumbnails();
         Tools::redirectAdmin(self::$currentIndex . '&token=' . Tools::getValue('token') . '&conf=9');
     }
     $this->context->smarty->assign(array('content' => $this->content, 'url_post' => self::$currentIndex . '&token=' . $this->token));
     parent::initContent();
 }
 public function initContent()
 {
     $this->multiple_fieldsets = true;
     if (Tools::isSubmit('regenerateThumbnails')) {
         SimpleBlogPost::regenerateThumbnails();
         Tools::redirectAdmin(self::$currentIndex . '&token=' . Tools::getValue('token') . '&conf=9');
     }
     if (Tools::isSubmit('submitExportSettings')) {
         header("Content-type: text/plain");
         header("Content-Disposition: attachment; filename=ph_simpleblog_configuration_" . date('d-m-Y') . ".txt");
         $configs = array();
         foreach ($this->fields_options as $category_data) {
             if (!isset($category_data['fields'])) {
                 continue;
             }
             $fields = $category_data['fields'];
             foreach ($fields as $field => $values) {
                 if ($values['type'] == 'textLang') {
                     $configs[$field] = self::getValueForLangs($field);
                 } else {
                     $configs[$field] = Configuration::get($field);
                 }
             }
         }
         echo serialize($configs);
         exit;
     }
     $this->context->smarty->assign(array('content' => $this->content, 'url_post' => self::$currentIndex . '&token=' . $this->token));
     parent::initContent();
 }