Changeset 2961912
- Timestamp:
- 09/02/2023 09:08:28 AM (2 years ago)
- Location:
- ai-content-generation
- Files:
-
- 88 added
- 5 edited
-
tags/1.1.9 (added)
-
tags/1.1.9/assets (added)
-
tags/1.1.9/assets/css (added)
-
tags/1.1.9/assets/css/admin.css (added)
-
tags/1.1.9/assets/css/jquery-ui.css (added)
-
tags/1.1.9/assets/css/sweetalert2.min.css (added)
-
tags/1.1.9/assets/img (added)
-
tags/1.1.9/assets/img/Video.png (added)
-
tags/1.1.9/assets/img/icon.svg (added)
-
tags/1.1.9/assets/img/logo.png (added)
-
tags/1.1.9/assets/img/logo.svg (added)
-
tags/1.1.9/assets/js (added)
-
tags/1.1.9/assets/js/admin.js (added)
-
tags/1.1.9/assets/js/classic-editor.js (added)
-
tags/1.1.9/assets/js/post-generator.js (added)
-
tags/1.1.9/assets/js/seo.js (added)
-
tags/1.1.9/assets/js/sweetalert2.all.min.js (added)
-
tags/1.1.9/assets/js/vue.global.js (added)
-
tags/1.1.9/assets/js/woocommerce.js (added)
-
tags/1.1.9/assets/js/wpwand-gutenberg.js (added)
-
tags/1.1.9/inc (added)
-
tags/1.1.9/inc/Finestics (added)
-
tags/1.1.9/inc/Finestics/Client.php (added)
-
tags/1.1.9/inc/Finestics/Insights.php (added)
-
tags/1.1.9/inc/WooCommerce.php (added)
-
tags/1.1.9/inc/admin.php (added)
-
tags/1.1.9/inc/api.php (added)
-
tags/1.1.9/inc/config.php (added)
-
tags/1.1.9/inc/data.php (added)
-
tags/1.1.9/inc/editor.php (added)
-
tags/1.1.9/inc/frontend.php (added)
-
tags/1.1.9/inc/gutenberg.php (added)
-
tags/1.1.9/inc/helper-functions.php (added)
-
tags/1.1.9/inc/modules (added)
-
tags/1.1.9/inc/modules/elementor (added)
-
tags/1.1.9/inc/modules/elementor/assets (added)
-
tags/1.1.9/inc/modules/elementor/assets/css (added)
-
tags/1.1.9/inc/modules/elementor/assets/css/editor.css (added)
-
tags/1.1.9/inc/modules/elementor/assets/css/jquery-ui.css (added)
-
tags/1.1.9/inc/modules/elementor/assets/img (added)
-
tags/1.1.9/inc/modules/elementor/assets/img/Video.png (added)
-
tags/1.1.9/inc/modules/elementor/assets/img/icon.png (added)
-
tags/1.1.9/inc/modules/elementor/assets/img/icon.svg (added)
-
tags/1.1.9/inc/modules/elementor/assets/js (added)
-
tags/1.1.9/inc/modules/elementor/assets/js/editor.js (added)
-
tags/1.1.9/inc/modules/elementor/inc (added)
-
tags/1.1.9/inc/modules/elementor/inc/controls (added)
-
tags/1.1.9/inc/modules/elementor/inc/controls/text.php (added)
-
tags/1.1.9/inc/modules/elementor/inc/controls/textarea.php (added)
-
tags/1.1.9/inc/modules/elementor/inc/controls/wysiwyg.php (added)
-
tags/1.1.9/inc/modules/elementor/inc/elementor.php (added)
-
tags/1.1.9/inc/modules/elementor/readme.txt (added)
-
tags/1.1.9/inc/modules/elementor/wp-wand-elementor.php (added)
-
tags/1.1.9/inc/post-generator.php (added)
-
tags/1.1.9/inc/view (added)
-
tags/1.1.9/inc/view/post-generator.php (added)
-
tags/1.1.9/inc/white-label.php (added)
-
tags/1.1.9/readme.txt (added)
-
tags/1.1.9/vendor (added)
-
tags/1.1.9/vendor/orhanerday (added)
-
tags/1.1.9/vendor/orhanerday/open-ai (added)
-
tags/1.1.9/vendor/orhanerday/open-ai/LICENSE.md (added)
-
tags/1.1.9/vendor/orhanerday/open-ai/README.md (added)
-
tags/1.1.9/vendor/orhanerday/open-ai/src (added)
-
tags/1.1.9/vendor/orhanerday/open-ai/src/OpenAi.php (added)
-
tags/1.1.9/vendor/orhanerday/open-ai/src/Url.php (added)
-
tags/1.1.9/vendor/wp-background-processing (added)
-
tags/1.1.9/vendor/wp-background-processing/.circleci (added)
-
tags/1.1.9/vendor/wp-background-processing/.circleci/config.yml (added)
-
tags/1.1.9/vendor/wp-background-processing/.gitignore (added)
-
tags/1.1.9/vendor/wp-background-processing/.phpcs.xml (added)
-
tags/1.1.9/vendor/wp-background-processing/Makefile (added)
-
tags/1.1.9/vendor/wp-background-processing/README.md (added)
-
tags/1.1.9/vendor/wp-background-processing/bin (added)
-
tags/1.1.9/vendor/wp-background-processing/bin/install-wp-tests.sh (added)
-
tags/1.1.9/vendor/wp-background-processing/classes (added)
-
tags/1.1.9/vendor/wp-background-processing/classes/wp-async-request.php (added)
-
tags/1.1.9/vendor/wp-background-processing/classes/wp-background-process.php (added)
-
tags/1.1.9/vendor/wp-background-processing/composer.json (added)
-
tags/1.1.9/vendor/wp-background-processing/composer.lock (added)
-
tags/1.1.9/vendor/wp-background-processing/license.txt (added)
-
tags/1.1.9/vendor/wp-background-processing/phpunit.xml (added)
-
tags/1.1.9/vendor/wp-background-processing/tests (added)
-
tags/1.1.9/vendor/wp-background-processing/tests/Test_Setup.php (added)
-
tags/1.1.9/vendor/wp-background-processing/tests/Test_WP_Background_Process.php (added)
-
tags/1.1.9/vendor/wp-background-processing/tests/bootstrap.php (added)
-
tags/1.1.9/vendor/wp-background-processing/wp-background-processing.php (added)
-
tags/1.1.9/wp-wand.php (added)
-
trunk/assets/css/admin.css (modified) (5 diffs)
-
trunk/assets/js/post-generator.js (modified) (3 diffs)
-
trunk/inc/view/post-generator.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-wand.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ai-content-generation/trunk/assets/css/admin.css
r2961128 r2961912 2306 2306 } 2307 2307 2308 form #wpwand-post-generate-form .wpwand-pgf-row {2309 display: flex; 2310 width: 7 00px;2311 align-items: center;2308 form.wpwand-pg-form .wpwand-pgf-row { 2309 display: flex; 2310 width: 770px; 2311 /* align-items: center; */ 2312 2312 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 2317 form.wpwand-pg-form .wpwand-pgf-row label { 2316 2318 color: var(--gray-900, #18181B); 2317 2319 … … 2327 2329 } 2328 2330 2329 form #wpwand-post-generate-form .wpwand-pgf-row p {2331 form.wpwand-pg-form .wpwand-pgf-row p { 2330 2332 color: var(--neutral-05, #454F5C); 2331 2333 font-family: Inter; … … 2340 2342 2341 2343 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 { 2344 form.wpwand-pg-form .wpwand-pgf-row .wpwand-pgf-label { 2345 width: 40%; 2346 } 2347 2348 form.wpwand-pg-form .wpwand-pgf-row .wpwand-pgf-field { 2349 width: 60%; 2350 } 2351 2352 form.wpwand-pg-form .wpwand-pgf-row .wpwand-pgf-field input { 2353 2353 border: 1px solid var(--gray-200, #E4E4E7); 2354 2354 border-radius: 5px; … … 2822 2822 2823 2823 .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; 2826 2827 } 2827 2828 … … 2937 2938 max-width: 100%; 2938 2939 } 2940 2941 2942 /* pgf tab css */ 2943 form.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 2951 div#wpwand-pgf-custom-wrap .wpwand-pgf-custom .wpwand-pgf-row { 2952 width: 778px; 2953 } 2954 2955 form.wpwand-pg-form.wpwand-pgf-custom .wpwand-pgf-row .wpwand-pgf-label { 2956 width: 40%; 2957 } 2958 2959 form.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 16 16 $parent.find('[data-id=' + target + ']').addClass('active'); 17 17 }) 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 }); 18 39 19 40 … … 58 79 59 80 60 $(' #wpwand-post-generate-form').on('submit', function (e) {81 $('.wpwand-pg-form').on('submit', function (e) { 61 82 e.preventDefault(); 62 83 63 84 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 96 165 }); 97 166 … … 127 196 selected_title.push($(this).text()); 128 197 }); 129 130 198 131 199 -
ai-content-generation/trunk/inc/view/post-generator.php
r2961128 r2961912 23 23 <!-- step 1 --> 24 24 <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"> 26 26 <div class="wpwand-pgf-row"> 27 27 <div class="wpwand-pgf-label"> … … 100 100 <div class="wpwand-pgs-free-htw-video"> 101 101 <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" 103 103 title="How to Generate Bulk Blog Post Using AI Inside WordPress" frameborder="0" 104 104 allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" -
ai-content-generation/trunk/readme.txt
r2961137 r2961912 5 5 Requires at least: 5.0 6 6 Tested up to: 6.3 7 Stable tag: 1.1. 87 Stable tag: 1.1.9 8 8 License: GPL-2.0+ 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 34 34 https://youtu.be/FdX82QqHFyo 35 35 36 **How to Generate Bulk Posts Using WP Wand**37 38 https:// www.youtube.com/watch?v=-T5cMgKRVbY36 **How to Generate 100+ Bulk Posts Using WP Wand** 37 38 https://youtu.be/w2nR1mgsiiE 39 39 40 40 **How to Add or Improve Existing Content using AI Assistant** … … 303 303 == Changelog == 304 304 305 = 1.1.9 = 306 * New: Bulk Post Generation by Custom Headings [Pro version only] 307 * Fixed: Minor Issues. 308 305 309 = 1.1.8 = 306 310 * Fixed: Max Token Limit Issue is Solved. -
ai-content-generation/trunk/wp-wand.php
r2961128 r2961912 4 4 * Plugin URI: https://wpwand.com/ 5 5 * 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. 86 * Version: 1.1.9 7 7 * Author: WP Wand 8 8 * Author URI: https://wpwand.com/ … … 71 71 } 72 72 do_action('wpwand_init'); 73 73 74 74 75 75
Note: See TracChangeset
for help on using the changeset viewer.