Exemplo n.º 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__chat_screen()
 {
     require_lang('comcode');
     require_javascript('javascript_chat');
     require_javascript('javascript_yahoo_2');
     $chat_sound = do_lorem_template('CHAT_SOUND', array('SOUND_EFFECTS' => placeholder_array(), 'KEY' => lorem_word(), 'VALUE' => lorem_word_2()));
     $_buttons = array('private_message', 'invite', 'new_room');
     $buttons = new ocp_tempcode();
     foreach ($_buttons as $button) {
         $buttons->attach(do_lorem_template('CHATCODE_EDITOR_BUTTON', array('TITLE' => do_lang_tempcode('INPUT_CHATCODE_' . $button), 'B' => $button)));
     }
     $micro_buttons = new ocp_tempcode();
     $_micro_buttons = array('b', 'i');
     $micro_buttons->attach(do_lorem_template('CHATCODE_EDITOR_MICRO_BUTTON', array('TITLE' => lorem_phrase(), 'B' => 'new_room')));
     foreach ($_micro_buttons as $button) {
         $micro_buttons->attach(do_lorem_template('COMCODE_EDITOR_MICRO_BUTTON', array('FIELD_NAME' => 'post', 'TITLE' => do_lang_tempcode('INPUT_COMCODE_' . $button), 'B' => $button)));
     }
     $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())));
     }
     return array(lorem_globalise(do_lorem_template('CHAT_SCREEN', array('CHATTERS' => $usernames, 'CHAT_SOUND' => $chat_sound, 'ROOM_ID' => placeholder_number(), 'DEBUG' => '0', 'MESSAGES_PHP' => find_script('messages'), 'CHATCODE_HELP' => lorem_phrase(), 'ROOM_NAME' => lorem_word(), 'MICRO_BUTTONS' => $micro_buttons, 'BUTTONS' => $buttons, 'YOUR_NAME' => lorem_word(), 'MESSAGES_LINK' => placeholder_url(), 'POSTING_URL' => placeholder_url(), 'OPTIONS_URL' => placeholder_url(), 'SUBMIT_VALUE' => lorem_word(), 'PASSWORD_HASH' => placeholder_random(), 'INTRODUCTION' => '', 'TITLE' => lorem_title(), 'CONTENT' => lorem_phrase(), 'LINKS' => placeholder_array(), 'TEXT_COLOUR_DEFAULT' => lorem_word(), 'FONT_NAME_DEFAULT' => lorem_word(), 'COMCODE_HELP' => lorem_phrase())), NULL, '', true));
 }
Exemplo n.º 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__ecom_transaction_logs_screen()
 {
     $results_browser = placeholder_result_browser();
     //results_table starts
     //results_entry starts
     $cells = new ocp_tempcode();
     foreach (placeholder_array(11) as $k => $v) {
         $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => $v)));
     }
     $fields_title = $cells;
     $order_entries = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $cells = new ocp_tempcode();
         foreach (placeholder_array(11) as $k => $v) {
             $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => lorem_word()), 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();
     foreach (placeholder_array(11) 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_table = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $order_entries, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => $results_browser, 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     //results_table ends
     return array(lorem_globalise(do_lorem_template('ECOM_TRANSACTION_LOGS_SCREEN', array('TITLE' => lorem_title(), 'PRODUCTS' => lorem_phrase(), 'URL' => placeholder_url(), 'RESULTS_TABLE' => $results_table)), NULL, '', true));
 }
Exemplo n.º 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__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));
 }
Exemplo n.º 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__administrative__stats_screen_iscreen()
 {
     $graph_regionality = do_lorem_template('STATS_GRAPH', array('GRAPH' => placeholder_url(), 'TITLE' => lorem_phrase(), 'TEXT' => lorem_sentence(), 'KEYWORDS_SHARE' => lorem_word(), 'DESCRIPTION_KEYWORDS_SHARE' => lorem_word()));
     $graph_keywords = $graph_regionality;
     //results_entry starts
     $cells = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => $v)));
     }
     $fields_title = $cells;
     $fields = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $cells = new ocp_tempcode();
         foreach (placeholder_array() as $k => $v) {
             $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => lorem_word()), NULL, false, 'RESULTS_TABLE_FIELD'));
         }
         $fields->attach(do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false, 'RESULTS_TABLE_ENTRY'));
     }
     //results_entry ends
     $selectors = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $selectors->attach(do_lorem_template('RESULTS_BROWSER_SORTER', array('SELECTED' => '', 'NAME' => lorem_word(), 'VALUE' => lorem_word())));
     }
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $list_regionality = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $fields, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => lorem_word(), 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     $selectors = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $selectors->attach(do_lorem_template('RESULTS_BROWSER_SORTER', array('SELECTED' => '', 'NAME' => lorem_word(), 'VALUE' => lorem_word())));
     }
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $list_views = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $fields, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => lorem_word(), 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     $selectors = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $selectors->attach(do_lorem_template('RESULTS_BROWSER_SORTER', array('SELECTED' => '', 'NAME' => lorem_word(), 'VALUE' => lorem_word())));
     }
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $list_keywords = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $fields, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => lorem_word(), 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     //results_table ends
     return array(lorem_globalise(do_lorem_template('STATS_SCREEN_ISCREEN', array('TITLE' => lorem_title(), 'GRAPH_REGIONALITY' => $graph_regionality, 'STATS_REGIONALITY' => $list_regionality, 'STATS_VIEWS' => $list_views, 'GRAPH_KEYWORDS' => $graph_keywords, 'STATS_KEYWORDS' => $list_keywords, 'GRAPH_VIEWS_HOURLY' => lorem_phrase(), 'STATS_VIEWS_HOURLY' => lorem_phrase(), 'GRAPH_VIEWS_DAILY' => lorem_phrase(), 'STATS_VIEWS_DAILY' => lorem_phrase(), 'GRAPH_VIEWS_WEEKLY' => lorem_phrase(), 'STATS_VIEWS_WEEKLY' => lorem_phrase(), 'GRAPH_VIEWS_MONTHLY' => lorem_phrase(), 'STATS_VIEWS_MONTHLY' => lorem_phrase(), 'GRAPH_IP' => placeholder_ip(), 'STATS_IP' => placeholder_ip(), 'GRAPH_BROWSER' => lorem_phrase(), 'STATS_BROWSER' => lorem_phrase(), 'GRAPH_REFERRER' => lorem_phrase(), 'STATS_REFERRER' => lorem_phrase(), 'GRAPH_OS' => lorem_phrase(), 'STATS_OS' => lorem_phrase())), NULL, '', true));
 }
Exemplo n.º 5
0
/**
 * Get a results browser.
 *
 * @return tempcode		Results browser.
 */
function placeholder_result_browser()
{
    $selectors = new ocp_tempcode();
    foreach (placeholder_array(11) as $k => $v) {
        $selectors->attach(do_lorem_template('RESULTS_BROWSER_PER_PAGE_OPTION', array('SELECTED' => true, 'VALUE' => strval($k), 'NAME' => $v)));
    }
    $per_page = do_lorem_template('RESULTS_BROWSER_PER_SCREEN', array('HIDDEN' => '', 'URL' => placeholder_url(), 'MAX_NAME' => lorem_word(), 'SELECTORS' => $selectors, 'RAND' => placeholder_random()));
    $part = new ocp_tempcode();
    $part->attach(do_lorem_template('RESULTS_BROWSER_CONTINUE_FIRST', array('TITLE' => lorem_phrase(), 'P' => placeholder_number(), 'FIRST_URL' => placeholder_url())));
    $part->attach(do_lorem_template('RESULTS_BROWSER_PREVIOUS_LINK', array('TITLE' => lorem_phrase(), 'P' => placeholder_date_raw(), 'URL' => placeholder_url())));
    $part->attach(do_lorem_template('RESULTS_BROWSER_NEXT_LINK', array('REL' => NULL, 'TITLE' => lorem_phrase(), 'NUM_PAGES' => placeholder_number(), 'P' => placeholder_number(), 'URL' => placeholder_url())));
    $part->attach(do_lorem_template('RESULTS_BROWSER_CONTINUE_LAST', array('TITLE' => lorem_phrase(), 'P' => placeholder_number(), 'LAST_URL' => placeholder_url())));
    $pages = new ocp_tempcode();
    foreach (placeholder_array() as $key => $value) {
        $pages->attach(do_lorem_template('FORM_SCREEN_INPUT_LIST_ENTRY', array('SELECTED' => false, 'DISABLED' => false, 'CLASS' => '', 'NAME' => strval($key), 'TEXT' => $value)));
    }
    $part->attach(do_lorem_template('RESULTS_BROWSER_LIST_PAGES', array('URL' => placeholder_url(), 'RAND' => placeholder_random(), 'HIDDEN' => '', 'START_NAME' => lorem_word(), 'LIST' => $pages)));
    return do_lorem_template('RESULTS_BROWSER_WRAP', array('TEXT_ID' => lorem_phrase(), 'PER_PAGE' => $per_page, 'PART' => $part));
}
Exemplo n.º 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__translate_screen()
 {
     require_lang('lang');
     $lines = '';
     foreach (placeholder_array() as $value) {
         $temp = do_lorem_template('TRANSLATE_LINE', array('TRANSLATE_AUTO' => $value, 'DESCRIPTION' => lorem_sentence(), 'NAME' => placeholder_random(), 'OLD' => str_replace('\\n', chr(10), $value), 'CURRENT' => $value, 'ACTIONS' => new ocp_tempcode()));
         $lines .= $temp->evaluate();
     }
     return array(lorem_globalise(do_lorem_template('TRANSLATE_SCREEN', array('PAGE' => lorem_phrase(), 'INTERTRANS' => lorem_phrase(), 'LANG' => fallback_lang(), 'LINES' => $lines, 'TITLE' => lorem_title(), 'URL' => placeholder_url())), NULL, '', true));
 }
Exemplo n.º 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__main_count()
 {
     return array(lorem_globalise(do_lorem_template('MAIN_COUNT', array('NAME' => lorem_word(), 'VALUE' => placeholder_random())), NULL, '', true));
 }
Exemplo n.º 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__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));
 }
Exemplo n.º 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__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));
 }
Exemplo n.º 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__attachment_download()
 {
     return array(lorem_globalise(do_lorem_template('ATTACHMENT_DOWNLOAD', array('SCRIPT' => placeholder_url(), 'A_DESCRIPTION' => lorem_word(), 'A_ORIGINAL_FILENAME' => lorem_word_2(), 'ID' => placeholder_id(), 'CLEAN_SIZE' => placeholder_random(), 'SUP_PARAMS' => placeholder_blank(), 'FORUM_DB_BIN' => placeholder_blank())), NULL, '', true));
 }
Exemplo n.º 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__administrative__ocf_ldap_sync_screen()
 {
     require_lang('ocf');
     $members_delete = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $tpl = do_lorem_template('OCF_LDAP_LIST_ENTRY', array('NAME' => lorem_word() . placeholder_random(), 'NICE_NAME' => lorem_word()));
         $members_delete->attach($tpl);
     }
     $groups_delete = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $tpl = do_lorem_template('OCF_LDAP_LIST_ENTRY', array('NAME' => lorem_word() . placeholder_random(), 'NICE_NAME' => lorem_word()));
         $groups_delete->attach($tpl);
     }
     $groups_add = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $tpl = do_lorem_template('OCF_LDAP_LIST_ENTRY', array('NAME' => lorem_word() . placeholder_random(), 'NICE_NAME' => lorem_word()));
         $groups_add->attach($tpl);
     }
     return array(lorem_globalise(do_lorem_template('OCF_LDAP_SYNC_SCREEN', array('URL' => placeholder_url(), 'TITLE' => lorem_title(), 'MEMBERS_DELETE' => $members_delete, 'GROUPS_DELETE' => $groups_delete, 'GROUPS_ADD' => $groups_add)), NULL, '', true));
 }
Exemplo n.º 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 andplaceholder_date_raw() without blank data).
  */
 function tpl_preview__block_side_root_galleries()
 {
     $content = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $out = new ocp_tempcode();
         foreach (placeholder_array() as $k => $v) {
             $out->attach(do_lorem_template('BLOCK_SIDE_ROOT_GALLERIES_LINE_DEPTH', array('TITLE' => lorem_word(), 'URL' => placeholder_url())));
         }
         $out->attach(do_lorem_template('BLOCK_SIDE_ROOT_GALLERIES_LINE', array('TITLE' => lorem_word(), 'URL' => placeholder_url())));
         $content->attach(do_lorem_template('BLOCK_SIDE_ROOT_GALLERIES_LINE_CONTAINER', array('ID' => placeholder_random(), 'CAPTION' => lorem_phrase(), 'CONTENTS' => $out)));
     }
     return array(lorem_globalise(do_lorem_template('BLOCK_SIDE_ROOT_GALLERIES', array('DEPTH' => true, 'CONTENT' => $content)), NULL, '', true));
 }
Exemplo n.º 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__administrative__occle_edit()
 {
     return array(lorem_globalise(do_lorem_template('OCCLE_EDIT', array('UNIQ_ID' => placeholder_random(), 'FILE' => lorem_phrase(), 'SUBMIT_URL' => placeholder_url(), 'FILE_CONTENTS' => lorem_sentence())), NULL, '', true));
 }
Exemplo n.º 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.
  *
  * @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));
 }
Exemplo n.º 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__administrative__addon_install_confirm_screen()
 {
     $_dependencies = new ocp_tempcode();
     foreach (placeholder_array() as $in) {
         if (!$_dependencies->is_empty()) {
             $_dependencies->attach(do_lang_tempcode('LIST_SEP'));
         }
         $_dependencies->attach(escape_html($in));
     }
     $warning = do_lorem_template('ADDON_INSTALL_WARNING', array('WARNING' => do_lang_tempcode('ADDON_WARNING_PRESENT_DEPENDENCIES', $_dependencies, lorem_phrase()), 'ADDON_WARNING_OVERWRITE' => lorem_phrase()));
     $files = new ocp_tempcode();
     foreach (placeholder_array() as $val) {
         $files->attach(do_lorem_template('ADDON_INSTALL_FILES_WARNING', array('PATH' => lorem_phrase(), 'ABOUT' => do_lang_tempcode('ADDON_FILE_WILL_OVERWRITE'), 'I' => placeholder_random())));
     }
     foreach (placeholder_array() as $val) {
         $files->attach(do_lorem_template('ADDON_INSTALL_FILES', array('PATH' => lorem_phrase(), 'ABOUT' => do_lang_tempcode('ADDON_FILE_NORMAL'), 'I' => placeholder_random())));
     }
     return array(lorem_globalise(do_lorem_template('ADDON_INSTALL_CONFIRM_SCREEN', array('TITLE' => lorem_title(), 'FILE' => lorem_phrase(), 'URL' => placeholder_url(), 'FILES' => $files, 'WARNINGS' => $warning, 'NAME' => lorem_word(), 'AUTHOR' => lorem_word_2(), 'ORGANISATION' => lorem_phrase(), 'VERSION' => placeholder_number(), 'DESCRIPTION' => lorem_paragraph_html())), NULL, '', true));
 }
Exemplo n.º 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__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));
 }
Exemplo n.º 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__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));
 }
Exemplo n.º 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__shopping_cart_screen()
 {
     //results_table starts
     //results_entry starts
     $shopping_cart = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $cells = new ocp_tempcode();
         foreach (placeholder_array(8) as $v) {
             $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => $v)));
         }
         $fields_title = $cells;
         $product_image = placeholder_image();
         $product_link = placeholder_link();
         $currency = lorem_word();
         $edit_qnty = do_lorem_template('SHOPPING_ITEM_QUANTITY_FIELD', array('PRODUCT_ID' => strval($k), 'QUANTITY' => lorem_phrase()));
         $del_item = do_lorem_template('SHOPPING_ITEM_REMOVE_FIELD', array('PRODUCT_ID' => strval($k)));
         $values = array($product_image, $product_link, $edit_qnty, $currency . (string) placeholder_number(), $currency . (string) placeholder_number(), $currency . (string) placeholder_number(), $currency . placeholder_number(), $del_item);
         $cells = new ocp_tempcode();
         foreach ($values as $value) {
             $cells->attach(do_lorem_template('RESULTS_TABLE_cart_FIELD', array('VALUE' => $value, 'CLASS' => ''), NULL, false, 'RESULTS_TABLE_FIELD'));
         }
         $shopping_cart->attach(do_lorem_template('RESULTS_TABLE_cart_ENTRY', array('VALUES' => $cells), NULL, false, 'RESULTS_TABLE_ENTRY'));
     }
     //results_entry ends
     $selectors = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $selectors->attach(do_lorem_template('RESULTS_BROWSER_SORTER', array('SELECTED' => '', 'NAME' => lorem_word(), 'VALUE' => lorem_word())));
     }
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $results_table = do_lorem_template('RESULTS_cart_TABLE', array('FIELDS_TITLE' => $fields_title, 'FIELDS' => $shopping_cart, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => lorem_word(), 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     //results_table ends
     $proceed_box = do_lorem_template('SHOPPING_CART_PROCEED', array('SUB_TOTAL' => float_format(floatval(placeholder_number())), 'SHIPPING_COST' => float_format(floatval(placeholder_number())), 'GRAND_TOTAL' => float_format(floatval(placeholder_number())), 'CHECKOUT_URL' => placeholder_link(), 'PROCEED' => lorem_phrase(), 'CURRENCY' => lorem_word(), 'PAYMENT_FORM' => placeholder_form()));
     return array(lorem_globalise(do_lorem_template('SHOPPING_CART_SCREEN', array('TITLE' => lorem_title(), 'RESULT_TABLE' => $results_table, 'FORM_URL' => placeholder_url(), 'CONT_SHOPPING' => placeholder_url(), 'MESSAGE' => lorem_phrase(), 'BACK' => placeholder_link(), 'PRO_IDS' => placeholder_id(), 'EMPTY_CART' => lorem_phrase(), 'EMPTY' => lorem_phrase(), 'UPDATE' => lorem_phrase(), 'CONTINUE_SHOPPING' => lorem_phrase(), 'PROCEED_BOX' => $proceed_box, 'ALLOW_OPTOUT_TAX' => lorem_phrase(), 'ALLOW_OPTOUT_TAX_VALUE' => lorem_phrase())), NULL, '', true));
 }
Exemplo n.º 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__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));
 }
Exemplo n.º 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.
  *
  * @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));
 }
Exemplo n.º 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__block_side_news_categories()
 {
     require_lang('news');
     $contents = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $contents->attach(do_lorem_template('BLOCK_SIDE_NEWS_CATEGORIES_CATEGORY', array('URL' => placeholder_url(), 'NAME' => lorem_phrase(), 'COUNT' => placeholder_random())));
     }
     return array(lorem_globalise(do_lorem_template('BLOCK_SIDE_NEWS_CATEGORIES', array('CONTENT' => $contents, 'PRE' => '', 'POST' => '')), NULL, '', true));
 }
Exemplo n.º 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__form_screen()
 {
     require_lang('comcode');
     require_lang('dates');
     $input = new ocp_tempcode();
     $fields = new ocp_tempcode();
     foreach (placeholder_array(1) as $key => $val) {
         $input = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE', array('CHECKED' => true, 'NAME' => 'path', 'VALUE' => $val, 'URL' => placeholder_image_url(), 'PRETTY' => strval($key)));
         $fields->attach(do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => false, 'BORING_NAME' => 'path' . "_" . $val, 'NAME' => lorem_word(), 'DESCRIPTION' => lorem_sentence_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $input, 'COMCODE' => '')));
     }
     $content = new ocp_tempcode();
     $i = 0;
     foreach (placeholder_array() as $k => $v) {
         $cells = new ocp_tempcode();
         foreach (placeholder_array() as $k => $v) {
             $temp = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_2', array('CHECKED' => 'true', 'PRETTY' => lorem_phrase(), 'NAME' => placeholder_random_id(), 'CODE' => $v, 'URL' => placeholder_image_url()));
             $temp->attach(do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_3_NA', array('NAME' => placeholder_random_id())));
         }
         $_category = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_2_WRAP', array('ROWS' => $cells));
         $input = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_2_CAT_WRAP', array('DISPLAY' => 'block', 'CATEGORY' => $_category, 'CATEGORY_NAME' => lorem_word()));
         $content->attach($input);
     }
     //$fields->attach(do_lorem_template('FORM_SCREEN_FIELD',array('REQUIRED'=>true,'SKIP_LABEL'=>false,'BORING_NAME'=>placeholder_random(),'NAME'=>lorem_word(),'DESCRIPTION'=>lorem_sentence_html(),'DESCRIPTION_SIDE'=>'','INPUT'=>$content,'COMCODE'=>'')));
     $name = placeholder_random_id();
     $input = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST', array('REQUIRED' => true, 'NAME' => $name, 'CODE' => '', 'TABINDEX' => placeholder_number(), 'CONTENT' => $content));
     $fields->attach(do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => true, 'BORING_NAME' => '', 'NAME' => lorem_word(), 'DESCRIPTION' => lorem_sentence_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $input, 'COMCODE' => '')));
     $entries = array();
     $first = true;
     foreach (placeholder_array() as $k => $v) {
         $entries[] = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_3', array('PRETTY' => lorem_word(), 'CHECKED' => $first, 'NAME' => placeholder_random_id(), 'CODE' => lorem_word(), 'URL' => placeholder_image_url()));
         $first = false;
     }
     $content = new ocp_tempcode();
     foreach ($entries as $i => $tempcode) {
         $content->attach($tempcode);
     }
     $content = do_lorem_template('FORM_SCREEN_INPUT_RADIO_LIST_ENTRY_PICTURE_3_WRAP', array('ROWS' => $content));
     $fields->attach(do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => true, 'BORING_NAME' => placeholder_random_id(), 'NAME' => lorem_word(), 'DESCRIPTION' => lorem_sentence_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $content, 'COMCODE' => '')));
     //$fields->attach($content);
     $fields->attach(do_lorem_template('POSTING_FIELD', array('REQUIRED' => true, 'DESCRIPTION' => lorem_phrase(), 'HIDDEN_FIELDS' => '', 'PRETTY_NAME' => lorem_word(), 'NAME' => placeholder_random_id(), 'TABINDEX_PF' => placeholder_random(), 'COMCODE_EDITOR' => placeholder_blank(), 'COMCODE_EDITOR_SMALL' => placeholder_blank(), 'CLASS' => lorem_word(), 'COMCODE_URL' => placeholder_url(), 'EMOTICON_CHOOSER' => placeholder_emoticon_chooser(), 'COMCODE_HELP' => placeholder_blank(), 'POST' => placeholder_blank(), 'DEFAULT_PARSED' => placeholder_blank(), 'ATTACHMENTS' => placeholder_blank())));
     return array(lorem_globalise(do_lorem_template('FORM_SCREEN', array('GET' => NULL, 'HIDDEN' => '', 'TITLE' => lorem_title(), 'URL' => placeholder_url(), 'FIELDS' => $fields, 'SUBMIT_NAME' => lorem_word(), 'TEXT' => lorem_sentence_html())), NULL, '', true));
 }
Exemplo n.º 23
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__points_screen()
 {
     $browse = do_lorem_template('NEXT_BROWSER_BROWSE_NEXT', array('PREVIOUS_LINK' => placeholder_url(), 'NEXT_LINK' => placeholder_url(), '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;
     $chargelog_details = new ocp_tempcode();
     $charges = 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'));
         }
         $charges->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())));
     }
     $results_browser = placeholder_result_browser();
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $chargelog_details = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $charges, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => $results_browser, 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     $chargelog_details->attach(do_lorem_template('POINTS_CHARGE', array('URL' => placeholder_url(), 'USER' => lorem_phrase())));
     $chargelog_details = do_lorem_template('POINTS_TRANSACTIONS_WRAP', array('CONTENT' => $chargelog_details, 'TITLE' => lorem_phrase()));
     $results_browser = placeholder_result_browser();
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $from = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $charges, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => $results_browser, 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     $from = do_lorem_template('POINTS_TRANSACTIONS_WRAP', array('CONTENT' => $from, 'TITLE' => lorem_phrase()));
     $results_browser = placeholder_result_browser();
     $sort = do_lorem_template('RESULTS_BROWSER_SORT', array('HIDDEN' => '', 'SORT' => lorem_word(), 'RAND' => placeholder_random(), 'URL' => placeholder_url(), 'SELECTORS' => $selectors));
     $to = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $charges, 'MESSAGE' => new ocp_tempcode(), 'SORT' => $sort, 'BROWSER' => $results_browser, 'WIDTHS' => array(placeholder_number())), NULL, false, 'RESULTS_TABLE');
     $to = do_lorem_template('POINTS_TRANSACTIONS_WRAP', array('CONTENT' => $to, 'TITLE' => lorem_phrase()));
     $give_template = do_lorem_template('POINTS_GIVE', array('GIVE_URL' => placeholder_url(), 'USER' => lorem_phrase(), 'VIEWER_GIFT_POINTS_AVAILABLE' => placeholder_number()));
     $content = do_lorem_template('POINTS_PROFILE', array('MEMBER' => lorem_phrase(), 'PROFILE_LINK' => placeholder_url(), 'NAME' => lorem_word(), 'POINTS_JOINING' => placeholder_number(), 'POINTS_RATING' => placeholder_number(), 'POINTS_VOTING' => placeholder_number(), 'POINTS_POSTING' => placeholder_number(), 'POINTS_PER_DAY' => placeholder_number(), 'POINTS_PER_DAILY_VISIT' => placeholder_number(), 'POST_COUNT' => placeholder_number(), 'POINTS_GAINED_GIVEN' => placeholder_number(), 'POINTS_GAINED_RATING' => placeholder_number(), 'POINTS_GAINED_VOTING' => placeholder_number(), 'POINTS_GAINED_AUTO' => placeholder_number(), 'POINTS_USED' => placeholder_number(), 'REMAINING' => placeholder_number(), 'GIFT_POINTS_USED' => placeholder_number(), 'GIFT_POINTS_AVAILABLE' => placeholder_number(), 'DAYS_JOINED' => placeholder_number(), 'TO' => $to, 'FROM' => $from, 'CHARGELOG_DETAILS' => $chargelog_details, 'GIVE' => $give_template, 'CEDI_POST_COUNT' => placeholder_number(), 'POINTS_CEDI_POSTING' => placeholder_number(), 'CHAT_POST_COUNT' => placeholder_number(), 'POINTS_CHAT_POSTING' => placeholder_number(), 'MULT_POINTS_RATING' => placeholder_number(), 'MULT_POINTS_VOTING' => placeholder_number(), 'MULT_POINTS_CHAT_POSTING' => placeholder_number(), 'MULT_POINTS_CEDI_POSTING' => placeholder_number(), 'MULT_POINTS_POSTING' => placeholder_number(), 'MULT_POINTS_PER_DAY' => placeholder_number()));
     return array(lorem_globalise(do_lorem_template('POINTS_SCREEN', array('TITLE' => lorem_title(), 'BROWSE' => $browse, 'CONTENT' => $content)), NULL, '', true));
 }