Example #1
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__staff_admin_screen()
 {
     $available = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $available->attach(do_lorem_template('STAFF_EDIT_WRAPPER', array('FORM' => placeholder_form(), 'NAME' => lorem_word())));
     }
     return array(lorem_globalise(do_lorem_template('STAFF_ADMIN_SCREEN', array('TITLE' => lorem_title(), 'TEXT' => lorem_sentence_html(), 'FORUM_STAFF' => $available)), NULL, '', true));
 }
Example #2
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__xml_storage_screen()
 {
     return array(lorem_globalise(do_lorem_template('XML_STORAGE_SCREEN', array('TITLE' => lorem_title(), 'IMPORT_FORM' => placeholder_form(), 'EXPORT_FORM' => placeholder_form())), NULL, '', true));
 }
Example #3
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__cedi_manage_tree_screen()
 {
     return array(lorem_globalise(do_lorem_template('CEDI_MANAGE_TREE_SCREEN', array('PING_URL' => placeholder_url(), 'WARNING_DETAILS' => '', 'TREE' => lorem_phrase(), 'TITLE' => lorem_title(), 'FORM' => placeholder_form(), 'CEDI_TREE' => lorem_phrase())), NULL, '', true));
 }
Example #4
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__pointstore_price_screen()
 {
     //This is for getting the do_ajax_request() javascript function.
     require_javascript('javascript_ajax');
     $warning_details = do_lorem_template('WARNING_TABLE', array('WARNING' => lorem_phrase()));
     $add_forms = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $add_forms->attach(do_lorem_template('POINTSTORE_PRICES_FORM_WRAP', array('TITLE' => lorem_phrase(), 'FORM' => placeholder_form())));
     }
     return array(lorem_globalise(do_lorem_template('POINTSTORE_PRICE_SCREEN', array('PING_URL' => placeholder_url(), 'WARNING_DETAILS' => $warning_details, 'TITLE' => lorem_title(), 'EDIT_FORM' => placeholder_form(), 'ADD_FORMS' => $add_forms)), 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__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));
 }
Example #6
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__author_manage_screen()
 {
     require_lang('global');
     require_lang('authors');
     return array(lorem_globalise(do_lorem_template('AUTHOR_MANAGE_SCREEN', array('TITLE' => lorem_title(), 'DEFINE_FORM' => placeholder_form(), 'MERGE_FORM' => placeholder_form())), 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__support_ticket_type_screen()
 {
     return array(lorem_globalise(do_lorem_template('SUPPORT_TICKET_TYPE_SCREEN', array('TITLE' => lorem_title(), 'TPL' => placeholder_form(), 'ADD_FORM' => placeholder_form())), 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__bookmarks_screen()
 {
     require_lang('zones');
     $bookmarks = array(array('CAPTION' => lorem_word(), 'ID' => placeholder_id(), 'FOLDER' => lorem_word_2(), 'PAGE_LINK' => placeholder_url()));
     return array(lorem_globalise(do_lorem_template('BOOKMARKS_SCREEN', array('TITLE' => lorem_title(), 'FORM_URL' => placeholder_url(), 'FORM' => placeholder_form(), 'BOOKMARKS' => $bookmarks)), NULL, '', true));
 }
Example #9
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__news_wordpress_import_screen()
 {
     require_lang('news');
     return array(lorem_globalise(do_lorem_template('NEWS_WORDPRESS_IMPORT_SCREEN', array('TITLE' => lorem_title(), 'XML_UPLOAD_FORM' => placeholder_form(), 'DB_IMPORT_FORM' => placeholder_form())), 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__comcode_mistake_screen()
 {
     $line = new ocp_tempcode();
     foreach (placeholder_array() as $key => $value) {
         $line_content = new ocp_tempcode();
         $line_content->attach(lorem_phrase());
         if ($key == 0) {
             $line_content->attach(do_lorem_template('COMCODE_MISTAKE_ERROR', array()));
         }
         $line->attach(do_lorem_template('COMCODE_MISTAKE_LINE', array('NUMBER' => placeholder_number(), 'LINE' => $line_content)));
     }
     return array(lorem_globalise(do_lorem_template('COMCODE_MISTAKE_SCREEN', array('EDITABLE' => placeholder_table(), 'FORM' => placeholder_form(), 'TITLE' => lorem_title(), 'LINE' => lorem_phrase(), 'MESSAGE' => lorem_phrase(), 'LINES' => $line)), 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.
  *
  * @param  string			View type.
  * @return tempcode		Preview.
  */
 function calendar_main_screen($view)
 {
     require_lang('dates');
     switch ($view) {
         case 'day':
             $hours = new ocp_tempcode();
             for ($i = 0; $i < 24; $i++) {
                 $_streams = new ocp_tempcode();
                 foreach (placeholder_array(2) as $k => $v) {
                     $entry = do_lorem_template('CALENDAR_DAY_ENTRY_FREE', array('CLASS' => lorem_word(), 'TEXT' => lorem_phrase()));
                     $_streams->attach(do_lorem_template('CALENDAR_DAY_STREAM_HOUR', array('CURRENT' => lorem_word(), 'ADD_URL' => placeholder_url(), 'PRIORITY' => lorem_phrase(), 'DOWN' => '1', 'ENTRY' => $entry)));
                 }
                 foreach (placeholder_array(2) as $v) {
                     $entries = do_lorem_template('CALENDAR_DAY_ENTRY', array('ID' => placeholder_id(), 'URL' => placeholder_url(), 'TIME' => placeholder_time(), 'T_TITLE' => lorem_phrase(), 'TITLE' => lorem_word(), 'DESCRIPTION' => lorem_word_2(), 'RECURRING' => false));
                     $_streams->attach(do_lorem_template('CALENDAR_DAY_STREAM_HOUR', array('CURRENT' => lorem_word(), 'ADD_URL' => placeholder_url(), 'PRIORITY' => lorem_phrase(), 'DOWN' => '1', 'ENTRY' => $entry)));
                 }
                 $hours->attach(do_lorem_template('CALENDAR_DAY_HOUR', array('HOUR' => lorem_word(), 'STREAMS' => $_streams)));
             }
             $main = do_lorem_template('CALENDAR_DAY', array('HOURS' => $hours, 'PERIOD_START' => placeholder_date_raw(), 'PERIOD_END' => placeholder_date_raw()));
             break;
         case 'week':
             $hours = new ocp_tempcode();
             for ($i = 0; $i < 24; $i++) {
                 $days = new ocp_tempcode();
                 for ($j = 0; $j < 7; $j++) {
                     if ($i % 2 == 0) {
                         $entries = do_lorem_template('CALENDAR_WEEK_ENTRY_FREE', array('CLASS' => lorem_word(), 'TEXT' => ''));
                     } else {
                         $entries = do_lorem_template('CALENDAR_WEEK_ENTRY', array('ID' => placeholder_id(), 'URL' => placeholder_url(), 'TIME' => placeholder_time(), 'TITLE' => lorem_word(), 'E' => lorem_word(), 'ICON' => 'calendar/general', 'RECURRING' => false));
                     }
                     $days->attach(do_lorem_template('CALENDAR_WEEK_HOUR_DAY', array('CURRENT' => lorem_word(), 'ADD_URL' => placeholder_url(), 'DOWN' => '1', 'DAY' => lorem_word(), 'HOUR' => lorem_word(), 'CLASS' => lorem_word(), 'ENTRIES' => $entries)));
                 }
                 $hours->attach(do_lorem_template('CALENDAR_WEEK_HOUR', array('HOUR' => lorem_word(), 'DAYS' => $days)));
             }
             $main = do_lorem_template('CALENDAR_WEEK', array('MONDAY_DATE' => lorem_word(), 'TUESDAY_DATE' => lorem_word(), 'WEDNESDAY_DATE' => lorem_word(), 'THURSDAY_DATE' => lorem_word(), 'FRIDAY_DATE' => lorem_word(), 'SATURDAY_DATE' => lorem_word(), 'SUNDAY_DATE' => lorem_word(), 'MONDAY_URL' => placeholder_url(), 'TUESDAY_URL' => placeholder_url(), 'WEDNESDAY_URL' => placeholder_url(), 'THURSDAY_URL' => placeholder_url(), 'FRIDAY_URL' => placeholder_url(), 'SATURDAY_URL' => placeholder_url(), 'SUNDAY_URL' => placeholder_url(), 'HOURS' => $hours, 'PERIOD_START' => placeholder_date_raw(), 'PERIOD_END' => placeholder_date_raw()));
             break;
         case 'month':
             $empty_entry = do_lorem_template('CALENDAR_MONTH_ENTRY_FREE', array('CLASS' => lorem_word(), 'TEXT' => ''));
             $days = new ocp_tempcode();
             foreach (placeholder_array() as $k => $v) {
                 $entries = new ocp_tempcode();
                 foreach (placeholder_array() as $k => $v) {
                     $entries->attach(do_lorem_template('CALENDAR_MONTH_ENTRY', array('ID' => placeholder_id(), 'T_TITLE' => lorem_phrase(), 'PRIORITY' => lorem_word(), 'ICON' => 'calendar/' . placeholder_img_code('calendar'), 'TIME' => placeholder_number(), 'TITLE' => lorem_word(), 'URL' => placeholder_url(), 'RECURRING' => lorem_word())));
                 }
                 $days->attach(do_lorem_template('CALENDAR_MONTH_DAY', array('CURRENT' => false, 'DAY_URL' => '', 'CLASS' => '', 'DAY' => '', 'ENTRIES' => $entries)));
             }
             $weeks = new ocp_tempcode();
             foreach (placeholder_array() as $k => $v) {
                 $weeks->attach(do_lorem_template('CALENDAR_MONTH_WEEK', array('WEEK_URL' => placeholder_url(), 'WEEK_DATE' => lorem_word(), 'DAYS' => $days)));
             }
             $main = do_lorem_template('CALENDAR_MONTH', array('WEEKS' => $weeks, 'PERIOD_START' => placeholder_date_raw(), 'PERIOD_END' => placeholder_date_raw()));
             break;
         case 'year':
             $months = '';
             $month_rows = new ocp_tempcode();
             for ($i = 1; $i <= 12; $i++) {
                 if (($i - 1) % 3 == 0 && $i != 1) {
                     $month_rows->attach(do_lorem_template('CALENDAR_YEAR_MONTH_ROW', array('MONTHS' => $months, 'MONTH_A_URL' => placeholder_url(), 'MONTH_B_URL' => placeholder_url(), 'MONTH_C_URL' => placeholder_url(), 'MONTH_A' => lorem_word(), 'MONTH_B' => lorem_word(), 'MONTH_C' => lorem_word())));
                     $months = '';
                 }
                 $_entries = new ocp_tempcode();
                 $__entries = new ocp_tempcode();
                 $dotw = 0;
                 for ($j = 1; $j <= 31; $j++) {
                     if ($j == 10) {
                         $__entries->attach(do_lorem_template('CALENDAR_YEAR_MONTH_DAY_FREE', array('CLASS' => lorem_word(), 'CURRENT' => lorem_word(), 'DAY_URL' => placeholder_url(), 'DATE' => placeholder_date(), 'DAY' => lorem_word_2())));
                     } else {
                         $__entries->attach(do_lorem_template('CALENDAR_YEAR_MONTH_DAY_ACTIVE', array('CURRENT' => lorem_word(), 'DAY_URL' => placeholder_url(), 'DATE' => placeholder_date(), 'TITLE' => '', 'TIME' => '', 'URL' => '', 'ID' => '', 'PRIORITY' => lorem_word(), 'DAY' => placeholder_number(), 'ICON' => '', 'COUNT' => placeholder_number(), 'EVENTS_AND_PRIORITY_LANG' => lorem_phrase())));
                     }
                     if ($dotw == 6) {
                         $_entries->attach(do_lorem_template('CALENDAR_YEAR_MONTH_DAY_ROW', array('ENTRIES' => $__entries)));
                         $__entries = new ocp_tempcode();
                         $dotw = 0;
                     } else {
                         $dotw++;
                     }
                 }
                 for ($j = $dotw; $j < 7; $j++) {
                     $__entries->attach(do_lorem_template('CALENDAR_YEAR_MONTH_DAY_SPACER'));
                 }
                 $_entries->attach(do_lorem_template('CALENDAR_YEAR_MONTH_DAY_ROW', array('ENTRIES' => $__entries)));
                 $month = do_lorem_template('CALENDAR_YEAR_MONTH', array('ENTRIES' => $_entries));
                 $months .= $month->evaluate();
             }
             $month_rows->attach(do_lorem_template('CALENDAR_YEAR_MONTH_ROW', array('MONTHS' => $months, 'MONTH_A_URL' => placeholder_url(), 'MONTH_B_URL' => placeholder_url(), 'MONTH_C_URL' => placeholder_url(), 'MONTH_A' => lorem_word(), 'MONTH_B' => lorem_word(), 'MONTH_C' => lorem_word())));
             $main = do_lorem_template('CALENDAR_YEAR', array('MONTH_ROWS' => $month_rows, 'PERIOD_START' => placeholder_date_raw(), 'PERIOD_END' => placeholder_date_raw()));
             break;
     }
     $events1 = do_lorem_template('CALENDAR_EVENT_TYPE', array('S' => 'I', 'INTERESTED' => 'interested', 'TYPE' => lorem_phrase(), 'TYPE_ID' => placeholder_id()));
     $events2 = do_lorem_template('CALENDAR_EVENT_TYPE', array('S' => 'F', 'INTERESTED' => 'not_interested', 'TYPE' => lorem_phrase(), 'TYPE_ID' => placeholder_id()));
     return do_lorem_template('CALENDAR_MAIN_SCREEN', array('RSS_FORM' => placeholder_form(), 'DAY_URL' => placeholder_url(), 'WEEK_URL' => placeholder_url(), 'MONTH_URL' => placeholder_url(), 'YEAR_URL' => placeholder_url(), 'PREVIOUS_URL' => placeholder_url(), 'NEXT_URL' => placeholder_url(), 'ADD_URL' => placeholder_url(), 'TITLE' => lorem_title(), 'BACK_URL' => placeholder_url(), 'MAIN' => $main, 'FILTER_URL' => placeholder_url(), 'EVENT_TYPES_1' => $events1, 'INTERESTS_URL' => placeholder_url(), 'EVENT_TYPES_2' => $events2, 'PREVIOUS_NO_FOLLOW' => true, 'NEXT_NO_FOLLOW' => 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__administrative__theme_image_manage_screen()
 {
     return array(lorem_globalise(do_lorem_template('THEME_IMAGE_MANAGE_SCREEN', array('ADD_URL' => placeholder_url(), 'TITLE' => lorem_title(), 'FORM' => placeholder_form())), 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__administrative__wordfilter_screen()
 {
     return array(lorem_globalise(do_lorem_template('WORDFILTER_SCREEN', array('TITLE' => lorem_title(), 'TPL' => lorem_phrase(), 'ADD_FORM' => placeholder_form())), NULL, '', true));
 }
Example #14
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__gallery_import_screen()
 {
     //Need to create the form fields (instead of using placeholder_form()) because javascript is
     //using a field called 'files' (list type).
     require_lang('dearchive');
     $fields = new ocp_tempcode();
     $orphaned_content = new ocp_tempcode();
     $orphaned_content->attach(do_lorem_template('FORM_SCREEN_INPUT_LIST_ENTRY', array('SELECTED' => false, 'DISABLED' => false, 'CLASS' => '', 'NAME' => 'test', 'TEXT' => 'test')));
     $input = do_lorem_template('FORM_SCREEN_INPUT_LIST', array('TABINDEX' => placeholder_id(), 'REQUIRED' => '_required', 'NAME' => 'files', 'CONTENT' => $orphaned_content, 'INLINE_LIST' => true));
     $fields->attach(do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => false, 'BORING_NAME' => 'files', 'NAME' => lorem_phrase(), 'DESCRIPTION' => lorem_paragraph_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $input, 'COMCODE' => new ocp_tempcode())));
     $form = do_lorem_template('FORM', array('TABINDEX' => placeholder_number(), 'TEXT' => lorem_sentence_html(), 'FIELDS' => $fields, 'SUBMIT_NAME' => lorem_word(), 'URL' => placeholder_url(), 'HIDDEN' => '', 'BATCH_IMPORT_ARCHIVE_CONTENTS' => lorem_phrase()));
     return array(lorem_globalise(do_lorem_template('GALLERY_IMPORT_SCREEN', array('TITLE' => lorem_title(), 'FORM2' => placeholder_form(), 'FORM' => $form)), NULL, '', true));
 }
Example #15
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__setupwizard_7_screen()
 {
     return array(lorem_globalise(do_lorem_template('SETUPWIZARD_7_SCREEN', array('TITLE' => lorem_title(), 'FORM' => placeholder_form(), 'BALANCED' => lorem_phrase(), 'LIBERAL' => lorem_phrase(), 'CORPORATE' => lorem_phrase())), NULL, '', true));
 }
Example #16
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__file_dump_screen()
 {
     return array(lorem_globalise(do_lorem_template('FILE_DUMP_SCREEN', array('TITLE' => lorem_title(), 'FILES' => placeholder_table(), 'UPLOAD_FORM' => placeholder_form(), 'CREATE_FOLDER_FORM' => placeholder_form(), 'PLACE' => placeholder_id())), NULL, '', true));
 }
 /**
  * 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__posting_screen()
 {
     return array(lorem_globalise(do_lorem_template('POSTING_SCREEN', array('POSTING_FORM' => placeholder_form(), 'HIDDEN' => '', 'TITLE' => lorem_title(), 'TEXT' => lorem_sentence_html())), NULL, '', true));
 }
Example #18
0
 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__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));
 }