Plugin Directory

Changeset 3340756


Ignore:
Timestamp:
08/07/2025 06:42:03 AM (8 months ago)
Author:
aipost
Message:

update 4.1.2

Location:
ai-wp-writer
Files:
32 added
6 edited

Legend:

Unmodified
Added
Removed
  • ai-wp-writer/trunk/assets/css/style.css

    r3334056 r3340756  
    297297}
    298298
     299#start-articles-generations #aiassist-loader{
     300    display: inline-block;
     301}
     302
    299303/* loader end */
    300304
     
    10951099            transition: transform 0.2s ease-in-out;
    10961100        }
     1101       
     1102        .aiassist-rates-tabs{
     1103            display: flex;
     1104            width: 50%;
     1105            margin: auto;
     1106            padding: 20px;
     1107        }
     1108       
     1109        .aiassist-rates-tab{
     1110            width: 200px;
     1111            border: solid 1px #ccc;
     1112            text-align: center;
     1113            cursor: pointer;
     1114            padding: 10px;
     1115        }
     1116       
     1117        .aiassist-rates-tab.active{
     1118            background: #fff;
     1119            border-bottom: none;
     1120        }
     1121       
    10971122    /* tab rates end */
    10981123   
     
    16961721
    16971722    .pay-method.active{
     1723        background: #fff;
    16981724        border: solid 1px rgb( 66, 179, 213 );
    16991725    }
     
    20682094.aiassist-rates-info{
    20692095    font-size: 14pt;
     2096    text-align: center;
    20702097    padding: 20px 0px 0px 20px;
    20712098}
  • ai-wp-writer/trunk/assets/js/app.js

    r3334056 r3340756  
    11551155           
    11561156            if( items.length ){
    1157                 let articles = {};
    11581157               
    11591158                let c = 0;
    1160            
     1159                let index = 0;
     1160                let articles = {}
     1161               
    11611162                items.each(function(){
    11621163                    let e = $(this);
    11631164                    let id = e.find('.cats-item').val();
    11641165                   
    1165                     if( articles[ id ] == undefined )
    1166                         articles[ id ] = [];
    1167                    
    11681166                    e.find('.aiassist-multi-themes .aiassist-multi-item').each(function(){
    11691167                        let item = $(this);
     
    11711169                       
    11721170                        if( theme !== '' ){ c++;
    1173                             articles[ id ].push( { theme: theme, keywords: e.find('.aiassist-multi-keywords .aiassist-multi-item:eq('+( item.index() - 1 )+')').val() } );
     1171                       
     1172                            if( c % 300 === 0 )
     1173                                index++;
     1174                           
     1175                            if( articles[ index ] == undefined )
     1176                                articles[ index ] = {};
     1177                           
     1178                            if( articles[ index ][ id ] == undefined )
     1179                                articles[ index ][ id ] = [];
     1180                       
     1181                            articles[ index ][ id ].push( { theme: theme, keywords: e.find('.aiassist-multi-keywords .aiassist-multi-item:eq('+( item.index() - 1 )+')').val() } );
    11741182                            $('.aiassist-articles-queue').append('<div class="aiassist-article-queue aiassist-queue"><div class="aiassist-article-item-close" data-key="'+( c - 1 )+'"></div><span class="aiassist-queue-keyword">'+ theme +'</span> <span class="aiassist-queue-status">'+( c==1 ? aiassist.locale['Generation in progress'] : aiassist.locale['In line'] )+'</span></div>');
    11751183                        }
     1184                       
    11761185                    })
    11771186                   
     
    11851194                    textModel = $('#aiassist-change-text-model').val();
    11861195               
    1187                 await app.request( { articles: articles, artPromt: artPromt, titlePromt: titlePromt, textModel: textModel, imageModel: imageModel, descPromt: descPromt, action: 'initArticlesGen', nonce: aiassist.nonce } );
     1196                $('#start-articles-generations').html('<div id="aiassist-loader"></div>');
     1197               
     1198                for( let k in articles ){
     1199                    await app.sleep( 3 );
     1200                    await app.request( { articles: articles[ k ], artPromt: artPromt, titlePromt: titlePromt, textModel: textModel, imageModel: imageModel, descPromt: descPromt, action: 'initArticlesGen', nonce: aiassist.nonce } );
     1201                }
     1202               
     1203                $('#start-articles-generations').text( aiassist.locale['Start articles generation'] );
    11881204               
    11891205                $('.aiassist-article-item:not(:first)').remove();
  • ai-wp-writer/trunk/class.assistant.php

    r3334056 r3340756  
    14401440                'Restore original / removing generated images'  => __('Restore original / removing generated images', 'wp-ai-assistant'),
    14411441                'Remove original images'    => __('Remove original images', 'wp-ai-assistant'),
     1442                'Start articles generation' => __('Start articles generation', 'wp-ai-assistant'),
    14421443            ],
    14431444        ] );
  • ai-wp-writer/trunk/index.php

    r3334056 r3340756  
    11<?php
    22/*
    3     Version: 4.1
     3    Version: 4.1.2
    44    Plugin Name: AI WP Writer
    55    Description: Fast generation of articles with images in Wordpress editor, automatic content writer on schedule, mass rewriting of articles. Powered by ChatGPT, GPT-4.1, GPT-4.1-mini, GPT-4.1-nano, o3-mini, Dalle 3, GPT-image, FLUX.
  • ai-wp-writer/trunk/readme.txt

    r3334056 r3340756  
    55Tested up to: 6.8.2
    66Requires PHP: 5.6.0
    7 Stable tag: 4.1
     7Stable tag: 4.1.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • ai-wp-writer/trunk/tpl/options.php

    r3334067 r3340756  
    590590               
    591591                <div class="aiassist-rates-wrap">
    592                    
     592               
    593593                    <div class="aiassist-rates-info"><?php _e('The subscription applies to all sites connected to your API key, and one common credit balance is used for all sites.', 'wp-ai-assistant') ?></div>
    594594                   
Note: See TracChangeset for help on using the changeset viewer.