Title1

Title2

Title3

6-1 write_ugm_creative_html()

###############################################################################
#  產生預設樣板
###############################################################################
function write_ugm_creative_html() {
	mk_dir(XOOPS_ROOT_PATH . "/uploads/ugm_creative/tpl"); //建立tpl資料夾

	#----預設選單
	$source = XOOPS_ROOT_PATH . "/themes/creative/tpl/creative_nav.html";
	$destination = XOOPS_ROOT_PATH . "/uploads/ugm_creative/tpl/creative_nav.html";
	copy($source, $destination); //複製樣板

	#----預設header
	$source = XOOPS_ROOT_PATH . "/themes/creative/tpl/creative_header.html";
	$destination = XOOPS_ROOT_PATH . "/uploads/ugm_creative/tpl/creative_header.html";
	copy($source, $destination); //複製樣板
	
	#----預設about
	$source = XOOPS_ROOT_PATH . "/themes/creative/tpl/creative_about.html";
	$destination = XOOPS_ROOT_PATH . "/uploads/ugm_creative/tpl/creative_about.html";
	copy($source, $destination); //複製樣板

	#----預設services
	$source = XOOPS_ROOT_PATH . "/themes/creative/tpl/creative_services.html";
	$destination = XOOPS_ROOT_PATH . "/uploads/ugm_creative/tpl/creative_services.html";
	copy($source, $destination); //複製樣板

	#----預設portfolio
	$source = XOOPS_ROOT_PATH . "/themes/creative/tpl/creative_portfolio.html";
	$destination = XOOPS_ROOT_PATH . "/uploads/ugm_creative/tpl/creative_portfolio.html";
	copy($source, $destination); //複製樣板

	#----預設bg-dark
	$source = XOOPS_ROOT_PATH . "/themes/creative/tpl/creative_bg-dark.html";
	$destination = XOOPS_ROOT_PATH . "/uploads/ugm_creative/tpl/creative_bg-dark.html";
	copy($source, $destination); //複製樣板

	#----預設contact
	$source = XOOPS_ROOT_PATH . "/themes/creative/tpl/creative_contact.html";
	$destination = XOOPS_ROOT_PATH . "/uploads/ugm_creative/tpl/creative_contact.html";
	copy($source, $destination); //複製樣板

}