コード例 #1
0
ファイル: core_menus.php プロジェクト: erico-deh/ocPortal
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__menu_editor_screen()
 {
     $branch = do_lorem_template('MENU_EDITOR_BRANCH', array('CLICKABLE_SECTIONS' => 'true', 'I' => placeholder_id(), 'CHILD_BRANCH_TEMPLATE' => '', 'CHILD_BRANCHES' => ''));
     $child_branch_template = do_lorem_template('MENU_EDITOR_BRANCH_WRAP', array('DISPLAY' => 'display: block', 'CLICKABLE_SECTIONS' => true, 'ORDER' => 'replace_me_with_order', 'PARENT' => 'replace_me_with_parent', 'BRANCH_TYPE' => '0', 'NEW_WINDOW' => '0', 'CHECK_PERMS' => '0', 'CAPTION_LONG' => '', 'CAPTION' => '', 'URL' => '', 'PAGE_ONLY' => '', 'THEME_IMG_CODE' => '', 'I' => placeholder_id(), 'BRANCH' => $branch));
     $root_branch = do_lorem_template('MENU_EDITOR_BRANCH', array('CLICKABLE_SECTIONS' => 'true', 'CHILD_BRANCH_TEMPLATE' => $child_branch_template, 'CHILD_BRANCHES' => '', 'I' => ''));
     return array(lorem_globalise(do_lorem_template('MENU_EDITOR_SCREEN', array('ALL_MENUS' => placeholder_array(), 'MENU_NAME' => lorem_word(), 'DELETE_URL' => placeholder_url(), 'PING_URL' => placeholder_url(), 'WARNING_DETAILS' => '', 'FIELDS_TEMPLATE' => placeholder_fields(), 'HIGHEST_ORDER' => lorem_phrase(), 'URL' => placeholder_url(), 'CHILD_BRANCH_TEMPLATE' => $child_branch_template, 'ROOT_BRANCH' => $root_branch, 'TITLE' => lorem_title())), NULL, '', true));
 }
コード例 #2
0
ファイル: syndication.php プロジェクト: erico-deh/ocPortal
 /**
  * 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__rss_wrapper()
 {
     $comments = do_lorem_template('RSS_ENTRY_COMMENTS', array('COMMENT_URL' => placeholder_url(), 'ID' => placeholder_id()));
     $content = do_lorem_template('RSS_ABBR', array());
     $content->attach(do_lorem_template('RSS_ENTRY', array('TITLE' => lorem_phrase(), 'SUMMARY' => lorem_paragraph(), 'VIEW_URL' => placeholder_url(), 'AUTHOR' => lorem_word(), 'CATEGORY' => lorem_word(), 'IF_COMMENTS' => $comments, 'DATE' => placeholder_date())));
     $cloud = do_lorem_template('RSS_CLOUD', array('TYPE' => 'news', 'PORT' => '80', 'LOCAL_BASE_URL' => placeholder_url()));
     return array(lorem_globalise(do_lorem_template('RSS_WRAPPER', array('MODE' => 'rss', 'MODE_NICE' => lorem_word(), 'COPYRIGHT' => lorem_phrase(), 'ABOUT' => lorem_paragraph(), 'RSS_CLOUD' => $cloud, 'LOGO_URL' => placeholder_image_url(), 'DATE' => placeholder_date(), 'CONTENT' => $content)), NULL, '', true));
 }
コード例 #3
0
ファイル: unvalidated.php プロジェクト: erico-deh/ocPortal
 /**
  * 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__validation_request()
 {
     require_lang('unvalidated');
     return array(lorem_globalise(do_lorem_template('VALIDATION_REQUEST', array('USERNAME' => lorem_word(), 'TYPE' => lorem_phrase(), 'ID' => placeholder_id(), 'URL' => placeholder_url())), NULL, '', true));
 }
コード例 #4
0
ファイル: weather.php プロジェクト: erico-deh/ocPortal
 /**
  * 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_weather()
 {
     return array(lorem_globalise(do_lorem_template('BLOCK_SIDE_WEATHER', array('TITLE' => lorem_phrase(), 'LOC_CODE' => placeholder_id(), 'IMAGE' => placeholder_image_url(), 'COND' => lorem_sentence(), 'FORECAST' => lorem_sentence())), 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__comcode_page_screen()
 {
     return array(lorem_globalise(do_lorem_template('COMCODE_PAGE_SCREEN', array('BEING_INCLUDED' => false, 'IS_PANEL' => false, 'SUBMITTER' => placeholder_id(), 'TAGS' => lorem_word_html(), 'WARNING_DETAILS' => '', 'EDIT_DATE_RAW' => placeholder_date_raw(), 'SHOW_AS_EDIT' => lorem_phrase(), 'CONTENT' => lorem_phrase(), 'EDIT_URL' => placeholder_url(), 'ADD_CHILD_URL' => placeholder_url(), 'NAME' => lorem_word())), NULL, '', true));
 }
コード例 #6
0
ファイル: cedi.php プロジェクト: erico-deh/ocPortal
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__cedi_page_screen()
 {
     require_lang('ocf');
     $extra = new ocp_tempcode();
     $extra = do_lorem_template('SCREEN_ITEM_BUTTON', array('REL' => 'edit', 'IMMEDIATE' => false, 'URL' => placeholder_url(), 'TITLE' => do_lang_tempcode('EDIT'), 'IMG' => 'edit'));
     $extra->attach(do_lorem_template('SCREEN_ITEM_BUTTON', array('REL' => 'move', 'IMMEDIATE' => false, 'URL' => placeholder_url(), 'TITLE' => do_lang_tempcode('MOVE'), 'IMG' => 'move')));
     $all_rating_criteria = array();
     $all_rating_criteria[] = array('TITLE' => lorem_word(), 'RATING' => make_string_tempcode("6"), 'NUM_RATINGS' => placeholder_number(), 'TYPE' => lorem_word());
     $rating_inside = do_lorem_template('CEDI_RATING_FORM', array('LIKES' => true, 'CONTENT_TYPE' => 'seedy', 'ID' => placeholder_id(), 'URL' => placeholder_url(), 'ALL_RATING_CRITERIA' => $all_rating_criteria, 'OVERALL_NUM_RATINGS' => placeholder_number(), 'HAS_RATINGS' => true, 'SIMPLISTIC' => true, 'ERROR' => ''));
     $rating_details = do_lorem_template('CEDI_RATING', array('OVERALL_NUM_RATINGS' => placeholder_number(), 'RATING_FORM' => $rating_inside, 'ALL_RATING_CRITERIA' => $all_rating_criteria, 'HAS_RATINGS' => true));
     $posts = do_lorem_template('CEDI_POST', array('INCLUDE_EXPANSION' => lorem_phrase(), 'UNVALIDATED' => do_lang('UNVALIDATED'), 'STAFF_ACCESS' => lorem_phrase(), 'EXP_IMG' => placeholder_img_code(), 'RATE_URL' => placeholder_url(), 'RATING' => $rating_details, 'ID' => placeholder_id(), 'POSTER_URL' => placeholder_url(), 'POSTER' => lorem_phrase(), 'POST_DATE_RAW' => placeholder_date(), 'POST_DATE' => placeholder_date(), 'POST' => lorem_phrase(), 'BUTTONS' => $extra));
     $_child = do_lorem_template('CEDI_SUBCATEGORY_CHILDREN', array('MY_CHILD_POSTS' => lorem_phrase(), 'MY_CHILD_CHILDREN' => lorem_phrase()));
     $child = do_lorem_template('CEDI_SUBCATEGORY_LINK', array('URL' => placeholder_url(), 'CHILD' => $_child, 'SUP' => lorem_phrase()));
     return array(lorem_globalise(do_lorem_template('CEDI_PAGE_SCREEN', array('TAGS' => lorem_word_html(), 'HIDE_POSTS' => placeholder_id(), 'ID' => placeholder_id(), 'VIEWS' => placeholder_number(), 'STAFF_ACCESS' => '1', 'DESCRIPTION' => lorem_paragraph_html(), 'TITLE' => lorem_title(), 'CHILDREN' => $child, 'POSTS' => $posts, 'NUM_POSTS' => placeholder_number(), 'MENU' => placeholder_button())), NULL, '', true));
 }
コード例 #7
0
ファイル: shopping.php プロジェクト: erico-deh/ocPortal
 /**
  * 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_products()
 {
     require_lang('shopping');
     require_lang('catalogues');
     require_lang('ecommerce');
     require_css('catalogues');
     require_lang('catalogues');
     $fields = new ocp_tempcode();
     $fields_table = new ocp_tempcode();
     foreach (placeholder_array() as $v) {
         $_field = do_lorem_template('CATALOGUE_products_ENTRY_FIELD', array('ENTRYID' => placeholder_random_id(), 'CATALOGUE' => lorem_phrase(), 'TYPE' => lorem_word(), 'FIELD' => lorem_word(), 'FIELDID' => placeholder_random_id(), '_FIELDID' => placeholder_random_id(), 'FIELDTYPE' => lorem_word(), 'VALUE_PLAIN' => lorem_phrase(), 'VALUE' => lorem_phrase()), NULL, false, 'CATALOGUE_DEFAULT_ENTRY_FIELD');
         $fields->attach($_field);
     }
     $cart_link = do_lorem_template('CATALOGUE_ENTRY_ADD_TO_CART', array('OUT_OF_STOCK' => lorem_phrase(), 'ACTION_URL' => placeholder_url(), 'PRODUCT_ID' => placeholder_id(), 'ALLOW_OPTOUT_TAX' => lorem_phrase(), 'PURCHASE_ACTION_URL' => placeholder_url(), 'CART_URL' => placeholder_url()));
     $cart_logo = do_lorem_template('CART_LOGO', array('URL' => placeholder_url(), 'TITLE' => lorem_phrase()), NULL, false);
     $rating_inside = new ocp_tempcode();
     $entry = do_lorem_template('CATALOGUE_products_ENTRY_EMBED', array('FIELD_0' => lorem_phrase(), 'FIELD_1' => lorem_phrase(), 'PRODUCT_CODE' => placeholder_id(), 'FIELD_9' => lorem_phrase(), 'FIELD_2' => placeholder_number(), 'PRICE' => placeholder_number(), 'RATING' => $rating_inside, 'FIELD_7_THUMB' => placeholder_image(), 'FIELD_7_PLAIN' => placeholder_url(), 'MAP_TABLE' => placeholder_table(), 'CART_BUTTONS' => $cart_link, 'CART_LINK' => $cart_logo, 'FIELDS' => $fields, 'URL' => placeholder_url(), 'VIEW_URL' => placeholder_url()));
     return array(lorem_globalise($entry, NULL, '', true));
 }
コード例 #8
0
ファイル: catalogues.php プロジェクト: erico-deh/ocPortal
 /**
  * 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_catalogue_embed_screen()
 {
     $entries = new ocp_tempcode();
     $entries->attach(do_lorem_template('CATALOGUE_DEFAULT_ENTRY_EMBED', array('FIELDS' => placeholder_fields(), 'VIEW_URL' => placeholder_url(), 'FIELD_0' => lorem_word())));
     return array(lorem_globalise(do_lorem_template('CATALOGUE_DEFAULT_CATEGORY_EMBED', array('ENTRIES' => $entries, 'ROOT' => placeholder_id())), NULL, '', true));
 }
コード例 #9
0
ファイル: filedump.php プロジェクト: erico-deh/ocPortal
 /**
  * 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__file_dump_screen()
 {
     return array(lorem_globalise(do_lorem_template('FILE_DUMP_SCREEN', array('TITLE' => lorem_title(), 'FILES' => placeholder_table(), 'UPLOAD_FORM' => placeholder_form(), 'CREATE_FOLDER_FORM' => placeholder_form(), 'PLACE' => placeholder_id())), NULL, '', true));
 }
コード例 #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__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));
 }
コード例 #11
0
ファイル: news.php プロジェクト: erico-deh/ocPortal
 /**
  * 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));
 }
コード例 #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__block_main_contact_us()
 {
     $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('BLOCK_MAIN_CONTACT_US', array('COMMENT_DETAILS' => $comment_details, 'MESSAGE' => lorem_phrase(), 'NOTIFICATIONS_ENABLED' => lorem_phrase(), 'TYPE' => placeholder_id(), 'FIRST_POST' => lorem_paragraph_html())), 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__rating_display_shared()
 {
     $all_rating_criteria = array();
     foreach (placeholder_array() as $i => $v) {
         $all_rating_criteria[] = array('TITLE' => lorem_word(), 'RATING' => '3', 'OVERALL_NUM_RATINGS' => placeholder_number(), 'TYPE' => lorem_word() . strval($i));
     }
     $rating_form = do_lorem_template('RATING_FORM', array('CONTENT_TYPE' => lorem_word(), 'ID' => placeholder_id(), 'URL' => placeholder_url(), 'ALL_RATING_CRITERIA' => $all_rating_criteria, 'HAS_RATINGS' => true, 'SIMPLISTIC' => false, 'ERROR' => '', 'LIKES' => true));
     return array(lorem_globalise(do_lorem_template('RATING_DISPLAY_SHARED', array('CONTENT_TYPE' => lorem_word(), 'ID' => placeholder_id(), 'ALL_RATING_CRITERIA' => $all_rating_criteria, 'HAS_RATINGS' => true, 'NUM_RATINGS' => placeholder_number(), 'OVERALL_NUM_RATINGS' => placeholder_number(), 'RATING_FORM' => $rating_form, 'ERROR' => '', 'LIKES' => false)), NULL, '', true));
 }
コード例 #14
0
ファイル: bookmarks.php プロジェクト: erico-deh/ocPortal
 /**
  * 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__bookmarks_screen()
 {
     require_lang('zones');
     $bookmarks = array(array('CAPTION' => lorem_word(), 'ID' => placeholder_id(), 'FOLDER' => lorem_word_2(), 'PAGE_LINK' => placeholder_url()));
     return array(lorem_globalise(do_lorem_template('BOOKMARKS_SCREEN', array('TITLE' => lorem_title(), 'FORM_URL' => placeholder_url(), 'FORM' => placeholder_form(), 'BOOKMARKS' => $bookmarks)), 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__result_table_screen_2()
 {
     //results_table starts
     //results_entry starts
     $array = placeholder_array();
     $cells = new ocp_tempcode();
     foreach ($array as $k => $v) {
         if ($k == 1) {
             $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => $v)));
         } else {
             $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE_SORTABLE', array('VALUE' => $v, 'SORT_URL_DESC' => placeholder_url(), 'SORT_DESC_SELECTED' => lorem_word(), 'SORT_ASC_SELECTED' => lorem_word(), 'SORT_URL_ASC' => placeholder_url())));
         }
     }
     $fields_title = $cells;
     $order_entries = new ocp_tempcode();
     foreach ($array as $k1 => $v) {
         $cells = new ocp_tempcode();
         foreach ($array as $k2 => $v) {
             $tick = do_lorem_template('RESULTS_TABLE_TICK', array('ID' => placeholder_id() . '_' . strval($k1) . '_' . strval($k2)));
             $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => $tick), NULL, false, 'RESULTS_TABLE_FIELD'));
         }
         $order_entries->attach(do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false, 'RESULTS_TABLE_ENTRY'));
     }
     //results_entry ends
     $selectors = new ocp_tempcode();
     $sortable = NULL;
     foreach ($array as $k => $v) {
         $selectors->attach(do_lorem_template('RESULTS_BROWSER_SORTER', array('SELECTED' => '', 'NAME' => $v, 'VALUE' => $v)));
     }
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     //results_browser starts
     $selectors = new ocp_tempcode();
     foreach (placeholder_array() 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' => 'max', 'SELECTORS' => $selectors, 'RAND' => placeholder_random()));
     $part = new ocp_tempcode();
     $part->attach(do_lorem_template('RESULTS_BROWSER_CONTINUE', array()));
     $part->attach(do_lorem_template('RESULTS_BROWSER_PREVIOUS', array()));
     foreach (placeholder_array() as $k => $v) {
         $j = $k + 1;
         if ($k == 0) {
             $part->attach(do_lorem_template('RESULTS_BROWSER_PAGE_NUMBER', array('P' => "{$j}")));
         } else {
             $part->attach(do_lorem_template('RESULTS_BROWSER_PAGE_NUMBER_LINK', array('P' => "{$j}", 'URL' => placeholder_url(), 'TITLE' => lorem_phrase())));
         }
     }
     $part->attach(do_lorem_template('RESULTS_BROWSER_NEXT', array()));
     $part->attach(do_lorem_template('RESULTS_BROWSER_CONTINUE_LAST', array('TITLE' => lorem_phrase(), 'P' => placeholder_number(), 'LAST_URL' => placeholder_url())));
     $part->attach(do_lorem_template('RESULTS_BROWSER_LIST_PAGES', array('URL' => placeholder_url(), 'RAND' => placeholder_random(), 'HIDDEN' => '', 'START_NAME' => 'start', 'LIST' => placeholder_options())));
     $results_browser = do_lorem_template('RESULTS_BROWSER_WRAP', array('TEXT_ID' => lorem_phrase(), 'PER_PAGE' => $per_page, 'PART' => $part));
     //results_browser ends
     $results_table = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $order_entries, 'MESSAGE' => '', 'SORT' => $sort, 'BROWSER' => $results_browser, 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     //results_table ends
     $table = do_lorem_template('RESULTS_TABLE_SCREEN', array('TITLE' => lorem_title(), 'RESULTS_TABLE' => $results_table));
     return array(lorem_globalise($table, NULL, '', true));
 }
コード例 #16
0
ファイル: core_ocf.php プロジェクト: erico-deh/ocPortal
 /**
  * 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));
 }
コード例 #17
0
ファイル: themewizard.php プロジェクト: erico-deh/ocPortal
 /**
  * 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__themewizard_2_screen()
 {
     require_lang('themes');
     return array(lorem_globalise(do_lorem_template('THEMEWIZARD_2_SCREEN', array('SOURCE_THEME' => 'default', 'ALGORITHM' => 'equations', 'RED' => placeholder_id(), 'GREEN' => placeholder_id(), 'BLUE' => placeholder_id(), 'SEED' => lorem_word(), 'DARK' => lorem_word_2(), 'DOMINANT' => lorem_word(), 'LD' => lorem_phrase(), 'TITLE' => lorem_title(), 'CHANGE_LINK' => placeholder_url(), 'STAGE3_LINK' => placeholder_url())), NULL, '', true));
 }
コード例 #18
0
ファイル: chat.php プロジェクト: erico-deh/ocPortal
 /**
  * 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_sitewide_im_popup()
 {
     $im_area_template = do_lorem_template('CHAT_LOBBY_IM_AREA', array('MESSAGES_PHP' => find_script('messages'), 'ROOM_ID' => placeholder_id()));
     return array(lorem_globalise(do_lorem_template('CHAT_SITEWIDE_IM_POPUP', array('CONTENT' => $im_area_template)), NULL, '', true));
 }
コード例 #19
0
ファイル: jwplayer.php プロジェクト: erico-deh/ocPortal
 /**
  * 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__attachment_flv()
 {
     return array(lorem_globalise(do_lorem_template('ATTACHMENT_FLV', array('SCRIPT' => placeholder_javascript(), 'ID' => placeholder_id(), 'A_WIDTH' => placeholder_number(), 'A_HEIGHT' => placeholder_number(), 'A_DESCRIPTION' => lorem_paragraph_html(), 'SUP_PARAMS' => placeholder_blank(), 'FORUM_DB_BIN' => placeholder_blank(), 'MIME_TYPE' => lorem_word(), 'A_ORIGINAL_FILENAME' => lorem_phrase(), 'A_URL' => placeholder_url())), NULL, '', true));
 }
コード例 #20
0
ファイル: ecommerce.php プロジェクト: erico-deh/ocPortal
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__purchase_wizard_stage_pay()
 {
     return array(lorem_globalise(do_lorem_template('PURCHASE_WIZARD_STAGE_PAY', array('LOGOS' => placeholder_image(), 'TRANSACTION_BUTTON' => placeholder_button(), 'CURRENCY' => placeholder_number(), 'ITEM_NAME' => lorem_word(), 'TITLE' => lorem_phrase(), 'LENGTH' => "3", 'LENGTH_UNITS' => "\$", 'PURCHASE_ID' => placeholder_id(), 'PRICE' => "123.45")), 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__category_list()
 {
     $cat_entry = new ocp_tempcode();
     foreach (placeholder_array() as $key => $values) {
         $cat_entry->attach(do_lorem_template('CATEGORY_ENTRY', array('ID' => placeholder_id(), 'NAME_FIELD' => $values, 'AJAX_EDIT_URL' => placeholder_url(), 'URL' => placeholder_url(), 'REP_IMAGE' => placeholder_image(), 'CHILDREN' => lorem_phrase(), 'NAME' => lorem_word(), 'NAME_PLAIN' => lorem_word_html(), 'NUM_CHILDREN' => '3', 'NUM_ENTRIES' => '2', 'NUM_CHILDREN_RECURSIVE' => '3', 'NUM_ENTRIES_DIRECT' => '2')));
     }
     return array(lorem_globalise(do_lorem_template('CATEGORY_LIST', array('CONTENT' => $cat_entry)), NULL, '', true));
 }
コード例 #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__global()
 {
     $out = new ocp_tempcode();
     $out->attach(do_lorem_template('HEADER', array('VERSION_NUMBER' => lorem_phrase(), 'CHARSET' => 'ISO-8859-1', 'HEADER_TEXT' => lorem_phrase(), 'DESCRIPTION' => lorem_paragraph(), 'KEYWORDS' => lorem_phrase(), 'SELF_URL' => placeholder_url(), 'REFRESH' => '', 'LOGOURL' => placeholder_image_url(), 'SHOW_TOP' => true)));
     $out->attach(do_lorem_template('GLOBAL', array('HELPER_PANEL_TUTORIAL' => lorem_word(), 'HELPER_PANEL_HTML' => lorem_sentence_html(), 'HELPER_PANEL_TEXT' => lorem_phrase(), 'HELPER_PANEL_PIC' => lorem_phrase(), 'MESSAGE_TOP' => lorem_phrase(), 'MESSAGE' => lorem_phrase(), 'MIDDLE' => placeholder_id(), 'BREADCRUMBS' => placeholder_breadcrumbs())));
     $out->attach(do_lorem_template('FOOTER', array('BAIL_OUT' => false, 'ERROR_MESSAGES_DURING_OUTPUT' => '', 'SHOW_BOTTOM' => true, 'HAS_SU' => lorem_phrase(), 'STAFF_ACTIONS' => lorem_phrase(), 'EXTRA_FOOT' => new ocp_tempcode())));
     return array($out);
 }
コード例 #23
0
ファイル: core.php プロジェクト: erico-deh/ocPortal
 /**
  * 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));
 }
コード例 #24
0
ファイル: ocf_forum.php プロジェクト: erico-deh/ocPortal
 /**
  * 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));
 }
コード例 #25
0
ファイル: staff.php プロジェクト: erico-deh/ocPortal
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__staff_screen()
 {
     return array(lorem_globalise(do_lorem_template('STAFF_SCREEN', array('TITLE' => lorem_title(), 'REAL_NAME' => lorem_phrase(), 'ROLE' => lorem_phrase(), 'ADDRESS' => lorem_phrase(), 'NAME' => lorem_word(), 'MEMBER_ID' => placeholder_id(), 'PROFILE_URL' => placeholder_url(), 'ALL_LINK' => placeholder_url())), NULL, '', true));
 }
コード例 #26
0
ファイル: search.php プロジェクト: erico-deh/ocPortal
 /**
  * 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));
 }
コード例 #27
0
ファイル: news_shared.php プロジェクト: erico-deh/ocPortal
 /**
  * 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_piece_summary()
 {
     return array(lorem_globalise(do_lorem_template('NEWS_PIECE_SUMMARY', array('BLOG' => lorem_phrase(), 'AUTHOR_URL' => placeholder_url(), 'TAGS' => '', 'CATEGORY' => lorem_phrase(), 'IMG' => placeholder_image_url(), 'AUTHOR' => lorem_phrase(), '_AUTHOR' => lorem_phrase(), 'SUBMITTER' => lorem_phrase(), 'AVATAR' => lorem_phrase(), 'NEWS_TITLE' => lorem_phrase(), 'DATE' => lorem_phrase(), 'NEWS' => lorem_phrase(), 'COMMENTS' => lorem_phrase(), 'VIEW' => lorem_phrase(), 'ID' => placeholder_id(), 'FULL_URL' => placeholder_url(), 'COMMENT_COUNT' => lorem_phrase(), 'READ_MORE' => lorem_sentence(), 'TRUNCATE' => false, 'FIRSTTIME' => lorem_word(), 'LASTTIME' => lorem_word_2(), 'CLOSED' => lorem_word(), 'FIRSTUSERNAME' => lorem_word(), 'LASTUSERNAME' => lorem_word(), 'FIRSTMEMBERID' => lorem_word(), 'LASTMEMBERID' => lorem_word(), 'DATE_RAW' => lorem_word())), NULL, '', true));
 }
コード例 #28
0
ファイル: iotds.php プロジェクト: erico-deh/ocPortal
 /**
  * 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));
 }
コード例 #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_done()
 {
     return array(lorem_globalise(do_lorem_template('BLOCK_HELPER_DONE', array('TITLE' => lorem_phrase(), 'FIELD_NAME' => placeholder_id(), 'BLOCK' => lorem_phrase(), 'COMCODE_XML' => lorem_phrase(), 'COMCODE' => lorem_phrase(), 'COMCODE_SEMIHTML' => lorem_phrase())), 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__ocf_reported_post_fcomcode()
 {
     require_lang('ocf');
     require_css('ocf');
     return array(lorem_globalise(do_lorem_template('OCF_REPORTED_POST_FCOMCODE', array('POST_ID' => placeholder_id(), 'MEMBER' => lorem_phrase(), 'POST' => lorem_phrase(), 'POSTER' => lorem_phrase(), 'TOPIC_TITLE' => lorem_phrase())), NULL, '', true));
 }