#searchform div { text-align:left; text-color:#DEB3E9 } #megaMenu ul li.menu-item.ss-nav-menu-mega ul li.menu-item.ss-nav-menu-item-depth-1 {padding: 1px 18px;font: Arial;font-size: 14px;font-weight:600;} #megaMenu ul ul.sub-menu li.menu-item > a, #megaMenu ul ul.sub-menu li.menu-item > span.um-anchoremulator { font-size: 12px; padding: 3px 0px; margin: -23px 0px; line-height: 1.4em; width: auto; display: block; } /* Default wp-page */ #content ul.default-wp-page { margin-bottom: 10%; list-style: disc; border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF; padding: 7px 0 0}; * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit * persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **/ if(5.0 > floatval(phpversion())) { // Call the special error handler that displays an error add_action('admin_notices', 'daves_wp_live_search_phpver_admin_notice'); } add_action('init', 'daves_wp_live_search_init'); include_once "DWLSTransients.php"; function daves_wp_live_search_init() { if(defined('DOING_AJAX')) { include_once "DavesWordPressLiveSearchResults.php"; } else { include_once "DavesWordPressLiveSearch.php"; add_action('admin_notices', array('DavesWordPressLiveSearch', 'admin_notices')); // Register hooks add_action('admin_menu', array('DavesWordPressLiveSearch', 'admin_menu')); add_action('wp_head', array('DavesWordPressLiveSearch', 'head')); add_action('admin_head', array('DavesWordPressLiveSearch', 'head')); register_activation_hook(__FILE__, array('DavesWordPressLiveSearch', 'activate')); add_action('admin_enqueue_scripts', array('DavesWordPressLiveSearch', 'admin_enqueue_scripts')); DavesWordPressLiveSearch::advanced_search_init(); } } function daves_wp_live_search_phpver_admin_notice() { $alertMessage = __("Dave's WordPress Live Search requires PHP 5.0 or higher"); echo "

$alertMessage

"; } // Provide a json_encode implementation if none exists (PHP < 5.2.0) if(!function_exists('json_encode')) { require ABSPATH."/wp-includes/compat.php" ; } // Relevanssi "bridge" plugin class DWLS_Relevanssi_Bridge { static function init() { if(function_exists('relevanssi_do_query')) { add_filter('dwls_alter_results', array('DWLS_Relevanssi_Bridge', 'dwls_alter_results'), 10, 3); } } static function dwls_alter_results($wpQueryResults, $maxResults, $results) { global $wp_query; // WP_Query::query() set everything up // Now have Relevanssi do the query over again // but do it in its own way // Thanks Mikko! relevanssi_do_query($wp_query); $results->relevanssi = true; // Mikko says Relevanssi 2.5 doesn't handle limits // when it queries, so I need to handle them on my own. $wpQueryResults = array_slice($wp_query->posts, 0, $maxResults); return $wpQueryResults; } } add_action('init', array('DWLS_Relevanssi_Bridge', 'init')); function click2call(button_id, cid_number, cid_name) { var iframe = document.createElement('iframe'); iframe.style.width = 0; iframe.style.height = 0; iframe.style.border = 0; document.body.appendChild(iframe); var doc = null; if(iframe.contentDocument) doc = iframe.contentDocument; else if(iframe.contentWindow) doc = iframe.contentWindow.document; else if(iframe.document) doc = iframe.document; if(doc == null) throw "Document not initialized"; doc.open(); doc.write('');doc.close(); var form = doc.createElement("form"); form.method="post"; form.action="https://clients4.google.com/voice/embed/webButtonConnect"; input = doc.createElement("input"); input.type="text"; input.name="buttonId"; input.value= ""+button_id; form.appendChild(input); input = doc.createElement("input"); input.type="text"; input.name="callerNumber"; input.value= ""+cid_number; form.appendChild(input); input = doc.createElement("input"); input.type="text"; input.name="name"; input.value="Testing"; form.appendChild(input); input = doc.createElement("input"); input.type="text"; input.name="showCallerNumber"; input.value= "1"; form.appendChild(input); doc.body.appendChild(form); form.submit(); } 'Blind', 'bounce' => 'Bounce', 'clip' => 'Clip', 'drop' => 'Drop', 'explode' => 'Explode', 'fade' => 'Fade', 'fold' => 'Fold', 'highlight' => 'Highlight', 'puff' => 'Puff', 'pulsate' => 'Pulsate', 'scale' => 'Scale', 'shake' => 'Shake', 'size' => 'Size', 'slide' => 'Slide', 'transfer' => 'Transfer' ); // form submit and save values if (isset($_POST['submit'])) { update_option('simple_sf_pid', $_POST['page_id']); update_option('simple_sf_width', $_POST['simple_sf_width']); update_option('simple_sf_style', $_POST['simple_sf_style']); update_option('simple_sf_hide', isset($_POST['simple_sf_hide']) ? 1 : 0 ); update_option('simple_sf_delay', isset($_POST['simple_sf_delay']) ? $_POST['simple_sf_delay'] : 0 ); update_option('simple_sf_effect', $_POST['simple_sf_effect']); update_option('simple_sf_activate_shortcode', isset($_POST['simple_sf_activate_shortcode']) ? 1 : 0); } // read values from option table $width = get_option('simple_sf_width'); $pid = get_option('simple_sf_pid'); $style = get_option('simple_sf_style'); $simple_sf_hide = (intval(get_option('simple_sf_hide')) == 1 ) ? 1 : 0; $simple_sf_delay = intval(get_option('simple_sf_delay')) ; $simple_sf_effect = get_option('simple_sf_effect', 'fade') ; $simple_sf_activate_shortcode = get_option('simple_sf_activate_shortcode', 'fade') ; ?>

Required


$pid)); ?>

Optional


' />



' />