• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wpdreams_setval_or_getoption函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了wpdreams_setval_or_getoption函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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>
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:31,代码来源:attachment_results.php


示例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>
开发者ID:Juni4567,项目名称:meritscholarship,代码行数:31,代码来源:vertical_res.php


示例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>
开发者ID:hikaram,项目名称:wee,代码行数:31,代码来源:regular.php


示例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>
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:29,代码来源:keywords.php


示例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>
开发者ID:alphacityco,项目名称:kotobanokumo-wp-content,代码行数:31,代码来源:behavior.php


示例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>
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:31,代码来源:results_behaviour.php


示例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>
开发者ID:hikaram,项目名称:wee,代码行数:31,代码来源:sources2_1.php


示例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);
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:31,代码来源:cache_settings.php


示例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');
开发者ID:hikaram,项目名称:wee,代码行数:31,代码来源:performance_1.php


示例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>
开发者ID:hikaram,项目名称:wee,代码行数:31,代码来源:grouping.php


示例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>
开发者ID:alphacityco,项目名称:kotobanokumo-wp-content,代码行数:31,代码来源:polaroid_res.php


示例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>
开发者ID:Aqro,项目名称:NewDWM,代码行数:22,代码来源:input_field.php


示例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>
开发者ID:alphacityco,项目名称:kotobanokumo-wp-content,代码行数:31,代码来源:frontend_options.php


示例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>
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:31,代码来源:results_layout.php


示例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>
开发者ID:Aqro,项目名称:NewDWM,代码行数:31,代码来源:isotopic_nav.php


示例16: units

$params[$o->getName()] = $o->getData();
?>
    <p class="descMsg">Use with units (10px or 50% or auto). Default: <strong>100%</strong></p>
</div>
<div class="item"><?php 
$o = new wpdreamsNumericUnit("boxheight", "Search box height", array('value' => wpdreams_setval_or_getoption($sd, 'boxheight', $_dk), 'units' => array('px' => 'px')));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php 
$o = new wpdreamsNumericUnit("boxmargin", "Search box margin", array('value' => wpdreams_setval_or_getoption($sd, 'boxmargin', $_dk), 'units' => array('px' => 'px', '%' => '%')));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php 
$o = new wpdreamsGradient("boxbackground", "Search box background gradient", wpdreams_setval_or_getoption($sd, 'boxbackground', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsBorder("boxborder", "Search box border", wpdreams_setval_or_getoption($sd, 'boxborder', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsBoxShadow("boxshadow", "Search box Shadow", wpdreams_setval_or_getoption($sd, 'boxshadow', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
开发者ID:hikaram,项目名称:wee,代码行数:31,代码来源:overall_box.php


示例17: wpdreamsYesNo

<div class="item">
    <?php 
$o = new wpdreamsYesNo("search_in_bp_activities", "Search in buddypress activities?", wpdreams_setval_or_getoption($sd, 'search_in_bp_activities', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("search_in_bp_groups", "Search in buddypress groups?", wpdreams_setval_or_getoption($sd, 'search_in_bp_groups', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("search_in_bp_groups_public", "Search in public groups?", wpdreams_setval_or_getoption($sd, 'search_in_bp_groups_public', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("search_in_bp_groups_private", "Search in private groups?", wpdreams_setval_or_getoption($sd, 'search_in_bp_groups_private', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("search_in_bp_groups_hidden", "Search in hidden groups?", wpdreams_setval_or_getoption($sd, 'search_in_bp_groups_hidden', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:30,代码来源:buddypress_options.php


示例18: wpdreamsCustomSelect

<div class="item"><?php 
$o = new wpdreamsCustomSelect("orderby_primary", "Primary result ordering", array('selects' => array(array('option' => 'Relevance', 'value' => 'relevance DESC'), array('option' => 'Title descending', 'value' => 'post_title DESC'), array('option' => 'Title ascending', 'value' => 'post_title ASC'), array('option' => 'Date descending', 'value' => 'post_date DESC'), array('option' => 'Date ascending', 'value' => 'post_date ASC')), 'value' => wpdreams_setval_or_getoption($sd, 'orderby_primary', $_dk)));
$params[$o->getName()] = $o->getData();
?>
    <p class="descMsg">This is the primary ordering. If two elements match the primary ordering criteria, the <b>Secondary ordering</b> is used below.</p>
</div>
<div class="item"><?php 
$o = new wpdreamsCustomSelect("orderby", "Secondary result ordering", array('selects' => array(array('option' => 'Relevance', 'value' => 'relevance DESC'), array('option' => 'Title descending', 'value' => 'post_title DESC'), array('option' => 'Title ascending', 'value' => 'post_title ASC'), array('option' => 'Date descending', 'value' => 'post_date DESC'), array('option' => 'Date ascending', 'value' => 'post_date ASC')), 'value' => wpdreams_setval_or_getoption($sd, 'orderby', $_dk)));
$params[$o->getName()] = $o->getData();
?>
    <p class="descMsg">For matching elements by primary ordering, this ordering is used.</p>
</div>
<div class="item">
    <?php 
$fields = wpdreams_setval_or_getoption($sd, 'results_order', $_dk);
// For updating to 4.5
if (strpos($fields, "attachments") === false) {
    $fields = $fields . "|attachments";
}
$o = new wpdreamsSortable("results_order", "Mixed results order", $fields);
$params[$o->getName()] = $o->getData();
?>
</div>
开发者ID:booklein,项目名称:wpbookle,代码行数:23,代码来源:ordering.php


示例19: accent

<p class='infoMsg'>
    If you are experiencing issues with accent(diacritic) or case sensitiveness, you can force the search to try these tweaks.<br>
    <i>The search works according to your database collation settings</i>, so please be aware that <b>this is not an effective way</b> of fixing database collation issues.<br>
    If you have case/diacritic issues then please read the <a href="http://dev.mysql.com/doc/refman/5.0/en/charset-syntax.html" target="_blank">MySql manual on collations</a> or consult a <b>database expert</b> - those issues should be treated on database level!
</p>
<div class="item">
    <?php 
$o = new wpdreamsCustomSelect("db_force_case", "Force case", array('selects' => wpdreams_setval_or_getoption($com_options, 'db_force_case_selects', 'asp_compatibility_def'), 'value' => wpdreams_setval_or_getoption($com_options, 'db_force_case', 'asp_compatibility_def')));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("db_force_unicode", "Force unicode search", wpdreams_setval_or_getoption($com_options, 'db_force_unicode', 'asp_compatibility_def'));
?>
    <p class='descMsg'>Will try to force unicode character conversion on the search phrase.</p>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("db_force_utf8_like", "Force utf8 on LIKE operations", wpdreams_setval_or_getoption($com_options, 'db_force_utf8_like', 'asp_compatibility_def'));
?>
    <p class='descMsg'>Will try to force utf8 conversion on all LIKE operations in the WHERE and HAVING clauses.</p>
</div>
开发者ID:hikaram,项目名称:wee,代码行数:23,代码来源:query_options.php


示例20: wpdreamsGradient

<div class="item"><?php 
$o = new wpdreamsGradient("settingsdropbackground", "Settings drop-down background gradient", wpdreams_setval_or_getoption($sd, 'settingsdropbackground', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsBoxShadow("settingsdropboxshadow", "Settings drop-down box-shadow", wpdreams_setval_or_getoption($sd, 'settingsdropboxshadow', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php 
$o = new wpdreamsFontComplete("settingsdropfont", "Settings drop down font", wpdreams_setval_or_getoption($sd, 'settingsdropfont', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php 
$o = new wpdreamsFontComplete("exsearchincategoriestextfont", "Settings box header text font", wpdreams_setval_or_getoption($sd, 'exsearchincategoriestextfont', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php 
$o = new wpdreamsColorPicker("settingsdroptickcolor", "Settings drop-down tick color", wpdreams_setval_or_getoption($sd, 'settingsdroptickcolor', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php 
$o = new wpdreamsGradient("settingsdroptickbggradient", "Settings drop-down tick background", wpdreams_setval_or_getoption($sd, 'settingsdroptickbggradient', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
开发者ID:Aqro,项目名称:NewDWM,代码行数:31,代码来源:sett_dropdown.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wpex_css_animations函数代码示例发布时间:2022-05-23
下一篇:
PHP wpdm_query_var函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap