<?php
$TEMPLATE_GO = ""; //$_GET-variable "go", important to stay at the same page ;)
$TEMPLATE_FILE = ""; //TPL-File to be used in this template-page
$TEMPLATE_EDIT = array(); //Set to array() for security-issues
$TEMPLATE_EDIT[] = array (
name => "TEMPLATE_NAME", //Name of the template section
title => "text or $var", //Ttitle of the template section
description => "text or $var", //Short description of what the template section is used for
rows => 10, //Number of rows of the editor/Textarea
cols => 66, //Number of cols of the Textarea, editor uses 100%
help => array ( //Array of possible template-tags
array ( tag => "tag_name", text => "text or $var" ), //Don't use "{.." or "..}" in tag-name, they are added autmatically
array ( tag => "tag_name", text => "text or $var" ),
)
);
// Init Template-Page
echo templatepage_init ( $TEMPLATE_EDIT, $TEMPLATE_GO, $TEMPLATE_FILE, ensure_copyright ( "TEMPLATE_NAME" ) ); // Don't use ensure_copyright () if you don't want to ensure the copyright ;) (You won't need this normally)
?>
example-admin-template.txt · Zuletzt geändert: 2009/12/13 22:37 von sweil