Example #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__ecom_outstanding_invoices_screen()
 {
     $invoices = array();
     foreach (placeholder_array() as $invoice) {
         $invoices[] = array('INVOICE_TITLE' => lorem_word(), 'PROFILE_URL' => placeholder_url(), 'USERNAME' => lorem_word_2(), 'ID' => placeholder_id(), 'STATE' => lorem_phrase(), 'AMOUNT' => placeholder_number(), 'TIME' => placeholder_time(), 'NOTE' => lorem_phrase(), 'TYPE_CODE' => lorem_phrase());
     }
     return array(lorem_globalise(do_lorem_template('ECOM_OUTSTANDING_INVOICES_SCREEN', array('TITLE' => lorem_title(), 'FROM' => lorem_phrase(), 'INVOICES' => $invoices)), NULL, '', true));
 }
Example #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__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));
 }
Example #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__theme_manage_screen()
 {
     require_lang('zones');
     $themes = new ocp_tempcode();
     foreach (placeholder_array() as $value) {
         $themes->attach(do_lorem_template('THEME_MANAGE', array('THEME_USAGE' => lorem_phrase(), 'SEED' => '123456', 'DATE' => placeholder_time(), 'RAW_DATE' => placeholder_date_raw(), 'NAME' => $value, 'DESCRIPTION' => lorem_paragraph_html(), 'AUTHOR' => lorem_phrase(), 'TITLE' => lorem_phrase(), 'CSS_URL' => placeholder_url(), 'TEMPLATES_URL' => placeholder_url(), 'IMAGES_URL' => placeholder_url(), 'DELETABLE' => placeholder_table(), 'EDIT_URL' => placeholder_url(), 'DELETE_URL' => placeholder_url(), 'SCREEN_PREVIEW_URL' => placeholder_url())));
     }
     $zones = array();
     foreach (placeholder_array() as $v) {
         $zones[] = array('0' => lorem_word(), '1' => lorem_word_2());
     }
     return array(lorem_globalise(do_lorem_template('THEME_MANAGE_SCREEN', array('TITLE' => lorem_title(), 'THEMES' => $themes, 'THEME_DEFAULT_REASON' => lorem_phrase(), 'ZONES' => $zones)), NULL, '', true));
 }
Example #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__awarded_content()
 {
     return array(lorem_globalise(do_lorem_template('AWARDED_CONTENT', array('AWARDEE_PROFILE_URL' => placeholder_url(), 'AWARDEE' => lorem_phrase(), 'AWARDEE_USERNAME' => lorem_word(), 'RAW_AWARD_DATE' => placeholder_time(), 'AWARD_DATE' => placeholder_time(), 'CONTENT' => lorem_phrase())), NULL, '', true));
 }
Example #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__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));
 }
Example #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__occle_rss()
 {
     $content = do_lorem_template('OCCLE_RSS_ITEM', array('FULL_URL' => placeholder_url(), 'NEWS_TITLE' => lorem_phrase(), 'DATE' => placeholder_time(), 'SUMMARY' => lorem_paragraph()));
     return array(lorem_globalise(do_lorem_template('OCCLE_RSS', array('TITLE' => lorem_phrase(), 'CONTENT' => $content)), NULL, '', true));
 }
Example #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__administrative__lookup_screen()
 {
     $inner_ip_list = new ocp_tempcode();
     foreach (placeholder_array() as $value) {
         $inner_ip_list->attach(do_lorem_template('LOOKUP_IP_LIST_ENTRY', array('LOOKUP_URL' => placeholder_url(), 'DATE' => placeholder_time(), '_DATE' => placeholder_time(), 'IP' => placeholder_ip(), 'BANNED' => do_lang_tempcode('YES'), 'UNIQID' => placeholder_random())));
     }
     $group = do_lorem_template('LOOKUP_IP_LIST_GROUP', array('BANNED' => do_lang_tempcode('YES'), 'MASK' => placeholder_ip(), 'GROUP' => $inner_ip_list, 'OPEN_DEFAULT' => true, 'UNIQID' => placeholder_random()));
     return array(lorem_globalise(do_lorem_template('LOOKUP_SCREEN', array('TITLE' => lorem_title(), 'ALERTS' => lorem_phrase(), 'STATS' => lorem_phrase(), 'IP_LIST' => $group, 'IP_BANNED' => lorem_phrase(), 'SUBMITTER_BANNED' => lorem_phrase(), 'MEMBER_BANNED' => lorem_phrase(), 'ID' => placeholder_id(), 'IP' => placeholder_ip(), 'NAME' => lorem_word(), 'SEARCH_URL' => placeholder_url(), 'AUTHOR_URL' => placeholder_url(), 'POINTS_URL' => placeholder_url(), 'PROFILE_URL' => placeholder_url(), 'ACTION_LOG_URL' => placeholder_url())), NULL, '', true));
 }
Example #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__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));
 }
Example #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__ocf_members_online_screen()
 {
     $rows = new ocp_tempcode();
     foreach (placeholder_array() as $key => $value) {
         $rows->attach(do_lorem_template('OCF_MEMBER_ONLINE_ROW', array('IP' => placeholder_ip(), 'AT_URL' => placeholder_url(), 'LOCATION' => lorem_word(), 'MEMBER' => placeholder_link(), 'TIME' => placeholder_time())));
     }
     return array(lorem_globalise(do_lorem_template('OCF_MEMBERS_ONLINE_SCREEN', array('TITLE' => lorem_title(), 'ROWS' => $rows)), NULL, '', true));
 }
Example #10
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__gallery_regular_mode_screen()
 {
     $tags = do_lorem_template('TAGS', array('LINK_FULLSCOPE' => lorem_word(), 'TAG' => lorem_word(), 'TAGS' => placeholder_array(), 'TYPE' => NULL));
     $results_browser = placeholder_result_browser();
     $entry = new ocp_tempcode();
     $map = array('TITLE' => lorem_phrase(), 'DESCRIPTION' => lorem_paragraph(), 'TYPE' => 'image', 'ID' => placeholder_id(), 'FILE_SIZE' => lorem_word(), 'SUBMITTER' => lorem_word(), 'FULL_URL' => placeholder_url(), 'THUMB_URL' => placeholder_url(), 'CAT' => lorem_word(), 'THUMB' => placeholder_image(), 'VIEW_URL' => placeholder_url(), 'EDIT_DATE_RAW' => placeholder_time(), 'ADD_DATE_RAW' => placeholder_time(), 'VIEWS' => placeholder_number());
     $entry = do_lorem_template('GALLERY_IMAGE', $map);
     $entries = new ocp_tempcode();
     $entries->attach(do_lorem_template('GALLERY_ENTRY_WRAP', array('ENTRY' => $entry) + $map));
     $video_details = do_lorem_template('GALLERY_VIDEO_INFO', array('HEIGHT' => placeholder_number(), 'WIDTH' => placeholder_number(), 'LENGTH' => placeholder_number()));
     $map = array('VIDEO_DETAILS' => $video_details, 'TITLE' => lorem_phrase(), 'DESCRIPTION' => lorem_phrase(), 'ADD_DATE_RAW' => placeholder_time(), 'EDIT_DATE_RAW' => placeholder_time(), 'VIEWS' => placeholder_number(), 'VIEW_URL' => placeholder_url(), 'SUBMITTER' => placeholder_id(), 'ID' => placeholder_id(), 'THUMB' => placeholder_image());
     $entry = do_lorem_template('GALLERY_VIDEO', $map);
     $entries->attach(do_lorem_template('GALLERY_ENTRY_WRAP', array('ENTRY' => $entry) + $map));
     $children = do_lorem_template('GALLERY_SUBGALLERY_WRAP', array('CONTENT' => do_lorem_template('GALLERY_SUBGALLERY', array('THUMB' => '', 'NUM_VIDEOS' => lorem_word(), 'NUM_IMAGES' => lorem_word(), 'NUM_CHILDREN' => lorem_word(), 'ID' => lorem_word(), 'LANG' => lorem_word(), 'ADD_DATE_RAW' => placeholder_date_raw(), 'ADD_DATE' => lorem_word(), 'MEMBER_INFO' => lorem_paragraph(), 'URL' => placeholder_url(), 'PIC' => placeholder_image_url(), 'TITLE' => lorem_phrase(), 'COMMENTS' => lorem_paragraph()))));
     $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('GALLERY_REGULAR_MODE_SCREEN', array('_TITLE' => lorem_phrase(), 'RESULTS_BROWSER' => $results_browser, 'TAGS' => $tags, 'CAT' => lorem_word(), 'MEMBER_DETAILS' => lorem_sentence_html(), 'RATING_DETAILS' => lorem_sentence_html(), 'COMMENT_DETAILS' => $comment_details, 'ADD_GALLERY_URL' => placeholder_url(), 'EDIT_URL' => placeholder_url(), 'CHILDREN' => $children, 'TITLE' => lorem_title(), 'DESCRIPTION' => lorem_paragraph_html(), 'IMAGE_URL' => placeholder_url(), 'VIDEO_URL' => placeholder_url(), 'MAY_DOWNLOAD' => lorem_phrase(), 'ENTRIES' => $entries, 'SORTING' => 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__screen_title()
 {
     require_lang('awards');
     return array(lorem_globalise(do_lorem_template('SCREEN_TITLE', array('TITLE' => lorem_phrase(), 'HELP_URL' => placeholder_url(), 'HELP_TERM' => lorem_word(), 'AWARDS' => array(array('AWARD_TYPE' => lorem_title(), 'AWARD_TIMESTAMP' => placeholder_time())))), NULL, '', true));
 }
Example #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__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));
 }
Example #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__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));
 }
Example #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__opml_wrapper()
 {
     require_lang('rss');
     return array(lorem_globalise(do_lorem_template('OPML_WRAPPER', array('FEEDS' => placeholder_array(), 'ABOUT' => lorem_phrase(), 'DATE' => placeholder_time(), 'TITLE' => lorem_phrase(), 'MODE' => lorem_word())), NULL, '', true));
 }
Example #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__comcode_ins()
 {
     return array(lorem_globalise(do_lorem_template('COMCODE_INS', array('CONTENT' => lorem_phrase(), 'CITE' => lorem_word(), 'DATETIME' => placeholder_time())), NULL, '', true));
 }
Example #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__chat_lobby_screen()
 {
     $chat_sound = do_lorem_template('CHAT_SOUND', array('SOUND_EFFECTS' => placeholder_array(), 'KEY' => lorem_word(), 'VALUE' => lorem_word_2()));
     $im_area_template = do_lorem_template('CHAT_LOBBY_IM_AREA', array('MESSAGES_PHP' => find_script('messages'), 'ROOM_ID' => '__room_id__'));
     $im_participant_template = do_lorem_template('CHAT_LOBBY_IM_PARTICIPANT', array('PROFILE_URL' => placeholder_url(), 'ID' => '__id__', 'ROOM_ID' => '__room_id__', 'USERNAME' => '__username__', 'ONLINE' => '__online__', 'AVATAR_URL' => '__avatar_url__', 'MAKE_BUDDY_URL' => placeholder_url(), 'BLOCK_MEMBER_URL' => placeholder_url()));
     $fields = new ocp_tempcode();
     foreach (placeholder_array() as $key => $room) {
         $users = array('1' => 'Guest', '2' => 'admin');
         $usernames = new ocp_tempcode();
         foreach ($users as $user) {
             $usernames->attach(do_lorem_template('OCF_USER_MEMBER', array('PROFILE_URL' => placeholder_url(), 'USERNAME' => $user, 'COLOUR' => 'black', 'AT' => lorem_phrase())));
         }
         $room_link = do_lorem_template('CHAT_ROOM_LINK', array('PRIVATE' => true, 'ID' => strval($key), 'NAME' => $room, 'USERNAMES' => $usernames, 'URL' => placeholder_url()));
         $fields->attach($room_link);
     }
     $buddies = array();
     foreach (placeholder_array() as $key => $buddy) {
         $buddies[] = array('DATE_AND_TIME_RAW' => placeholder_time(), 'DATE_AND_TIME' => placeholder_time(), 'MEMBER_PROFILE_LINK' => placeholder_url(), 'MEMBER_ID' => strval($key), 'USERNAME' => lorem_word(), 'ONLINE_TEXT' => lorem_phrase());
     }
     return array(lorem_globalise(do_lorem_template('CHAT_LOBBY_SCREEN', array('MESSAGE' => lorem_phrase(), 'CHAT_SOUND' => $chat_sound, 'IM_PARTICIPANT_TEMPLATE' => $im_participant_template, 'IM_AREA_TEMPLATE' => $im_area_template, 'BUDDIES' => $buddies, 'CAN_IM' => true, 'ONLINE_URL' => placeholder_url(), 'URL_ADD_BUDDY' => placeholder_url(), 'URL_REMOVE_BUDDIES' => placeholder_url(), 'TITLE' => lorem_title(), 'ROOMS' => $fields, 'PRIVATE_ROOM' => placeholder_link(), 'ROOM_URL' => placeholder_url(), 'PASSWORD_HASH' => placeholder_random(), 'MOD_LINK' => placeholder_link(), 'BLOCKING_LINK' => placeholder_link(), 'SETEFFECTS_LINK' => placeholder_link(), 'ADD_ROOM_URL' => placeholder_url())), NULL, '', true));
 }
Example #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));
 }
Example #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__quiz_archive_screen()
 {
     $content_tests = new ocp_tempcode();
     $content_competitions = new ocp_tempcode();
     $content_surveys = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $link = do_lorem_template('QUIZ_LINK', array('TYPE' => lorem_word(), 'DATE' => placeholder_time(), 'URL' => placeholder_url(), 'NAME' => lorem_phrase(), 'START_TEXT' => lorem_phrase(), 'TIMEOUT' => placeholder_number(), 'REDO_TIME' => placeholder_number(), '_TYPE' => lorem_word(), 'POINTS' => placeholder_id()));
     }
     $content_surveys->attach($link);
     $content_tests->attach($link);
     $content_competitions->attach($link);
     $browse = do_lorem_template('NEXT_BROWSER_BROWSE_NEXT', array('NEXT_LINK' => placeholder_url(), 'PREVIOUS_LINK' => placeholder_url(), 'PAGE_NUM' => placeholder_number(), 'NUM_PAGES' => placeholder_number()));
     return array(lorem_globalise(do_lorem_template('QUIZ_ARCHIVE_SCREEN', array('TITLE' => lorem_title(), 'CONTENT_SURVEYS' => $content_surveys, 'CONTENT_COMPETITIONS' => $content_competitions, 'CONTENT_TESTS' => $content_tests, 'BROWSE' => $browse)), NULL, '', true));
 }
Example #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__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));
 }
Example #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));
 }
 /**
  * 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__full_table_screen()
 {
     $table_rows = new ocp_tempcode();
     foreach (placeholder_array() as $row) {
         $actions = do_lorem_template('TABLE_TABLE_ACTION_DELETE_ENTRY', array('GET' => true, 'HIDDEN' => '', 'NAME' => lorem_phrase(), 'URL' => placeholder_url()));
         $actions->attach(do_lorem_template('TABLE_TABLE_ACTION_INSTALL_ENTRY', array('GET' => true, 'HIDDEN' => '', 'NAME' => lorem_phrase(), 'URL' => placeholder_url())));
         $actions->attach(do_lorem_template('TABLE_TABLE_ACTION_UPGRADE_ENTRY', array('GET' => true, 'HIDDEN' => '', 'NAME' => lorem_phrase(), 'URL' => placeholder_url())));
         $actions->attach(do_lorem_template('TABLE_TABLE_ACTION_REINSTALL_ENTRY', array('GET' => true, 'HIDDEN' => '', 'NAME' => lorem_phrase(), 'URL' => placeholder_url())));
         $select = do_lorem_template('TABLE_TABLE_ROW_CELL_SELECT', array('LABEL' => lorem_phrase(), 'NAME' => placeholder_random_id(), 'LIST' => placeholder_options()));
         $values = array(lorem_word(), lorem_word(), lorem_word(), placeholder_time(), $select, $actions);
         $cells = new ocp_tempcode();
         foreach ($values as $value) {
             $cells->attach(do_lorem_template('TABLE_TABLE_ROW_CELL', array('VALUE' => $value)));
         }
         $tpl = do_lorem_template('TABLE_TABLE_ROW', array('CELLS' => $cells));
         $table_rows->attach($tpl);
     }
     $values = array(lorem_word(), lorem_word_2(), lorem_word(), lorem_word_2(), lorem_word(), lorem_word());
     $cells = new ocp_tempcode();
     foreach ($values as $value) {
         $cells->attach(do_lorem_template('TABLE_TABLE_HEADER_ROW_CELL', array('VALUE' => $value)));
     }
     $header_row = do_lorem_template('TABLE_TABLE_HEADER_ROW', array('CELLS' => $cells));
     $field_rows = do_lorem_template('TABLE_TABLE', array('HEADER_ROW' => $header_row, 'ROWS' => $table_rows));
     $return = do_lorem_template('FORM_GROUPED', array('TEXT' => "", 'URL' => "#", 'FIELD_GROUPS' => $field_rows, 'SUBMIT_NAME' => lorem_word_2()));
     return array(lorem_globalise($return, NULL, '', true));
 }
Example #22
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));
 }
 /**
  * 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__trackback_xml_listing()
 {
     $trackbacks = placeholder_array();
     $content = new ocp_tempcode();
     foreach ($trackbacks as $value) {
         $content->attach(do_lorem_template('TRACKBACK', array('ID' => placeholder_id(), 'TIME_RAW' => placeholder_time(), 'TIME' => placeholder_time(), 'URL' => placeholder_url(), 'TITLE' => lorem_word(), 'EXCERPT' => '', 'NAME' => lorem_word())));
     }
     $content->attach(do_lorem_template('TRACKBACK_XML_LISTING', array('ITEMS' => lorem_phrase(), 'LINK_PAGE' => lorem_word(), 'LINK_ID' => placeholder_id())));
     return array(lorem_globalise($content, NULL, '', true));
 }
Example #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__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));
 }
Example #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__messaging_message_screen()
 {
     $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('MESSAGING_MESSAGE_SCREEN', array('TITLE' => lorem_title(), 'MESSAGE_TITLE' => lorem_phrase(), 'MESSAGE' => lorem_phrase(), 'BY' => lorem_phrase(), 'WHOS_READ' => placeholder_array(), 'COMMENT_DETAILS' => $comment_details, 'TAKE_RESPONSIBILITY_URL' => placeholder_url(), 'RESPONSIBLE' => lorem_phrase(), 'USERNAME' => lorem_word(), 'DATE' => placeholder_time(), 'MEMBER_LINK' => placeholder_url())), NULL, '', true));
 }
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__show_revision_history()
 {
     $revision_history = do_lorem_template('REVISION_HISTORY_LINE', array('RENDERED_DIFF' => lorem_phrase(), 'EDITOR' => lorem_phrase(), 'DATE' => placeholder_time(), 'DATE_RAW' => placeholder_date_raw(), 'RESTORE_URL' => placeholder_url(), 'URL' => placeholder_url(), 'SIZE' => placeholder_filesize()));
     return array(lorem_globalise(do_lorem_template('REVISION_HISTORY_WRAP', array('CONTENT' => $revision_history)), NULL, '', true));
 }
Example #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__news_full_screen()
 {
     require_lang('news');
     $tags = array();
     foreach (placeholder_array() as $k => $v) {
         $tags[] = array('TAG' => lorem_word(), 'LINK_LIMITEDSCOPE' => placeholder_url(), 'LINK_FULLSCOPE' => placeholder_url());
     }
     $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('NEWS_FULL_SCREEN', array('ID' => placeholder_id(), 'CATEGORY_ID' => placeholder_id(), 'BLOG' => TRUE, '_TITLE' => lorem_phrase(), 'TAGS' => do_lorem_template('TAGS', array('TAGS' => $tags, 'TYPE' => '')), 'CATEGORIES' => placeholder_array(), 'NEWSLETTER_URL' => addon_installed('newsletter') ? placeholder_url() : '', 'ADD_DATE_RAW' => placeholder_date_raw(), 'EDIT_DATE_RAW' => '', 'SUBMITTER' => placeholder_id(), 'CATEGORY' => lorem_word(), 'IMG' => placeholder_image(), 'TITLE' => lorem_title(), 'VIEWS' => "3", 'COMMENT_DETAILS' => $comment_details, 'RATING_DETAILS' => lorem_sentence(), 'TRACKBACK_DETAILS' => lorem_sentence(), 'DATE' => placeholder_time(), 'AUTHOR' => lorem_word(), 'AUTHOR_URL' => placeholder_url(), 'NEWS_FULL' => lorem_paragraph(), 'NEWS_FULL_PLAIN' => lorem_sentence(), 'EDIT_URL' => placeholder_url(), 'ARCHIVE_URL' => placeholder_url(), 'SUBMIT_URL' => placeholder_url(), '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__administrative__block_main_staff_checklist()
 {
     $_status = do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM_STATUS_1');
     $info = do_lang_tempcode('DUE_TIME', placeholder_number(), placeholder_number());
     $dates = do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM', array('URL' => placeholder_url(), 'STATUS' => $_status, 'CONTACT_US_MESSAGING' => lorem_phrase(), 'TASK' => lorem_phrase(), 'INFO' => $info, 'NUM_QUEUE' => placeholder_id()));
     $status = do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM_STATUS_0', array('ORDER_STATUS' => 'not_completed'));
     $url = build_url(array('page' => 'admin_orders', 'type' => 'show_orders', 'filter' => 'undispatched'), get_module_zone('admin_orders'));
     $no_times = do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM', array('URL' => placeholder_url(), 'STATUS' => $status, 'TASK' => lorem_phrase(), 'CONTACT_US_MESSAGING' => lorem_phrase(), 'INFO' => lorem_phrase(), 'NUM_QUEUE' => placeholder_id()));
     $todo = do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM', array('URL' => placeholder_url(), 'STATUS' => do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM_STATUS_1'), 'CONTACT_US_MESSAGING' => lorem_phrase(), 'TASK' => lorem_phrase(), 'INFO' => lorem_phrase(), 'NUM_QUEUE' => placeholder_id()));
     $custom_task = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $custom_task->attach(do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_CUSTOM_TASK', array('TASKDONE' => 'checklist0', 'ADD_TIME' => placeholder_time(), 'RECURINTERVAL' => '', 'ID' => placeholder_id(), 'TASKTITLE' => lorem_word_2())));
     }
     $custom_task->attach(do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM_STATUS_NA', array()));
     return array(lorem_globalise(do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST', array('URL' => placeholder_url(), 'NOTES' => lorem_phrase(), 'CUSTOMTASKS' => $custom_task, 'DATES' => $dates, 'NO_TIMES' => $no_times, 'TODO_COUNTS' => $todo)), NULL, '', true));
 }
Example #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__poll_screen()
 {
     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 = '';
     $comments = '';
     $comment_details = do_lorem_template('COMMENTS_WRAPPER', array('TYPE' => lorem_word(), 'ID' => placeholder_id(), 'REVIEW_RATING_CRITERIA' => array(), 'AUTHORISED_FORUM_LINK' => placeholder_url(), 'FORM' => placeholder_form(), 'COMMENTS' => $comments));
     $poll_details = do_lorem_template('BLOCK_MAIN_POLL_IFRAME', array('RAND' => placeholder_random(), 'PARAM' => "-1", 'ZONE' => lorem_word()));
     return array(lorem_globalise(do_lorem_template('POLL_SCREEN', array('TITLE' => lorem_title(), 'DATE_RAW' => placeholder_date_raw(), 'ADD_DATE_RAW' => placeholder_date_raw(), 'EDIT_DATE_RAW' => placeholder_date_raw(), 'DATE' => placeholder_time(), 'ADD_DATE' => placeholder_date(), 'EDIT_DATE' => placeholder_date(), 'VIEWS' => placeholder_number(), 'TRACKBACK_DETAILS' => $trackback_details, 'RATING_DETAILS' => $rating_details, 'COMMENT_DETAILS' => $comment_details, 'EDIT_URL' => placeholder_url(), 'POLL_DETAILS' => $poll_details, 'ID' => placeholder_id())), NULL, '', true));
 }