Title1

Title2

Title3

8-2 onInstall.php => go_install()

onInstall.php => go_install()

  1. 「message_home」=> 「slider_home
  2. 「首頁訊息」 => 「輪播圖
  3. 增加一個變數
    /language/tchinese_utf8/main.php 增加語系
    如果

    $configs['slide_home'][$i]['default']  有語系,請至/language/tchinese_utf8/modinfo.php​ 新增
  4. 圖片的尺寸:請至 /themes/creative/img 查看
  5. 當變數有異動時,請執行模組更新
    
    	$i++;
    	#「輪播圖」
    	$configs['slider_home'][$i]['name'] = 'system_slider_home_pic';
    	$configs['slider_home'][$i]['title'] = '_MD_UGMCREATIVE_SYSTEM_NAME_7';
    	$configs['slider_home'][$i]['description'] = '_MD_UGMCREATIVE_SYSTEM_NAME_7_DESC';
    	$configs['slider_home'][$i]['formtype'] = 'file';
    	$configs['slider_home'][$i]['valuetype'] = 'multiple_img';
    	$configs['slider_home'][$i]['default'] = 1920; //最大寬度1920px

     

  6.  

	$i++;
	#「輪播圖_標題」
	$configs['slider_home'][$i]['name'] = 'system_slider_home_title';
	$configs['slider_home'][$i]['title'] = '_MD_UGMCREATIVE_SYSTEM_NAME_2';
	$configs['slider_home'][$i]['description'] = '_MD_UGMCREATIVE_SYSTEM_NAME_2_DESC';
	$configs['slider_home'][$i]['formtype'] = 'textbox';
	$configs['slider_home'][$i]['valuetype'] = 'text';
	$configs['slider_home'][$i]['default'] = 'Message';

	$i++;
	#「輪播圖內容」
	$configs['slider_home'][$i]['name'] = 'system_slider_home_content';
	$configs['slider_home'][$i]['title'] = '_MD_UGMCREATIVE_SYSTEM_NAME_3';
	$configs['slider_home'][$i]['description'] = '_MD_UGMCREATIVE_SYSTEM_NAME_3_DESC';
	$configs['slider_home'][$i]['formtype'] = 'fck';
	$configs['slider_home'][$i]['valuetype'] = 'text';
	$configs['slider_home'][$i]['default'] = "Content";

	$i++;
	#「輪播圖 連結網址」
	$configs['slider_home'][$i]['name'] = 'system_slider_home_url';
	$configs['slider_home'][$i]['title'] = '_MD_UGMCREATIVE_SYSTEM_NAME_4';
	$configs['slider_home'][$i]['description'] = '_MD_UGMCREATIVE_SYSTEM_NAME_4_DESC';
	$configs['slider_home'][$i]['formtype'] = 'textbox';
	$configs['slider_home'][$i]['valuetype'] = 'text';
	$configs['slider_home'][$i]['default'] = "#";

	$i++;
	#「輪播圖 啟用狀態」
	$configs['slider_home'][$i]['name'] = 'system_slider_home_enable';
	$configs['slider_home'][$i]['title'] = '_MD_UGMCREATIVE_SYSTEM_NAME_5';
	$configs['slider_home'][$i]['description'] = '_MD_UGMCREATIVE_SYSTEM_NAME_5_DESC';
	$configs['slider_home'][$i]['formtype'] = 'yesno';
	$configs['slider_home'][$i]['valuetype'] = 'int';
	$configs['slider_home'][$i]['default'] = "1";

	$i++;
	#「輪播圖 外連狀態」
	$configs['slider_home'][$i]['name'] = 'system_slider_home_target';
	$configs['slider_home'][$i]['title'] = '_MD_UGMCREATIVE_SYSTEM_NAME_6';
	$configs['slider_home'][$i]['description'] = '_MD_UGMCREATIVE_SYSTEM_NAME_6_DESC';
	$configs['slider_home'][$i]['formtype'] = 'yesno';
	$configs['slider_home'][$i]['valuetype'] = 'int';
	$configs['slider_home'][$i]['default'] = "0";

	$i++;
	#「輪播圖」
	$configs['slider_home'][$i]['name'] = 'system_slider_home_pic';
	$configs['slider_home'][$i]['title'] = '_MD_UGMCREATIVE_SYSTEM_NAME_7';
	$configs['slider_home'][$i]['description'] = '_MD_UGMCREATIVE_SYSTEM_NAME_7_DESC';
	$configs['slider_home'][$i]['formtype'] = 'file';
	$configs['slider_home'][$i]['valuetype'] = 'multiple_img';
	$configs['slider_home'][$i]['default'] = 1920; //最大寬度1920px