Changeset 2285801
- Timestamp:
- 04/17/2020 03:13:28 PM (6 years ago)
- Location:
- wp-assistance/trunk
- Files:
-
- 6 edited
-
admin/CWAAdmin.class.php (modified) (2 diffs)
-
admin/view/wa-settings.php (modified) (1 diff)
-
css/wp-assistance-main.css (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
js/wp-assistance-essential.js (modified) (3 diffs)
-
readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-assistance/trunk/admin/CWAAdmin.class.php
r2281782 r2285801 41 41 42 42 $this->objSettings->is_front_end_enable = ( NULL !== $this->getRequestData( ['wp_assistance', 'is_front_end_enable' ] ) ); 43 $this->objSettings->welcome_greeting = sanitize_text_field( $this->getRequestData( ['wp_assistance', 'welcome_greeting'] ) ); 43 44 44 45 if( false == update_option( 'WP_ASSISTANCE_SETTINGS', $this->objSettings ) ) { … … 76 77 return sanitize_text_field( $this->getRequestData( [ 'action' ] ) ); 77 78 } 78 79 79 80 } 80 81 -
wp-assistance/trunk/admin/view/wa-settings.php
r2281782 r2285801 13 13 </td> 14 14 </tr> 15 <tr> 16 <th>Welcome Greeting:</th> 17 <td> 18 <input type="text" name="wp_assistance[welcome_greeting]" class="regular-text welcome-greeting" value="<?php echo ( true == isset( $settings->welcome_greeting ) ? $settings->welcome_greeting : '' ) ?>" placeholder="Welcome, How may I assist you?" /> 19 <p class="description" >Adding value here will enable Renu intelligent assistant, When a vistor clicks on the mic icon, Renu will greet a vistor. </p> 20 </td> 21 </tr> 15 22 </table> 16 23 <input type='hidden' name='action' value='save_settings' > -
wp-assistance/trunk/css/wp-assistance-main.css
r2281782 r2285801 28 28 border-radius: 10px !important; 29 29 max-height: 30px; 30 } 31 .welcome-greeting { 32 width: 300px; 30 33 } 31 34 -
wp-assistance/trunk/index.php
r2281782 r2285801 4 4 Plugin URI: 5 5 Description: This plugin assists the wordpress features, Also this plugin provides the Voice user interface for your wordpress. 6 Version: 0.0. 26 Version: 0.0.4 7 7 Author: WpAndro 8 8 Author URI: https://wpandro.com/ … … 56 56 57 57 if( true == $objSettings->is_front_end_enable ) 58 echo '<div class="fe-wpa" id="fe-wpa-id"></div><script> var search_url = \'' . home_url() . '\'</script>'; 58 echo '<div class="fe-wpa" id="fe-wpa-id"> 59 </div> 60 <script> 61 var search_url = \'' . home_url() . '\'; 62 var voices; 63 window.speechSynthesis.onvoiceschanged = function() { 64 voices = window.speechSynthesis.getVoices(); 65 }; 66 var objRenuAssistant = new RenuAssistant(\'' . $objSettings->welcome_greeting . '\'); 67 </script>'; 59 68 } 60 69 -
wp-assistance/trunk/js/wp-assistance-essential.js
r2281782 r2285801 1 function RenuAssistant( welcomeGreeting ) { 2 this.welcomeGreeting = welcomeGreeting; 3 }; 4 5 RenuAssistant.prototype = { 6 7 welcomeGreeting: '', 8 voice: null, 9 10 greet: function( onEnd ) { 11 if( !('speechSynthesis' in window) ) { 12 return false; 13 } 14 15 if( '' == this.welcomeGreeting ) { 16 return false; 17 } 18 19 var msg = new SpeechSynthesisUtterance(); 20 msg.voice = voices[4]; 21 msg.text = this.welcomeGreeting; 22 msg.onend = onEnd; 23 speechSynthesis.speak(msg); 24 } 25 }; 1 26 2 27 function CopyToClipBoard() { … … 116 141 jQuery( '.fe-wpa-mic' ).removeClass( 'dashicons-microphone' ); 117 142 jQuery( '.fe-wpa-mic' ).addClass( 'dashicons-search' ); 118 recognition.start(); 143 objRenuAssistant.greet(function(){ 144 recognition.start(); 145 }); 119 146 120 147 } else { … … 128 155 }); 129 156 }); 130 -
wp-assistance/trunk/readme.txt
r2281789 r2285801 2 2 Contributors: rahulbhangale 3 3 Donate link: https://wpandro.com 4 Tags: WordPress Assistance, Voice Assistance, Speech to text, automation, writer, blog 4 Tags: WordPress Assistance, Voice Assistance, Speech to text, automation, writer, blog, Artificial Intelligence, Voice bot, Chat bot. 5 5 Requires at least: 4.0 6 6 Tested up to: 5.4 … … 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 12 This plugin will help you to write for you, The blog writers can use this plugin, They can talk with wordpress and wordpress will right for them. 12 This plugin will provide you a AI based user interface. This plugin will help you through out the WordPress, The blog writers can use this plugin, They can talk with WordPress and WordPress will follow the instruction. 13 Introducing a your personal assistant Renu, Which will talk with you and your users, She is always ready to follow your instruction. 13 14 14 15 This plugin is chrome browser based. keep your chrome browser updated for latest experience. … … 21 22 22 23 Releases: 24 0.0.4 - Introducing new assistant Renu, Which will greet your visitors( AI based userinterface). 23 25 0.0.3 - Allow users to configure front end search. 24 26 0.0.2 - PHP 5.6 or greater version compatibility. … … 26 28 27 29 Upcomming features: 28 1. A bot which talks with users.29 2. A customizable commands.30 1. Designing a communication bot for your front end users. 31 2. Backend commands for navigation. 30 32 31 33 == Installation == … … 50 52 2. As you talks the plugin starts converting your voice into texts, which you can use to copy in your posts and pages or if you use commands it will ask wordpress to follow your command. 51 53 3. Activate the front end use from your wordpress admin panel. You will be able to display a mic icon on bottom cornor of your website. by clicking on it user will be able to search through your website. 54 52 55 == Changelog == 53 56 = 0.0.4 = 57 Indroducing new assistant Renu, Which will greet your visitors. 58 = 0.0.3 = 59 * Allow users to configure front end search. 60 = 0.0.2 = 61 * PHP 5.6 or greater version compatibility. 54 62 = 0.0.1 = 55 63 * A Basic working prototype of the WpAssistance. … … 57 65 == Upgrade Notice == 58 66 59 = 0.0. 1=60 Keep your plugin updated for availing the new features and secured plugin.67 = 0.0.4 = 68 Indroducing new assistant Renu, Which will greet your visitors.
Note: See TracChangeset
for help on using the changeset viewer.