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__survey_results_screen()
 {
     $fields = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $fields->attach(do_lorem_template('VIEW_SPACE_FIELD_RAW', array('ABBR' => '', 'NAME' => lorem_phrase(), 'VALUE' => lorem_phrase())));
     }
     $summary = do_lorem_template('VIEW_SPACE', array('WIDTH' => placeholder_number(), 'FIELDS' => $fields));
     $browse = do_lorem_template('NEXT_BROWSER_BROWSE_NEXT', array('PREVIOUS_LINK' => placeholder_link(), 'NEXT_LINK' => placeholder_link(), 'PAGE_NUM' => placeholder_number(), 'NUM_PAGES' => placeholder_number()));
     $cells = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => $v)));
     }
     $fields_title = $cells;
     $results = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $cells = new ocp_tempcode();
         foreach (placeholder_array() as $k => $v) {
             $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => lorem_word()), NULL, false, 'RESULTS_TABLE_FIELD'));
         }
         $results->attach(do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false, 'RESULTS_TABLE_ENTRY'));
     }
     $selectors = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $selectors->attach(do_lorem_template('RESULTS_BROWSER_SORTER', array('SELECTED' => '', 'NAME' => lorem_word(), 'VALUE' => lorem_word())));
     }
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $results_browser = placeholder_result_browser();
     $results = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $results, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => $results_browser, 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     return array(lorem_globalise(do_lorem_template('SURVEY_RESULTS_SCREEN', array('TITLE' => lorem_title(), 'SUMMARY' => $summary, 'RESULTS' => $results)), 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_helper_start()
 {
     require_lang('comcode');
     return array(lorem_globalise(do_lorem_template('BLOCK_HELPER_START', array('TITLE' => lorem_phrase(), 'LINKS' => placeholder_link())), 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__block_side_personal_stats()
 {
     $content = new ocp_tempcode();
     $links = new ocp_tempcode();
     $content->attach(do_lorem_template('BLOCK_SIDE_PERSONAL_STATS_LINE', array('KEY' => lorem_word(), 'VALUE' => placeholder_number())));
     $links->attach(do_lorem_template('BLOCK_SIDE_PERSONAL_STATS_LINK_2', array('NAME' => lorem_word_2(), 'DESCRIPTION' => lorem_phrase(), 'URL' => placeholder_url())));
     $links->attach(do_lorem_template('BLOCK_SIDE_PERSONAL_STATS_LINK', array('NAME' => lorem_word(), 'URL' => placeholder_url(), 'REL' => 'me')));
     $links->attach(do_lorem_template('BLOCK_SIDE_PERSONAL_STATS_LOGOUT', array('NAME' => do_lang_tempcode('LOGOUT'), 'URL' => placeholder_url())));
     $content->attach(do_lorem_template('BLOCK_SIDE_PERSONAL_STATS_LINE_COMPLEX', array('KEY' => do_lang_tempcode('GROUP'), 'VALUE' => placeholder_link())));
     $staff_actions = new ocp_tempcode();
     $staff_actions->attach(form_input_list_entry(lorem_word(), true, lorem_phrase()));
     return array(lorem_globalise(do_lorem_template('BLOCK_SIDE_PERSONAL_STATS', array('AVATAR_URL' => placeholder_avatar(), 'LINKS' => $links, 'HAS_SU' => true, 'CONTENT' => $content, 'USERNAME' => lorem_word(), 'STAFF_ACTIONS' => $staff_actions)), NULL, '', true));
 }
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @param  string			View type.
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function _tpl_preview__standardbox($type)
 {
     $links = array();
     $meta = array();
     foreach (placeholder_array() as $k => $v) {
         $links[] = placeholder_link();
     }
     foreach (placeholder_array() as $k => $v) {
         $meta[] = array('KEY' => strval($k), 'VALUE' => $v);
     }
     return array(lorem_globalise(do_lorem_template('STANDARDBOX_' . $type, array('CONTENT' => lorem_sentence(), 'LINKS' => $links, 'META' => $meta, 'OPTIONS' => placeholder_array(), 'WIDTH' => 'auto', 'HEIGHT' => 'auto', 'TITLE' => lorem_phrase(), 'TOPLINK' => placeholder_link(), 'EXPAND' => true)), NULL, '', true));
 }
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__field_map_products_entry_screen()
 {
     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', 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));
     return array(lorem_globalise(do_lorem_template('CATALOGUE_products_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())), 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__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 #7
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__ocf_group_directory_screen()
 {
     $_rank = array(placeholder_array());
     $ranks = array();
     foreach ($_rank as $g_id => $_rank) {
         $rank = new ocp_tempcode();
         foreach ($_rank as $row) {
             $entries = new ocp_tempcode();
             foreach (placeholder_array() as $k => $v) {
                 $cells = new ocp_tempcode();
                 $values = array(placeholder_link(), placeholder_number(), lorem_word());
                 foreach ($values as $k => $v) {
                     $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => $v), NULL, false, 'RESULTS_TABLE_FIELD'));
                 }
                 $entries->attach(do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false, 'RESULTS_TABLE_ENTRY'));
             }
             $rank->attach($entries);
         }
         $selectors = new ocp_tempcode();
         foreach (placeholder_array() as $k => $v) {
             $selectors->attach(do_lorem_template('RESULTS_BROWSER_SORTER', array('SELECTED' => '', 'NAME' => lorem_word(), 'VALUE' => lorem_word())));
         }
         $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
         $results_browser = placeholder_result_browser();
         $fields_title = new ocp_tempcode();
         foreach (placeholder_array() as $k => $v) {
             $fields_title->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => $v)));
         }
         $ranks[] = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $rank, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => $results_browser, 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     }
     return array(lorem_globalise(do_lorem_template('OCF_GROUP_DIRECTORY_SCREEN', array('TITLE' => lorem_title(), 'STAFF' => lorem_phrase(), 'OTHERS' => lorem_phrase(), 'RANKS' => $ranks)), 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__administrative__iotd_admin_choose_screen_iotd()
 {
     return array(lorem_globalise(do_lorem_template('IOTD_ADMIN_CHOOSE_SCREEN_IOTD', array('IS_CURRENT' => placeholder_number(), 'SUBMITTER_URL' => placeholder_url(), 'THUMB_URL' => placeholder_url(), 'FULL_URL' => placeholder_url(), 'ID' => placeholder_id(), 'EDIT_URL' => placeholder_url(), 'DELETE_URL' => placeholder_url(), 'CHOOSE_URL' => placeholder_url(), 'CAPTION' => lorem_phrase(), 'USER' => lorem_phrase(), 'USERNAME' => lorem_word(), 'USERNAME_LINK' => placeholder_link())), 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__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 #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__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 #11
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__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 #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_side_stored_menu__zone()
 {
     $child = new ocp_tempcode();
     $content = new ocp_tempcode();
     foreach (placeholder_array(3) as $v) {
         $child->attach(do_lorem_template('MENU_BRANCH_zone', array('RANDOM' => placeholder_random(), 'CAPTION' => lorem_word(), 'IMG' => '', 'URL' => placeholder_url(), 'PAGE_LINK' => placeholder_link(), 'ACCESSKEY' => '', 'POPUP' => false, 'POPUP_WIDTH' => '', 'POPUP_HEIGHT' => '', 'NEW_WINDOW' => false, 'TOOLTIP' => lorem_phrase(), 'CHILDREN' => '', 'DISPLAY' => 'block', 'MENU' => lorem_word_2(), 'TOP_LEVEL' => false, 'THE_LEVEL' => '2', 'POSITION' => '1', 'LAST' => false, 'BRETHREN_COUNT' => '3', 'CURRENT' => false, 'CURRENT_ZONE' => false)));
     }
     foreach (placeholder_array(3) as $v) {
         $content->attach(do_lorem_template('MENU_BRANCH_zone', array('RANDOM' => placeholder_random(), 'CAPTION' => lorem_word(), 'IMG' => '', 'URL' => placeholder_url(), 'PAGE_LINK' => placeholder_link(), 'ACCESSKEY' => '', 'POPUP' => true, 'POPUP_WIDTH' => '500', 'POPUP_HEIGHT' => '500', 'NEW_WINDOW' => false, 'TOOLTIP' => lorem_phrase(), 'CHILDREN' => $child, 'DISPLAY' => 'block', 'MENU' => lorem_word_2(), 'TOP_LEVEL' => true, 'THE_LEVEL' => '0', 'POSITION' => '2', 'LAST' => false, 'BRETHREN_COUNT' => '3', 'CURRENT' => false, 'CURRENT_ZONE' => False)));
         $content->attach(do_lorem_template('MENU_SPACER_zone', array()));
     }
     $menu = do_lorem_template('MENU_zone', array('CONTENT' => $content, 'MENU' => 'test'));
     $menu->attach(do_lorem_template('MENU_STAFF_LINK', array('TYPE' => 'zone', 'EDIT_URL' => placeholder_url(), 'NAME' => lorem_phrase())));
     return array(lorem_globalise(do_lorem_template('BLOCK_SIDE_STORED_MENU', array('CONTENT' => $menu, 'PARAM' => lorem_phrase(), 'TRAY_STATUS' => lorem_phrase(), 'CAPTION' => lorem_phrase())), 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__ocf_saved_warning()
 {
     require_css('ocf');
     return array(lorem_globalise(do_lorem_template('OCF_SAVED_WARNING', array('MESSAGE' => lorem_phrase(), 'MESSAGE_HTML' => lorem_phrase(), 'EXPLANATION' => lorem_phrase(), 'TITLE' => lorem_word(), 'DELETE_LINK' => placeholder_link())), NULL, '', true));
 }