public function updateCaptionsContentData($content)
 {
     $content = stripslashes($content);
     $content = trim($content);
     UniteFunctionsBanner::writeFile($content, GlobalsBannerRotator::$filepath_captions);
     //output captions array
     $arrCaptions = $this->getArrCaptionClasses($content);
     return $arrCaptions;
 }
 public static function writeSettingLanguageFile($filepath)
 {
     $info = pathinfo($filepath);
     $path = UniteFunctionsBanner::getVal($info, "dirname") . "/";
     $filename = UniteFunctionsBanner::getVal($info, "filename");
     $ext = UniteFunctionsBanner::getVal($info, "extension");
     $filenameOutput = "{$filename}_{$ext}_lang.php";
     $filepathOutput = $path . $filenameOutput;
     //Load settings
     $settings = new UniteSettingsAdvancedBanner();
     $settings->loadXMLFile($filepath);
     $arrText = $settings->getArrTextFromAllSettings();
     $str = "";
     $str .= "<?php \n";
     foreach ($arrText as $text) {
         $text = str_replace('"', '\\"', $text);
         $str .= "_e(\"{$text}\",\"" . BANNERROTATOR_TEXTDOMAIN . "\"); \n";
     }
     $str .= "?>";
     UniteFunctionsBanner::writeFile($str, $filepathOutput);
 }