
Brightlocal, local consumer review survey 2018

Consumer-Trust-Evolving-Digital-Age/1014959
} function gavickpro_add_tinymce_plugin($plugin_array) { // $plugin_array['gavickpro_tc_button'] = plugins_url( '/complex-popup-button.js', __FILE__ ); // CHANGE THE BUTTON SCRIPT HERE $plugin_array['gavickpro_tc_button'] = plugins_url( '/custom-icon-button.js?' . rand(), __FILE__ ); return $plugin_array; } function gavickpro_register_my_tc_button($buttons) { array_push($buttons, "gavickpro_tc_button"); array_push($buttons, "gavickpro_tc_button_clear"); return $buttons; } function txtrider_enqueue_scripts() { wp_enqueue_style('gavickpro-tc', plugins_url('/style.css?' . rand(), __FILE__)); wp_enqueue_script( 'popup', plugins_url( '/popup.js', __FILE__ ), array( 'jquery','jquery-ui-dialog' ), '1.0.0', false); wp_enqueue_script( 'keywords', plugins_url( '/keywords.js', __FILE__ ), array( 'jquery','jquery-ui-dialog' ), '1.0.0', false); wp_deregister_script( 'sensor' ); wp_register_script( 'sensor', 'https://maps.google.com/maps/api/js?sensor=true'); wp_enqueue_script( 'sensor' ); wp_enqueue_script('gmaps', plugins_url('/gmaps.js', __FILE__), null , false, true); // qtip2 support // Add the styles first, in the
(last parameter false, true = bottom of page!) wp_enqueue_style('qtip', plugins_url('/includes/qtip2/jquery.qtip.min.css', __FILE__), null, false, false); wp_enqueue_script('qtip', plugins_url('/includes/qtip2/jquery.qtip.min.js', __FILE__), null , false, true); wp_enqueue_script('txtrider', plugins_url('txtrider.js?' . rand(), __FILE__), null , false, true); $dataToBePassed = array( 'home' => get_stylesheet_directory_uri(), // 'changedText' => document.getElementById('changedText').value, 'pleaseWaitLabel' => __( 'Please wait...', 'default' ) ); wp_localize_script( 'popup', 'php_vars', $dataToBePassed ); wp_enqueue_style( 'style', plugins_url('/demo_style.css', __FILE__)); wp_enqueue_style('txtrider-tag-style', plugins_url('/txtrider-tag-style.css?' . rand(), __FILE__)); wp_enqueue_style ( 'wp-jquery-ui-dialog'); } function your_form_hook() { echo ' '; } /** * Adds a box to the main column on the Post and Page edit screens. */ function myplugin_add_meta_box() { $screens = array( 'post', 'page' ); foreach ( $screens as $screen ) { add_meta_box( 'myplugin_sectionid', __( 'Txtrider control panel', 'myplugin_textdomain' ), 'myplugin_meta_box_callback', $screen , 'side', 'high' ); } } add_action( 'add_meta_boxes', 'myplugin_add_meta_box' ); /** * Prints the box content. * * @param WP_Post $post The object for the current post/page. */ function myplugin_meta_box_callback( $post ) { // Add an nonce field so we can check for it later. wp_nonce_field( 'myplugin_meta_box', 'myplugin_meta_box_nonce' ); /* * Use get_post_meta() to retrieve an existing value * from the database and use the value for the form. */ $value = get_post_meta( $post->ID, '_my_meta_value_key', true ); echo ''; ?>Select a word (place/product) and check the relevant radio. Let your users see reviews without leaving your content!
|
Txtrider can be easily integrated to any website with only one line of script.
Embed the script – and you’re good to go
See demo