/** * 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__staff_admin_screen() { $available = new ocp_tempcode(); foreach (placeholder_array() as $k => $v) { $available->attach(do_lorem_template('STAFF_EDIT_WRAPPER', array('FORM' => placeholder_form(), 'NAME' => lorem_word()))); } return array(lorem_globalise(do_lorem_template('STAFF_ADMIN_SCREEN', array('TITLE' => lorem_title(), 'TEXT' => lorem_sentence_html(), 'FORUM_STAFF' => $available)), 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__support_ticket_screen() { require_javascript('javascript_ajax'); require_lang('ocf'); $other_tickets = new ocp_tempcode(); foreach (placeholder_array() as $k => $v) { $other_tickets->attach(do_lorem_template('SUPPORT_TICKET_LINK', array('NUM_POSTS' => placeholder_number(), 'CLOSED' => lorem_phrase(), 'URL' => placeholder_url(), 'TITLE' => lorem_phrase(), 'DATE' => placeholder_date(), 'DATE_RAW' => placeholder_date_raw(), 'PROFILE_LINK' => placeholder_url(), 'LAST_POSTER' => lorem_phrase(), 'UNCLOSED' => lorem_word()))); } $comments = new ocp_tempcode(); $comment_form = do_lorem_template('COMMENTS_POSTING_FORM', array('JOIN_BITS' => lorem_phrase_html(), 'FIRST_POST_URL' => placeholder_url(), 'FIRST_POST' => lorem_paragraph_html(), 'USE_CAPTCHA' => false, 'ATTACHMENTS' => lorem_phrase(), 'ATTACH_SIZE_FIELD' => lorem_phrase(), 'POST_WARNING' => '', 'COMMENT_TEXT' => '', 'GET_EMAIL' => lorem_word(), 'EMAIL_OPTIONAL' => lorem_word(), 'GET_TITLE' => true, 'EM' => placeholder_emoticon_chooser(), 'DISPLAY' => 'block', 'COMMENT_URL' => '', 'SUBMIT_NAME' => lorem_phrase(), 'TITLE' => lorem_phrase(), 'MAKE_POST' => true, 'CREATE_TICKET_MAKE_POST' => true)); return array(lorem_globalise(do_lorem_template('SUPPORT_TICKET_SCREEN', array('TOGGLE_TICKET_CLOSED_URL' => placeholder_url(), 'CLOSED' => lorem_phrase(), 'OTHER_TICKETS' => $other_tickets, 'USERNAME' => lorem_word(), 'PING_URL' => placeholder_url(), 'WARNING_DETAILS' => '', 'NEW' => lorem_phrase(), 'TICKET_PAGE_TEXT' => lorem_sentence_html(), 'TYPES' => placeholder_array(), 'STAFF_ONLY' => placeholder_fields(), 'POSTER' => lorem_phrase(), 'TITLE' => lorem_title(), 'COMMENTS' => $comments, 'COMMENT_FORM' => $comment_form, 'STAFF_DETAILS' => placeholder_url(), 'URL' => placeholder_url(), 'ADD_TICKET_URL' => 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__paragraph() { return array(lorem_globalise(do_lorem_template('PARAGRAPH', array('TEXT' => lorem_sentence_html(), 'CLASS' => 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__banner_added_screen() { return array(lorem_globalise(do_lorem_template('BANNER_ADDED_SCREEN', array('TITLE' => lorem_title(), 'TEXT' => lorem_sentence_html(), 'BANNER_CODE' => lorem_phrase(), 'STATS_URL' => placeholder_url(), 'DO_NEXT' => 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__login_redirect_screen() { return array(lorem_globalise(do_lorem_template('LOGIN_REDIRECT_SCREEN', array('REFRESH' => '', 'TITLE' => lorem_title(), 'TEXT' => lorem_sentence_html(), 'URL' => placeholder_url(), 'POST' => 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__import_phpnuke_fcomcodepage() { return array(lorem_globalise(do_lorem_template('IMPORT_PHPNUKE_FCOMCODEPAGE', array('TITLE' => lorem_phrase(), 'SUBTITLE' => lorem_phrase(), 'PAGE_HEADER' => lorem_phrase(), 'TEXT' => lorem_sentence_html(), 'PAGE_FOOTER' => lorem_phrase(), 'SIGNATURE' => 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__pointstore_quota() { $input = do_lorem_template('FORM_SCREEN_INPUT_INTEGER', array('TABINDEX' => placeholder_number(), 'REQUIRED' => '_required', 'NAME' => lorem_word(), 'DEFAULT' => lorem_word())); $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' => '')); $text = do_lorem_template('POINTSTORE_QUOTA', array('POINTS_LEFT' => placeholder_number(), 'PRICE' => placeholder_number(), 'TOP_AMOUNT' => placeholder_number(), 'EMAIL' => lorem_word())); return array(lorem_globalise(do_lorem_template('FORM_SCREEN', array('GET' => true, 'HIDDEN' => '', 'URL' => placeholder_url(), 'TITLE' => lorem_title(), 'FIELDS' => $fields, 'TEXT' => $text, '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__ocf_member_profile_screen() { require_lang('news'); $sections = array('contact' => lorem_word(), 'profile' => lorem_word_2(), 'views' => lorem_word(), 'usage' => lorem_word_2(), 'content' => lorem_word()); $actions = array(); $i = 0; $links = new ocp_tempcode(); foreach ($sections as $section_code => $section_title) { $links->attach(do_lorem_template('OCF_MEMBER_ACTION', array('ID' => strval($i), 'URL' => placeholder_url(), 'LANG' => lorem_word(), 'REL' => ''))); $actions[$section_code] = do_lorem_template('OCF_MEMBER_ACTION', array('ID' => strval($i), 'URL' => placeholder_url(), 'LANG' => lorem_word(), 'REL' => '', 'NAME' => $section_title, 'VALUE' => $links)); $i++; } require_lang('menus'); $tabs = array(); $tab_content = do_lorem_template('OCF_MEMBER_PROFILE_ABOUT', array('RIGHT_MARGIN' => lorem_phrase(), 'AVATAR_WIDTH' => placeholder_id(), 'PHOTO_WIDTH' => placeholder_id(), 'MOST_ACTIVE_FORUM' => lorem_phrase(), 'TIME_FOR_THEM' => placeholder_time(), 'TIME_FOR_THEM_RAW' => placeholder_date_raw(), 'SUBMIT_DAYS_AGO' => lorem_phrase(), 'SUBMIT_TIME_RAW' => placeholder_time(), 'LAST_VISIT_TIME_RAW' => placeholder_date_raw(), 'ONLINE_NOW' => lorem_phrase(), '_ONLINE_NOW' => false, 'BANNED' => lorem_phrase(), 'USER_AGENT' => lorem_phrase(), 'OPERATING_SYSTEM' => lorem_phrase(), 'DOB' => lorem_phrase(), 'IP_ADDRESS' => lorem_phrase(), 'COUNT_POSTS' => placeholder_number(), 'COUNT_POINTS' => placeholder_number(), 'PRIMARY_GROUP' => lorem_phrase(), 'PRIMARY_GROUP_ID' => placeholder_id(), 'PHOTO_URL' => placeholder_image_url(), 'PHOTO_THUMB_URL' => placeholder_image_url(), 'EMAIL_ADDRESS' => lorem_word(), 'AVATAR_URL' => placeholder_avatar(), 'SIGNATURE' => lorem_phrase(), 'JOIN_DATE' => placeholder_time(), 'JOIN_DATE_RAW' => placeholder_date_raw(), 'CUSTOM_FIELDS' => array(array('NAME' => lorem_phrase(), 'VALUE' => lorem_phrase(), 'ENCRYPTED_VALUE' => '')), 'ACTIONS_contact' => $actions['contact'], 'ACTIONS_profile' => $actions['profile'], 'ACTIONS_views' => $actions['views'], 'ACTIONS_usage' => $actions['usage'], 'ACTIONS_content' => $actions['content'], 'USERNAME' => lorem_word(), 'MEMBER_ID' => placeholder_id(), 'SECONDARY_GROUPS' => placeholder_array(), 'VIEW_PROFILES' => true, 'ON_PROBATION' => lorem_phrase(), 'USERGROUP' => lorem_word(), 'CLUBS' => lorem_phrase())); $tabs[] = array('TAB_CODE' => placeholder_id() . '0', 'TAB_TITLE' => lorem_title(), 'TAB_CONTENT' => $tab_content, 'TAB_FIRST' => true, 'TAB_LAST' => false); $tabs2 = array(); $fields = new ocp_tempcode(); $name = placeholder_random_id(); $input = do_lorem_template('FORM_SCREEN_INPUT_INTEGER', array('TABINDEX' => placeholder_number(), 'REQUIRED' => '', 'NAME' => $name, 'DEFAULT' => '')); $fields->attach(do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => false, 'BORING_NAME' => $name, 'NAME' => lorem_word(), 'DESCRIPTION' => lorem_sentence_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $input, 'COMCODE' => ''))); $tabs2[] = array('TAB_TITLE' => lorem_title(), 'TAB_FIELDS' => $fields, 'TAB_TEXT' => lorem_paragraph(), 'TAB_FIRST' => true, 'TAB_LAST' => true); $tab_content = do_lorem_template('OCF_MEMBER_PROFILE_EDIT', array('URL' => placeholder_url(), 'SUBMIT_NAME' => lorem_phrase(), 'AUTOCOMPLETE' => false, 'SKIP_VALIDATION' => true, 'TABS' => $tabs2, 'HIDDEN' => '')); $tabs[] = array('TAB_CODE' => placeholder_id() . '1', 'TAB_TITLE' => lorem_title(), 'TAB_CONTENT' => $tab_content, 'TAB_FIRST' => false, 'TAB_LAST' => true); return array(lorem_globalise(do_lorem_template('OCF_MEMBER_PROFILE_SCREEN', array('TITLE' => lorem_title(), 'MEMBER_ID' => placeholder_id(), 'TABS' => $tabs)), 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__newsletter_confirm_wrap() { $preview = do_lorem_template('NEWSLETTER_CONFIRM_WRAP', array('TEXT_PREVIEW' => lorem_sentence_html(), 'PREVIEW' => lorem_phrase(), 'SUBJECT' => lorem_phrase())); return array(lorem_globalise(do_lorem_template('FORM_CONFIRM_SCREEN', array('URL' => placeholder_url(), 'BACK_URL' => placeholder_url(), 'PREVIEW' => $preview, 'FIELDS' => new ocp_tempcode(), '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__installer_step_4() { require_css('install'); require_lang('installer'); require_lang('version'); $options = new ocp_tempcode(); $options->attach($this->make_option(lorem_phrase(), new ocp_tempcode(), 'ftp_username', '', false, true)); $options->attach($this->make_option(lorem_phrase(), new ocp_tempcode(), 'ftp_password', '', true)); $options->attach($this->make_tick(lorem_word(), lorem_phrase(), 'tick', 1)); $section = do_lorem_template('INSTALLER_STEP_4_SECTION', array('HIDDEN' => '', 'TITLE' => lorem_word(), 'TEXT' => lorem_sentence_html(), 'OPTIONS' => $options)); $section->attach(do_lorem_template('INSTALLER_STEP_4_SECTION_HIDE', array('TITLE' => lorem_phrase(), 'CONTENT' => lorem_phrase()))); $content = do_lorem_template('INSTALLER_STEP_4', array('JS' => '', 'MESSAGE' => '', 'LANG' => fallback_lang(), 'DB_TYPE' => lorem_phrase(), 'FORUM_TYPE' => lorem_phrase(), 'BOARD_PATH' => lorem_phrase(), 'SECTIONS' => $section, 'MAX' => '1000')); return array(lorem_globalise(do_lorem_template('INSTALLER_WRAP', array('CSS_NOCACHE' => ".nocss{}", 'DEFAULT_FORUM' => lorem_phrase(), 'PASSWORD_PROMPT' => lorem_phrase(), 'CSS_URL' => get_base_url() . '/themes/default/css/installer.css', 'CSS_URL_2' => get_base_url() . '/themes/default/css/installer.css', 'LOGO_URL' => placeholder_image_url(), 'STEP' => '1', 'CONTENT' => $content, 'VERSION' => 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__calendar_screen() { $sub = new ocp_tempcode(); foreach (placeholder_array() as $v) { $sub->attach(do_lorem_template('CALENDAR_SCREEN_PERSONAL_SUBSCRIPTION', array('UNSUBSCRIBE_URL' => placeholder_url(), 'TIME' => placeholder_time()))); } $subed = new ocp_tempcode(); foreach (placeholder_array() as $v) { $subed->attach(do_lorem_template('CALENDAR_SCREEN_SUBSCRIPTION', array('MEMBER_URL' => placeholder_url(), 'USERNAME' => lorem_word()))); } $comment_details = do_lorem_template('COMMENTS_POSTING_FORM', array('JOIN_BITS' => lorem_phrase_html(), 'USE_CAPTCHA' => false, 'EMAIL_OPTIONAL' => lorem_word(), 'POST_WARNING' => '', 'COMMENT_TEXT' => '', 'GET_EMAIL' => true, 'GET_TITLE' => true, 'EM' => placeholder_emoticon_chooser(), 'DISPLAY' => 'block', 'COMMENT_URL' => placeholder_url(), 'TITLE' => lorem_phrase(), 'MAKE_POST' => true, 'CREATE_TICKET_MAKE_POST' => true, 'FIRST_POST_URL' => '', 'FIRST_POST' => '')); return array(lorem_globalise(do_lorem_template('CALENDAR_SCREEN', array('ID' => placeholder_id(), 'TAGS' => lorem_word_html(), 'WARNING_DETAILS' => '', 'SUBMITTER' => lorem_word_html(), 'ADD_DATE' => placeholder_date_raw(), 'ADD_DATE_RAW' => placeholder_date_raw(), 'EDIT_DATE_RAW' => placeholder_date_raw(), 'VIEWS' => lorem_phrase(), 'LOGO' => placeholder_img_code(''), 'DAY' => placeholder_time(), 'RECURRENCE' => placeholder_number(), 'IS_PUBLIC' => lorem_phrase(), 'PRIORITY' => lorem_phrase(), 'PRIORITY_LANG' => lorem_phrase(), 'TYPE' => lorem_phrase(), 'TIME' => placeholder_time(), 'TIME_RAW' => placeholder_date_raw(), 'TIME_VCAL' => placeholder_date_raw(), 'EDIT_URL' => placeholder_url(), 'SUBSCRIPTIONS' => $sub, 'SUBSCRIBE_URL' => placeholder_url(), 'TITLE' => lorem_title(), 'BACK_URL' => placeholder_url(), 'CONTENT' => lorem_phrase(), 'SUBSCRIBED' => $subed, 'RATING_DETAILS' => lorem_sentence_html(), 'TRACKBACK_DETAILS' => lorem_sentence_html(), 'COMMENT_DETAILS' => $comment_details)), 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__ocf_post_template_select() { require_lang('ocf'); require_css('ocf'); $list = new ocp_tempcode(); foreach (placeholder_array() as $key => $value) { $list->attach(do_lorem_template('FORM_SCREEN_INPUT_LIST_ENTRY', array('SELECTED' => false, 'DISABLED' => false, 'CLASS' => '', 'NAME' => strval($key), 'TEXT' => lorem_phrase()))); } $input = do_lorem_template('OCF_POST_TEMPLATE_SELECT', array('TABINDEX' => placeholder_number(), 'LIST' => $list)); $fields = new ocp_tempcode(); $fields->attach(do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => false, 'BORING_NAME' => '', 'NAME' => lorem_word(), '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' => $fields, '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__comcode_hide() { return array(lorem_globalise(do_lorem_template('COMCODE_HIDE', array('TEXT' => lorem_sentence_html(), 'CONTENT' => 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__purchase_wizard_stage_details() { return array(lorem_globalise(do_lorem_template('PURCHASE_WIZARD_STAGE_DETAILS', array('TEXT' => lorem_sentence_html(), 'FIELDS' => placeholder_fields())), 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__restore_wrap() { return array(lorem_globalise(do_lorem_template('RESTORE_WRAP', array('MESSAGE' => lorem_sentence_html(), 'CSS_NOCACHE' => '', 'SUCCESS' => '1')), 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__global() { $out = new ocp_tempcode(); $out->attach(do_lorem_template('HEADER', array('VERSION_NUMBER' => lorem_phrase(), 'CHARSET' => 'ISO-8859-1', 'HEADER_TEXT' => lorem_phrase(), 'DESCRIPTION' => lorem_paragraph(), 'KEYWORDS' => lorem_phrase(), 'SELF_URL' => placeholder_url(), 'REFRESH' => '', 'LOGOURL' => placeholder_image_url(), 'SHOW_TOP' => true))); $out->attach(do_lorem_template('GLOBAL', array('HELPER_PANEL_TUTORIAL' => lorem_word(), 'HELPER_PANEL_HTML' => lorem_sentence_html(), 'HELPER_PANEL_TEXT' => lorem_phrase(), 'HELPER_PANEL_PIC' => lorem_phrase(), 'MESSAGE_TOP' => lorem_phrase(), 'MESSAGE' => lorem_phrase(), 'MIDDLE' => placeholder_id(), 'BREADCRUMBS' => placeholder_breadcrumbs()))); $out->attach(do_lorem_template('FOOTER', array('BAIL_OUT' => false, 'ERROR_MESSAGES_DURING_OUTPUT' => '', 'SHOW_BOTTOM' => true, 'HAS_SU' => lorem_phrase(), 'STAFF_ACTIONS' => lorem_phrase(), 'EXTRA_FOOT' => new ocp_tempcode()))); return array($out); }
/** * 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__download_screen() { require_lang('galleries'); $images_details = new ocp_tempcode(); foreach (placeholder_array() as $row) { $image = do_lorem_template('DOWNLOAD_SCREEN_IMAGE', array('ID' => placeholder_id(), 'VIEW_URL' => placeholder_url(), 'EDIT_URL' => placeholder_url(), 'THUMB' => placeholder_image(), 'COMMENT' => lorem_phrase())); $cell = do_lorem_template('DOWNLOAD_GALLERY_IMAGE_CELL', array('CONTENT' => $image)); $images_details->attach(do_lorem_template('DOWNLOAD_GALLERY_ROW', array('CELLS' => $cell))); } return array(lorem_globalise(do_lorem_template('DOWNLOAD_SCREEN', array('ORIGINAL_FILENAME' => lorem_phrase(), 'TAGS' => lorem_word_html(), 'LICENCE' => lorem_phrase(), 'LICENCE_TITLE' => lorem_phrase(), 'LICENCE_HYPERLINK' => placeholder_link(), 'SUBMITTER' => placeholder_id(), 'EDIT_DATE' => placeholder_time(), 'EDIT_DATE_RAW' => placeholder_date_raw(), 'VIEWS' => lorem_phrase(), 'DATE' => placeholder_time(), 'DATE_RAW' => placeholder_date_raw(), 'NUM_DOWNLOADS' => placeholder_number(), 'TITLE' => lorem_title(), 'NAME' => lorem_phrase(), 'OUTMODE_URL' => placeholder_url(), 'WARNING_DETAILS' => '', 'EDIT_URL' => placeholder_url(), 'ADD_IMG_URL' => placeholder_url(), 'DESCRIPTION' => lorem_paragraph_html(), 'ADDITIONAL_DETAILS' => lorem_sentence_html(), 'IMAGES_DETAILS' => $images_details, 'ID' => placeholder_id(), 'FILE_SIZE' => placeholder_filesize(), 'AUTHOR_URL' => placeholder_url(), 'AUTHOR' => lorem_phrase(), 'TRACKBACK_DETAILS' => lorem_sentence_html(), 'RATING_DETAILS' => lorem_sentence_html(), 'COMMENTS_DETAILS' => lorem_sentence_html(), 'NUM_IMAGES' => '3')), 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__catalogue_editing_screen() { require_javascript('javascript_validation'); return array(lorem_globalise(do_lorem_template('CATALOGUE_EDITING_SCREEN', array('HIDDEN' => '', 'TITLE' => lorem_title(), 'TEXT' => lorem_sentence_html(), 'URL' => placeholder_url(), 'FIELDS' => placeholder_fields(), 'FIELDS_EXISTING' => lorem_phrase(), 'FIELDS_NEW' => lorem_phrase(), '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__quiz_screen() { //This is for getting the do_ajax_request() javascript function. require_javascript('javascript_ajax'); $warning_details = do_lorem_template('WARNING_TABLE', array('WARNING' => lorem_phrase())); return array(lorem_globalise(do_lorem_template('QUIZ_SCREEN', array('TAGS' => lorem_word_html(), 'ID' => placeholder_id(), 'WARNING_DETAILS' => $warning_details, 'URL' => placeholder_url(), 'TITLE' => lorem_title(), 'START_TEXT' => lorem_sentence_html(), 'FIELDS' => placeholder_fields(), 'TIMEOUT' => '5', 'EDIT_URL' => 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__ecom_cart_button_via_paypal() { $items = array(); foreach (placeholder_array() as $k => $v) { $items[] = array('PRODUCT_NAME' => lorem_word(), 'PRICE' => placeholder_number(), 'QUANTITY' => placeholder_number()); } return array(lorem_globalise(do_lorem_template('ECOM_CART_BUTTON_VIA_PAYPAL', array('ITEMS' => $items, 'CURRENCY' => lorem_phrase(), 'PAYMENT_ADDRESS' => lorem_word(), 'IPN_URL' => placeholder_url(), 'ORDER_ID' => placeholder_id(), 'NOTIFICATION_TEXT' => lorem_sentence_html(), 'MEMBER_ADDRESS' => placeholder_array())), 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__crop_text_mouse_over_inline() { return array(lorem_globalise(do_lorem_template('CROP_TEXT_MOUSE_OVER_INLINE', array('TEXT_SMALL' => lorem_sentence_html(), 'TEXT_LARGE' => 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__author_screen() { require_lang('authors'); $news_released = new ocp_tempcode(); foreach (placeholder_array() as $k => $v) { $tpl = do_lorem_template('NEWS_BRIEF', array('DATE' => placeholder_time(), 'URL' => placeholder_url(), 'TITLE_PLAIN' => lorem_word(), 'ID' => placeholder_id(), 'TITLE' => lorem_word())); $news_released->attach($tpl); } $downloads_released = new ocp_tempcode(); foreach (placeholder_array() as $k => $v) { if ($k != 0) { $downloads_released->attach(do_lorem_template('BLOCK_SEPARATOR', array())); } $downloads_released->attach(lorem_sentence_html()); } $staff_details = do_lorem_template('AUTHOR_SCREEN_POTENTIAL_ACTION_ENTRY', array('ACTION' => hyperlink(placeholder_url(), do_lang_tempcode('DEFINE_AUTHOR'), false))); $point_details = do_lorem_template('AUTHOR_SCREEN_POTENTIAL_ACTION_ENTRY', array('ACTION' => hyperlink(placeholder_url(), do_lang_tempcode('AUTHOR_POINTS')))); $url_details = do_lorem_template('AUTHOR_SCREEN_POTENTIAL_ACTION_ENTRY', array('ACTION' => hyperlink(placeholder_url(), do_lang_tempcode('AUTHOR_HOMEPAGE')))); $search_details = do_lorem_template('AUTHOR_SCREEN_POTENTIAL_ACTION_ENTRY', array('ACTION' => hyperlink(placeholder_url(), do_lang_tempcode('SEARCH')))); $forum_details = do_lorem_template('AUTHOR_SCREEN_POTENTIAL_ACTION_ENTRY', array('ACTION' => hyperlink(placeholder_url(), do_lang_tempcode('AUTHOR_PROFILE')))); $skills = new ocp_tempcode(); $description = new ocp_tempcode(); return array(lorem_globalise(do_lorem_template('AUTHOR_SCREEN', array('TAGS' => lorem_word_html(), 'TITLE' => lorem_title(), 'EDIT_URL' => placeholder_url(), 'AUTHOR' => lorem_phrase(), 'NEWS_RELEASED' => $news_released, 'DOWNLOADS_RELEASED' => $downloads_released, 'STAFF_DETAILS' => $staff_details, 'POINT_DETAILS' => $point_details, 'URL_DETAILS' => $url_details, 'SEARCH_DETAILS' => $search_details, 'FORUM_DETAILS' => $forum_details, 'SKILLS' => $skills, 'DESCRIPTION' => $description)), 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__comments() { require_lang('comcode'); require_javascript('javascript_swfupload'); require_javascript('javascript_posting'); $content = do_lorem_template('ATTACHMENT', array('I' => placeholder_number(), 'POSTING_FIELD_NAME' => '')); $attachments = do_lorem_template('ATTACHMENTS', array('ATTACHMENT_TEMPLATE' => $content, 'IMAGE_TYPES' => placeholder_types(), 'POSTING_FIELD_NAME' => '', 'ATTACHMENTS' => $content, 'MAX_ATTACHMENTS' => placeholder_number(), 'NUM_ATTACHMENTS' => placeholder_number())); $ret = do_lorem_template('COMMENTS_POSTING_FORM', array('JOIN_BITS' => lorem_phrase_html(), 'ATTACHMENTS' => $attachments, 'ATTACH_SIZE_FIELD' => '', 'POST_WARNING' => lorem_phrase(), 'COMMENT_TEXT' => lorem_sentence_html(), 'GET_EMAIL' => lorem_word_html(), 'EMAIL_OPTIONAL' => lorem_word_html(), 'GET_TITLE' => true, 'EM' => placeholder_emoticon_chooser(), 'DISPLAY' => lorem_phrase(), 'COMMENT_URL' => placeholder_url(), 'SUBMIT_NAME' => lorem_word(), 'TITLE' => lorem_word(), 'MAKE_POST' => true, 'CREATE_TICKET_MAKE_POST' => true, 'FIRST_POST' => lorem_paragraph_html(), 'FIRST_POST_URL' => placeholder_url())); $ret->attach(do_lorem_template('COMMENT_AJAX_HANDLER', array('OPTIONS' => '', 'HASH' => ''))); return array(lorem_globalise($ret, 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__gallery_entry_screen() { $nav = do_lorem_template('GALLERY_NAV', array('BACK_URL' => placeholder_url(), 'SLIDESHOW' => false, '_X' => placeholder_number(), '_N' => placeholder_number(), 'X' => placeholder_number(), 'N' => placeholder_number(), 'SLIDESHOW_URL' => placeholder_url(), 'SLIDESHOW_NEXT_URL' => placeholder_url(), 'PREVIOUS_URL' => placeholder_url(), 'NEXT_URL' => placeholder_url(), 'MORE_URL' => placeholder_url(), 'CATEGORY_NAME' => lorem_word())); $comment_details = do_lorem_template('COMMENTS_POSTING_FORM', array('JOIN_BITS' => lorem_phrase_html(), 'USE_CAPTCHA' => false, 'EMAIL_OPTIONAL' => lorem_word(), 'POST_WARNING' => '', 'COMMENT_TEXT' => '', 'GET_EMAIL' => true, 'GET_TITLE' => true, 'EM' => placeholder_emoticon_chooser(), 'DISPLAY' => 'block', 'COMMENT_URL' => placeholder_url(), 'TITLE' => lorem_phrase(), 'MAKE_POST' => true, 'CREATE_TICKET_MAKE_POST' => true, 'FIRST_POST_URL' => '', 'FIRST_POST' => '')); $video = do_lorem_template('GALLERY_VIDEO_GENERAL', array('URL' => placeholder_url(), 'WIDTH' => placeholder_number(), 'HEIGHT' => placeholder_number())); return array(lorem_globalise(do_lorem_template('GALLERY_ENTRY_SCREEN', array('CAT' => placeholder_id(), 'MEDIA_TYPE' => 'image', 'ID' => placeholder_id(), 'SLIDESHOW' => false, 'TRUE_GALLERY_TITLE' => lorem_phrase(), 'E_TITLE' => lorem_phrase(), 'GALLERY_TITLE' => lorem_phrase(), 'MEMBER_ID' => placeholder_id(), 'TAGS' => lorem_word_html(), 'TITLE' => lorem_title(), 'SUBMITTER' => lorem_word_html(), 'URL' => placeholder_url(), 'VIDEO_DETAILS' => lorem_sentence_html(), 'MEMBER_DETAILS' => lorem_sentence_html(), 'X' => lorem_phrase(), 'N' => lorem_phrase(), 'VIEWS' => lorem_phrase(), 'ADD_DATE_RAW' => placeholder_date_raw(), 'EDIT_DATE_RAW' => placeholder_date_raw(), 'ADD_DATE' => placeholder_date(), 'EDIT_DATE' => placeholder_date(), 'RATING_DETAILS' => lorem_sentence_html(), 'TRACKBACK_DETAILS' => lorem_sentence_html(), 'COMMENT_DETAILS' => $comment_details, 'EDIT_URL' => placeholder_url(), 'NAV' => $nav, 'COMMENTS' => lorem_phrase(), 'VIDEO' => $video, 'WARNING_DETAILS' => '')), 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() { require_lang('comcode'); require_lang('dates'); $input = new ocp_tempcode(); $fields = new ocp_tempcode(); foreach (placeholder_array(1) as $key => $val) { $input = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE', array('CHECKED' => true, 'NAME' => 'path', 'VALUE' => $val, 'URL' => placeholder_image_url(), 'PRETTY' => strval($key))); $fields->attach(do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => false, 'BORING_NAME' => 'path' . "_" . $val, 'NAME' => lorem_word(), 'DESCRIPTION' => lorem_sentence_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $input, 'COMCODE' => ''))); } $content = new ocp_tempcode(); $i = 0; foreach (placeholder_array() as $k => $v) { $cells = new ocp_tempcode(); foreach (placeholder_array() as $k => $v) { $temp = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_2', array('CHECKED' => 'true', 'PRETTY' => lorem_phrase(), 'NAME' => placeholder_random_id(), 'CODE' => $v, 'URL' => placeholder_image_url())); $temp->attach(do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_3_NA', array('NAME' => placeholder_random_id()))); } $_category = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_2_WRAP', array('ROWS' => $cells)); $input = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_2_CAT_WRAP', array('DISPLAY' => 'block', 'CATEGORY' => $_category, 'CATEGORY_NAME' => lorem_word())); $content->attach($input); } //$fields->attach(do_lorem_template('FORM_SCREEN_FIELD',array('REQUIRED'=>true,'SKIP_LABEL'=>false,'BORING_NAME'=>placeholder_random(),'NAME'=>lorem_word(),'DESCRIPTION'=>lorem_sentence_html(),'DESCRIPTION_SIDE'=>'','INPUT'=>$content,'COMCODE'=>''))); $name = placeholder_random_id(); $input = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST', array('REQUIRED' => true, 'NAME' => $name, 'CODE' => '', 'TABINDEX' => placeholder_number(), 'CONTENT' => $content)); $fields->attach(do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => true, 'BORING_NAME' => '', 'NAME' => lorem_word(), 'DESCRIPTION' => lorem_sentence_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $input, 'COMCODE' => ''))); $entries = array(); $first = true; foreach (placeholder_array() as $k => $v) { $entries[] = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_3', array('PRETTY' => lorem_word(), 'CHECKED' => $first, 'NAME' => placeholder_random_id(), 'CODE' => lorem_word(), 'URL' => placeholder_image_url())); $first = false; } $content = new ocp_tempcode(); foreach ($entries as $i => $tempcode) { $content->attach($tempcode); } $content = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_3_WRAP', array('ROWS' => $content)); $fields->attach(do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => true, 'BORING_NAME' => placeholder_random_id(), 'NAME' => lorem_word(), 'DESCRIPTION' => lorem_sentence_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $content, 'COMCODE' => ''))); //$fields->attach($content); $fields->attach(do_lorem_template('POSTING_FIELD', array('REQUIRED' => true, 'DESCRIPTION' => lorem_phrase(), 'HIDDEN_FIELDS' => '', 'PRETTY_NAME' => lorem_word(), 'NAME' => placeholder_random_id(), 'TABINDEX_PF' => placeholder_random(), 'COMCODE_EDITOR' => placeholder_blank(), 'COMCODE_EDITOR_SMALL' => placeholder_blank(), 'CLASS' => lorem_word(), 'COMCODE_URL' => placeholder_url(), 'EMOTICON_CHOOSER' => placeholder_emoticon_chooser(), 'COMCODE_HELP' => placeholder_blank(), 'POST' => placeholder_blank(), 'DEFAULT_PARSED' => placeholder_blank(), 'ATTACHMENTS' => placeholder_blank()))); return array(lorem_globalise(do_lorem_template('FORM_SCREEN', array('GET' => NULL, 'HIDDEN' => '', 'TITLE' => lorem_title(), 'URL' => placeholder_url(), 'FIELDS' => $fields, '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__occle_box() { return array(lorem_globalise(do_lorem_template('OCCLE_BOX', array('HTML' => lorem_sentence_html())), NULL, '', true)); }