本文整理汇总了PHP中wpdreams_setval_or_getoption函数的典型用法代码示例。如果您正苦于以下问题:PHP wpdreams_setval_or_getoption函数的具体用法?PHP wpdreams_setval_or_getoption怎么用?PHP wpdreams_setval_or_getoption使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wpdreams_setval_or_getoption函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wpdreamsYesNo
$o = new wpdreamsYesNo("search_attachments_title", "Search in attachment titles?", wpdreams_setval_or_getoption($sd, "search_attachments_title", $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("search_attachments_content", "Search in attachment content?", wpdreams_setval_or_getoption($sd, "search_attachments_content", $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsTextareaBase64("attachment_mime_types", "Allowed mime types", wpdreams_setval_or_getoption($sd, "attachment_mime_types", $_dk));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><strong>Comma separated list</strong> of allowed mime types. List of <a href="https://codex.wordpress.org/Function_Reference/get_allowed_mime_types"
target="_blank">default allowed mime types</a> in WordPress.</p>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("attachment_use_image", "Use the image of image mime types as the result image?", wpdreams_setval_or_getoption($sd, "attachment_use_image", $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsTextarea("attachment_exclude", "Exclude attachment IDs", wpdreams_setval_or_getoption($sd, "attachment_exclude", $_dk));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><strong>Comma separated list</strong> of attachment IDs to exclude.</p>
</div>
示例2: wpdreamsColorPicker
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("resultsbackground", "Results box background color", wpdreams_setval_or_getoption($sd, 'resultsbackground', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("resultscontainerbackground", "Result items container box background color", wpdreams_setval_or_getoption($sd, 'resultscontainerbackground', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsGradient("vresulthbg", "Result item mouse hover box background gradient", wpdreams_setval_or_getoption($sd, 'vresulthbg', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("spacercolor", "Spacer color between results", wpdreams_setval_or_getoption($sd, 'spacercolor', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("arrowcolor", "Resultbar arrow color", wpdreams_setval_or_getoption($sd, 'arrowcolor', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("overflowcolor", "Resultbar overflow color", wpdreams_setval_or_getoption($sd, 'overflowcolor', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
示例3: wpdreamsCustomSelect
$params[$o->getName()] = $o->getData();
?>
</div>
</fieldset>
<fieldset>
<legend>Random matches weight</legend>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("titleweight", "Title weight", array('selects' => wpdreams_setval_or_getoption($sd, 'weight_def', $_dk), 'value' => wpdreams_setval_or_getoption($sd, 'titleweight', $_dk)));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("contentweight", "Content weight", array('selects' => wpdreams_setval_or_getoption($sd, 'weight_def', $_dk), 'value' => wpdreams_setval_or_getoption($sd, 'contentweight', $_dk)));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("excerptweight", "Excerpt weight", array('selects' => wpdreams_setval_or_getoption($sd, 'weight_def', $_dk), 'value' => wpdreams_setval_or_getoption($sd, 'excerptweight', $_dk)));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("termsweight", "Terms weight", array('selects' => wpdreams_setval_or_getoption($sd, 'weight_def', $_dk), 'value' => wpdreams_setval_or_getoption($sd, 'termsweight', $_dk)));
$params[$o->getName()] = $o->getData();
?>
</div>
</fieldset>
示例4: wpdreamsYesNo
<div class="item">
<?php
$o = new wpdreamsYesNo("keywordsuggestions", "Keyword suggestions on no results?", wpdreams_setval_or_getoption($sd, 'keywordsuggestions', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsDraggable("keyword_suggestion_source", "Keyword suggestion sources", array('selects' => $sugg_select_arr, 'value' => wpdreams_setval_or_getoption($sd, 'keyword_suggestion_source', $_dk), 'description' => 'Select which sources you prefer for keyword suggestions. Order counts.'));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsTextSmall("keyword_suggestion_count", "Max. suggestion count", wpdreams_setval_or_getoption($sd, 'keyword_suggestion_count', $_dk));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">The number of possible suggestions.</p>
</div>
<div class="item"><?php
$o = new wpdreamsTextSmall("keyword_suggestion_length", "Max. suggestion length", wpdreams_setval_or_getoption($sd, 'keyword_suggestion_length', $_dk));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">The length of each suggestion in characters. 30-50 is a good number to avoid too long suggestions.</p>
</div>
<div class="item"><?php
$o = new wpdreamsLanguageSelect("keywordsuggestionslang", "Google keyword suggestions language", wpdreams_setval_or_getoption($sd, 'keywordsuggestionslang', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
示例5: wpdreamsYesNo
$o = new wpdreamsYesNo("triggerontype", __("Trigger search when typing?", "ajax-search-lite"), wpdreams_setval_or_getoption($sd, 'triggerontype', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsTextSmall("charcount", __("Minimal character count to trigger search", "ajax-search-lite"), wpdreams_setval_or_getoption($sd, 'charcount', $_dk), array(array("func" => "ctype_digit", "op" => "eq", "val" => true)));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsTextSmall("maxresults", __("Max. results", "ajax-search-lite"), wpdreams_setval_or_getoption($sd, 'maxresults', $_dk), array(array("func" => "ctype_digit", "op" => "eq", "val" => true)));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("description_context", __("Display the description context?", "ajax-search-lite"), wpdreams_setval_or_getoption($sd, 'description_context', $_dk));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php
__("Will display the description from around the search phrase, not from the beginning.", "ajax-search-lite");
?>
</p>
</div>
<div class="item"><?php
$o = new wpdreamsTextSmall("itemscount", __("Results box viewport (in item numbers)", "ajax-search-lite"), wpdreams_setval_or_getoption($sd, 'itemscount', $_dk), array(array("func" => "ctype_digit", "op" => "eq", "val" => true)));
$params[$o->getName()] = $o->getData();
?>
</div>
示例6: wpdreamsText
</div>
<div class="item"><?php
$o = new wpdreamsText("noresultstext", "No results text", wpdreams_setval_or_getoption($sd, 'noresultstext', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsText("didyoumeantext", "Did you mean text", wpdreams_setval_or_getoption($sd, 'didyoumeantext', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsYesNo("highlight", "Highlight search text in results?", wpdreams_setval_or_getoption($sd, 'highlight', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsYesNo("highlightwholewords", "Highlight only whole words?", wpdreams_setval_or_getoption($sd, 'highlightwholewords', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("highlightcolor", "Highlight text color", wpdreams_setval_or_getoption($sd, 'highlightcolor', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("highlightbgcolor", "Highlight-text background color", wpdreams_setval_or_getoption($sd, 'highlightbgcolor', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
示例7: wpdreamsYesNo
$o = new wpdreamsYesNo("return_categories", "Return post categories as results?", wpdreams_setval_or_getoption($sd, "return_categories", $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("return_tags", "Return post tags as results?", wpdreams_setval_or_getoption($sd, "return_tags", $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsTaxonomySelect("return_terms", "Return taxonomy terms as results", array("value" => wpdreams_setval_or_getoption($sd, 'return_terms', $_dk), "type" => "include"));
$params[$o->getName()] = $o->getData();
$params['selected-' . $o->getName()] = $o->getSelected();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("display_number_posts_affected", "Display the number of posts associated with the terms?", wpdreams_setval_or_getoption($sd, "display_number_posts_affected", $_dk));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">Will display the number of associated posts in a bracket after the term.</p>
</div>
<div class="item">
<?php
$o = new wpdreamsTextarea("return_terms_exclude", "Exclude categories/terms by ID", wpdreams_setval_or_getoption($sd, "return_terms_exclude", $_dk));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">Comma "," separated list of category/term IDs.</p>
</div>
示例8: wpdreamsYesNo
<p class='infoMsg'>Turn this OFF if you are experiencing performance issues.</p>
<?php
$o = new wpdreamsYesNo("image_cropping", "Crop images for caching?", wpdreams_setval_or_getoption($cache_options, 'image_cropping', 'asp_caching_def'));
?>
<p class="descMsg">This disables the thumbnail generator, and the full sized images are used as cover. Not much difference visually, but saves a lot of CPU.</p>
</div>
<div class="item">
<p class='infoMsg'>Set <b>BFI Thumb</b> to NO if you are experiencing issues with the <b>images</b>, or if
the images are <b>not loading</b>!</p>
<?php
$o = new wpdreamsYesNo("use_bfi_thumb", "Use the BFI Thumb library for image caching?", wpdreams_setval_or_getoption($cache_options, 'use_bfi_thumb', 'asp_caching_def'));
?>
</div>
<div class="item">
<?php
$o = new wpdreamsText("cachinginterval", "Caching interval (in minutes, default 1440, aka. 1 day)", wpdreams_setval_or_getoption($cache_options, 'cachinginterval', 'asp_caching_def'), array(array("func" => "ctype_digit", "op" => "eq", "val" => true)));
?>
</div>
<div class="item">
<input type='submit' class='submit' value='Save options'/>
</div>
<?php
$_r = ob_get_clean();
?>
<?php
$updated = false;
if (isset($_POST) && isset($_POST['asp_caching']) && wpdreamsType::getErrorNum() == 0) {
$values = array("caching" => $_POST['caching'], "image_cropping" => $_POST['image_cropping'], "use_bfi_thumb" => $_POST['use_bfi_thumb'], "cachinginterval" => $_POST['cachinginterval']);
update_option('asp_caching', $values);
示例9: defined
defined('ABSPATH') or die("You can't access this file directly.");
require_once ASP_PATH . "/includes/etc/performance.class.php";
$perf_options = get_option('asp_performance');
if (ASP_DEMO) {
$_POST = null;
}
?>
<div id="wpdreams" class='wpdreams wrap'>
<div class="wpdreams-box">
<?php
ob_start();
?>
<div class="item">
<?php
$o = new wpdreamsYesNo("enabled", "Enable performance tracking?", wpdreams_setval_or_getoption($perf_options, 'enabled', 'asp_performance_def'));
?>
</div>
<?php
$_r = ob_get_clean();
?>
<?php
$updated = false;
if (isset($_POST) && isset($_POST['asp_performance']) && wpdreamsType::getErrorNum() == 0) {
$values = array("enabled" => $_POST['enabled']);
update_option('asp_performance', $values);
$updated = true;
}
if (isset($_POST) && isset($_POST['asp_perf_clear'])) {
$pstats = new wpd_Performance('asp_performance_stats');
示例10: wpdreamsText
</div>
<div class="item">
<?php
$o = new wpdreamsText("term_group_text", "Term group default text", wpdreams_setval_or_getoption($sd, 'term_group_text', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsText("attachment_group_text", "Attachment group header text", wpdreams_setval_or_getoption($sd, 'attachment_group_text', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsText("uncategorizedtext", "Uncategorized group text", wpdreams_setval_or_getoption($sd, 'uncategorizedtext', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("showpostnumber", "Show Post Numbering", wpdreams_setval_or_getoption($sd, 'showpostnumber', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("wpml_compatibility", "WPML compatibility", wpdreams_setval_or_getoption($sd, 'wpml_compatibility', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
示例11: wpdreamsFontComplete
<div class="item"><?php
$o = new wpdreamsFontComplete("pressubtitlefont", "Result sub-title font", wpdreams_setval_or_getoption($sd, 'pressubtitlefont', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsFontComplete("presdescfont", "Result description font", wpdreams_setval_or_getoption($sd, 'presdescfont', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsGradient("prescontainerbg", "Container background", wpdreams_setval_or_getoption($sd, 'prescontainerbg', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsGradient("pdotssmallcolor", "Nav dot colors", wpdreams_setval_or_getoption($sd, 'pdotssmallcolor', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsGradient("pdotscurrentcolor", "Nav active dot color", wpdreams_setval_or_getoption($sd, 'pdotscurrentcolor', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsGradient("pdotsflippedcolor", "Nav flipped dot color", wpdreams_setval_or_getoption($sd, 'pdotsflippedcolor', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
示例12: wpdreamsGradient
<div class="item"><?php
$o = new wpdreamsGradient("inputbackground", "Search input field background gradient", wpdreams_setval_or_getoption($sd, 'inputbackground', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsBorder("inputborder", "Search input field border", wpdreams_setval_or_getoption($sd, 'inputborder', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsBoxShadow("inputshadow", "Search input field Shadow", wpdreams_setval_or_getoption($sd, 'inputshadow', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsFontComplete("inputfont", "Search input font", wpdreams_setval_or_getoption($sd, 'inputfont', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
示例13: wpdreamsYesNo
</p>
<?php
$o = new wpdreamsYesNo("showsearchincategories", __("Show the categories selectors?", "ajax-search-lite"), wpdreams_setval_or_getoption($sd, 'showsearchincategories', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("showuncategorised", __("Show the uncategorised category?", "ajax-search-lite"), wpdreams_setval_or_getoption($sd, 'showuncategorised', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsCategories("exsearchincategories", __("Select which categories exclude", "ajax-search-lite"), wpdreams_setval_or_getoption($sd, 'exsearchincategories', $_dk));
$params[$o->getName()] = $o->getData();
$params['selected-' . $o->getName()] = $o->getSelected();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsText("exsearchincategoriestext", __("Categories filter box header text", "ajax-search-lite"), wpdreams_setval_or_getoption($sd, 'exsearchincategoriestext', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<input type="hidden" name='asl_submit' value=1 />
<input name="submit_asl" type="submit" value="<?php
_e("Save options!", "ajax-search-lite");
?>
" />
</div>
示例14: wpdreamsYesNo
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("showauthor", "Show author in results?", wpdreams_setval_or_getoption($sd, 'showauthor', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("author_field", "Author field", array('selects' => array(array('option' => 'Display name', 'value' => 'display_name'), array('option' => 'Login name', 'value' => 'login')), 'value' => wpdreams_setval_or_getoption($sd, 'author_field', $_dk)));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("showdate", "Show date in results?", wpdreams_setval_or_getoption($sd, 'showdate', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("showdescription", "Show description in results?", wpdreams_setval_or_getoption($sd, 'showdescription', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsTextSmall("descriptionlength", "Description length", wpdreams_setval_or_getoption($sd, 'descriptionlength', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
示例15: wpdreamsColorPicker
<div class="item"><?php
$o = new wpdreamsColorPicker("i_pagination_background", "Pagination background", wpdreams_setval_or_getoption($sd, 'i_pagination_background', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsImageRadio("i_pagination_arrow", "Arrow image", array('images' => wpdreams_setval_or_getoption($sd, 'i_pagination_arrow_selects', $_dk), 'value' => wpdreams_setval_or_getoption($sd, 'i_pagination_arrow', $_dk)));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("i_pagination_arrow_background", "Arrow background color", wpdreams_setval_or_getoption($sd, 'i_pagination_arrow_background', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("i_pagination_arrow_color", "Arrow color", wpdreams_setval_or_getoption($sd, 'i_pagination_arrow_color', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("i_pagination_page_background", "Active page background color", wpdreams_setval_or_getoption($sd, 'i_pagination_page_background', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php
$o = new wpdreamsColorPicker("i_pagination_font_color", "Font color", wpdreams_setval_or_getoption($sd, 'i_pagination_font_color', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>