Plugin Directory

Changeset 2285801


Ignore:
Timestamp:
04/17/2020 03:13:28 PM (6 years ago)
Author:
rahulbhangale
Message:

Introducing new assistant Renu, Which will greet your visitors( AI based user interface).

Location:
wp-assistance/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wp-assistance/trunk/admin/CWAAdmin.class.php

    r2281782 r2285801  
    4141       
    4242        $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'] ) );
    4344       
    4445        if( false == update_option( 'WP_ASSISTANCE_SETTINGS', $this->objSettings ) ) {
     
    7677        return sanitize_text_field( $this->getRequestData( [ 'action' ] ) );
    7778    }
    78    
     79
    7980}
    8081
  • wp-assistance/trunk/admin/view/wa-settings.php

    r2281782 r2285801  
    1313                            </td>
    1414                        </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>
    1522                    </table>
    1623                    <input type='hidden' name='action' value='save_settings' >
  • wp-assistance/trunk/css/wp-assistance-main.css

    r2281782 r2285801  
    2828    border-radius: 10px !important;
    2929    max-height: 30px;
     30}
     31.welcome-greeting {
     32    width: 300px;
    3033}
    3134
  • wp-assistance/trunk/index.php

    r2281782 r2285801  
    44Plugin URI:
    55Description: This plugin assists the wordpress features, Also this plugin provides the Voice user interface for your wordpress.
    6 Version: 0.0.2
     6Version: 0.0.4
    77Author: WpAndro
    88Author URI: https://wpandro.com/
     
    5656
    5757    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>';
    5968}
    6069
  • wp-assistance/trunk/js/wp-assistance-essential.js

    r2281782 r2285801  
     1function RenuAssistant( welcomeGreeting ) {
     2    this.welcomeGreeting = welcomeGreeting;
     3};
     4
     5RenuAssistant.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};
    126
    227function CopyToClipBoard() {
     
    116141            jQuery( '.fe-wpa-mic' ).removeClass( 'dashicons-microphone' );
    117142            jQuery( '.fe-wpa-mic' ).addClass( 'dashicons-search' );
    118             recognition.start();
     143            objRenuAssistant.greet(function(){
     144                recognition.start();               
     145            });
    119146   
    120147        } else {
     
    128155    });
    129156});
    130 
  • wp-assistance/trunk/readme.txt

    r2281789 r2285801  
    22Contributors: rahulbhangale
    33Donate link: https://wpandro.com
    4 Tags: WordPress Assistance, Voice Assistance, Speech to text, automation, writer, blog
     4Tags: WordPress Assistance, Voice Assistance, Speech to text, automation, writer, blog, Artificial Intelligence, Voice bot, Chat bot.
    55Requires at least: 4.0
    66Tested up to: 5.4
     
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1111 
    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.
     12This 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.
     13Introducing a your personal assistant Renu, Which will talk with you and your users, She is always ready to follow your instruction.
    1314
    1415This plugin is chrome browser based. keep your chrome browser updated for latest experience.
     
    2122
    2223Releases:
     240.0.4 - Introducing new assistant Renu, Which will greet your visitors( AI based userinterface).
    23250.0.3 - Allow users to configure front end search.
    24260.0.2 - PHP 5.6 or greater version compatibility.
     
    2628
    2729Upcomming features:
    28 1. A bot which talks with users.
    29 2. A customizable commands.
     301. Designing a communication bot for your front end users.
     312. Backend commands for navigation.
    3032
    3133== Installation ==
     
    50522. 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.
    51533. 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
    5255== Changelog ==
    53  
     56= 0.0.4 =
     57Indroducing 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.
    5462= 0.0.1 =
    5563* A Basic working prototype of the WpAssistance.
     
    5765== Upgrade Notice ==
    5866
    59 = 0.0.1 =
    60 Keep your plugin updated for availing the new features and secured plugin.
     67= 0.0.4 =
     68Indroducing new assistant Renu, Which will greet your visitors.
Note: See TracChangeset for help on using the changeset viewer.