%PDF- %PDF-
Direktori : /var/www/pn/wp-content/plugins/ajax-search-pro/backend/tabs/instance/relevance/ |
Current File : //var/www/pn/wp-content/plugins/ajax-search-pro/backend/tabs/instance/relevance/regular.php |
<?php $sd_wht_def = array( array('option' => '10 - Highest weight', 'value' => 10), array('option' => '9', 'value' => 9), array('option' => '8', 'value' => 8), array('option' => '7', 'value' => 7), array('option' => '6', 'value' => 6), array('option' => '5', 'value' => 5), array('option' => '4', 'value' => 4), array('option' => '3', 'value' => 3), array('option' => '2', 'value' => 2), array('option' => '1 - Lowest weight', 'value' => 1) ); ?> <div class="item"> <?php $o = new wpdreamsYesNo("userelevance", __('Use relevance?', 'ajax-search-pro'), $sd['userelevance']); $params[$o->getName()] = $o->getData(); ?> </div> <fieldset> <legend><?php echo __('Exact matches weight', 'ajax-search-pro'); ?></legend> <div class="item"> <?php $o = new wpdreamsCustomSelect("etitleweight", __('Title weight', 'ajax-search-pro'), array('selects' => $sd_wht_def, 'value' => $sd['etitleweight'])); $params[$o->getName()] = $o->getData(); ?> </div> <div class="item"> <?php $o = new wpdreamsCustomSelect("econtentweight", __('Content weight', 'ajax-search-pro'), array('selects' => $sd_wht_def, 'value' => $sd['econtentweight'])); $params[$o->getName()] = $o->getData(); ?> </div> <div class="item"> <?php $o = new wpdreamsCustomSelect("eexcerptweight", __('Excerpt weight', 'ajax-search-pro'), array('selects' => $sd_wht_def, 'value' => $sd['eexcerptweight'])); $params[$o->getName()] = $o->getData(); ?> </div> <div class="item"> <?php $o = new wpdreamsCustomSelect("etermsweight", __('Terms weight', 'ajax-search-pro'), array('selects' => $sd_wht_def, 'value' => $sd['etermsweight'])); $params[$o->getName()] = $o->getData(); ?> </div> </fieldset> <fieldset> <legend><?php echo __('Random matches weight', 'ajax-search-pro'); ?></legend> <div class="item"> <?php $o = new wpdreamsCustomSelect("titleweight", __('Title weight', 'ajax-search-pro'), array('selects' => $sd_wht_def, 'value' => $sd['titleweight'])); $params[$o->getName()] = $o->getData(); ?> </div> <div class="item"> <?php $o = new wpdreamsCustomSelect("contentweight", __('Content weight', 'ajax-search-pro'), array('selects' => $sd_wht_def, 'value' => $sd['contentweight'])); $params[$o->getName()] = $o->getData(); ?> </div> <div class="item"> <?php $o = new wpdreamsCustomSelect("excerptweight", __('Excerpt weight', 'ajax-search-pro'), array('selects' => $sd_wht_def, 'value' => $sd['excerptweight'])); $params[$o->getName()] = $o->getData(); ?> </div> <div class="item"> <?php $o = new wpdreamsCustomSelect("termsweight", __('Terms weight', 'ajax-search-pro'), array('selects' => $sd_wht_def, 'value' => $sd['termsweight'])); $params[$o->getName()] = $o->getData(); ?> </div> </fieldset>