Changeset 2944358
- Timestamp:
- 07/27/2023 07:42:36 PM (3 years ago)
- Location:
- genolve-toolkit
- Files:
-
- 4 added
- 11 edited
-
assets/banner-1544x500.jpg (modified) (previous)
-
assets/banner-772x250.jpg (modified) (previous)
-
assets/icon-128x128.png (modified) (previous)
-
assets/icon-256x256.png (modified) (previous)
-
assets/screenshot-2.gif (added)
-
assets/screenshot-3.png (added)
-
assets/screenshot-4.gif (added)
-
assets/screenshot-5.gif (added)
-
trunk/css/genolve-settings.css (modified) (1 diff)
-
trunk/genolve-toolkit.php (modified) (2 diffs)
-
trunk/inc/functions.php (modified) (3 diffs)
-
trunk/inc/settings.php (modified) (6 diffs)
-
trunk/js/genolve-meta.js (modified) (1 diff)
-
trunk/js/genolve-scripts.js (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
genolve-toolkit/trunk/css/genolve-settings.css
r2693883 r2944358 30 30 } 31 31 #gnlv-wrapper {color:#788; 32 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* delete? this is bootstrap anyway */ 33 padding:0 0 0 25px; 32 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* delete? this is bootstrap anyway 33 padding:0 0 0 25px; remove to maximize working area 34 */ 34 35 background-color:white;} 35 36 .gnlv-nopadb {padding-bottom:0 !important} 36 37 #gnlv-main {width:600px; float:left;} 37 38 #gnlv-main .icon50 {background-image:url('../img/sideBanner/icon.svg');background-repeat:no-repeat;background-position:0px -10px;float: left; height:47px;width:120px; margin: 15px 8px 0 0;} -
genolve-toolkit/trunk/genolve-toolkit.php
r2932689 r2944358 2 2 /* 3 3 * Plugin Name: Genolve AI image generator + Toolkit 4 * Version: 4.0. 24 * Version: 4.0.3 5 5 * Plugin URI: https://www.genolve.com/ 6 6 * Description: Stunning AI images from a prompt, AI-edit photos, plus amazing toolkit to make banners, collages, slideshows or music videos. … … 71 71 } 72 72 } 73 73 74 74 75 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -
genolve-toolkit/trunk/inc/functions.php
r2932689 r2944358 12 12 define( 'GENOLVE_MANAGE_GROUP', 'genolve-manage-group'); 13 13 define( 'GENOLVE_DASHBOARD_GROUP', 'genolve-dashboard-group'); 14 /* TEST 14 /* TEST 15 15 define( 'GENOLVE_ACTION_URL', 'http://localhost/widget/'); 16 16 define( 'GENOLVE_JS_URL', 'http://localhost/widget/js/' ); 17 17 define( 'GENOLVE_VER', '' ); 18 */18 */ 19 19 20 20 /* PRODUCTION also change version in genolve-toolkit.php,eloop and readme.txt */ 21 21 define( 'GENOLVE_ACTION_URL', 'https://www.genolve.com/'); 22 22 define( 'GENOLVE_JS_URL', 'https://www.genolve.com/js/' ); 23 define( 'GENOLVE_VER', '-4.0. 2' );23 define( 'GENOLVE_VER', '-4.0.3' ); 24 24 25 25 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * … … 417 417 $thebody = preg_replace("/^{/",'{"'.$mybeyonce.'":"'.wp_create_nonce($mybeyonce).'",',$thebody); 418 418 // special processing 419 $thebodyJ=json_decode($thebody,true); 420 // remove true for property_exists($thebodyJ,'newapikey')419 $thebodyJ=json_decode($thebody,true); // remove true for property_exists($thebodyJ,'newapikey') 420 421 421 if(!empty($thebodyJ) && array_key_exists('newapikey',$thebodyJ) && $thebodyJ['newapikey'] !=null )// set it 422 422 if( get_option("genolve_apikey")==null )// set it … … 719 719 add_action('admin_init', 'genolve_addHeaderCode'); 720 720 } 721 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 722 genolve_add_meta_tags - 202307 needed for firefox, cross-origin complaints 723 wrong: HTTP-EQUIV="Access-Control-Allow-Origin" content="https://www.genolve.com/" 724 "Content-Security-Policy" blocks too much 725 726 function genolve_add_meta_tags() { 727 echo '<meta HTTP-EQUIV="Content-Security-Policy" content="script-src \'self\' \'unsafe-inline\' www.genolve.com cdn.jsdelivr.net pixabay.com;" />'; 728 } 729 add_action( 'admin_head', 'genolve_add_meta_tags',10); 730 */ 721 731 /** 722 732 * Add button size class. -
genolve-toolkit/trunk/inc/settings.php
r2932689 r2944358 6 6 // Call the html code for the admin menu page 7 7 add_action('admin_menu', 'genolve_adminMenu'); 8 8 9 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 9 10 genolve_adminMenu - add Genolve to settings menu … … 19 20 add_action('admin_print_styles-' . $genolve_adminMenu, 'genolve_loadCSS'); 20 21 } 21 22 22 23 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 23 24 genolve_get_icon_svg - return logo svg … … 116 117 $theicon = 'circle-x'; 117 118 $alertkind='danger'; 118 if ( is_wp_error( $result ) ) {// errors119 if ( is_wp_error( $result ) || $result==null || $result=="") {// errors 119 120 $themsg = $result->get_error_message() ; 120 121 if(preg_match("/host not found/i",$themsg)) … … 124 125 $respA =json_decode($result['body'],true); 125 126 $themsg = $respA['message']; 126 $themem = array_key_exists('Membership',$respA)?$respA['Membership']:'None'; 127 $thecod = array_key_exists('Code',$respA)?$respA['Code']:'None'; 127 /* as of php 8 this wont work: 128 array_key_exists('Membership',$respA) // ($array) must be of type array, null given in 129 property_exists($respA,'Membership') //First parameter must either be an object or the name of an existing class 130 */ 131 $themem = !empty($respA) && array_key_exists('Membership',$respA)?$respA['Membership']:'None'; 132 $thecod = !empty($respA) && array_key_exists('Code',$respA)?$respA['Code']:'None'; 128 133 if($respA['success']){ 129 134 $loginurl = $faction.'?CMD=login&UserID='.$respA['UserID'].'&code='.$thecod; … … 346 351 if($genolve_img_par[$ii]!='' && $genolve_img_par[$ii]!=null){ 347 352 $respA =json_decode($genolve_img_par[$ii],true); 348 if( array_key_exists('date', $respA))353 if( array_key_exists('date',$respA )) 349 354 $zdate = $respA['date']; 350 355 } … … 433 438 <?php 434 439 }// end help 435 440 441 436 442 } // end isadmin 437 443 ?> -
genolve-toolkit/trunk/js/genolve-meta.js
r2500177 r2944358 3 3 // C H E C K I F E N A B L E D 4 4 if ( genolveO.genolve_enabled === 'TRUE' ) { 5 //for future meta functions 5 gnlv_deac = function(evt){ 6 evt.preventDefault(); 7 var fwdlink = $(this).prop('href'); 8 var modaldivTemplate = '<div id="gnlv-bswrap" class="twbs"><div class="modal" data-animation="false" style="display:none;" id="gnlv_modal_div" tabindex="-1" role="dialog" aria-labelledby="gnlv_modal_title" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> <div id="gnlv_modal_content" class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="gnlv_modal_title">THETITLE</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div id="gnlv_modal_body" class="modal-body gnlv-modal">CONTENT</div></div></div></div></div>'; 9 var cb = '<br><input type="checkbox" name="QdeacNNN" id="QdeacNNN" class="Box ui-widget-content" value="THEVAL" > <label for="QdeacNNN" class="Box"> THETXT</label>'; 10 $('body').prepend(modaldivTemplate.replace(/THETITLE/,"Thanks for Trying Genolve!")); 11 quesA = ['Did not get past API Key.', 'It conflicted with my theme.','Too hard to use.','Found bugs.','Need '+navigator.language+' support.']; 12 themsg="Sorry it did not meet your needs and before you go, please tell us where it let you down:"; 13 for(ii=0; ii<quesA.length; ii++){ 14 themsg += cb.replace(/THETXT/,quesA[ii]).replace(/THEVAL/,quesA[ii].replace(/\s/g,"_")).replace(/NNN/g,ii); 15 } 16 themsg +='<br>Other issue:<input name="deacReason" id="deacReason" title="" class="form-control ui-widget-content valid" value="" aria-invalid="false"><br>' 17 themsg +='<input id="gnlvdeacsubmit" class="btn btn-lg btn-primary btn-responsive" type="submit" value="Submit & Deactivate"> <input id="gnlvdeacskip" class="btn btn-lg btn-link btn-responsive" type="submit" value="Skip Survey">'; 18 $('#gnlv_modal_body').html(themsg); 19 $('#gnlv_modal_div').modal('show'); 20 bsver = String($.fn.tooltip.Constructor.VERSION); 21 console.log("bootstrap ver:"+bsver); 22 $('#gnlvdeacskip').on('click',function(ev){ 23 console.log("going to:"+fwdlink); 24 window.location=fwdlink 25 }); 26 $('#gnlvdeacsubmit').on('click',function(ev){ 27 resp = $('#deacReason').val(); 28 $('input[id^=Qdeac]').each(function(){ 29 resp += $(this).is(':checked')?","+$(this).val():""; 30 }); 31 console.log("full form:"+resp); 32 var myparamO={ 33 CMD:"STATUSUPDATE", 34 param1:"feedback", 35 param2:resp, 36 beyonce_skip:true, 37 faction:"control", 38 keylist:"param1,param2,CMD,beyonce_skip", 39 action:'genolve_proxy'}; 40 41 console.log("genolve-quickReg: AJAX to:"+genolveO.wpajaxurl); 42 thecurreq = $.ajax({ 43 url : genolveO.wpajaxurl, 44 type : 'post', 45 dataType : 'json', 46 data :myparamO, 47 48 // C O N N E C T E D 49 success :function(result,textStatus, thecurreq) { 50 console.log("DONE going to:"+fwdlink); 51 window.location=fwdlink 52 }, 53 error: function(xhr, result, status){ 54 console.log("FAIL going to:"+fwdlink); 55 window.location=fwdlink 56 } 57 });// end ajax 58 }); // end submit 59 } // end gnlv_deac 60 // deactivate survey on deactivate 61 $('#deactivate-genolve-toolkit').on('click',gnlv_deac); 6 62 7 63 } // end genolve enabled -
genolve-toolkit/trunk/js/genolve-scripts.js
r2918112 r2944358 29 29 $('button.edit-post-sidebar__panel-tab').on('click',addGenolve); 30 30 },700); 31 32 31 33 32 34 -
genolve-toolkit/trunk/readme.txt
r2932689 r2944358 5 5 Requires at least: 5.0 6 6 Tested up to: 6.2.2 7 Stable tag: 4.0. 27 Stable tag: 4.0.3 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 19 19 20 20 = AI Features = 21 * **Prompt Generation** - Describe your image and make it in seconds, use preset styles to refine it.22 * **Out Painting** - Easily expand the crop on generated images as well as your own images in the media library.23 * **In Painting** - Touch up your imagesusing a brush to add new details or remove unwanted objects.24 * **Variations** - Get further variations on any generated image.21 * **Prompt Generation** - Generate AI images from a prompt, use preset styles to refine it. ChatGPT automatically suggests a better prompt. 22 * **Out Painting** - Easily expand the crop on AI generated images as well as your own images in the media library. 23 * **In Painting** - Touch up any image using a brush to add new details or remove unwanted objects. 24 * **Variations** - Get further variations on any AI generated image. 25 25 * **GhatGPT** - At your fingertips to help create ads, product descriptions, proofread text or generate quotes. 26 26 * **Current models** - As soon as a new version is released it's added in the toolbox. … … 68 68 1. Add the Genolve Toolkit Plugin via the WordPress Plugins menu. 69 69 2. Activate the plugin. 70 3. Go to 'Design Editor', accept the terms of useand start designing.70 3. Go to 'Design Editor', click auto-install API key and start designing. 71 71 4. Watch the QuickStart Tutorial under the help tab. 72 72 … … 88 88 89 89 1. Design Editor In Use 90 2. Blog Graphic by Genolve user QueenBee [site](https://www.permission2thinkfreely.com/wordpress/)91 3. Slideshow by Genolve user Debam [site](https://www.sapience2112.com/)92 4. Music Video by Genolve user craig93 5. Slideshow by Genolve user craig90 2. AI text-to-image generation with huge styles menu and prompt suggestions 91 3. Inpainting and outpainting in one easy tool 92 4. Music can drive animations 93 5. Easy graphic animation controls 94 94 95 95 == Changelog == 96 97 = 4.0.3 = 98 * Automatic AI prompt suggestions. 99 * Quick download link. 96 100 97 101 = 4.0.2 =
Note: See TracChangeset
for help on using the changeset viewer.