Title1

Title2

Title3

9-3 run_system_about()

###############################################################################
#  寫入creative_about.html
###############################################################################
function run_system_about($sn, $name, $kind) {
	global $DIRNAME, $xoopsDB;
	#---- 過濾讀出的變數值 ----
	$myts = MyTextSanitizer::getInstance();
	#---- 檢查資料夾
	mk_dir(XOOPS_ROOT_PATH . "/uploads/{$DIRNAME}/tpl");

	$tbl = "ugm_creative_system";
	$kind = "about";

	#---- 輪播 標題
	$name = "system_about_title";
	$system_about_title = $myts->htmlSpecialChars(get_modules_system_var($tbl, $kind, $name));

	#---- 輪播 內容
	$html = 0;
	$br = 1;
	$name = "system_about_content";
	$system_about_content = $myts->displayTarea(get_modules_system_var($tbl, $kind, $name), $html, 1, 0, 1, $br);

	#---- 輪播 連結網址
	$name = "system_about_url";
	$system_about_url = $myts->htmlSpecialChars(get_modules_system_var($tbl, $kind, $name));

	#---- 輪播 外連狀態
	$name = "system_about_target";
	$system_about_target = intval(get_modules_system_var($tbl, $kind, $name));
	$system_about_target = $system_about_target ? " target='_blank'" : "";

	$content = "<section class='bg-primary' id='about'>\n";
	$content .= "	<div class='container'>\n";
	$content .= "		<div class='row'>\n";
	$content .= "			<div class='col-lg-8 col-lg-offset-2 text-center'>\n";
	$content .= "				<h2 class='section-heading'>{$system_about_title}</h2>\n";
	$content .= "				<hr class='light'>\n";
	$content .= "				<p class='text-faded'>{$system_about_content}</p>\n";
	$content .= "				<a href='{$system_about_url}' class='page-scroll btn btn-default btn-xl sr-button' {$system_about_target}>Get Started!</a>\n";
	$content .= "			</div>\n";
	$content .= "		</div>\n";
	$content .= "	</div>\n";
	$content .= "</section>\n";

	$file = XOOPS_ROOT_PATH . "/uploads/ugm_creative/tpl/creative_about.html";
	$f = fopen($file, 'w'); //以寫入方式開啟文件
	fwrite($f, $content); //將新的資料寫入到原始的文件中
	fclose($f);

}