/**
  * Adds option
  * @return mixed
  */
 public static function addOptions($sections)
 {
     if (!file_exists(CT_THEME_SETTINGS_MAIN_DIR . '/demo')) {
         return $sections;
     }
     $rebuild = isset($_GET['ct_dev']);
     $html = '<div style="font-style: normal" class="import">';
     $html .= '<p>' . __('You can setup your Wordpre ss with just a single click!', 'ct_theme') . '</p>';
     $html .= apply_filters('ct_import_demo.recommends', '');
     $html .= '<div class="importDescription">';
     $html .= '<p style="color:red"><strong>' . __('Warning! Import content only on new Wordpress installation. Otherwise your current pages and posts may be lost!', 'ct_theme') . '</strong></p>';
     if (file_exists(CT_THEME_SETTINGS_MAIN_DIR . '/demo/wordpress.xml')) {
         if ($rebuild) {
             $html .= '<a href="#" data-action="ct-demo-rebuild" data-dir="" class="ct-demo-import button button-primary">' . __('REBUILD demo content', 'ct_theme') . '</a>&nbsp;&nbsp;';
         } else {
             $html .= '<a href="#" data-action="ct-demo-import" data-dir="" class="ct-demo-import button button-primary">' . __('import demo content', 'ct_theme') . '</a>&nbsp;&nbsp;';
         }
     }
     //check whether there is additional flavour
     $dirs = glob(CT_THEME_SETTINGS_MAIN_DIR . '/demo/*', GLOB_ONLYDIR);
     if (is_array($dirs)) {
         foreach ($dirs as $dir) {
             $dName = basename($dir);
             if ($rebuild) {
                 $html .= '<a href="#" data-action="ct-demo-rebuild" data-dir="' . $dName . '" class="ct-demo-import button button-primary">' . __('REBUILD demo content', 'ct_theme') . ': ' . $dName . '</a>&nbsp;&nbsp;';
             } else {
                 $html .= '<a href="#" data-action="ct-demo-import" data-dir="' . $dName . '" class="ct-demo-import button button-primary">' . __('import demo content', 'ct_theme') . ': ' . $dName . '</a>&nbsp;&nbsp;';
             }
         }
     }
     $html .= '</div>';
     $html .= '<div class="importLoader" style="display:none">';
     $html .= '<span style="position:relative;top:-28px;padding-right:20px"><strong>' . __('Importing ...', 'ct_theme') . '</strong></span><img src="' . CT_THEME_ADMIN_ASSETS_URI . '/images/import_loader.gif" alt="loading"/>';
     $html .= '</div>';
     $html .= '</div>';
     $section = array('icon' => NHP_OPTIONS_URL . 'img/glyphicons/glyphicons_181_download_alt.png', 'title' => __('1-Click Demo Import', 'ct_theme'), 'group' => __("General", 'ct_theme'), 'desc' => $html);
     $sections = ctNHP_Options::insertSectionAtIndex($sections, $section, 2);
     return $sections;
 }