当前位置: 首页>>代码示例>>PHP>>正文


PHP placeholder_id函数代码示例

本文整理汇总了PHP中placeholder_id函数的典型用法代码示例。如果您正苦于以下问题:PHP placeholder_id函数的具体用法?PHP placeholder_id怎么用?PHP placeholder_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了placeholder_id函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tpl_preview__administrative__menu_editor_screen

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__menu_editor_screen()
 {
     $branch = do_lorem_template('MENU_EDITOR_BRANCH', array('CLICKABLE_SECTIONS' => 'true', 'I' => placeholder_id(), 'CHILD_BRANCH_TEMPLATE' => '', 'CHILD_BRANCHES' => ''));
     $child_branch_template = do_lorem_template('MENU_EDITOR_BRANCH_WRAP', array('DISPLAY' => 'display: block', 'CLICKABLE_SECTIONS' => true, 'ORDER' => 'replace_me_with_order', 'PARENT' => 'replace_me_with_parent', 'BRANCH_TYPE' => '0', 'NEW_WINDOW' => '0', 'CHECK_PERMS' => '0', 'CAPTION_LONG' => '', 'CAPTION' => '', 'URL' => '', 'PAGE_ONLY' => '', 'THEME_IMG_CODE' => '', 'I' => placeholder_id(), 'BRANCH' => $branch));
     $root_branch = do_lorem_template('MENU_EDITOR_BRANCH', array('CLICKABLE_SECTIONS' => 'true', 'CHILD_BRANCH_TEMPLATE' => $child_branch_template, 'CHILD_BRANCHES' => '', 'I' => ''));
     return array(lorem_globalise(do_lorem_template('MENU_EDITOR_SCREEN', array('ALL_MENUS' => placeholder_array(), 'MENU_NAME' => lorem_word(), 'DELETE_URL' => placeholder_url(), 'PING_URL' => placeholder_url(), 'WARNING_DETAILS' => '', 'FIELDS_TEMPLATE' => placeholder_fields(), 'HIGHEST_ORDER' => lorem_phrase(), 'URL' => placeholder_url(), 'CHILD_BRANCH_TEMPLATE' => $child_branch_template, 'ROOT_BRANCH' => $root_branch, 'TITLE' => lorem_title())), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:14,代码来源:core_menus.php

示例2: tpl_preview__rss_wrapper

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__rss_wrapper()
 {
     $comments = do_lorem_template('RSS_ENTRY_COMMENTS', array('COMMENT_URL' => placeholder_url(), 'ID' => placeholder_id()));
     $content = do_lorem_template('RSS_ABBR', array());
     $content->attach(do_lorem_template('RSS_ENTRY', array('TITLE' => lorem_phrase(), 'SUMMARY' => lorem_paragraph(), 'VIEW_URL' => placeholder_url(), 'AUTHOR' => lorem_word(), 'CATEGORY' => lorem_word(), 'IF_COMMENTS' => $comments, 'DATE' => placeholder_date())));
     $cloud = do_lorem_template('RSS_CLOUD', array('TYPE' => 'news', 'PORT' => '80', 'LOCAL_BASE_URL' => placeholder_url()));
     return array(lorem_globalise(do_lorem_template('RSS_WRAPPER', array('MODE' => 'rss', 'MODE_NICE' => lorem_word(), 'COPYRIGHT' => lorem_phrase(), 'ABOUT' => lorem_paragraph(), 'RSS_CLOUD' => $cloud, 'LOGO_URL' => placeholder_image_url(), 'DATE' => placeholder_date(), 'CONTENT' => $content)), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:15,代码来源:syndication.php

示例3: tpl_preview__administrative__validation_request

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__validation_request()
 {
     require_lang('unvalidated');
     return array(lorem_globalise(do_lorem_template('VALIDATION_REQUEST', array('USERNAME' => lorem_word(), 'TYPE' => lorem_phrase(), 'ID' => placeholder_id(), 'URL' => placeholder_url())), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:12,代码来源:unvalidated.php

示例4: tpl_preview__block_side_weather

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array                 Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__block_side_weather()
 {
     return array(lorem_globalise(do_lorem_template('BLOCK_SIDE_WEATHER', array('TITLE' => lorem_phrase(), 'LOC_CODE' => placeholder_id(), 'IMAGE' => placeholder_image_url(), 'COND' => lorem_sentence(), 'FORECAST' => lorem_sentence())), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:11,代码来源:weather.php

示例5: tpl_preview__comcode_page_screen

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__comcode_page_screen()
 {
     return array(lorem_globalise(do_lorem_template('COMCODE_PAGE_SCREEN', array('BEING_INCLUDED' => false, 'IS_PANEL' => false, 'SUBMITTER' => placeholder_id(), 'TAGS' => lorem_word_html(), 'WARNING_DETAILS' => '', 'EDIT_DATE_RAW' => placeholder_date_raw(), 'SHOW_AS_EDIT' => lorem_phrase(), 'CONTENT' => lorem_phrase(), 'EDIT_URL' => placeholder_url(), 'ADD_CHILD_URL' => placeholder_url(), 'NAME' => lorem_word())), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:11,代码来源:core_comcode_pages.php

示例6: tpl_preview__cedi_page_screen

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__cedi_page_screen()
 {
     require_lang('ocf');
     $extra = new ocp_tempcode();
     $extra = do_lorem_template('SCREEN_ITEM_BUTTON', array('REL' => 'edit', 'IMMEDIATE' => false, 'URL' => placeholder_url(), 'TITLE' => do_lang_tempcode('EDIT'), 'IMG' => 'edit'));
     $extra->attach(do_lorem_template('SCREEN_ITEM_BUTTON', array('REL' => 'move', 'IMMEDIATE' => false, 'URL' => placeholder_url(), 'TITLE' => do_lang_tempcode('MOVE'), 'IMG' => 'move')));
     $all_rating_criteria = array();
     $all_rating_criteria[] = array('TITLE' => lorem_word(), 'RATING' => make_string_tempcode("6"), 'NUM_RATINGS' => placeholder_number(), 'TYPE' => lorem_word());
     $rating_inside = do_lorem_template('CEDI_RATING_FORM', array('LIKES' => true, 'CONTENT_TYPE' => 'seedy', 'ID' => placeholder_id(), 'URL' => placeholder_url(), 'ALL_RATING_CRITERIA' => $all_rating_criteria, 'OVERALL_NUM_RATINGS' => placeholder_number(), 'HAS_RATINGS' => true, 'SIMPLISTIC' => true, 'ERROR' => ''));
     $rating_details = do_lorem_template('CEDI_RATING', array('OVERALL_NUM_RATINGS' => placeholder_number(), 'RATING_FORM' => $rating_inside, 'ALL_RATING_CRITERIA' => $all_rating_criteria, 'HAS_RATINGS' => true));
     $posts = do_lorem_template('CEDI_POST', array('INCLUDE_EXPANSION' => lorem_phrase(), 'UNVALIDATED' => do_lang('UNVALIDATED'), 'STAFF_ACCESS' => lorem_phrase(), 'EXP_IMG' => placeholder_img_code(), 'RATE_URL' => placeholder_url(), 'RATING' => $rating_details, 'ID' => placeholder_id(), 'POSTER_URL' => placeholder_url(), 'POSTER' => lorem_phrase(), 'POST_DATE_RAW' => placeholder_date(), 'POST_DATE' => placeholder_date(), 'POST' => lorem_phrase(), 'BUTTONS' => $extra));
     $_child = do_lorem_template('CEDI_SUBCATEGORY_CHILDREN', array('MY_CHILD_POSTS' => lorem_phrase(), 'MY_CHILD_CHILDREN' => lorem_phrase()));
     $child = do_lorem_template('CEDI_SUBCATEGORY_LINK', array('URL' => placeholder_url(), 'CHILD' => $_child, 'SUP' => lorem_phrase()));
     return array(lorem_globalise(do_lorem_template('CEDI_PAGE_SCREEN', array('TAGS' => lorem_word_html(), 'HIDE_POSTS' => placeholder_id(), 'ID' => placeholder_id(), 'VIEWS' => placeholder_number(), 'STAFF_ACCESS' => '1', 'DESCRIPTION' => lorem_paragraph_html(), 'TITLE' => lorem_title(), 'CHILDREN' => $child, 'POSTS' => $posts, 'NUM_POSTS' => placeholder_number(), 'MENU' => placeholder_button())), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:22,代码来源:cedi.php

示例7: tpl_preview__list_catalogue_products

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__list_catalogue_products()
 {
     require_lang('shopping');
     require_lang('catalogues');
     require_lang('ecommerce');
     require_css('catalogues');
     require_lang('catalogues');
     $fields = new ocp_tempcode();
     $fields_table = new ocp_tempcode();
     foreach (placeholder_array() as $v) {
         $_field = do_lorem_template('CATALOGUE_products_ENTRY_FIELD', array('ENTRYID' => placeholder_random_id(), 'CATALOGUE' => lorem_phrase(), 'TYPE' => lorem_word(), 'FIELD' => lorem_word(), 'FIELDID' => placeholder_random_id(), '_FIELDID' => placeholder_random_id(), 'FIELDTYPE' => lorem_word(), 'VALUE_PLAIN' => lorem_phrase(), 'VALUE' => lorem_phrase()), NULL, false, 'CATALOGUE_DEFAULT_ENTRY_FIELD');
         $fields->attach($_field);
     }
     $cart_link = do_lorem_template('CATALOGUE_ENTRY_ADD_TO_CART', array('OUT_OF_STOCK' => lorem_phrase(), 'ACTION_URL' => placeholder_url(), 'PRODUCT_ID' => placeholder_id(), 'ALLOW_OPTOUT_TAX' => lorem_phrase(), 'PURCHASE_ACTION_URL' => placeholder_url(), 'CART_URL' => placeholder_url()));
     $cart_logo = do_lorem_template('CART_LOGO', array('URL' => placeholder_url(), 'TITLE' => lorem_phrase()), NULL, false);
     $rating_inside = new ocp_tempcode();
     $entry = do_lorem_template('CATALOGUE_products_ENTRY_EMBED', array('FIELD_0' => lorem_phrase(), 'FIELD_1' => lorem_phrase(), 'PRODUCT_CODE' => placeholder_id(), 'FIELD_9' => lorem_phrase(), 'FIELD_2' => placeholder_number(), 'PRICE' => placeholder_number(), 'RATING' => $rating_inside, 'FIELD_7_THUMB' => placeholder_image(), 'FIELD_7_PLAIN' => placeholder_url(), 'MAP_TABLE' => placeholder_table(), 'CART_BUTTONS' => $cart_link, 'CART_LINK' => $cart_logo, 'FIELDS' => $fields, 'URL' => placeholder_url(), 'VIEW_URL' => placeholder_url()));
     return array(lorem_globalise($entry, NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:26,代码来源:shopping.php

示例8: tpl_preview__field_map_catalogue_embed_screen

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__field_map_catalogue_embed_screen()
 {
     $entries = new ocp_tempcode();
     $entries->attach(do_lorem_template('CATALOGUE_DEFAULT_ENTRY_EMBED', array('FIELDS' => placeholder_fields(), 'VIEW_URL' => placeholder_url(), 'FIELD_0' => lorem_word())));
     return array(lorem_globalise(do_lorem_template('CATALOGUE_DEFAULT_CATEGORY_EMBED', array('ENTRIES' => $entries, 'ROOT' => placeholder_id())), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:13,代码来源:catalogues.php

示例9: tpl_preview__file_dump_screen

 /**
  * 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));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:11,代码来源:filedump.php

示例10: tpl_preview__administrative__block_main_staff_checklist

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__administrative__block_main_staff_checklist()
 {
     $_status = do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM_STATUS_1');
     $info = do_lang_tempcode('DUE_TIME', placeholder_number(), placeholder_number());
     $dates = do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM', array('URL' => placeholder_url(), 'STATUS' => $_status, 'CONTACT_US_MESSAGING' => lorem_phrase(), 'TASK' => lorem_phrase(), 'INFO' => $info, 'NUM_QUEUE' => placeholder_id()));
     $status = do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM_STATUS_0', array('ORDER_STATUS' => 'not_completed'));
     $url = build_url(array('page' => 'admin_orders', 'type' => 'show_orders', 'filter' => 'undispatched'), get_module_zone('admin_orders'));
     $no_times = do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM', array('URL' => placeholder_url(), 'STATUS' => $status, 'TASK' => lorem_phrase(), 'CONTACT_US_MESSAGING' => lorem_phrase(), 'INFO' => lorem_phrase(), 'NUM_QUEUE' => placeholder_id()));
     $todo = do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM', array('URL' => placeholder_url(), 'STATUS' => do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM_STATUS_1'), 'CONTACT_US_MESSAGING' => lorem_phrase(), 'TASK' => lorem_phrase(), 'INFO' => lorem_phrase(), 'NUM_QUEUE' => placeholder_id()));
     $custom_task = new ocp_tempcode();
     foreach (placeholder_array() as $k => $v) {
         $custom_task->attach(do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_CUSTOM_TASK', array('TASKDONE' => 'checklist0', 'ADD_TIME' => placeholder_time(), 'RECURINTERVAL' => '', 'ID' => placeholder_id(), 'TASKTITLE' => lorem_word_2())));
     }
     $custom_task->attach(do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST_ITEM_STATUS_NA', array()));
     return array(lorem_globalise(do_lorem_template('BLOCK_MAIN_STAFF_CHECKLIST', array('URL' => placeholder_url(), 'NOTES' => lorem_phrase(), 'CUSTOMTASKS' => $custom_task, 'DATES' => $dates, 'NO_TIMES' => $no_times, 'TODO_COUNTS' => $todo)), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:23,代码来源:core_adminzone_frontpage.php

示例11: tpl_preview__news_full_screen

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__news_full_screen()
 {
     require_lang('news');
     $tags = array();
     foreach (placeholder_array() as $k => $v) {
         $tags[] = array('TAG' => lorem_word(), 'LINK_LIMITEDSCOPE' => placeholder_url(), 'LINK_FULLSCOPE' => placeholder_url());
     }
     $comment_details = do_lorem_template('COMMENTS_POSTING_FORM', array('JOIN_BITS' => lorem_phrase_html(), 'USE_CAPTCHA' => false, 'EMAIL_OPTIONAL' => lorem_word(), 'POST_WARNING' => '', 'COMMENT_TEXT' => '', 'GET_EMAIL' => true, 'GET_TITLE' => true, 'EM' => placeholder_emoticon_chooser(), 'DISPLAY' => 'block', 'COMMENT_URL' => placeholder_url(), 'TITLE' => lorem_phrase(), 'MAKE_POST' => true, 'CREATE_TICKET_MAKE_POST' => true, 'FIRST_POST_URL' => '', 'FIRST_POST' => ''));
     return array(lorem_globalise(do_lorem_template('NEWS_FULL_SCREEN', array('ID' => placeholder_id(), 'CATEGORY_ID' => placeholder_id(), 'BLOG' => TRUE, '_TITLE' => lorem_phrase(), 'TAGS' => do_lorem_template('TAGS', array('TAGS' => $tags, 'TYPE' => '')), 'CATEGORIES' => placeholder_array(), 'NEWSLETTER_URL' => addon_installed('newsletter') ? placeholder_url() : '', 'ADD_DATE_RAW' => placeholder_date_raw(), 'EDIT_DATE_RAW' => '', 'SUBMITTER' => placeholder_id(), 'CATEGORY' => lorem_word(), 'IMG' => placeholder_image(), 'TITLE' => lorem_title(), 'VIEWS' => "3", 'COMMENT_DETAILS' => $comment_details, 'RATING_DETAILS' => lorem_sentence(), 'TRACKBACK_DETAILS' => lorem_sentence(), 'DATE' => placeholder_time(), 'AUTHOR' => lorem_word(), 'AUTHOR_URL' => placeholder_url(), 'NEWS_FULL' => lorem_paragraph(), 'NEWS_FULL_PLAIN' => lorem_sentence(), 'EDIT_URL' => placeholder_url(), 'ARCHIVE_URL' => placeholder_url(), 'SUBMIT_URL' => placeholder_url(), 'WARNING_DETAILS' => '')), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:17,代码来源:news.php

示例12: tpl_preview__block_main_contact_us

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__block_main_contact_us()
 {
     $comment_details = do_lorem_template('COMMENTS_POSTING_FORM', array('JOIN_BITS' => lorem_phrase_html(), 'USE_CAPTCHA' => false, 'EMAIL_OPTIONAL' => lorem_word(), 'POST_WARNING' => '', 'COMMENT_TEXT' => '', 'GET_EMAIL' => true, 'GET_TITLE' => true, 'EM' => placeholder_emoticon_chooser(), 'DISPLAY' => 'block', 'COMMENT_URL' => placeholder_url(), 'TITLE' => lorem_phrase(), 'MAKE_POST' => true, 'CREATE_TICKET_MAKE_POST' => true, 'FIRST_POST_URL' => '', 'FIRST_POST' => ''));
     return array(lorem_globalise(do_lorem_template('BLOCK_MAIN_CONTACT_US', array('COMMENT_DETAILS' => $comment_details, 'MESSAGE' => lorem_phrase(), 'NOTIFICATIONS_ENABLED' => lorem_phrase(), 'TYPE' => placeholder_id(), 'FIRST_POST' => lorem_paragraph_html())), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:12,代码来源:staff_messaging.php

示例13: tpl_preview__rating_display_shared

 /**
  * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
  * Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
  * Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
  *
  * @return array			Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
  */
 function tpl_preview__rating_display_shared()
 {
     $all_rating_criteria = array();
     foreach (placeholder_array() as $i => $v) {
         $all_rating_criteria[] = array('TITLE' => lorem_word(), 'RATING' => '3', 'OVERALL_NUM_RATINGS' => placeholder_number(), 'TYPE' => lorem_word() . strval($i));
     }
     $rating_form = do_lorem_template('RATING_FORM', array('CONTENT_TYPE' => lorem_word(), 'ID' => placeholder_id(), 'URL' => placeholder_url(), 'ALL_RATING_CRITERIA' => $all_rating_criteria, 'HAS_RATINGS' => true, 'SIMPLISTIC' => false, 'ERROR' => '', 'LIKES' => true));
     return array(lorem_globalise(do_lorem_template('RATING_DISPLAY_SHARED', array('CONTENT_TYPE' => lorem_word(), 'ID' => placeholder_id(), 'ALL_RATING_CRITERIA' => $all_rating_criteria, 'HAS_RATINGS' => true, 'NUM_RATINGS' => placeholder_number(), 'OVERALL_NUM_RATINGS' => placeholder_number(), 'RATING_FORM' => $rating_form, 'ERROR' => '', 'LIKES' => false)), NULL, '', true));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:16,代码来源:core_feedback_features.php

示例14: tpl_preview__bookmarks_screen

 /**
  * 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));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:13,代码来源:bookmarks.php

示例15: tpl_preview__result_table_screen_2

 /**
  * 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));
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:64,代码来源:core_abstract_interfaces.php


注:本文中的placeholder_id函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。