plugin.php

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

PHP
66
字号
<?php
/**
 * Custom parameters for article
 *
 * @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
 */

// plugin guide:
/* 
 * Add customized configs, variables or functions
 */
$customConfig = array();
 
/* 
 * When a category is to be deleted, there are two options for its subcategories and articles:
 * A: true -- all subcategories and articles will be deleted from database
 * B: false -- all subcategories and articles will be moved to its parent category or (if no parent) the category of cat_id = 1
 *
 * TODO: there shall be an option for admin to choose a category to store subcategories and articles
 */
$customConfig["category_delete_forced"] = false;

/* image width of spotlight icon on index page, in px */
//$customConfig["image_width_spotlight"] = "100px";
/* image width of category icon on index page, in px */
//$customConfig["image_width_category"] = "80px";
/* image width of article icon on index page, in px */
//$customConfig["image_width_article"] = "100px";

// specification for custom time format
// default manner will be used if not specified
$customConfig["formatTimestamp_custom"] = ""; // Could be set as "Y-m-d H:i" 


// Set allowed editors 
$customConfig["editor_allowed"] = array();  // Could be set as array("FCKeditor", "koivi" or "textarea")

// Set the default editor
$customConfig["editor_default"] = ""; // Could be set as any of "FCKeditor", "koivi" and "textarea"

// default value for editor rows, coloumns 
$customConfig["editor_rows"] = 25;
$customConfig["editor_cols"] = 60;

// default value for editor width, height (string)
$customConfig["editor_width"] = "100%";
$customConfig["editor_height"] = "400px";

// Set default form mode for users
/* 
Valide values: 
	"fix" - force to use "custom", custom mode;
	"basic" - default as basic mode "basic", can be switched by user;
	"full" - default as advanced mode "full", can be switched by user;
	"custom" - default as custom mode "custom", can be switched by user;
Set custom mode in /include/form.article.config.php;
*/
$customConfig["form_mode"] = "custom";	

return $customConfig;
?>

⌨️ 快捷键说明

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