/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__administrative__menu_editor_screen()
{
$branch = do_lorem_template('MENU_EDITOR_BRANCH', array('CLICKABLE_SECTIONS' => 'true', 'I' => placeholder_id(), 'CHILD_BRANCH_TEMPLATE' => '', 'CHILD_BRANCHES' => ''));
$child_branch_template = do_lorem_template('MENU_EDITOR_BRANCH_WRAP', array('DISPLAY' => 'display: block', 'CLICKABLE_SECTIONS' => true, 'ORDER' => 'replace_me_with_order', 'PARENT' => 'replace_me_with_parent', 'BRANCH_TYPE' => '0', 'NEW_WINDOW' => '0', 'CHECK_PERMS' => '0', 'CAPTION_LONG' => '', 'CAPTION' => '', 'URL' => '', 'PAGE_ONLY' => '', 'THEME_IMG_CODE' => '', 'I' => placeholder_id(), 'BRANCH' => $branch));
$root_branch = do_lorem_template('MENU_EDITOR_BRANCH', array('CLICKABLE_SECTIONS' => 'true', 'CHILD_BRANCH_TEMPLATE' => $child_branch_template, 'CHILD_BRANCHES' => '', 'I' => ''));
return array(lorem_globalise(do_lorem_template('MENU_EDITOR_SCREEN', array('ALL_MENUS' => placeholder_array(), 'MENU_NAME' => lorem_word(), 'DELETE_URL' => placeholder_url(), 'PING_URL' => placeholder_url(), 'WARNING_DETAILS' => '', 'FIELDS_TEMPLATE' => placeholder_fields(), 'HIGHEST_ORDER' => lorem_phrase(), 'URL' => placeholder_url(), 'CHILD_BRANCH_TEMPLATE' => $child_branch_template, 'ROOT_BRANCH' => $root_branch, 'TITLE' => lorem_title())), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__supermembers_screen()
{
require_lang('authors');
require_lang('points');
$groups_current = do_lorem_template('SUPERMEMBERS_SCREEN_ENTRY', array('NAME' => lorem_phrase(), 'DAYS' => placeholder_number(), 'PROFILE_URL' => placeholder_url(), 'AUTHOR_URL' => placeholder_url(), 'POINTS_URL' => placeholder_url(), 'PM_URL' => placeholder_url(), 'SKILLS' => lorem_phrase()));
$groups = do_lorem_template('SUPERMEMBERS_SCREEN_GROUP', array('ENTRIES' => $groups_current, 'GROUP_NAME' => lorem_phrase()));
return array(lorem_globalise(do_lorem_template('SUPERMEMBERS_SCREEN', array('TITLE' => lorem_title(), 'GROUPS' => $groups, 'TEXT' => lorem_sentence_html())), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__form_screen_input_captcha()
{
require_code('captcha');
generate_captcha();
$input = do_lorem_template('FORM_SCREEN_INPUT_CAPTCHA', array('TABINDEX' => placeholder_number()));
$captcha = do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => false, 'BORING_NAME' => 'security_image', 'NAME' => lorem_phrase(), 'DESCRIPTION' => lorem_sentence_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $input, 'COMCODE' => ''));
return array(lorem_globalise(do_lorem_template('FORM_SCREEN', array('SKIP_VALIDATION' => true, 'HIDDEN' => '', 'TITLE' => lorem_title(), 'URL' => placeholder_url(), 'FIELDS' => $captcha, 'SUBMIT_NAME' => lorem_word(), 'TEXT' => lorem_sentence_html())), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__administrative__unvalidated_screen()
{
$section = do_lorem_template('UNVALIDATED_SECTION', array('TITLE' => lorem_phrase(), 'CONTENT' => lorem_phrase()));
return array(lorem_globalise(do_lorem_template('UNVALIDATED_SCREEN', array('TITLE' => lorem_title(), 'SECTIONS' => $section)), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__administrative__ssl_configuration_screen()
{
require_lang('security');
$content = new ocp_tempcode();
$k = 0;
foreach (placeholder_array() as $k => $v) {
foreach (placeholder_array() as $k => $v2) {
$k++;
$content->attach(do_lorem_template('SSL_CONFIGURATION_ENTRY', array('TICKED' => lorem_word(), 'PAGE' => $v, 'ZONE' => $v2)));
}
}
return array(lorem_globalise(do_lorem_template('SSL_CONFIGURATION_SCREEN', array('URL' => placeholder_url(), 'TITLE' => lorem_title(), 'CONTENT' => $content)), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__administrative__flagrant_manage_screen()
{
$about_current = do_lorem_template('FLAGRANT_DETAILS', array('USERNAME' => lorem_word_html(), 'DAYS_ORDERED' => lorem_phrase(), 'DATE_RAW' => placeholder_time(), 'DATE' => placeholder_time()));
$out = new ocp_tempcode();
foreach (placeholder_array() as $key => $value) {
$text = do_lorem_template('FLAGRANT_STORE_LIST_LINE', array('MESSAGE' => $value, 'STATUS' => do_lang('NEW')));
$out->attach(do_lorem_template('FORM_SCREEN_INPUT_LIST_ENTRY', array('SELECTED' => false, 'DISABLED' => false, 'CLASS' => '', 'NAME' => strval($key), 'TEXT' => $text->evaluate())));
}
$input = do_lorem_template('FORM_SCREEN_INPUT_LIST', array('TABINDEX' => '5', 'REQUIRED' => '_required', 'NAME' => lorem_word(), 'CONTENT' => $out, 'INLINE_LIST' => true));
$fields = do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => false, 'BORING_NAME' => lorem_word(), 'NAME' => lorem_word(), 'DESCRIPTION' => lorem_sentence_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $input, 'COMCODE' => ''));
//Create 'FLAGRANT_MANAGE_SCREEN' using the sub-templates 'FLAGRANT_DETAILS' and 'FLAGRANT_STORE_LIST_LINE'
return array(lorem_globalise(do_lorem_template('FORM_SCREEN', array('TITLE' => lorem_title(), 'TEXT' => $about_current, 'HIDDEN' => '', 'URL' => placeholder_url(), 'GET' => true, 'FIELDS' => $fields, 'SUBMIT_NAME' => lorem_word())), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__staff_screen()
{
return array(lorem_globalise(do_lorem_template('STAFF_SCREEN', array('TITLE' => lorem_title(), 'REAL_NAME' => lorem_phrase(), 'ROLE' => lorem_phrase(), 'ADDRESS' => lorem_phrase(), 'NAME' => lorem_word(), 'MEMBER_ID' => placeholder_id(), 'PROFILE_URL' => placeholder_url(), 'ALL_LINK' => placeholder_url())), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__administrative__query_screen()
{
$queries = new ocp_tempcode();
foreach (placeholder_array() as $value) {
$queries->attach(do_lorem_template('QUERY_LOG', array('TIME' => placeholder_number(), 'TEXT' => lorem_sentence())));
}
return array(lorem_globalise(do_lorem_template('QUERY_SCREEN', array('TITLE' => lorem_title(), 'TOTAL' => lorem_phrase(), 'TOTAL_TIME' => placeholder_number(), 'QUERIES' => $queries)), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__cedi_post_screen()
{
require_javascript('javascript_validation');
require_lang('comcode');
$posting_form = do_lorem_template('POSTING_FORM', array('TABINDEX_PF' => placeholder_number(), 'JAVASCRIPT' => '', 'PREVIEW' => lorem_phrase(), 'COMCODE_EDITOR' => lorem_phrase(), 'COMCODE_EDITOR_SMALL' => lorem_phrase(), 'CLASS' => lorem_phrase(), 'COMCODE_URL' => placeholder_url(), 'EXTRA' => '', 'POST_COMMENT' => lorem_phrase(), 'EMOTICON_CHOOSER' => lorem_phrase(), 'SUBMIT_NAME' => lorem_word(), 'HIDDEN_FIELDS' => '', 'COMCODE_HELP' => lorem_phrase(), 'URL' => placeholder_url(), 'POST' => lorem_phrase(), 'DEFAULT_PARSED' => lorem_phrase(), 'CONTINUE_URL' => placeholder_url(), 'ATTACHMENTS' => lorem_phrase(), 'SPECIALISATION' => placeholder_fields(), 'SPECIALISATION2' => ''));
return array(lorem_globalise(do_lorem_template('CEDI_POST_SCREEN', array('PING_URL' => '', 'WARNING_DETAILS' => '', 'TEXT' => lorem_phrase(), 'TITLE' => lorem_title(), 'POSTING_FORM' => $posting_form)), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__administrative__validate_check_screen()
{
require_lang('validation');
$content = new ocp_tempcode();
foreach (placeholder_array() as $val) {
$content->attach(do_lorem_template('VALIDATE_CHECK_ERROR', array('URL' => placeholder_url(), 'POINT' => lorem_phrase())));
}
return array(lorem_globalise(do_lorem_template('VALIDATE_CHECK_SCREEN', array('TITLE' => lorem_title(), 'CONTENTS' => $content)), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__screen_title()
{
require_lang('awards');
return array(lorem_globalise(do_lorem_template('SCREEN_TITLE', array('TITLE' => lorem_phrase(), 'HELP_URL' => placeholder_url(), 'HELP_TERM' => lorem_word(), 'AWARDS' => array(array('AWARD_TYPE' => lorem_title(), 'AWARD_TIMESTAMP' => placeholder_time())))), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__ecom_subscriptions_screen()
{
$button = do_lorem_template('ECOM_TRANSACTION_LOGS_MANUAL_TRIGGER', array('STATUS' => lorem_phrase(), 'TRIGGER_URL' => placeholder_url()));
$subscriptions = array();
foreach (placeholder_array() as $k => $v) {
$subscriptions[] = array('SUBSCRIPTION_TITLE' => lorem_phrase(), 'ID' => placeholder_id(), 'PER' => lorem_word(), 'AMOUNT' => placeholder_number(), 'TIME' => placeholder_date(), 'STATE' => lorem_word(), 'TYPE_CODE' => lorem_word(), 'CANCEL_BUTTON' => $button);
}
return array(lorem_globalise(do_lorem_template('ECOM_SUBSCRIPTIONS_SCREEN', array('TITLE' => lorem_title(), 'SUBSCRIPTIONS' => $subscriptions)), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__chat_set_effects_screen()
{
require_javascript('javascript_validation');
require_javascript('javascript_swfupload');
$setting_blocks = new ocp_tempcode();
foreach (placeholder_array() as $member => $values) {
$effects = array();
foreach (placeholder_array() as $k => $v) {
$effects[] = array('KEY' => strval($k), 'VALUE' => $v, 'MEMBER_ID' => "{$member}", 'USERNAME' => lorem_phrase(), 'EFFECT_TITLE' => lorem_word(), 'EFFECT_SHORT' => lorem_word_2(), 'EFFECT' => lorem_word());
}
$block = do_lorem_template('CHAT_SET_EFFECTS_SETTING_BLOCK', array('HAS_SOME' => false, 'EFFECTS' => $effects, 'LIBRARY' => placeholder_array()));
$setting_blocks->attach($block);
}
return array(lorem_globalise(do_lorem_template('CHAT_SET_EFFECTS_SCREEN', array('TITLE' => lorem_title(), 'SUBMIT_NAME' => lorem_word(), 'HIDDEN' => '', 'POST_URL' => placeholder_url(), 'SETTING_BLOCKS' => $setting_blocks, 'CHAT_SOUND' => '')), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__administrative__bulk_helper_results_screen()
{
$test = do_lorem_template('BULK_HELPER_ENTRY', array('FILEFULL' => lorem_phrase()));
return array(lorem_globalise(do_lorem_template('BULK_HELPER_RESULTS_SCREEN', array('TITLE' => lorem_title(), 'RESULTS' => $test)), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__administrative__xml_storage_export_results_screen()
{
return array(lorem_globalise(do_lorem_template('XML_STORAGE_EXPORT_RESULTS_SCREEN', array('TITLE' => lorem_title(), 'XML' => lorem_phrase())), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__administrative__xml_config_screen()
{
return array(lorem_globalise(do_lorem_template('XML_CONFIG_SCREEN', array('XML' => '<test />', 'POST_URL' => placeholder_url(), 'TITLE' => lorem_title())), NULL, '', true));
}
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__administrative__errorlog_screen()
{
return array(lorem_globalise(do_lorem_template('ERRORLOG_SCREEN', array('TITLE' => lorem_title(), 'ERROR' => lorem_phrase(), 'PERMISSION' => lorem_phrase())), NULL, '', true));
}
请发表评论