本文整理汇总了PHP中placeholder_url函数的典型用法代码示例。如果您正苦于以下问题:PHP placeholder_url函数的具体用法?PHP placeholder_url怎么用?PHP placeholder_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了placeholder_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tpl_preview__form_screen_input_captcha
/**
* 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_input_captcha()
{
require_code('captcha');
generate_captcha();
$input = do_lorem_template('FORM_SCREEN_INPUT_CAPTCHA', array('TABINDEX' => placeholder_number()));
$captcha = do_lorem_template('FORM_SCREEN_FIELD', array('REQUIRED' => true, 'SKIP_LABEL' => false, 'BORING_NAME' => 'security_image', 'NAME' => lorem_phrase(), 'DESCRIPTION' => lorem_sentence_html(), 'DESCRIPTION_SIDE' => '', 'INPUT' => $input, 'COMCODE' => ''));
return array(lorem_globalise(do_lorem_template('FORM_SCREEN', array('SKIP_VALIDATION' => true, 'HIDDEN' => '', 'TITLE' => lorem_title(), 'URL' => placeholder_url(), 'FIELDS' => $captcha, 'SUBMIT_NAME' => lorem_word(), 'TEXT' => lorem_sentence_html())), NULL, '', true));
}
示例2: tpl_preview__supermembers_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__supermembers_screen()
{
require_lang('authors');
require_lang('points');
$groups_current = do_lorem_template('SUPERMEMBERS_SCREEN_ENTRY', array('NAME' => lorem_phrase(), 'DAYS' => placeholder_number(), 'PROFILE_URL' => placeholder_url(), 'AUTHOR_URL' => placeholder_url(), 'POINTS_URL' => placeholder_url(), 'PM_URL' => placeholder_url(), 'SKILLS' => lorem_phrase()));
$groups = do_lorem_template('SUPERMEMBERS_SCREEN_GROUP', array('ENTRIES' => $groups_current, 'GROUP_NAME' => lorem_phrase()));
return array(lorem_globalise(do_lorem_template('SUPERMEMBERS_SCREEN', array('TITLE' => lorem_title(), 'GROUPS' => $groups, 'TEXT' => lorem_sentence_html())), NULL, '', true));
}
示例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));
}
示例4: tpl_preview__news_piece_summary
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__news_piece_summary()
{
return array(lorem_globalise(do_lorem_template('NEWS_PIECE_SUMMARY', array('BLOG' => lorem_phrase(), 'AUTHOR_URL' => placeholder_url(), 'TAGS' => '', 'CATEGORY' => lorem_phrase(), 'IMG' => placeholder_image_url(), 'AUTHOR' => lorem_phrase(), '_AUTHOR' => lorem_phrase(), 'SUBMITTER' => lorem_phrase(), 'AVATAR' => lorem_phrase(), 'NEWS_TITLE' => lorem_phrase(), 'DATE' => lorem_phrase(), 'NEWS' => lorem_phrase(), 'COMMENTS' => lorem_phrase(), 'VIEW' => lorem_phrase(), 'ID' => placeholder_id(), 'FULL_URL' => placeholder_url(), 'COMMENT_COUNT' => lorem_phrase(), 'READ_MORE' => lorem_sentence(), 'TRUNCATE' => false, 'FIRSTTIME' => lorem_word(), 'LASTTIME' => lorem_word_2(), 'CLOSED' => lorem_word(), 'FIRSTUSERNAME' => lorem_word(), 'LASTUSERNAME' => lorem_word(), 'FIRSTMEMBERID' => lorem_word(), 'LASTMEMBERID' => lorem_word(), 'DATE_RAW' => lorem_word())), NULL, '', true));
}
示例5: tpl_preview__administrative__redirecte_table_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__redirecte_table_screen()
{
require_javascript('javascript_ajax');
$fields = new ocp_tempcode();
foreach (placeholder_array() as $i => $row) {
$fields->attach(do_lorem_template('REDIRECTE_TABLE_REDIRECT', array('I' => strval($i), 'TO_ZONES' => placeholder_options(), 'FROM_ZONES' => placeholder_options(), 'FROM_PAGE' => lorem_word(), 'TO_PAGE' => lorem_word_2(), 'TICKED' => true, 'NAME' => "is_transparent_{$i}")));
}
$new = do_lorem_template('REDIRECTE_TABLE_REDIRECT', array('I' => 'new', 'TO_ZONES' => placeholder_options(), 'FROM_ZONES' => placeholder_options(), 'FROM_PAGE' => '', 'TO_PAGE' => '', 'TICKED' => false, 'NAME' => 'is_transparent_new'));
$out = do_lorem_template('REDIRECTE_TABLE_SCREEN', array('NOTES' => '', 'PING_URL' => placeholder_url(), 'WARNING_DETAILS' => '', 'TITLE' => lorem_title(), 'FIELDS' => $fields, 'NEW' => $new, 'URL' => placeholder_url()));
return array(lorem_globalise($out, NULL, '', true));
}
示例6: tpl_preview__administrative__translate_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__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));
}
示例7: tpl_preview__staff_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__staff_screen()
{
return array(lorem_globalise(do_lorem_template('STAFF_SCREEN', array('TITLE' => lorem_title(), 'REAL_NAME' => lorem_phrase(), 'ROLE' => lorem_phrase(), 'ADDRESS' => lorem_phrase(), 'NAME' => lorem_word(), 'MEMBER_ID' => placeholder_id(), 'PROFILE_URL' => placeholder_url(), 'ALL_LINK' => placeholder_url())), NULL, '', true));
}
示例8: tpl_preview__forum_attachment_link
/**
* 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__forum_attachment_link()
{
$content = do_lorem_template('FORUM_ATTACHMENT_IMAGE_THUMB', array('FULL' => placeholder_url(), 'URL' => placeholder_image_url()));
$content->attach(do_lorem_template('FORUM_ATTACHMENT_LINK', array('FULL' => placeholder_url(), 'FILENAME' => lorem_word(), 'CLEAN_SIZE' => placeholder_filesize(), 'NUM_DOWNLOADS' => placeholder_number())));
return array(lorem_globalise($content, NULL, '', true));
}
示例9: 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));
}
示例10: tpl_preview__administrative__logowizard_2_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__logowizard_2_screen()
{
require_lang('themes');
$preview = do_lorem_template('LOGOWIZARD_2_SCREEN', array('NAME' => lorem_phrase(), 'TITLE' => lorem_phrase(), 'THEME' => lorem_phrase()));
return array(lorem_globalise(do_lorem_template('FORM_CONFIRM_SCREEN', array('URL' => placeholder_url(), 'BACK_URL' => placeholder_url(), 'PREVIEW' => $preview, 'FIELDS' => placeholder_table(), 'TITLE' => lorem_title())), NULL, '', true));
}
示例11: tpl_preview__ocf_view_group_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__ocf_view_group_screen()
{
$_primary_members = placeholder_array();
$primary_members = new ocp_tempcode();
$_secondary_members = new ocp_tempcode();
$secondary_members = new ocp_tempcode();
$prospective_members = new ocp_tempcode();
$_prospective_members = new ocp_tempcode();
foreach ($_primary_members as $i => $primary_member) {
$temp = do_lorem_template('OCF_VIEW_GROUP_MEMBER', array('NAME' => $primary_member, 'URL' => placeholder_url()));
//results_entry starts
$cells = do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => $temp), NULL, false);
$entries = do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false);
//results_entry ends
$primary_members->attach($entries);
}
$fields_title = do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => lorem_word()));
//results_table
$primary_members = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $primary_members, 'MESSAGE' => '', 'SORT' => '', 'BROWSER' => '', 'WIDTHS' => array(placeholder_number())), NULL, false);
$temp = new ocp_tempcode();
foreach (placeholder_array() as $i => $v) {
$temp = do_lorem_template('OCF_VIEW_GROUP_MEMBER_SECONDARY', array('URL' => placeholder_url(), 'REMOVE_URL' => placeholder_url(), 'NAME' => $v));
$cells = do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => $temp), NULL, false);
/* $cells->attach(do_lorem_template('RESULTS_TABLE_FIELD',array('VALUE'=>strval($i)),NULL,false));
$cells->attach(do_lorem_template('RESULTS_TABLE_FIELD',array('VALUE'=>strval($i)),NULL,false));*/
$entries = do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false);
$_secondary_members->attach($entries);
}
$fields_title = do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => lorem_word()));
/*$fields_title->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE',array('VALUE'=>lorem_word_2())));
$fields_title->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE',array('VALUE'=>lorem_word_2())));*/
//results_table
$secondary_members = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $_secondary_members, 'MESSAGE' => '', 'SORT' => '', 'BROWSER' => '', 'WIDTHS' => array(placeholder_number())), NULL, false);
foreach (placeholder_array() as $i => $v) {
$temp = do_lorem_template('OCF_VIEW_GROUP_MEMBER_PROSPECTIVE', array('ACCEPT_URL' => placeholder_url(), 'DECLINE_URL' => placeholder_url(), 'NAME' => lorem_word(), 'URL' => placeholder_url()));
$cells = do_lorem_template('RESULTS_TABLE_FIELD', array('VALUE' => $temp), NULL, false);
//$cells->attach(do_lorem_template('RESULTS_TABLE_FIELD',array('VALUE'=>strval($i)),NULL,false));
$entries = do_lorem_template('RESULTS_TABLE_ENTRY', array('VALUES' => $cells), NULL, false);
$_prospective_members->attach($entries);
}
$fields_title = do_lorem_template('RESULTS_TABLE_FIELD_TITLE', array('VALUE' => lorem_word()));
//$fields_title->attach(do_lorem_template('RESULTS_TABLE_FIELD_TITLE',array('VALUE'=>lorem_word_2())));
//results_table
$prospective_members = do_lorem_template('RESULTS_TABLE', array('TEXT_ID' => lorem_phrase(), 'FIELDS_TITLE' => $fields_title, 'FIELDS' => $_prospective_members, 'MESSAGE' => '', 'SORT' => '', 'BROWSER' => '', 'WIDTHS' => array(placeholder_number())), NULL, false);
return array(lorem_globalise(do_lorem_template('OCF_VIEW_GROUP_SCREEN', array('GROUP_NAME' => lorem_phrase(), 'ID' => placeholder_id(), 'FORUM' => '', 'CLUB' => false, 'EDIT_URL' => placeholder_url(), 'TITLE' => lorem_title(), 'LEADER' => lorem_phrase(), 'NAME' => lorem_word(), 'PROMOTION_INFO' => new ocp_tempcode(), 'ADD_URL' => placeholder_url(), 'APPLY_URL' => placeholder_url(), 'APPLY_TEXT' => lorem_sentence(), 'PRIMARY_MEMBERS' => $primary_members, 'SECONDARY_MEMBERS' => $secondary_members, 'PROSPECTIVE_MEMBERS' => $prospective_members)), NULL, '', true));
}
示例12: tpl_preview__iotd_view_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__iotd_view_screen()
{
require_lang('ocf');
require_lang('captcha');
require_lang('trackbacks');
$trackbacks = new ocp_tempcode();
foreach (placeholder_array(1) as $k => $v) {
$trackbacks->attach(do_lorem_template('TRACKBACK', array('ID' => placeholder_id(), 'TIME_RAW' => placeholder_date_raw(), 'TIME' => placeholder_date(), 'URL' => placeholder_url(), 'TITLE' => lorem_phrase(), 'EXCERPT' => lorem_paragraph(), 'NAME' => lorem_phrase())));
}
$trackback_details = do_lorem_template('TRACKBACK_WRAPPER', array('TRACKBACKS' => $trackbacks, 'TRACKBACK_PAGE' => placeholder_id(), 'TRACKBACK_ID' => placeholder_id(), 'TRACKBACK_TITLE' => lorem_phrase()));
$rating_details = new ocp_tempcode();
$review_titles = array();
$review_titles[] = array('REVIEW_TITLE' => lorem_word(), 'REVIEW_RATING' => make_string_tempcode(float_format(10.0)));
$comments = '';
$form = do_lorem_template('COMMENTS_POSTING_FORM', array('JOIN_BITS' => lorem_phrase_html(), 'FIRST_POST_URL' => placeholder_url(), 'FIRST_POST' => lorem_paragraph_html(), 'TYPE' => 'downloads', 'ID' => placeholder_id(), 'REVIEW_RATING_CRITERIA' => $review_titles, 'USE_CAPTCHA' => true, 'GET_EMAIL' => false, 'EMAIL_OPTIONAL' => true, 'GET_TITLE' => true, 'POST_WARNING' => do_lang('POST_WARNING'), 'COMMENT_TEXT' => get_option('comment_text'), 'EM' => placeholder_emoticon_chooser(), 'DISPLAY' => 'block', 'COMMENT_URL' => placeholder_url(), 'TITLE' => lorem_word(), 'MAKE_POST' => true, 'CREATE_TICKET_MAKE_POST' => true));
$comment_details = do_lorem_template('COMMENTS_WRAPPER', array('TYPE' => lorem_phrase(), 'ID' => placeholder_id(), 'REVIEW_RATING_CRITERIA' => $review_titles, 'AUTHORISED_FORUM_LINK' => placeholder_url(), 'FORM' => $form, 'COMMENTS' => $comments));
return array(lorem_globalise(do_lorem_template('IOTD_VIEW_SCREEN', array('TITLE' => lorem_title(), 'SUBMITTER' => lorem_word_html(), 'I_TITLE' => lorem_phrase(), 'CAPTION' => lorem_phrase(), 'DATE_RAW' => placeholder_date_raw(), 'ADD_DATE_RAW' => placeholder_date_raw(), 'EDIT_DATE_RAW' => placeholder_date_raw(), 'DATE' => placeholder_time(), 'ADD_DATE' => placeholder_time(), 'EDIT_DATE' => placeholder_time(), 'VIEWS' => placeholder_number(), 'TRACKBACK_DETAILS' => $trackback_details, 'RATING_DETAILS' => $rating_details, 'COMMENT_DETAILS' => $comment_details, 'EDIT_URL' => placeholder_url(), 'URL' => placeholder_image_url())), NULL, '', true));
}
示例13: tpl_preview__block_main_rss
/**
* Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.
* Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declaritive.
* Assumptions: You can assume all Lang/CSS/Javascript files in this addon have been pre-required.
*
* @return array Array of previews, each is Tempcode. Normally we have just one preview, but occasionally it is good to test templates are flexible (e.g. if they use IF_EMPTY, we can test with and without blank data).
*/
function tpl_preview__block_main_rss()
{
require_lang('news');
require_css('news');
$content = new ocp_tempcode();
foreach (placeholder_array() as $k => $v) {
$news_full = do_lorem_template('BLOCK_MAIN_RSS_FULL', array('RAND' => placeholder_number(), 'NEWS_FULL' => lorem_paragraph()));
$tails = do_lorem_template('BLOCK_MAIN_RSS_LIST_FIRST', array('X' => lorem_phrase()));
$tails->attach(do_lorem_template('BLOCK_MAIN_RSS_LIST_MIDDLE', array('X' => placeholder_url())));
$tails->attach(do_lorem_template('BLOCK_MAIN_RSS_LIST_LAST', array('X' => placeholder_url())));
$category = do_lorem_template('BLOCK_MAIN_RSS_CATEGORY', array('IMG' => placeholder_image_url(), 'CATEGORY' => lorem_phrase()));
$category->attach(do_lorem_template('BLOCK_MAIN_RSS_CATEGORY_NO_IMG', array('CATEGORY' => lorem_phrase())));
$_title = do_lorem_template('BLOCK_MAIN_RSS_TITLE', array('CATEGORY' => lorem_phrase(), 'TITLE' => lorem_phrase()));
$__title = do_lorem_template('BLOCK_MAIN_RSS_FROM_TITLE', array('FEED_URL' => placeholder_url(), 'NEWS_TITLE' => lorem_phrase(), 'DATE' => placeholder_time()));
$content->attach(do_lorem_template('BLOCK_MAIN_RSS_SUMMARY', array('FEED_URL' => placeholder_url(), 'NEWS_FULL' => $news_full, 'DATE' => placeholder_time(), 'TAILS' => $tails, 'AUTHOR' => lorem_phrase(), 'CATEGORY' => $category, 'FULL_URL' => placeholder_link(), 'FULL_URL_RAW' => placeholder_url(), 'NEWS_TITLE' => $__title, 'NEWS' => lorem_paragraph())));
}
return array(lorem_globalise(do_lorem_template('BLOCK_MAIN_RSS', array('FEED_URL' => placeholder_url(), 'TITLE' => lorem_phrase(), 'COPYRIGHT' => lorem_phrase(), 'AUTHOR' => lorem_phrase(), 'CONTENT' => $content)), NULL, '', true));
}
示例14: tpl_preview__search_form_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__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));
}
示例15: tpl_preview__administrative__validate_check_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__validate_check_screen()
{
require_lang('validation');
$content = new ocp_tempcode();
foreach (placeholder_array() as $val) {
$content->attach(do_lorem_template('VALIDATE_CHECK_ERROR', array('URL' => placeholder_url(), 'POINT' => lorem_phrase())));
}
return array(lorem_globalise(do_lorem_template('VALIDATE_CHECK_SCREEN', array('TITLE' => lorem_title(), 'CONTENTS' => $content)), NULL, '', true));
}