Plugin Directory

Changeset 2783238


Ignore:
Timestamp:
09/12/2022 09:04:57 AM (4 years ago)
Author:
NickDuncan
Message:

v1.2.00 - 2022-09-09

  • Added all the latest short form tools
  • - blog conclusions
  • - paragraph
  • - engaging questions
  • - explain it to a child
  • - explain it like a professor
  • - brand story
  • - photo captions
  • Added ability to login with API key in Gutenberg block area
  • Updated media
Location:
content-bot/trunk
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • content-bot/trunk/content-bot.php

    r2558520 r2783238  
    44Plugin URI: https://contentbot.ai
    55Description: Create amazing AI content snippets with OpenAI's GPT3 autoregressive language model that uses deep learning to produce human-like text.
    6 Version: 1.1.00
    7 Author: NickDuncan
     6Version: 1.2.00
     7Author: ContentBot
    88Author URI: https://codecabin.io
    99Text Domain: wp-content-bot
     
    1313
    1414/**
     15 * v1.2.0 - 2022-09-09
     16 * Added all the latest short form tools
     17 *  - blog conclusions
     18 *  - paragraph
     19 *  - engaging questions
     20 *  - explain it to a child
     21 *  - explain it like a professor
     22 *  - brand story
     23 *  - photo captions
     24 * Added ability to login with API key in Gutenberg block area
     25 * Updated media
    1526 *
    1627 * v1.1.0 - 2021-07-05
     
    6980    global $cbaiVersion;
    7081    wp_enqueue_script(
    71         'content-bot-gutenberg',
    72         plugin_dir_url(__FILE__) . 'script.js',
     82        'content-bot-functions',
     83        plugin_dir_url(__FILE__) . 'js/functions.js',
    7384        array('wp-blocks','wp-editor'),
    7485        $cbaiVersion
    7586    );
     87
     88    wp_enqueue_script(
     89        'content-bot-gutenberg',
     90        plugin_dir_url(__FILE__) . 'js/script.js',
     91        array('wp-blocks','wp-editor'),
     92        $cbaiVersion
     93    );
     94
     95    wp_enqueue_script(
     96        'content-bot-frame-builders',
     97        plugin_dir_url(__FILE__) . 'js/frame-builders.js',
     98        array('wp-blocks','wp-editor'),
     99        $cbaiVersion
     100    );
     101
     102   
    76103
    77104    $current_user = wp_get_current_user();
     
    106133          'gravs'=> $gravs_array
    107134    );
     135
     136    wp_localize_script( 'content-bot-functions', 'cbai_data', $translation_array );
    108137    wp_localize_script( 'content-bot-gutenberg', 'cbai_data', $translation_array );
    109 
     138    wp_localize_script( 'content-bot-frame-builders', 'cbai_data', $translation_array );
    110139
    111140    wp_enqueue_style( 'content-bot', plugin_dir_url(__FILE__) . 'css/style.css' );
     
    135164            update_option( 'cbai_hash', sanitize_text_field( $_POST['cbai_apikey'] ) );
    136165        }
    137 
    138166    }
    139167
     
    167195function cbai_render_callback( $attributes, $content ){
    168196    return html_entity_decode( $content );
    169    
    170197}
    171198
     
    183210    update_option( 'cbai_hash', sanitize_text_field( $_POST['apikey'] ) );
    184211    die('1');
    185 
    186212}
    187213
     
    194220    update_option( 'cbai_otl', sanitize_text_field( $_POST['otl'] ) );
    195221    die('1');
    196 
    197 }
    198 
    199 
     222}
     223
     224
  • content-bot/trunk/css/style.css

    r2469258 r2783238  
    4242    color: red;
    4343    background-color: #fbe7e7;
    44     border: 1px solid #red;
     44    border: 1px solid red;
    4545    padding: 5px;
    4646    border-radius: 5px;
    4747}
     48
     49.content-bot-end-buttons-container{
     50    display: flex;
     51    justify-content: space-between;
     52}
  • content-bot/trunk/readme.txt

    r2781920 r2783238  
    8989== Changelog ==
    9090
     91= v1.2.00 - 2022-09-09 =
     92* Added all the latest short form tools
     93*  - blog conclusions
     94*  - paragraph
     95*  - engaging questions
     96*  - explain it to a child
     97*  - explain it like a professor
     98*  - brand story
     99*  - photo captions
     100* Added ability to login with API key in Gutenberg block area
     101* Updated media
     102
    91103= v1.1.00 - 2021-07-05 =
    92104* Added all the latest short form tools
  • content-bot/trunk/script.js

    r2558520 r2783238  
    204204            type: "GET",
    205205            dataType: "json",
    206             url: cb_REST+"action=register&u="+cbai_data.uemail,
     206            url: cb_REST+"v2=true&action=register&u="+cbai_data.uemail,
    207207            success: function(msg){
    208208              if (typeof msg.apikey !== 'undefined') {
     
    214214                  jQuery("#content-bot-message").removeClass('hidden');
    215215                  jQuery("#content-bot-message").addClass('content-bot-message-green');
    216                   jQuery("#content-bot-message").html('You\'re account has been created. You will receive an email (to '+cbai_data.uemail+') with log in details for future reference.');
     216                  jQuery("#content-bot-message").html('<p>You\'re account has been created. <strong>You will receive an email</strong> (to '+cbai_data.uemail+') with <strong>log in details</strong> for future reference.</p><p>Your account currently has <strong>'+msg.credits+'</strong> Pay As You Go credits.</p>');
    217217                  setTimeout(function() {
    218218                      jQuery("#content-bot-message").fadeOut('slow');
     
    398398      var url = "https://contentbot.ai/app/api/";
    399399
    400       var query = "?action=" + action + "&apikey=" + cbai_data.hash + "&rel=" + rel;
     400      var query = "action=" + action + "&apikey=" + cbai_data.hash + "&rel=" + rel;
    401401
    402402      jQuery.get(url + query).always(function( data ) {
  • content-bot/trunk/templates/settings.html.php

    r2475458 r2783238  
    66?>
    77<div class="wrap">
    8     <h1><?php _e("Content Bot Settings", "wp-content-bot"); ?></h1>
     8    <h1><?php _e("ContentBot Settings", "wp-content-bot"); ?></h1>
    99
    1010    <form method="post" action="" novalidate="novalidate">
     
    3131                        <input name="cbai_apikey" type="text" id="cbai_apikey" value="<?php echo get_option('cbai_hash'); ?>" class="regular-text">
    3232                        <p class="description" id="apikey-description">
    33                         <?php _e("An API key will be generated for you as soon as you start using the Content Bot <strong>block</strong> in your posts/pages", "wp-content-bot"); ?>
     33                        <?php _e("An API key will be generated for you as soon as you start using ContentBot <strong>block</strong> in your posts/pages", "wp-content-bot"); ?>
    3434                        </p>
    3535                    </td>
  • content-bot/trunk/templates/welcome.html.php

    r2478787 r2783238  
    5050<div id="content-bot-welcome-page" class="wrap about-wrap">
    5151    <p>&nbsp;</p>
    52     <img style="width: 212px;" src="<?php echo CBAI_PLUGIN_DIR_URL.'img/squarel.png'; ?>" alt="Content Bot"/>
     52    <img style="width: 212px;" src="<?php echo CBAI_PLUGIN_DIR_URL.'img/squarel.png'; ?>" alt="ContentBot"/>
    5353    <h1><?php  _e("Welcome to ContentBot","wp-content-bot"); ?></h1>
    5454
     
    6666            <div class="cbai-card">
    6767                <h3><?php _e("Step 1","wp-content-bot"); ?></h3>
    68                 <p><?php _e("Add the Content Bot block to your page/post","wp-content-bot"); ?></p>
     68                <p><?php _e("Add the ContentBot block to your page/post","wp-content-bot"); ?></p>
    6969                <img src='<?php echo CBAI_PLUGIN_DIR_URL.'img/step1.gif'; ?>' style="border:1px solid #ccc;" />
    7070            </div>             
Note: See TracChangeset for help on using the changeset viewer.