Ejemplo n.º 1
0
$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>
Ejemplo n.º 2
0
</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>
Ejemplo n.º 3
0
$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>
Ejemplo n.º 4
0
<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>
$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>
Ejemplo n.º 6
0
</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>
Ejemplo n.º 7
0
$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>
Ejemplo n.º 8
0
			<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);
Ejemplo n.º 9
0
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');
Ejemplo n.º 10
0
</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>
<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>
Ejemplo n.º 12
0
<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>
</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>
Ejemplo n.º 14
0
</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>
Ejemplo n.º 15
0
<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>
Ejemplo n.º 16
0
$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>
Ejemplo n.º 17
0
<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>
Ejemplo n.º 18
0
<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>
Ejemplo n.º 19
0
<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>
Ejemplo n.º 20
0
<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>
Ejemplo n.º 21
0
        <?php 
$o = new wpdreamsTextSmall("sett_box_animation_duration_m", ".. animation duration (ms)", wpdreams_setval_or_getoption($sd, 'sett_box_animation_duration_m', $_dk));
$params[$o->getName()] = $o->getData();
?>
        <div class="descMsg" style="min-width: 100%;flex-wrap: wrap;flex-basis: auto;flex-grow: 1;box-sizing: border-box;">
            The animation of the appearing settings box when clicking on the settings icon.
        </div>
    </div>
    <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
        <?php 
$o = new wpdreamsCustomSelect("res_box_animation_m", "Results container box animation", array('selects' => array(array('option' => 'None', 'value' => 'none'), array('option' => 'Fade', 'value' => 'fade'), array('option' => 'Fade and Drop', 'value' => 'fadedrop')), 'value' => wpdreams_setval_or_getoption($sd, 'res_box_animation_m', $_dk)));
$params[$o->getName()] = $o->getData();
?>
        <?php 
$o = new wpdreamsTextSmall("res_box_animation_duration_m", ".. animation duration (ms)", wpdreams_setval_or_getoption($sd, 'res_box_animation_duration_m', $_dk));
$params[$o->getName()] = $o->getData();
?>
        <div class="descMsg" style="min-width: 100%;flex-wrap: wrap;flex-basis: auto;flex-grow: 1;box-sizing: border-box;">
            The animation of the appearing results box when finishing the search.
        </div>
    </div>
    <div class="item">
        <?php 
$o = new wpdreamsAnimations("res_items_animation_m", "Result items animation", wpdreams_setval_or_getoption($sd, 'res_items_animation_m', $_dk));
$params[$o->getName()] = $o->getData();
?>
        <div class="descMsg">
            The animation of each result when the results box is opening.
        </div>
    </div>
</fieldset>
Ejemplo n.º 22
0
    <p class='descMsg'>
        Will save every search instance CSS file separately and load them with Javascript on the document load event.
        Only loads them if it finds the search instance on the page. Huge performance saver, however it might not work
        so test it seriously! Check the <a target="_blank" href="https://wpdreams.gitbooks.io/ajax-search-pro-documentation/content/performance/visual_performance.html#3-css-compatibility-and-loading">Visual Performance</a> section of the documentation for more info.
    </p>
</div>
<div class="item">
    <p class='infoMsg'>You can turn some of these off, if you are not using them.</p>
    <?php 
$o = new wpdreamsYesNo("loadpolaroidjs", "Load the polaroid gallery JS?", wpdreams_setval_or_getoption($com_options, 'loadpolaroidjs', 'asp_compatibility_def'));
?>
    <p class='descMsg'>Don't turn this off if you are using the POLAROID layout.</p>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("load_isotope_js", "Load the isotope JS?", wpdreams_setval_or_getoption($com_options, 'load_isotope_js', 'asp_compatibility_def'));
?>
    <p class='descMsg'>Don't turn this off if you are using the ISOTOPIC layout.</p>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("load_noui_js", "Load the NoUI slider JS?", wpdreams_setval_or_getoption($com_options, 'load_noui_js', 'asp_compatibility_def'));
?>
    <p class='descMsg'>Don't turn this off if you are using SLIDERS in the custom field filters.</p>
</div>
<div class="item">
    <p class='infoMsg'>This might speed up the search, but also can cause incompatibility issues with other plugins.</p>
    <?php 
$o = new wpdreamsYesNo("usecustomajaxhandler", "Use the custom ajax handler?", wpdreams_setval_or_getoption($com_options, 'usecustomajaxhandler', 'asp_compatibility_def'));
?>
</div>
Ejemplo n.º 23
0
    <div class="item">
        <?php 
$o = new wpdreamsTextSmall("it_content_weight", "Content weight", wpdreams_setval_or_getoption($sd, 'it_content_weight', $_dk));
$params[$o->getName()] = $o->getData();
?>
    </div>
    <div class="item">
        <?php 
$o = new wpdreamsTextSmall("it_excerpt_weight", "Excerpt weight", wpdreams_setval_or_getoption($sd, 'it_excerpt_weight', $_dk));
$params[$o->getName()] = $o->getData();
?>
    </div>
    <div class="item">
        <?php 
$o = new wpdreamsTextSmall("it_terms_weight", "Terms weight", wpdreams_setval_or_getoption($sd, 'it_terms_weight', $_dk));
$params[$o->getName()] = $o->getData();
?>
    </div>
    <div class="item">
        <?php 
$o = new wpdreamsTextSmall("it_cf_weight", "Custom fields weight", wpdreams_setval_or_getoption($sd, 'it_cf_weight', $_dk));
$params[$o->getName()] = $o->getData();
?>
    </div>
    <div class="item">
        <?php 
$o = new wpdreamsTextSmall("it_author_weight", "Author weight", wpdreams_setval_or_getoption($sd, 'it_author_weight', $_dk));
$params[$o->getName()] = $o->getData();
?>
    </div>
</fieldset>
Ejemplo n.º 24
0
<div class="item">
    <?php 
$o = new wpdreamsTextSmall("charcount", "Minimal character count to trigger search", 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 wpdreamsYesNo("redirectonclick", "<b>Redirect</b> to search results page when clicking on search icon?", wpdreams_setval_or_getoption($sd, 'redirectonclick', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("redirect_on_enter", "<b>Redirect</b> to search results page when hitting the return key?", wpdreams_setval_or_getoption($sd, 'redirect_on_enter', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsText("redirect_url", "<b>Redirect</b> to url?", wpdreams_setval_or_getoption($sd, 'redirect_url', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("override_default_results", "<b>Override</b> the default WordPress search results page?", wpdreams_setval_or_getoption($sd, 'override_default_results', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
Ejemplo n.º 25
0
    </p>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("searchinblogtitles", "Search in blog titles?", wpdreams_setval_or_getoption($sd, "searchinblogtitles", $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php 
$o = new wpdreamsCustomSelect("blogtitleorderby", "Result ordering", array('selects' => wpdreams_setval_or_getoption($sd, 'blogtitleorderby_def', $_dk), 'value' => wpdreams_setval_or_getoption($sd, 'blogtitleorderby', $_dk)));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsText("blogresultstext", "Blog results group default text", wpdreams_setval_or_getoption($sd, 'blogresultstext', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php 
$o = new wpdreamsBlogselect("blogs", "Blogs", wpdreams_setval_or_getoption($sd, 'blogs', $_dk));
$params[$o->getName()] = $o->getData();
$params['selected-' . $o->getName()] = $o->getSelected();
?>
</div>
<div class="item">
    <input name="submit_<?php 
echo $search['id'];
?>
" type="submit" value="Save all tabs!" />
</div>
Ejemplo n.º 26
0
?>
    <?php 
$o = new wpdreamsText("custom_date_format", " format", wpdreams_setval_or_getoption($sd, 'custom_date_format', $_dk));
$params[$o->getName()] = $o->getData();
?>
    <div class='descMsg' style="min-width: 100%;
    flex-wrap: wrap;
    flex-basis: auto;
    flex-grow: 1;
    box-sizing: border-box;">If turned OFF, it will use WordPress defaults. Default custom value: <b>Y-m-d H:i:s</b></div>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("showdescription", "Show description (content) in results?", wpdreams_setval_or_getoption($sd, 'showdescription', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsTextSmall("descriptionlength", "Description (content) length", wpdreams_setval_or_getoption($sd, 'descriptionlength', $_dk));
$params[$o->getName()] = $o->getData();
?>
    <p class="descMsg">Content length in characters.</p>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("description_context", "Display the description context?", wpdreams_setval_or_getoption($sd, 'description_context', $_dk));
$params[$o->getName()] = $o->getData();
?>
    <p class="descMsg">Will display the description from around the search phrase, not from the beginning.</p>
</div>
Ejemplo n.º 27
0
$option_name = "image_source4";
$option_desc = "Alternative image source 3";
$o = new wpdreamsCustomSelect($option_name, $option_desc, array('selects' => wpdreams_setval_or_getoption($sd, 'image_sources', $_dk), 'value' => wpdreams_setval_or_getoption($sd, $option_name, $_dk)));
$params[$o->getName()] = $o->getData();
?>
    </div>
    <div class="item">
        <?php 
$option_name = "image_source5";
$option_desc = "Alternative image source 4";
$o = new wpdreamsCustomSelect($option_name, $option_desc, array('selects' => wpdreams_setval_or_getoption($sd, 'image_sources', $_dk), 'value' => wpdreams_setval_or_getoption($sd, $option_name, $_dk)));
$params[$o->getName()] = $o->getData();
?>
    </div>
    <div class="item">
        <?php 
$option_name = "image_default";
$option_desc = "Default image url";
$o = new wpdreamsUpload($option_name, $option_desc, wpdreams_setval_or_getoption($sd, $option_name, $_dk));
$params[$o->getName()] = $o->getData();
?>
    </div>
    <div class="item">
        <?php 
$option_name = "image_custom_field";
$option_desc = "Custom field containing the image";
$o = new wpdreamsText($option_name, $option_desc, wpdreams_setval_or_getoption($sd, $option_name, $_dk));
$params[$o->getName()] = $o->getData();
?>
    </div>
</fieldset>
Ejemplo n.º 28
0
<div class="item">
    <?php 
$o = new wpdreamsBoxShadow("magnifierboxshadow", "Magnifier-icon box-shadow", wpdreams_setval_or_getoption($sd, 'magnifierboxshadow', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>

<div class="item" id="magn_ajaxsearchpro_1">
    <div class="probox">
    <?php 
/*$o = new wpdreamsImageRadio("loadingimage", "Loading image", array(
          'images'  => wpdreams_setval_or_getoption($sd, 'loadingimage_selects', $_dk),
          'value'=> wpdreams_setval_or_getoption($sd, 'loadingimage', $_dk)
      )
  );
  $params[$o->getName()] = $o->getData();*/
$o = new wpdreamsLoaderSelect("loader_image", "Loading image", wpdreams_setval_or_getoption($sd, "loader_image", $_dk));
$params[$o->getName()] = $o->getData();
?>
    </div>
</div>
<div class="item"><?php 
$o = new wpdreamsColorPicker("loadingimage_color", "Loader color", wpdreams_setval_or_getoption($sd, 'loadingimage_color', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php 
$o = new wpdreamsUpload("loadingimage_custom", "Custom magnifier icon", wpdreams_setval_or_getoption($sd, 'loadingimage_custom', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
Ejemplo n.º 29
0
                <option value="gt">MORE THEN</option>
            </optgroup>
            <optgroup label="String operators">
                <option value="elike">EXACTLY LIKE</option>
                <option value="like">LIKE</option>
            </optgroup>
            </select>
            <p class="descMsg">Use the numeric operators for numeric values and string operators for text values.</p>
        </div>
        <div class='one-item'>
            <button type='button' style='margin-right: 20px;' name='back'>Back</button>
            <button type='button' name='save'>Save!</button>
        </div>
    </fieldset>

    <input type="hidden" name="custom_field_items" value="<?php 
if (isset($_POST['custom_field_items'])) {
    echo $_POST['custom_field_items'];
} else {
    echo wpdreams_setval_or_getoption($sd, 'custom_field_items', $_dk);
}
?>
" />
</div>
<div class="wpd-40-pc customFieldsSortable">
    <div class="sortablecontainer">
        <ul id="csf_sortable">

        </ul>
    </div>
</div>
Ejemplo n.º 30
0
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("showsearchincomments", "Show search in comments selector?", wpdreams_setval_or_getoption($sd, 'showsearchincomments', $_dk));
$params[$o->getName()] = $o->getData();
$o = new wpdreamsText("searchincommentstext", "Text", wpdreams_setval_or_getoption($sd, 'searchincommentstext', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsYesNo("showsearchinexcerpt", "Show search in excerpt selector?", wpdreams_setval_or_getoption($sd, 'showsearchinexcerpt', $_dk));
$params[$o->getName()] = $o->getData();
$o = new wpdreamsText("searchinexcerpttext", "Text", wpdreams_setval_or_getoption($sd, 'searchinexcerpttext', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
    <?php 
$o = new wpdreamsText("custom_types_label", "Custom post types label text", wpdreams_setval_or_getoption($sd, 'custom_types_label', $_dk));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item"><?php 
$o = new wpdreamsCustomPostTypesEditable("showcustomtypes", "Show search in custom post types selectors", wpdreams_setval_or_getoption($sd, 'showcustomtypes', $_dk));
$params[$o->getName()] = $o->getData();
$params['selected-' . $o->getName()] = $o->getSelected();
?>
</div>