form.article.config.php

来自「php 开发的内容管理系统」· PHP 代码 · 共 109 行

PHP
109
字号
<?php
/**
 * Article management
 *
 * @copyright	The XOOPS project http://www.xoops.org/
 * @license		http://www.fsf.org/copyleft/gpl.html GNU public license
 * @author		Taiwen Jiang (phppp or D.J.) <php_pp@hotmail.com>
 * @since		1.00
 * @version		$Id$
 * @package		module::article
 */
if (!defined("XOOPS_ROOT_PATH")) exit();

if(!is_object($form_art)) {
	die("No form declared");
}
$form_art_elements = array();


$form_art_elements["full"] = !empty($form_element["active"]) ? array_keys($form_element["active"]) :
	array(
		"form_mode",		// Form mode
		"art_title",		// Article title
		"uid",				// User ID for submitter
		"art_summary",		// Article summary
		"subtitle",			// Subtitle for a page
		"editor",			// Editor selection box
		"text",				// Article body
		"text_options",		// Options for article body display
		"page",				// Multipage manipulation
		"writer_id",		// Original author
		"art_source",		// Original source
		"art_keywords",		// Keywords or tags for the article
		//"attachment",		// Attachments, not used yet
		"art_image",		// Article spot image
		"art_template",		// Article template
		"cat_id",			// Basic category
		"category",			// Extra categories to register to
		"topic",			// Topics to register to
		"art_forum",		// Newbb forum board for discussing the article 
		"art_elinks",		// External relevant links
		"trackbacks",		// URL to send trackback
		"notify",			// Notification for approval of the article
		"approved",			// Approve the article, admin only
		"update_time",		// Update publish time, admin only
	);

$form_art_elements["basic"] = 
	// Comment out any of the fields to be hidden
	// Elements will be sorted according to the order here
	array(
		"form_mode",		// Form mode
		"art_title",		// Article title
		//"uid",				// User ID for submitter
		"art_summary",		// Article summary
		//"subtitle",			// Subtitle for a page
		//"editor",			// Editor selection box
		"text",				// Article body
		"text_options",		// Options for article body display
		//"page",				// Multipage manipulation
		//"writer_id",		// Original author
		//"art_source",		// Original source
		"art_keywords",		// Keywords or tags for the article
		//"attachment",		// Attachments, not used yet
		//"art_image",		// Article spot image
		//"art_template",		// Article template
		"cat_id",			// Basic category
		//"category",			// Extra categories to register to
		//"topic",			// Topics to register to
		//"art_forum",		// Newbb forum board for discussing the article 
		//"art_elinks",		// External relevant links
		//"trackbacks",		// URL to send trackback
		"notify",			// Notification for approval of the article
		"approved",			// Approve the article, admin only
		//"update_time",		// Update publish time, admin only
	);
	

$form_art_elements["custom"] = 
	// Comment out any of the fields to be hidden
	// Elements will be sorted according to the order here
	array(
		"form_mode",		// Form mode
		"art_title",		// Article title
		"uid",				// User ID for submitter
		"art_summary",		// Article summary
		"subtitle",			// Subtitle for a page
		"editor",			// Editor selection box
		"text",				// Article body
		"text_options",		// Options for article body display
		"page",				// Multipage manipulation
		"writer_id",		// Original author
		"art_source",		// Original source
		"art_keywords",		// Keywords or tags for the article
		//"attachment",		// Attachments, not used yet
		"art_image",		// Article spot image
		"art_template",		// Article template
		"cat_id",			// Basic category
		"category",			// Extra categories to register to
		//"topic",			// Topics to register to
		"art_forum",		// Newbb forum board for discussing the article 
		//"art_elinks",		// External relevant links
		//"trackbacks",		// URL to send trackback
		"notify",			// Notification for approval of the article
		"approved",			// Approve the article, admin only
		"update_time",		// Update publish time, admin only
	);
	
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?