Plugin Directory

Changeset 2961912


Ignore:
Timestamp:
09/02/2023 09:08:28 AM (2 years ago)
Author:
wpgrids
Message:

Release 1.1.9

Location:
ai-content-generation
Files:
88 added
5 edited

Legend:

Unmodified
Added
Removed
  • ai-content-generation/trunk/assets/css/admin.css

    r2961128 r2961912  
    23062306}
    23072307
    2308 form#wpwand-post-generate-form .wpwand-pgf-row {
    2309     display: flex;
    2310     width: 700px;
    2311     align-items: center;
     2308form.wpwand-pg-form .wpwand-pgf-row {
     2309    display: flex;
     2310    width: 770px;
     2311    /* align-items: center; */
    23122312    margin-bottom: 37px;
    2313 }
    2314 
    2315 form#wpwand-post-generate-form .wpwand-pgf-row label {
     2313    gap: 10%;
     2314    box-sizing: border-box;
     2315}
     2316
     2317form.wpwand-pg-form .wpwand-pgf-row label {
    23162318    color: var(--gray-900, #18181B);
    23172319
     
    23272329}
    23282330
    2329 form#wpwand-post-generate-form .wpwand-pgf-row p {
     2331form.wpwand-pg-form .wpwand-pgf-row p {
    23302332    color: var(--neutral-05, #454F5C);
    23312333    font-family: Inter;
     
    23402342
    23412343
    2342 form#wpwand-post-generate-form .wpwand-pgf-row .wpwand-pgf-label {
    2343     width: 45%;
    2344     margin-right: 5%;
    2345 }
    2346 
    2347 form#wpwand-post-generate-form .wpwand-pgf-row .wpwand-pgf-field {
    2348     margin-left: 5%;
    2349     width: 45%;
    2350 }
    2351 
    2352 form#wpwand-post-generate-form .wpwand-pgf-row .wpwand-pgf-field input {
     2344form.wpwand-pg-form .wpwand-pgf-row .wpwand-pgf-label {
     2345    width: 40%;
     2346}
     2347
     2348form.wpwand-pg-form .wpwand-pgf-row .wpwand-pgf-field {
     2349    width: 60%;
     2350}
     2351
     2352form.wpwand-pg-form .wpwand-pgf-row .wpwand-pgf-field input {
    23532353    border: 1px solid var(--gray-200, #E4E4E7);
    23542354    border-radius: 5px;
     
    28222822
    28232823.wpwand-pgs-free-htw-video h2 {
    2824     margin-bottom: 60px;
    2825     font-size: 38px;
     2824    margin-bottom: 34px;
     2825    font-size: 29px;
     2826    line-height: 1.3;
    28262827}
    28272828
     
    29372938    max-width: 100%;
    29382939}
     2940
     2941
     2942/* pgf tab css  */
     2943form.wpwand-pg-form .wpwand-pgf-row .wpwand-pgf-field textarea {
     2944    border: 1px solid var(--gray-200, #E4E4E7);
     2945    border-radius: 5px;
     2946    min-height: 239px;
     2947    width: 100%;
     2948    padding: 15px;
     2949}
     2950
     2951div#wpwand-pgf-custom-wrap .wpwand-pgf-custom .wpwand-pgf-row {
     2952    width: 778px;
     2953}
     2954
     2955form.wpwand-pg-form.wpwand-pgf-custom .wpwand-pgf-row .wpwand-pgf-label {
     2956    width: 40%;
     2957}
     2958
     2959form.wpwand-pg-form.wpwand-pgf-custom .wpwand-pgf-row .wpwand-pgf-field {
     2960    width: 69%;
     2961}
     2962
     2963.wpwand-pgf-tabs {
     2964    display: flex;
     2965    align-items: center;
     2966    width: fit-content;
     2967    border: 1px solid var(--neutral-03, #D1D6DB);
     2968    border-radius: 8px;
     2969    margin-bottom: 30px;
     2970}
     2971
     2972.wpwand-pgf-tabs a {
     2973    color: var(--neutral-07, #080E13);
     2974    text-align: center;
     2975
     2976    /* Semi-bold/13px */
     2977    font-family: Inter;
     2978    font-size: 14px;
     2979    font-style: normal;
     2980    font-weight: 500;
     2981    line-height: 21px;
     2982    /* 150% */
     2983    padding: 16px;
     2984    text-decoration: none;
     2985    box-shadow: unset;
     2986}
     2987
     2988.wpwand-pgf-tabs a:first-child {
     2989    border-right: 1px solid var(--neutral-03, #D1D6DB);
     2990}
     2991
     2992.wpwand-pgf-tabs a.active {
     2993    background: var(--neutral-02, #EAEDF0);
     2994}
  • ai-content-generation/trunk/assets/js/post-generator.js

    r2961128 r2961912  
    1616            $parent.find('[data-id=' + target + ']').addClass('active');
    1717        })
     18
     19
     20        // pgf tabs
     21
     22        const $pgf_tabs = $parent.find('.wpwand-pgf-tabs a');
     23        const $pgf_item = $parent.find('.wpwand-pgf-item');
     24
     25        $pgf_item.not('.active').hide();
     26
     27        $pgf_tabs.on('click', function (e) {
     28            e.preventDefault();
     29
     30            const $this = $(this);
     31            const tab_id = $this.data('id');
     32
     33            $pgf_tabs.removeClass('active');
     34            $pgf_item.removeClass('active');
     35            $this.addClass('active');
     36            $parent.find('#' + tab_id).show();
     37            $pgf_item.not('#' + tab_id).hide();
     38        });
    1839
    1940
     
    5879
    5980
    60         $('#wpwand-post-generate-form').on('submit', function (e) {
     81        $('.wpwand-pg-form').on('submit', function (e) {
    6182            e.preventDefault();
    6283
    6384            const $this = $(this);
    64             const topic = $this.find('input[name=topic]').val();
    65             const count = $this.find('input[name=post_count]').val();
    66 
    67             $this.find('button[type=submit]').css('opacity', '.6')
    68             $parent.find('.wpwand-pg-info-topic').html(topic);
    69             $parent.find('.wpwand-pg-info-count').html(count);
    70             // Use $.post instead of $.ajax for simpler code
    71             $.post({
    72                 url: wpwand_glb.ajax_url,
    73                 data: {
    74                     action: 'wpwand_post_generator',
    75                     topic,
    76                     count
    77 
    78                 },
    79                 success: function (response) {
    80 
    81                     $this.find('button[type=submit]').css('opacity', '1')
    82                     $parent.find('.step-content').removeClass('active');
    83                     $parent.find('.wpwand-pgs-header .step').removeClass('active');
    84 
    85                     $parent.find('#step-2').addClass('active');
    86                     $parent.find('[data-id=step-2]').addClass('active');
    87 
    88                     $parent.find('#wpwand-post-content-generate-form .wpwand-pcgf-title-list').html(response)
    89 
    90 
    91 
    92 
    93 
    94                 }
    95             });
     85            const is_custom_form = $this.is('#wpwand-pgf-custom');
     86
     87
     88            if (is_custom_form) {
     89                // Get the text from the textarea
     90                $parent.find('#wpwand-post-content-generate-form .wpwand-pcgf-title-list').html('');
     91
     92                // Split the text into an array of lines using the newline character as the delimiter
     93                var text = $("#titles").val();
     94                var linesArray = text.split('\n');
     95                linesArray = linesArray.filter(function (line) {
     96                    return line.trim() !== ''; // Remove lines that are empty or contain only whitespace
     97                });
     98
     99                // You can iterate through the linesArray and perform further processing as needed
     100                let count = 0;
     101                $.each(linesArray, function (index, line) {
     102                    count++;
     103                    // Do something with each line
     104                    console.log("Line " + (index + 1) + ": " + line);
     105
     106                    $parent.find('#wpwand-post-content-generate-form .wpwand-pcgf-title-list').append(`
     107                    <div class="wpwand-pcgf-heading-item">
     108                        <div class="wpwand-pcgf-heading-content">
     109                            <input type="checkbox" id="selected_headings-` + index + 1 + `" name="selected_headings[]" value="` + line + `" checked>
     110                            <label for="selected_headings-` + index + 1 + `">` + line + `</label>
     111                        </div>
     112                    </div>
     113                    `)
     114                });
     115
     116
     117                $parent.find('.wpwand-pg-info-topic').parent().hide();
     118                $parent.find('.wpwand-pg-info-count').html(count);
     119
     120                $this.find('button[type=submit]').css('opacity', '1')
     121                $parent.find('.step-content').removeClass('active');
     122                $parent.find('.wpwand-pgs-header .step').removeClass('active');
     123
     124                $parent.find('#step-2').addClass('active');
     125                $parent.find('[data-id=step-2]').addClass('active');
     126
     127
     128
     129                return;
     130            } else {
     131
     132                const topic = $this.find('input[name=topic]').val();
     133                const count = $this.find('input[name=post_count]').val();
     134
     135                $this.find('button[type=submit]').css('opacity', '.6')
     136                $parent.find('.wpwand-pg-info-topic').html(topic);
     137                $parent.find('.wpwand-pg-info-count').html(count);
     138                // Use $.post instead of $.ajax for simpler code
     139                $.post({
     140                    url: wpwand_glb.ajax_url,
     141                    data: {
     142                        action: 'wpwand_post_generator',
     143                        topic,
     144                        count
     145
     146                    },
     147                    success: function (response) {
     148
     149                        $this.find('button[type=submit]').css('opacity', '1')
     150                        $parent.find('.step-content').removeClass('active');
     151                        $parent.find('.wpwand-pgs-header .step').removeClass('active');
     152
     153                        $parent.find('#step-2').addClass('active');
     154                        $parent.find('[data-id=step-2]').addClass('active');
     155
     156                        $parent.find('#wpwand-post-content-generate-form .wpwand-pcgf-title-list').html(response)
     157
     158
     159
     160                    }
     161                });
     162            }
     163
     164
    96165        });
    97166
     
    127196                selected_title.push($(this).text());
    128197            });
    129 
    130198
    131199
  • ai-content-generation/trunk/inc/view/post-generator.php

    r2961128 r2961912  
    2323            <!-- step 1 -->
    2424            <div id="step-1" class="step-content active">
    25                 <form action="" method="post" id="wpwand-post-generate-form">
     25                <form action="" method="post" class="wpwand-pg-form" id="wpwand-pgf-ai">
    2626                    <div class="wpwand-pgf-row">
    2727                        <div class="wpwand-pgf-label">
     
    100100                    <div class="wpwand-pgs-free-htw-video">
    101101                        <h2>How to Generate Bulk Blog Post Using WP Wand AI</h2>
    102                         <iframe width="640"  src="https://www.youtube.com/embed/-T5cMgKRVbY"
     102                        <iframe width="640" src="https://www.youtube.com/embed/-T5cMgKRVbY"
    103103                            title="How to Generate Bulk Blog Post Using AI Inside WordPress" frameborder="0"
    104104                            allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
  • ai-content-generation/trunk/readme.txt

    r2961137 r2961912  
    55Requires at least: 5.0
    66Tested up to: 6.3
    7 Stable tag: 1.1.8
     7Stable tag: 1.1.9
    88License: GPL-2.0+
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    3434https://youtu.be/FdX82QqHFyo
    3535
    36 **How to Generate Bulk Posts Using WP Wand**
    37 
    38 https://www.youtube.com/watch?v=-T5cMgKRVbY
     36**How to Generate 100+ Bulk Posts Using WP Wand**
     37
     38https://youtu.be/w2nR1mgsiiE
    3939
    4040**How to Add or Improve Existing Content using AI Assistant**
     
    303303== Changelog ==
    304304
     305= 1.1.9 =
     306* New: Bulk Post Generation by Custom Headings [Pro version only]
     307* Fixed: Minor Issues.
     308
    305309= 1.1.8 =
    306310* Fixed: Max Token Limit Issue is Solved.
  • ai-content-generation/trunk/wp-wand.php

    r2961128 r2961912  
    44 * Plugin URI: https://wpwand.com/
    55 * Description: WP Wand is a AI content generation plugin for WordPress that helps your team create high quality content 10X faster and 50x cheaper. No monthly subscription required.
    6  * Version: 1.1.8
     6 * Version: 1.1.9
    77 * Author: WP Wand
    88 * Author URI: https://wpwand.com/
     
    7171    }
    7272    do_action('wpwand_init');
    73    
     73
    7474
    7575
Note: See TracChangeset for help on using the changeset viewer.