%PDF- %PDF-
Direktori : /var/www/pn/wp-content/plugins/ajax-search-pro/backend/tabs/instance/general/ |
Current File : //var/www/pn/wp-content/plugins/ajax-search-pro/backend/tabs/instance/general/mobile_behavior.php |
<div class="item item-flex-nogrow" style="flex-wrap:wrap;"> <?php $o = new wpdreamsYesNo("mob_display_search", __('Display the search bar on <strong>mobile</strong> devices?', 'ajax-search-pro'), $sd['mob_display_search']); $params[$o->getName()] = $o->getData(); $o = new wpdreamsYesNo("desktop_display_search", __(' .. and on <strong>desktop</strong> devices?', 'ajax-search-pro'), $sd['desktop_display_search']); $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;"> <?php echo __('If you want to hide this search bar on mobile/desktop devices then turn OFF these option.', 'ajax-search-pro'); ?> </div> </div> <div class="item"> <?php $o = new wpdreamsYesNo("mob_trigger_on_type", __('Trigger search when typing on mobile keyboard?', 'ajax-search-pro'), $sd['mob_trigger_on_type']); $params[$o->getName()] = $o->getData(); ?> </div> <div class="item item-flex-nogrow" style="flex-wrap: wrap;"> <?php $_red_opts = array_merge( array(array('option'=>'Same as on desktop', 'value'=>'same')), $_red_opts ); $o = new wpdreamsCustomSelect("mob_click_action", __('Action when tapping <strong>the magnifier</strong> icon', 'ajax-search-pro'), array( 'selects' => $_red_opts, 'value' => $sd['mob_click_action'] )); $params[$o->getName()] = $o->getData(); $o = new wpdreamsCustomSelect("mob_click_action_location", __(' location: ', 'ajax-search-pro'), array( 'selects' => array( array('option' => 'Use same tab', 'value' => 'same'), array('option' => 'Open new tab', 'value' => 'new') ), 'value' => $sd['mob_click_action_location'] )); $params[$o->getName()] = $o->getData(); ?> </div> <div class="item item-flex-nogrow" style="flex-wrap: wrap;"> <?php $o = new wpdreamsCustomSelect("mob_return_action", __('Action when tapping <strong>the return</strong> button (search icon on virtual keyboard)<br>', 'ajax-search-pro'), array( 'selects' => $_red_opts, 'value' => $sd['mob_return_action'] )); $params[$o->getName()] = $o->getData(); $o = new wpdreamsCustomSelect("mob_return_action_location", __(' location: ', 'ajax-search-pro'), array( 'selects' => array( array('option' => 'Use same tab', 'value' => 'same'), array('option' => 'Open new tab', 'value' => 'new') ), 'value' => $sd['mob_return_action_location'] )); $params[$o->getName()] = $o->getData(); ?> </div> <div class="item"> <?php $o = new wpdreamsText("mob_redirect_url", __('Custom redirect URL', 'ajax-search-pro'), $sd['mob_redirect_url']); $params[$o->getName()] = $o->getData(); ?> <p class="descMsg"> <?php echo __('You can use the <string>asp_redirect_url</string> filter to add more variables.', 'ajax-search-pro'); ?> <?php echo sprintf( __('See <a href="%s" target="_blank">this tutorial</a>.', 'ajax-search-pro'), 'http://wp-dreams.com/go/?to=kb-redirecturl' ); ?> </p> </div> <div class="item"> <?php $o = new wpdreamsYesNo("mob_hide_keyboard", __('Hide the mobile keyboard when displaying the results?', 'ajax-search-pro'), $sd['mob_hide_keyboard']); $params[$o->getName()] = $o->getData(); ?> </div> <div class="item"> <?php $o = new wpdreamsYesNo("mob_force_res_hover", __('Force \'hover\' results layout on mobile devices?', 'ajax-search-pro'), $sd['mob_force_res_hover']); $params[$o->getName()] = $o->getData(); ?> <div class="descMsg"> <?php echo __('This will force to display the results below the search bar (floating above the content) on mobile devices, even if it\'s configured otherwise (or if the results shortcode is used).', 'ajax-search-pro'); ?> </div> </div> <div class="item item-flex-nogrow" style="flex-wrap:wrap;"> <?php $o = new wpdreamsYesNo("mob_force_sett_hover", __('Force \'hover\' settings layout on mobile devices?', 'ajax-search-pro'), $sd['mob_force_sett_hover']); $params[$o->getName()] = $o->getData(); ?> <?php $o = new wpdreamsCustomSelect("mob_force_sett_state", __(' and force state ', 'ajax-search-pro'), array( 'selects' => array( array("option" => "hidden settings", "value" => "closed"), array("option" => "visible settings", "value" => "open") ), "value" => $sd['mob_force_sett_state'] )); $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;"> <?php echo __('This will force to display the settings below the search bar (floating above the content) on mobile devices, even if the settings shortcode is used.', 'ajax-search-pro'); ?> </div> </div>