Пример #1
0
 /**
  * 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));
 }
Пример #2
0
 /**
  * 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__block_main_custom_comcode_tags()
 {
     $content = new ocp_tempcode();
     foreach (placeholder_array() as $tag) {
         $content->attach(do_lorem_template('CUSTOM_COMCODE_TAG_ROW', array('TITLE' => lorem_word(), 'DESCRIPTION' => lorem_paragraph(), 'EXAMPLE' => lorem_word())));
     }
     return array(lorem_globalise(do_lorem_template('BLOCK_MAIN_CUSTOM_COMCODE_TAGS', array('TAGS' => $content)), NULL, '', true));
 }
Пример #3
0
 /**
  * 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__config_category_screen()
 {
     $groups = new ocp_tempcode();
     foreach (placeholder_array() as $k => $group) {
         $group = do_lorem_template('CONFIG_GROUP', array('GROUP_DESCRIPTION' => lorem_word(), 'GROUP_NAME' => $group, 'GROUP' => lorem_phrase(), 'CURRENT_GROUP' => "ID{$k}"));
         $groups->attach($group->evaluate());
     }
     return array(lorem_globalise(do_lorem_template('CONFIG_CATEGORY_SCREEN', array('CATEGORY_DESCRIPTION' => lorem_word_2(), '_GROUPS' => placeholder_array(), 'PING_URL' => placeholder_url(), 'WARNING_DETAILS' => '', 'TITLE' => lorem_title(), 'URL' => placeholder_url(), 'GROUPS' => $groups, 'SUBMIT_NAME' => lorem_word())), NULL, '', true));
 }
Пример #4
0
 /**
  * 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__block_side_stats()
 {
     $full_tpl = new ocp_tempcode();
     $bits = new ocp_tempcode();
     foreach (placeholder_array() as $v) {
         $bits->attach(do_lorem_template('BLOCK_SIDE_STATS_SUBLINE', array('KEY' => lorem_phrase(), 'VALUE' => placeholder_number())));
     }
     $full_tpl->attach(do_lorem_template('BLOCK_SIDE_STATS_SECTION', array('SECTION' => lorem_phrase(), 'CONTENT' => $bits)));
     return array(lorem_globalise(do_lorem_template('BLOCK_SIDE_STATS', array('CONTENT' => $full_tpl)), NULL, '', true));
 }
Пример #5
0
 /**
  * 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__cleanup_completed_screen()
 {
     require_lang('stats');
     $url = array();
     foreach (placeholder_array() as $v) {
         $url[] = array('URL' => placeholder_url());
     }
     $message = do_lorem_template('CLEANUP_ORPHANED_UPLOADS', array('FOUND' => $url));
     $message->attach(do_lorem_template('CLEANUP_PAGE_STATS', array('STATS_BACKUP_URL' => placeholder_url())));
     return array(lorem_globalise(do_lorem_template('CLEANUP_COMPLETED_SCREEN', array('TITLE' => lorem_title(), 'MESSAGES' => $message)), NULL, '', true));
 }
Пример #6
0
 /**
  * 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__redirecte_table_screen()
 {
     require_javascript('javascript_ajax');
     $fields = new ocp_tempcode();
     foreach (placeholder_array() as $i => $row) {
         $fields->attach(do_lorem_template('REDIRECTE_TABLE_REDIRECT', array('I' => strval($i), 'TO_ZONES' => placeholder_options(), 'FROM_ZONES' => placeholder_options(), 'FROM_PAGE' => lorem_word(), 'TO_PAGE' => lorem_word_2(), 'TICKED' => true, 'NAME' => "is_transparent_{$i}")));
     }
     $new = do_lorem_template('REDIRECTE_TABLE_REDIRECT', array('I' => 'new', 'TO_ZONES' => placeholder_options(), 'FROM_ZONES' => placeholder_options(), 'FROM_PAGE' => '', 'TO_PAGE' => '', 'TICKED' => false, 'NAME' => 'is_transparent_new'));
     $out = do_lorem_template('REDIRECTE_TABLE_SCREEN', array('NOTES' => '', 'PING_URL' => placeholder_url(), 'WARNING_DETAILS' => '', 'TITLE' => lorem_title(), 'FIELDS' => $fields, 'NEW' => $new, 'URL' => placeholder_url()));
     return array(lorem_globalise($out, NULL, '', true));
 }
Пример #7
0
 /**
  * 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));
 }
Пример #8
0
 /**
  * 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));
 }
Пример #9
0
 /**
  * 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));
 }
Пример #10
0
/**
 * Get a results browser.
 *
 * @return tempcode		Results browser.
 */
function placeholder_result_browser()
{
    $selectors = new ocp_tempcode();
    foreach (placeholder_array(11) as $k => $v) {
        $selectors->attach(do_lorem_template('RESULTS_BROWSER_PER_PAGE_OPTION', array('SELECTED' => true, 'VALUE' => strval($k), 'NAME' => $v)));
    }
    $per_page = do_lorem_template('RESULTS_BROWSER_PER_SCREEN', array('HIDDEN' => '', 'URL' => placeholder_url(), 'MAX_NAME' => lorem_word(), 'SELECTORS' => $selectors, 'RAND' => placeholder_random()));
    $part = new ocp_tempcode();
    $part->attach(do_lorem_template('RESULTS_BROWSER_CONTINUE_FIRST', array('TITLE' => lorem_phrase(), 'P' => placeholder_number(), 'FIRST_URL' => placeholder_url())));
    $part->attach(do_lorem_template('RESULTS_BROWSER_PREVIOUS_LINK', array('TITLE' => lorem_phrase(), 'P' => placeholder_date_raw(), 'URL' => placeholder_url())));
    $part->attach(do_lorem_template('RESULTS_BROWSER_NEXT_LINK', array('REL' => NULL, 'TITLE' => lorem_phrase(), 'NUM_PAGES' => placeholder_number(), 'P' => placeholder_number(), 'URL' => placeholder_url())));
    $part->attach(do_lorem_template('RESULTS_BROWSER_CONTINUE_LAST', array('TITLE' => lorem_phrase(), 'P' => placeholder_number(), 'LAST_URL' => placeholder_url())));
    $pages = new ocp_tempcode();
    foreach (placeholder_array() as $key => $value) {
        $pages->attach(do_lorem_template('FORM_SCREEN_INPUT_LIST_ENTRY', array('SELECTED' => false, 'DISABLED' => false, 'CLASS' => '', 'NAME' => strval($key), 'TEXT' => $value)));
    }
    $part->attach(do_lorem_template('RESULTS_BROWSER_LIST_PAGES', array('URL' => placeholder_url(), 'RAND' => placeholder_random(), 'HIDDEN' => '', 'START_NAME' => lorem_word(), 'LIST' => $pages)));
    return do_lorem_template('RESULTS_BROWSER_WRAP', array('TEXT_ID' => lorem_phrase(), 'PER_PAGE' => $per_page, 'PART' => $part));
}
Пример #11
0
 /**
  * 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));
 }
Пример #12
0
 /**
  * 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_import_results_screen()
 {
     $ops_nice = array();
     foreach (placeholder_array() as $v) {
         $ops_nice[] = array('OP' => lorem_word(), 'PARAM_A' => lorem_word_2(), 'PARAM_B' => lorem_word_2());
     }
     return array(lorem_globalise(do_lorem_template('XML_STORAGE_IMPORT_RESULTS_SCREEN', array('TITLE' => lorem_title(), 'OPS' => $ops_nice)), NULL, '', true));
 }
Пример #13
0
 /**
  * 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__list_catalogue_screen_products()
 {
     require_lang('catalogues');
     require_css('catalogues');
     $all_rating_criteria = array();
     $all_rating_criteria[] = array('TITLE' => lorem_word(), 'RATING' => make_string_tempcode("6"), 'TYPE' => lorem_word());
     $line = new ocp_tempcode();
     foreach (placeholder_array(1) as $v) {
         $line->attach(do_lorem_template('CATALOGUE_products_LINE', array('FIELD_0' => lorem_phrase(), 'FIELD_7_THUMB' => lorem_phrase(), 'RATING' => new ocp_tempcode(), 'FIELD_2' => placeholder_number(), 'ADD_TO_CART' => placeholder_url(), 'VIEW_URL' => placeholder_url(), 'GO_FOR_IT' => lorem_phrase())));
     }
     $entry = do_lorem_template('CATALOGUE_products_LINE_WRAP', array('CONTENT' => $line));
     return array(lorem_globalise(do_lorem_template('CATALOGUE_DEFAULT_CATEGORY_SCREEN', array('ID' => placeholder_random_id(), 'ADD_DATE_RAW' => placeholder_time(), 'TITLE' => lorem_title(), '_TITLE' => lorem_phrase(), 'TAGS' => '', 'CATALOGUE' => lorem_word_2(), 'BROWSER' => '', 'SORTING' => '', 'ADD_LINK' => placeholder_url(), 'ADD_CAT_URL' => placeholder_url(), 'EDIT_CAT_URL' => placeholder_url(), 'EDIT_CATALOGUE_URL' => placeholder_url(), 'ENTRIES' => $entry, 'SUBCATEGORIES' => '', 'DESCRIPTION' => lorem_sentence(), 'CART_LINK' => placeholder_url(), 'TREE' => lorem_phrase())), NULL, '', true));
 }
Пример #14
0
 /**
  * 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));
 }
Пример #15
0
 /**
  * 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__block_main_forum_news()
 {
     require_lang('news');
     //Create the 'NEWS_PIECE_SUMMARY' template value
     $out = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $out->attach(do_lorem_template('NEWS_PIECE_SUMMARY', array('TRUNCATE' => false, 'BLOG' => false, 'FIRSTTIME' => lorem_word(), 'LASTTIME' => lorem_word(), 'CLOSED' => lorem_word(), 'FIRSTUSERNAME' => lorem_word(), 'LASTUSERNAME' => lorem_word(), 'FIRSTMEMBERID' => lorem_word(), 'LASTMEMBERID' => lorem_word(), 'ID' => lorem_word(), 'FULL_URL' => placeholder_url(), 'SUBMITTER' => lorem_word(), 'DATE' => placeholder_time(), 'DATE_RAW' => placeholder_date_raw(), 'NEWS_TITLE' => lorem_word(), 'CATEGORY' => '', 'IMG' => '', 'AUTHOR' => lorem_word(), 'AUTHOR_URL' => placeholder_url(), 'NEWS' => lorem_paragraph())));
     }
     //Create the 'BLOCK_MAIN_FORUM_NEWS' with 'NEWS_PIECE_SUMMARY' as sub-template.
     return array(lorem_globalise(do_lorem_template('BLOCK_MAIN_FORUM_NEWS', array('TITLE' => lorem_word(), 'FORUM_NAME' => lorem_word_html(), 'CONTENT' => $out, 'BRIEF' => lorem_phrase(), 'ARCHIVE_URL' => placeholder_url(), 'SUBMIT_URL' => placeholder_url(), 'RSS_URL' => placeholder_url(), 'ATOM_URL' => placeholder_url())), NULL, '', true));
 }
Пример #16
0
 /**
  * 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__iotd_view_screen()
 {
     require_lang('ocf');
     require_lang('captcha');
     require_lang('trackbacks');
     $trackbacks = new ocp_tempcode();
     foreach (placeholder_array(1) as $k => $v) {
         $trackbacks->attach(do_lorem_template('TRACKBACK', array('ID' => placeholder_id(), 'TIME_RAW' => placeholder_date_raw(), 'TIME' => placeholder_date(), 'URL' => placeholder_url(), 'TITLE' => lorem_phrase(), 'EXCERPT' => lorem_paragraph(), 'NAME' => lorem_phrase())));
     }
     $trackback_details = do_lorem_template('TRACKBACK_WRAPPER', array('TRACKBACKS' => $trackbacks, 'TRACKBACK_PAGE' => placeholder_id(), 'TRACKBACK_ID' => placeholder_id(), 'TRACKBACK_TITLE' => lorem_phrase()));
     $rating_details = new ocp_tempcode();
     $review_titles = array();
     $review_titles[] = array('REVIEW_TITLE' => lorem_word(), 'REVIEW_RATING' => make_string_tempcode(float_format(10.0)));
     $comments = '';
     $form = do_lorem_template('COMMENTS_POSTING_FORM', array('JOIN_BITS' => lorem_phrase_html(), 'FIRST_POST_URL' => placeholder_url(), 'FIRST_POST' => lorem_paragraph_html(), 'TYPE' => 'downloads', 'ID' => placeholder_id(), 'REVIEW_RATING_CRITERIA' => $review_titles, 'USE_CAPTCHA' => true, 'GET_EMAIL' => false, 'EMAIL_OPTIONAL' => true, 'GET_TITLE' => true, 'POST_WARNING' => do_lang('POST_WARNING'), 'COMMENT_TEXT' => get_option('comment_text'), 'EM' => placeholder_emoticon_chooser(), 'DISPLAY' => 'block', 'COMMENT_URL' => placeholder_url(), 'TITLE' => lorem_word(), 'MAKE_POST' => true, 'CREATE_TICKET_MAKE_POST' => true));
     $comment_details = do_lorem_template('COMMENTS_WRAPPER', array('TYPE' => lorem_phrase(), 'ID' => placeholder_id(), 'REVIEW_RATING_CRITERIA' => $review_titles, 'AUTHORISED_FORUM_LINK' => placeholder_url(), 'FORM' => $form, 'COMMENTS' => $comments));
     return array(lorem_globalise(do_lorem_template('IOTD_VIEW_SCREEN', array('TITLE' => lorem_title(), 'SUBMITTER' => lorem_word_html(), 'I_TITLE' => lorem_phrase(), 'CAPTION' => lorem_phrase(), 'DATE_RAW' => placeholder_date_raw(), 'ADD_DATE_RAW' => placeholder_date_raw(), 'EDIT_DATE_RAW' => placeholder_date_raw(), 'DATE' => placeholder_time(), 'ADD_DATE' => placeholder_time(), 'EDIT_DATE' => placeholder_time(), 'VIEWS' => placeholder_number(), 'TRACKBACK_DETAILS' => $trackback_details, 'RATING_DETAILS' => $rating_details, 'COMMENT_DETAILS' => $comment_details, 'EDIT_URL' => placeholder_url(), 'URL' => placeholder_image_url())), NULL, '', true));
 }
Пример #17
0
 /**
  * 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__block_main_rss()
 {
     require_lang('news');
     require_css('news');
     $content = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $news_full = do_lorem_template('BLOCK_MAIN_RSS_FULL', array('RAND' => placeholder_number(), 'NEWS_FULL' => lorem_paragraph()));
         $tails = do_lorem_template('BLOCK_MAIN_RSS_LIST_FIRST', array('X' => lorem_phrase()));
         $tails->attach(do_lorem_template('BLOCK_MAIN_RSS_LIST_MIDDLE', array('X' => placeholder_url())));
         $tails->attach(do_lorem_template('BLOCK_MAIN_RSS_LIST_LAST', array('X' => placeholder_url())));
         $category = do_lorem_template('BLOCK_MAIN_RSS_CATEGORY', array('IMG' => placeholder_image_url(), 'CATEGORY' => lorem_phrase()));
         $category->attach(do_lorem_template('BLOCK_MAIN_RSS_CATEGORY_NO_IMG', array('CATEGORY' => lorem_phrase())));
         $_title = do_lorem_template('BLOCK_MAIN_RSS_TITLE', array('CATEGORY' => lorem_phrase(), 'TITLE' => lorem_phrase()));
         $__title = do_lorem_template('BLOCK_MAIN_RSS_FROM_TITLE', array('FEED_URL' => placeholder_url(), 'NEWS_TITLE' => lorem_phrase(), 'DATE' => placeholder_time()));
         $content->attach(do_lorem_template('BLOCK_MAIN_RSS_SUMMARY', array('FEED_URL' => placeholder_url(), 'NEWS_FULL' => $news_full, 'DATE' => placeholder_time(), 'TAILS' => $tails, 'AUTHOR' => lorem_phrase(), 'CATEGORY' => $category, 'FULL_URL' => placeholder_link(), 'FULL_URL_RAW' => placeholder_url(), 'NEWS_TITLE' => $__title, 'NEWS' => lorem_paragraph())));
     }
     return array(lorem_globalise(do_lorem_template('BLOCK_MAIN_RSS', array('FEED_URL' => placeholder_url(), 'TITLE' => lorem_phrase(), 'COPYRIGHT' => lorem_phrase(), 'AUTHOR' => lorem_phrase(), 'CONTENT' => $content)), NULL, '', true));
 }
Пример #18
0
 /**
  * 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__search_form_screen()
 {
     $options = new ocp_tempcode();
     foreach (placeholder_array() as $value) {
         $options->attach(do_lorem_template('SEARCH_FOR_SEARCH_DOMAIN_OPTION', array('NAME' => placeholder_random(), 'DISPLAY' => lorem_phrase(), 'SPECIAL' => lorem_phrase(), 'CHECKED' => lorem_phrase())));
     }
     $options->attach(do_lorem_template('SEARCH_FOR_SEARCH_DOMAIN_OPTION_LIST', array('NAME' => placeholder_random(), 'DISPLAY' => lorem_word(), 'SPECIAL' => placeholder_options(), 'CHECKED' => false)));
     $options->attach(do_lorem_template('SEARCH_FOR_SEARCH_DOMAIN_OPTION_TEXT', array('NAME' => placeholder_random(), 'DISPLAY' => lorem_word(), 'SPECIAL' => lorem_word(), 'CHECKED' => false)));
     $options->attach(do_lorem_template('SEARCH_FOR_SEARCH_DOMAIN_OPTION_TICK', array('NAME' => placeholder_random(), 'DISPLAY' => lorem_word(), 'SPECIAL' => lorem_word(), 'CHECKED' => false)));
     $specialisation = do_lorem_template('SEARCH_ADVANCED', array('AJAX' => lorem_phrase(), 'OPTIONS' => $options, 'TREE' => '', 'UNDERNEATH' => lorem_phrase()));
     $search_domains = new ocp_tempcode();
     foreach (placeholder_array() as $value) {
         $search_domains->attach(do_lorem_template('SEARCH_FOR_SEARCH_DOMAIN', array('ADVANCED_ONLY' => lorem_phrase(), 'CHECKED' => lorem_phrase(), 'OPTIONS' => placeholder_url(), 'LANG' => lorem_phrase(), 'NAME' => placeholder_random())));
     }
     $specialisation->attach(do_lorem_template('SEARCH_DOMAINS', array('SEARCH_DOMAINS' => $search_domains)));
     $result = new ocp_tempcode();
     $result->attach(do_lorem_template('SEARCH_RESULT', array('CONTENT' => lorem_paragraph_html())));
     $types_results = array();
     foreach (placeholder_array() as $i => $r) {
         $types_results[$i] = array('R' => placeholder_array());
     }
     $result->attach(do_lorem_template('SEARCH_RESULT_TABLE', array('HEADERS' => placeholder_array(), 'ROWS' => $types_results)));
     require_lang('catalogues');
     $result->attach(do_lorem_template('SEARCH_RESULT_CATALOGUE_ENTRIES', array('BUILDUP' => lorem_phrase(), 'NAME' => lorem_word(), 'TITLE' => lorem_word_2())));
     return array(lorem_globalise(do_lorem_template('SEARCH_FORM_SCREEN', array('SEARCH_TERM' => lorem_word_2(), 'NUM_RESULTS' => placeholder_number(), 'CAN_ORDER_BY_RATING' => false, 'EXTRA_SORT_FIELDS' => placeholder_array(0), 'USER_LABEL' => lorem_word(), 'DAYS_LABEL' => lorem_word(), 'BOOLEAN_SEARCH' => false, 'AND' => false, 'ONLY_TITLES' => true, 'DAYS' => placeholder_id(), 'SORT' => 'relevance', 'DIRECTION' => 'DESC', 'CONTENT' => lorem_phrase(), 'RESULTS' => NULL, 'RESULTS_BROWSER' => '', 'OLD_MYSQL' => false, 'TITLE' => lorem_title(), 'AUTHOR' => lorem_phrase(), 'SPECIALISATION' => $specialisation, 'URL' => placeholder_url())), NULL, '', true));
 }
Пример #19
0
 /**
  * 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));
 }
Пример #20
0
 /**
  * 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.
  *
  * @param  boolean			Whether to show for a has-voted-poll or not.
  * @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_topic_wrap($voted = false)
 {
     require_css('ocf');
     require_lang('ocf');
     require_lang('polls');
     $warning_details = do_lorem_template('WARNING_TABLE', array('WARNING' => lorem_phrase()));
     foreach (placeholder_array() as $k => $v) {
         $members_viewing = new ocp_tempcode();
         foreach (placeholder_array() as $k => $v) {
             $members_viewing->attach(do_lorem_template('OCF_USER_MEMBER', array('PROFILE_URL' => placeholder_url(), 'USERNAME' => lorem_word(), 'AT' => lorem_phrase(), 'COLOUR' => lorem_word())));
         }
         $results_browser = placeholder_result_browser();
         $quick_reply = do_lorem_template('COMMENTS_POSTING_FORM', array('JOIN_BITS' => lorem_phrase_html(), 'FIRST_POST' => lorem_paragraph_html(), 'USE_CAPTCHA' => false, 'GET_EMAIL' => false, 'EMAIL_OPTIONAL' => true, 'GET_TITLE' => false, 'POST_WARNING' => '', 'COMMENT_TEXT' => '', 'EM' => placeholder_emoticon_chooser(), 'EXPAND_TYPE' => 'expand', 'DISPLAY' => '', 'MORE_URL' => placeholder_url(), 'FIRST_POST_URL' => placeholder_url(), 'COMMENT_URL' => placeholder_url(), 'TITLE' => lorem_word(), 'MAKE_POST' => true, 'CREATE_TICKET_MAKE_POST' => true));
         $poll = new ocp_tempcode();
         $num_choices = do_lorem_template('PARAGRAPH', array('TEXT' => lorem_phrase(), 'CLASS' => lorem_word()));
         $private = $num_choices;
         if (!$voted) {
             $answers = new ocp_tempcode();
             $answer_tpl = new ocp_tempcode();
             foreach (placeholder_array() as $k => $v) {
                 $answer_tpl->attach(do_lorem_template('OCF_TOPIC_POLL_ANSWER_RADIO', array('REAL_BUTTON' => '', 'ID' => placeholder_random(), 'ANSWER' => lorem_phrase(), 'I' => placeholder_random())));
             }
             $answers->attach($answer_tpl);
             $answer_tpl = new ocp_tempcode();
             foreach (placeholder_array() as $k => $v) {
                 $answer_tpl->attach(do_lorem_template('OCF_TOPIC_POLL_ANSWER', array('REAL_BUTTON' => '', 'ID' => placeholder_random(), 'ANSWER' => lorem_phrase(), 'I' => placeholder_random())));
             }
             $answers->attach($answer_tpl);
             $button = do_lorem_template('OCF_TOPIC_POLL_BUTTON', array('RESULTS_URL' => placeholder_url()));
             $poll->attach(do_lorem_template('OCF_TOPIC_POLL', array('ID' => placeholder_random(), 'NUM_CHOICES' => $num_choices, 'PRIVATE' => $private, 'QUESTION' => lorem_phrase(), 'ANSWERS' => $answers, 'REAL_BUTTON' => '', 'BUTTON' => $button, 'VOTE_URL' => placeholder_url(), 'MINIMUM_SELECTIONS' => placeholder_number(), 'MAXIMUM_SELECTIONS' => placeholder_number())));
         } else {
             $answers = new ocp_tempcode();
             $answer_tpl = new ocp_tempcode();
             $answer_tpl->attach(do_lorem_template('OCF_TOPIC_POLL_ANSWER_RESULTS', array('ID' => placeholder_random(), 'NUM_VOTES' => '10', 'WIDTH' => '30', 'ANSWER' => lorem_phrase(), 'I' => placeholder_random())));
             $answer_tpl->attach(do_lorem_template('OCF_TOPIC_POLL_ANSWER_RESULTS', array('ID' => placeholder_random(), 'NUM_VOTES' => '15', 'WIDTH' => '45', 'ANSWER' => lorem_phrase(), 'I' => placeholder_random())));
             $answer_tpl->attach(do_lorem_template('OCF_TOPIC_POLL_ANSWER_RESULTS', array('ID' => placeholder_random(), 'NUM_VOTES' => '20', 'WIDTH' => '60', 'ANSWER' => lorem_phrase(), 'I' => placeholder_random())));
             $answers->attach($answer_tpl);
             $button = new ocp_tempcode();
             $poll->attach(do_lorem_template('OCF_TOPIC_POLL_VIEW_RESULTS', array('ID' => placeholder_random(), 'NUM_CHOICES' => $num_choices, 'PRIVATE' => $private, 'QUESTION' => lorem_phrase(), 'ANSWERS' => $answers, 'REAL_BUTTON' => '', 'BUTTON' => $button, 'VOTE_URL' => placeholder_url(), 'MINIMUM_SELECTIONS' => placeholder_number(), 'MAXIMUM_SELECTIONS' => placeholder_number())));
         }
         //buttons
         $buttons = new ocp_tempcode();
         foreach (placeholder_array(1) as $k => $v) {
             $buttons->attach(do_lorem_template('SCREEN_BUTTON', array('REL' => lorem_word(), 'IMMEDIATE' => NULL, 'URL' => placeholder_url(), 'IMG' => placeholder_img_code('page'), 'TITLE' => lorem_word())));
         }
         //posts
         $posts = new ocp_tempcode();
         $first_unread = do_lorem_template('OCF_TOPIC_FIRST_UNREAD');
         $last_edited = do_lorem_template('OCF_TOPIC_POST_LAST_EDITED', array('LAST_EDIT_DATE_RAW' => placeholder_date_raw(), 'LAST_EDIT_DATE' => placeholder_time(), 'LAST_EDIT_PROFILE_URL' => placeholder_url(), 'LAST_EDIT_USERNAME' => lorem_word()));
         $custom_fields = do_lorem_template('OCF_TOPIC_POST_CUSTOM_FIELD', array('NAME' => lorem_phrase(), 'VALUE' => placeholder_ip()));
         $poster_details = do_lorem_template('OCF_GUEST_DETAILS', array('CUSTOM_FIELDS' => $custom_fields));
         $poster_details_mem = do_lorem_template('OCF_POSTER_DETAILS', array('AVATAR_URL' => placeholder_url(), 'ONLINE' => false, 'POSTS' => placeholder_number(), 'POINTS' => placeholder_number(), 'JOIN_DATE_RAW' => placeholder_date_raw(), 'POSTER' => lorem_phrase(), 'JOIN_DATE' => placeholder_time(), 'PRIMARY_GROUP_NAME' => lorem_phrase(), 'CUSTOM_FIELDS' => lorem_phrase(), 'CUSTOM_FIELDS_FULL' => lorem_phrase()));
         $poster = do_lorem_template('OCF_POSTER_GUEST', array('IP_LINK' => placeholder_url(), 'POSTER_DETAILS' => $poster_details, 'POSTER_USERNAME' => lorem_word()));
         $poster->attach(do_lorem_template('OCF_POSTER_MEMBER', array('ID' => placeholder_random(), 'POSTER_DETAILS' => $poster_details_mem, 'PROFILE_URL' => placeholder_url(), 'POSTER_USERNAME' => lorem_word(), 'OTHER_USERGROUPS' => array(lorem_word_html()), 'POSTER' => placeholder_number(), 'HIGHLIGHT_NAME' => lorem_word_html(), 'ONLINE' => false)));
         $post_avatar = do_lorem_template('OCF_TOPIC_POST_AVATAR', array('AVATAR' => placeholder_image_url()));
         $rank_images = do_lorem_template('OCF_RANK_IMAGE', array('GROUP_NAME' => lorem_phrase(), 'USERNAME' => lorem_word(), 'IMG' => placeholder_img_code(''), 'IS_LEADER' => lorem_phrase()));
         //buttons
         $buttons = new ocp_tempcode();
         foreach (placeholder_array(1) as $k => $v) {
             $buttons->attach(do_lorem_template('SCREEN_ITEM_BUTTON', array('REL' => lorem_word(), 'IMMEDIATE' => '', 'URL' => placeholder_url(), 'IMG' => placeholder_img_code('pageitem'), 'TITLE' => lorem_word())));
         }
         $posts->attach(do_lorem_template('OCF_TOPIC_POST', array('ID' => placeholder_random(), 'TOPIC_FIRST_POST_ID' => placeholder_random(), 'TOPIC_FIRST_POSTER' => lorem_phrase(), 'POST_ID' => placeholder_random(), 'URL' => placeholder_url(), 'CLASS' => lorem_phrase(), 'EMPHASIS' => lorem_phrase(), 'FIRST_UNREAD' => $first_unread, 'POSTER_TITLE' => lorem_word(), 'POST_TITLE' => lorem_word(), 'POST_DATE_RAW' => placeholder_date_raw(), 'POST_DATE' => placeholder_time(), 'POST' => lorem_phrase(), 'TOPIC_ID' => placeholder_id(), 'LAST_EDITED_RAW' => lorem_phrase(), 'LAST_EDITED' => $last_edited, 'POSTER_ID' => placeholder_id(), 'POSTER' => $poster, 'POSTER_DETAILS' => $poster_details, 'POST_AVATAR' => $post_avatar, 'RANK_IMAGES' => $rank_images, 'BUTTONS' => $buttons, 'SIGNATURE' => lorem_phrase(), 'UNVALIDATED' => lorem_phrase(), 'DESCRIPTION' => lorem_phrase())));
     }
     $topic_tpl = do_lorem_template('OCF_TOPIC_WRAP', array('THREADED' => false, 'ID' => placeholder_id(), 'TITLE' => lorem_phrase(), 'WARNING_DETAILS' => $warning_details, 'MAX' => lorem_phrase(), 'ACTION_URL' => placeholder_url(), 'NUM_GUESTS' => placeholder_number(), 'NUM_MEMBERS' => placeholder_number(), 'MEMBERS_VIEWING' => $members_viewing, 'RESULTS_BROWSER' => $results_browser, 'MODERATOR_ACTIONS' => placeholder_options(), 'MARKED_POST_ACTIONS' => placeholder_options(), 'QUICK_REPLY' => $quick_reply, 'TREE' => lorem_phrase(), 'POLL' => $poll, 'SCREEN_BUTTONS' => $buttons, 'POSTS' => $posts, 'MAY_CHANGE_MAX' => lorem_word(), 'LAST_POSTER' => placeholder_random()));
     //Wrap the content
     $notifications = do_lorem_template('OCF_NOTIFICATION', array('ADDITIONAL_POSTS' => placeholder_number(), '_ADDITIONAL_POSTS' => lorem_phrase(), 'ID' => placeholder_random(), 'U_TITLE' => lorem_word(), 'IGNORE_URL' => placeholder_url(), 'IGNORE_URL_2' => placeholder_url(), 'REPLY_URL' => placeholder_url(), 'TOPIC_URL' => placeholder_url(), 'POST' => lorem_phrase(), 'DESCRIPTION' => lorem_paragraph_html(), 'TIME' => placeholder_time(), 'TIME_RAW' => placeholder_date_raw(), 'BY' => lorem_phrase(), 'PROFILE_LINK' => placeholder_url(), 'TYPE' => lorem_phrase()));
     $mem_link = new ocp_tempcode();
     foreach (placeholder_array() as $v) {
         $mem_link->attach(do_lorem_template('OCF_MEMBER_LINK', array('URL' => placeholder_url(), 'page' => lorem_phrase(), 'id' => placeholder_random(), 'LANG' => lorem_phrase())));
     }
     $head = new ocp_tempcode();
     $head->attach(do_lorem_template('OCF_MEMBER_BAR', array('AVATAR' => placeholder_image_url(), 'PROFILE_URL' => placeholder_url(), 'USERNAME' => lorem_word(), 'LOGOUT_URL' => placeholder_url(), 'NUM_POINTS_ADVANCE' => placeholder_number(), 'NUM_POINTS' => placeholder_number(), 'NUM_POSTS' => placeholder_number(), 'PRIMARY_GROUP' => lorem_phrase(), 'LAST_VISIT_DATE_RAW' => placeholder_date_raw(), 'LAST_VISIT_DATE' => placeholder_time(), 'MEMBER_LINKS' => $mem_link, 'PERSONAL_TOPIC_URL' => placeholder_url(), 'NEW_POSTS_URL' => placeholder_url(), 'UNREAD_TOPICS_URL' => placeholder_url(), 'RECENTLY_READ_URL' => placeholder_url(), 'PT_EXTRA' => lorem_phrase(), 'NEW_TOPICS' => lorem_phrase(), 'NEW_POSTS' => lorem_phrase(), 'INLINE_PERSONAL_POSTS_URL' => placeholder_url(), 'MAX_AVATAR_HEIGHT' => placeholder_number())));
     //$head->attach(do_lorem_template('OCF_GUEST_BAR',array('NAVIGATION'=>lorem_phrase(),'LOGIN_URL'=>placeholder_url(),'JOIN_LINK'=>placeholder_url(),'FULL_LINK'=>placeholder_url())));
     $birthdays = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $birthdays->attach(do_lorem_template('OCF_BIRTHDAY_LINK', array('AGE' => placeholder_number(), 'PROFILE_URL' => placeholder_url(), 'USERNAME' => lorem_word(), 'BIRTHDAY_LINK' => placeholder_url())));
     }
     $birthdays = do_lorem_template('OCF_BIRTHDAYS', array('BIRTHDAYS' => $birthdays));
     $foot = do_lorem_template('OCF_STATS', array('NEWEST_MEMBER_PROFILE_URL' => placeholder_url(), 'NEWEST_MEMBER_USERNAME' => lorem_word(), 'NUM_MEMBERS' => placeholder_number(), 'NUM_TOPICS' => placeholder_number(), 'NUM_POSTS' => placeholder_number(), 'BIRTHDAYS' => $birthdays, 'USERS_ONLINE' => lorem_phrase(), 'USERS_ONLINE_URL' => placeholder_url(), 'page' => lorem_phrase(), 'GID' => placeholder_random(), 'GCOLOUR' => lorem_word(), 'GTITLE' => lorem_word(), 'GROUPS' => placeholder_array()));
     return array(lorem_globalise(do_lorem_template('OCF_WRAPPER', array('TITLE' => lorem_title(), 'NOTIFICATIONS' => $notifications, 'HEAD' => $head, 'FOOT' => $foot, 'CONTENT' => $topic_tpl)), NULL, '', true));
 }
Пример #21
0
 /**
  * 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.
  *
  * @param  string			View type.
  * @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__standardbox($type)
 {
     $links = array();
     $meta = array();
     foreach (placeholder_array() as $k => $v) {
         $links[] = placeholder_link();
     }
     foreach (placeholder_array() as $k => $v) {
         $meta[] = array('KEY' => strval($k), 'VALUE' => $v);
     }
     return array(lorem_globalise(do_lorem_template('STANDARDBOX_' . $type, array('CONTENT' => lorem_sentence(), 'LINKS' => $links, 'META' => $meta, 'OPTIONS' => placeholder_array(), 'WIDTH' => 'auto', 'HEIGHT' => 'auto', 'TITLE' => lorem_phrase(), 'TOPLINK' => placeholder_link(), 'EXPAND' => true)), NULL, '', true));
 }
Пример #23
0
 /**
  * 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__broken_lang_strings()
 {
     require_lang('cleanup');
     return array(lorem_globalise(do_lorem_template('BROKEN_LANG_STRINGS', array('MISSING_LANG_STRINGS' => placeholder_array(), 'FUSED_LANG_STRINGS' => placeholder_array(), 'ORPHANED_LANG_STRINGS' => placeholder_array())), NULL, '', true));
 }
Пример #24
0
 /**
  * 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__netlink()
 {
     $content = new ocp_tempcode();
     $url = placeholder_url();
     foreach (placeholder_array() as $key => $value) {
         $content->attach(form_input_list_entry($url->evaluate(), false, lorem_word()));
     }
     return array(lorem_globalise(do_lorem_template('NETLINK', array('CONTENT' => $content)), NULL, '', true));
 }
Пример #25
0
 /**
  * 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__translate_screen()
 {
     require_lang('lang');
     $lines = '';
     foreach (placeholder_array() as $value) {
         $temp = do_lorem_template('TRANSLATE_LINE', array('TRANSLATE_AUTO' => $value, 'DESCRIPTION' => lorem_sentence(), 'NAME' => placeholder_random(), 'OLD' => str_replace('\\n', chr(10), $value), 'CURRENT' => $value, 'ACTIONS' => new ocp_tempcode()));
         $lines .= $temp->evaluate();
     }
     return array(lorem_globalise(do_lorem_template('TRANSLATE_SCREEN', array('PAGE' => lorem_phrase(), 'INTERTRANS' => lorem_phrase(), 'LANG' => fallback_lang(), 'LINES' => $lines, 'TITLE' => lorem_title(), 'URL' => placeholder_url())), NULL, '', true));
 }
Пример #26
0
 /**
  * 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_screen()
 {
     $items = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $item = do_lorem_template('POINTSTORE_ITEM', array('ITEM' => lorem_phrase()));
         $items->attach($item);
     }
     $pointstore_mail_pop3_link = do_lorem_template('POINTSTORE_MPOP3_LINK', array('POP3_URL' => placeholder_url()));
     $pointstore_mail_forwarding_link = do_lorem_template('POINTSTORE_MFORWARDING_LINK', array('FORWARDING_URL' => placeholder_url()));
     $mail_tpl = do_lorem_template('POINTSTORE_MAIL', array('POINTSTORE_MAIL_POP3_LINK' => $pointstore_mail_pop3_link, 'POINTSTORE_MAIL_FORWARDING_LINK' => $pointstore_mail_forwarding_link));
     $items->attach(do_lorem_template('POINTSTORE_ITEM', array('ITEM' => $mail_tpl)));
     return array(lorem_globalise(do_lorem_template('POINTSTORE_SCREEN', array('TITLE' => lorem_title(), 'ITEMS' => $items, 'POINTS_LEFT' => placeholder_number(), 'USERNAME' => lorem_phrase())), NULL, '', true));
 }
Пример #27
0
 /**
  * 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_view_group_screen()
 {
     $_primary_members = placeholder_array();
     $primary_members = new ocp_tempcode();
     $_secondary_members = new ocp_tempcode();
     $secondary_members = new ocp_tempcode();
     $prospective_members = new ocp_tempcode();
     $_prospective_members = new ocp_tempcode();
     foreach ($_primary_members as $i => $primary_member) {
         $temp = do_lorem_template('OCF_VIEW_GROUP_MEMBER', array('NAME' => $primary_member, 'URL' => placeholder_url()));
         //results_entry starts
         $cells = do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => $temp), NULL, false);
         $entries = do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false);
         //results_entry ends
         $primary_members->attach($entries);
     }
     $fields_title = do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => lorem_word()));
     //results_table
     $primary_members = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $primary_members, 'MESSAGE' => '', 'SORT' => '', 'BROWSER' => '', 'WIDTHS' => array(placeholder_number())), NULL, false);
     $temp = new ocp_tempcode();
     foreach (placeholder_array() as $i => $v) {
         $temp = do_lorem_template('OCF_VIEW_GROUP_MEMBER_SECONDARY', array('URL' => placeholder_url(), 'REMOVE_URL' => placeholder_url(), 'NAME' => $v));
         $cells = do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => $temp), NULL, false);
         /*	$cells->attach(do_lorem_template('RESULTS_TABLE_FIELD',array('VALUE'=>strval($i)),NULL,false));
         			$cells->attach(do_lorem_template('RESULTS_TABLE_FIELD',array('VALUE'=>strval($i)),NULL,false));*/
         $entries = do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false);
         $_secondary_members->attach($entries);
     }
     $fields_title = do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => lorem_word()));
     /*$fields_title->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE',array('VALUE'=>lorem_word_2())));
     		$fields_title->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE',array('VALUE'=>lorem_word_2())));*/
     //results_table
     $secondary_members = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $_secondary_members, 'MESSAGE' => '', 'SORT' => '', 'BROWSER' => '', 'WIDTHS' => array(placeholder_number())), NULL, false);
     foreach (placeholder_array() as $i => $v) {
         $temp = do_lorem_template('OCF_VIEW_GROUP_MEMBER_PROSPECTIVE', array('ACCEPT_URL' => placeholder_url(), 'DECLINE_URL' => placeholder_url(), 'NAME' => lorem_word(), 'URL' => placeholder_url()));
         $cells = do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => $temp), NULL, false);
         //$cells->attach(do_lorem_template('RESULTS_TABLE_FIELD',array('VALUE'=>strval($i)),NULL,false));
         $entries = do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false);
         $_prospective_members->attach($entries);
     }
     $fields_title = do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => lorem_word()));
     //$fields_title->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE',array('VALUE'=>lorem_word_2())));
     //results_table
     $prospective_members = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $_prospective_members, 'MESSAGE' => '', 'SORT' => '', 'BROWSER' => '', 'WIDTHS' => array(placeholder_number())), NULL, false);
     return array(lorem_globalise(do_lorem_template('OCF_VIEW_GROUP_SCREEN', array('GROUP_NAME' => lorem_phrase(), 'ID' => placeholder_id(), 'FORUM' => '', 'CLUB' => false, 'EDIT_URL' => placeholder_url(), 'TITLE' => lorem_title(), 'LEADER' => lorem_phrase(), 'NAME' => lorem_word(), 'PROMOTION_INFO' => new ocp_tempcode(), 'ADD_URL' => placeholder_url(), 'APPLY_URL' => placeholder_url(), 'APPLY_TEXT' => lorem_sentence(), 'PRIMARY_MEMBERS' => $primary_members, 'SECONDARY_MEMBERS' => $secondary_members, 'PROSPECTIVE_MEMBERS' => $prospective_members)), NULL, '', true));
 }
Пример #28
0
 /**
  * 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__stats_screen_iscreen()
 {
     $graph_regionality = do_lorem_template('STATS_GRAPH', array('GRAPH' => placeholder_url(), 'TITLE' => lorem_phrase(), 'TEXT' => lorem_sentence(), 'KEYWORDS_SHARE' => lorem_word(), 'DESCRIPTION_KEYWORDS_SHARE' => lorem_word()));
     $graph_keywords = $graph_regionality;
     //results_entry starts
     $cells = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => $v)));
     }
     $fields_title = $cells;
     $fields = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $cells = new ocp_tempcode();
         foreach (placeholder_array() as $k => $v) {
             $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => lorem_word()), NULL, false, 'RESULTS_TABLE_FIELD'));
         }
         $fields->attach(do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false, 'RESULTS_TABLE_ENTRY'));
     }
     //results_entry ends
     $selectors = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $selectors->attach(do_lorem_template('RESULTS_BROWSER_SORTER', array('SELECTED' => '', 'NAME' => lorem_word(), 'VALUE' => lorem_word())));
     }
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $list_regionality = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $fields, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => lorem_word(), 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     $selectors = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $selectors->attach(do_lorem_template('RESULTS_BROWSER_SORTER', array('SELECTED' => '', 'NAME' => lorem_word(), 'VALUE' => lorem_word())));
     }
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $list_views = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $fields, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => lorem_word(), 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     $selectors = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $selectors->attach(do_lorem_template('RESULTS_BROWSER_SORTER', array('SELECTED' => '', 'NAME' => lorem_word(), 'VALUE' => lorem_word())));
     }
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $list_keywords = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $fields, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => lorem_word(), 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     //results_table ends
     return array(lorem_globalise(do_lorem_template('STATS_SCREEN_ISCREEN', array('TITLE' => lorem_title(), 'GRAPH_REGIONALITY' => $graph_regionality, 'STATS_REGIONALITY' => $list_regionality, 'STATS_VIEWS' => $list_views, 'GRAPH_KEYWORDS' => $graph_keywords, 'STATS_KEYWORDS' => $list_keywords, 'GRAPH_VIEWS_HOURLY' => lorem_phrase(), 'STATS_VIEWS_HOURLY' => lorem_phrase(), 'GRAPH_VIEWS_DAILY' => lorem_phrase(), 'STATS_VIEWS_DAILY' => lorem_phrase(), 'GRAPH_VIEWS_WEEKLY' => lorem_phrase(), 'STATS_VIEWS_WEEKLY' => lorem_phrase(), 'GRAPH_VIEWS_MONTHLY' => lorem_phrase(), 'STATS_VIEWS_MONTHLY' => lorem_phrase(), 'GRAPH_IP' => placeholder_ip(), 'STATS_IP' => placeholder_ip(), 'GRAPH_BROWSER' => lorem_phrase(), 'STATS_BROWSER' => lorem_phrase(), 'GRAPH_REFERRER' => lorem_phrase(), 'STATS_REFERRER' => lorem_phrase(), 'GRAPH_OS' => lorem_phrase(), 'STATS_OS' => lorem_phrase())), NULL, '', true));
 }
Пример #29
0
 /**
  * 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__block_helper_block_group()
 {
     $links = new ocp_tempcode();
     foreach (placeholder_array() as $v) {
         $links->attach(do_lorem_template('BLOCK_HELPER_BLOCK_CHOICE', array('USAGE' => placeholder_array(), 'DESCRIPTION' => lorem_paragraph_html(), 'URL' => placeholder_url(), 'LINK_CAPTION' => lorem_phrase())));
     }
     return array(lorem_globalise(do_lorem_template('BLOCK_HELPER_BLOCK_GROUP', array('IMG' => 'themes/default/images/bigicons/add_one.png', 'TITLE' => lorem_phrase(), 'LINKS' => $links)), NULL, '', true));
 }
Пример #30
0
 /**
  * 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__field_map_entry_screen()
 {
     $tags = do_lorem_template('TAGS', array('TAGS' => placeholder_array(), 'TYPE' => NULL, 'LINK_FULLSCOPE' => placeholder_url(), 'TAG' => lorem_word()));
     $fields = new ocp_tempcode();
     foreach (placeholder_array() as $v) {
         $fields->attach(do_lorem_template('CATALOGUE_DEFAULT_ENTRY_FIELD', array('ENTRYID' => placeholder_id(), 'CATALOGUE' => lorem_phrase(), 'TYPE' => lorem_word(), 'FIELD' => lorem_word(), 'FIELDID' => placeholder_id(), '_FIELDID' => placeholder_id(), 'FIELDTYPE' => lorem_word(), 'VALUE_PLAIN' => lorem_phrase(), 'VALUE' => lorem_phrase()), NULL, false, 'CATALOGUE_DEFAULT_ENTRY_FIELD'));
     }
     $entry = do_lorem_template('CATALOGUE_DEFAULT_ENTRY', array('FIELDS' => $fields, 'VIEW_URL' => placeholder_url(), 'FIELD_0' => lorem_word()));
     return array(lorem_globalise(do_lorem_template('CATALOGUE_DEFAULT_ENTRY_SCREEN', array('TITLE' => lorem_title(), 'WARNINGS' => '', 'ENTRY' => $entry, 'EDIT_URL' => placeholder_url(), '_EDIT_LINK' => placeholder_link(), 'TRACKBACK_DETAILS' => lorem_phrase(), 'RATING_DETAILS' => lorem_phrase(), 'COMMENT_DETAILS' => lorem_phrase(), 'ADD_DATE' => placeholder_time(), 'EDIT_DATE_RAW' => placeholder_date_raw(), 'VIEWS' => placeholder_number(), 'TAGS' => $tags, 'SUBMITTER' => placeholder_id(), 'FIELD_1' => lorem_word())), NULL, '', true));
 }