Changeset 3486101
- Timestamp:
- 03/19/2026 02:41:59 AM (2 weeks ago)
- Location:
- genolve-toolkit/trunk
- Files:
-
- 6 added
- 8 edited
-
bseparator/block.js (modified) (3 diffs)
-
bseparator/index.php (modified) (1 diff)
-
bwidgetai (added)
-
bwidgetai/block.js (added)
-
bwidgetai/index.php (added)
-
genolve-toolkit.php (modified) (2 diffs)
-
img/blockpreview-separator.jpg (added)
-
img/blockpreview-widgetai.jpg (added)
-
img/spacer.gif (added)
-
inc/functions.php (modified) (6 diffs)
-
inc/settings.php (modified) (3 diffs)
-
js/bootstrap-4-0-ns/css/bootstrap-ns.css (modified) (3 diffs)
-
js/genolve-getsvg.js (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
genolve-toolkit/trunk/bseparator/block.js
r2918112 r3486101 43 43 icon: iconEl, 44 44 category: 'layout', 45 description: __( 'Highlight pull quotes, separate sections or add texture to page, 1000 variations', 'genolve-toolkit' ), 45 46 // A T T R I B U T E S 46 47 attributes: { … … 49 50 default: 'sep'+Math.floor(100000 * Math.random()) 50 51 }, 52 isPreview: { 53 type: 'boolean', 54 default: false 55 }, 51 56 background: { 52 57 type: 'string', … … 81 86 default: 100 82 87 } 83 }, 88 }, // end attributes 89 example: { 90 attributes: { 91 isPreview: true 92 } 93 }, 84 94 edit: function(props) { 95 if ( props.attributes.isPreview ) { 96 return el( 'div', { style: { padding: '0' } }, 97 el( 'img', { 98 src: genolveToolkitBseparator.pluginUrl + 'img/blockpreview-separator.jpg', 99 alt: __( 'Ornate Separator', 'genolve-toolkit' ), 100 style: { width: '100%', height: 'auto' } 101 }) 102 ); 103 } 85 104 isSelected = props.isSelected, 86 105 toggleSelection = props.toggleSelection, -
genolve-toolkit/trunk/bseparator/index.php
r2090755 r3486101 36 36 filemtime( plugin_dir_path( __FILE__ ) . 'block.js' ) 37 37 ); 38 38 39 wp_localize_script( 'genolve-toolkit-bseparator', 'genolveToolkitBseparator', array( 40 'pluginUrl' => plugin_dir_url( dirname( __FILE__ ) ), 41 ) ); 42 39 43 register_block_type( 'genolve-toolkit/bseparator', array( 40 44 'editor_script' => 'genolve-toolkit-bseparator' -
genolve-toolkit/trunk/genolve-toolkit.php
r3460463 r3486101 2 2 /* 3 3 * Plugin Name: Genolve AI image AI video generator 4 * Version: 5.0. 64 * Version: 5.0.7 5 5 * Plugin URI: https://www.genolve.com/ 6 6 * Description: Stunning AI video & images from a prompt, plus amazing toolkit to make blog graphics, podcasts or promotional videos with AI assisted design. … … 37 37 require_once(dirname(__FILE__) . '/bseparator/index.php'); 38 38 require_once(dirname(__FILE__) . '/bimage/index.php'); 39 require_once(dirname(__FILE__) . '/bwidgetai/index.php'); 39 40 40 41 // Add the header code (css & javascript) to WordPress page -
genolve-toolkit/trunk/inc/functions.php
r3460463 r3486101 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 /* PRODUCTION also change version in genolve-toolkit.php, eloop and readme.txt */ 20 20 define( 'GENOLVE_ACTION_URL', 'https://www.genolve.com/'); 21 21 define( 'GENOLVE_JS_URL', 'https://www.genolve.com/js/' ); 22 define( 'GENOLVE_VER', '-5.0. 6' );22 define( 'GENOLVE_VER', '-5.0.7' ); 23 23 24 24 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * … … 415 415 // adding a new one? dont forget the add_action( 'wp_ajax_ 416 416 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 417 genolve_proxy - wp_ajax post : curl forward _POST to genolve and echo response 417 genolve_proxy - wp_ajax post : curl forward _POST to genolve and echo response (most all calls from javascript are in echo mode) 418 418 OR direct call by setting arg postO 419 419 expecting POSTvars faction - the forward action … … 434 434 if($faction=="track") 435 435 $faction=GENOLVE_ACTION_URL.'athena/en/track.php'; 436 else if($faction=="evolve") 437 $faction=GENOLVE_ACTION_URL.'svg/en/evolve.php'; 436 438 else if($faction=="control") 437 439 $faction=GENOLVE_ACTION_URL.'athena/en/ZlistControl.php'; … … 481 483 } 482 484 else { //good2go 483 $thebody = $result['body']; 485 //$thebody = $result['body']; 486 $thebody = wp_remote_retrieve_body( $result ); 484 487 /* debug yes, always expect type string genolve_send_json_error("genolve_proxy: mode:".$mode." got body type:".gettype($thebody) ." body dump:".$thebody); 485 488 genolve_send_json_error("genolve_proxy: got type:".gettype($thebody) ." this proves the bad request NOT CAUSED by svg because there is no svg"); … … 492 495 // special processing 493 496 $thebodyJ=json_decode($thebody,true); // remove true for property_exists($thebodyJ,'newapikey') 494 497 // dont show apikey in JS, this transition hack can be deleted after all users upgrade to 4.0.7 498 if(!empty($thebodyJ) && array_key_exists('apikey',$thebodyJ) && !array_key_exists('newapikey',$thebodyJ) ) 499 //"apikey":"8stuff", 500 $thebody = preg_replace("/.apikey.:.*?,/",'',$thebody);//unset($thebodyJ['apikey']); 495 501 if(!empty($thebodyJ) && array_key_exists('newapikey',$thebodyJ) && $thebodyJ['newapikey'] !=null )// set it 496 502 if( get_option("genolve_apikey")==null )// set it … … 511 517 } 512 518 // show an error 513 genolve_send_json_error("genolve_proxy: The server did not return expected type, got:".gettype($thebody)." first 3000 chars:".substr($thebody,0,3000));519 genolve_send_json_error("genolve_proxy: The server did not return expected type, got:".gettype($thebody)." num chars:".count($thebody)." first 3000 chars:".substr($thebody,0,3000)); 514 520 }// end good2go 515 521 // -
genolve-toolkit/trunk/inc/settings.php
r3460463 r3486101 293 293 <div class="card-body text-secondary"> 294 294 <p class="card-text"> <p><?php 295 if( array_key_exists('aicredhistory',$respA) ){295 if(!empty($respA) && array_key_exists('aicredhistory',$respA) ){ 296 296 $histO = $respA['aicredhistory']; 297 297 //echo 'type of history:'.gettype($histO); … … 325 325 <div class="card-body text-secondary"> 326 326 <p class="card-text"> <p><?php 327 if( array_key_exists('aicredmonthly',$respA) ){327 if(!empty($respA) && array_key_exists('aicredmonthly',$respA) ){ 328 328 $histO = $respA['aicredmonthly']; 329 329 //echo 'type of history:'.gettype($histO); … … 543 543 if($genolve_img_par[$ii]!='' && $genolve_img_par[$ii]!=null){ 544 544 $respA =json_decode($genolve_img_par[$ii],true); 545 if( array_key_exists('date',$respA ))545 if(!empty($respA) && array_key_exists('date',$respA )) 546 546 $zdate = $respA['date']; 547 547 } -
genolve-toolkit/trunk/js/bootstrap-4-0-ns/css/bootstrap-ns.css
r3369385 r3486101 1847 1847 border-radius: 0.25rem; 1848 1848 transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; 1849 /*appearance: auto !important; some set none causing dropdown arrow to disappear but on others, two arrows */ 1849 1850 } 1850 1851 … … 5272 5273 bottom: 0; 5273 5274 left: 0; 5274 z-index: 10 50;5275 z-index: 10050; /* 1050 -> 10050 for wordpress */ 5275 5276 display: none; 5276 5277 overflow: hidden; … … 6429 6430 padding-top: 56.25%; 6430 6431 } 6431 6432 .twbs .embed-responsive-9by16::before { 6433 padding-left: 56.25%; 6434 } 6432 6435 .twbs .embed-responsive-4by3::before { 6433 6436 padding-top: 75%; -
genolve-toolkit/trunk/js/genolve-getsvg.js
r3369385 r3486101 12 12 // parseJSON 13 13 try{ 14 paramO = $.parseJSON(String(PAR).replace(/\\"/g,'"') );14 paramO = JSON.parse(String(PAR).replace(/\\"/g,'"') ); 15 15 if(paramO.selector && $(paramO.selector).length >=1){ 16 16 //alert("found selector:"+PAR); … … 89 89 } // end true 90 90 }// end genolve_divEffect 91 var genolve_checkcustomize = function(){ 92 setTimeout(function(){ 93 if(typeof(genolve_customize)=="object") 94 genolve_customize.startupGenolve('block-widgetai','gnlv-aigen'); 95 else 96 jQuery('#gnlv-tmpdiv').html('<b>The AI widget failed to load! <a href="#" onClick="genolve_customize.startupGenolve(\'block-widgetai\',\'gnlv-aigen\')">Try again</a> or you may not be logged in.</b>'); 97 },500); 98 }// end checkcustomize 99 91 100 jQuery(document).ready(function ($) { 92 101 vv=true;//production true … … 95 104 document.eloop = eloop; 96 105 } 97 106 /* 107 functions: 108 checkbrowser 109 isMobile 110 isSafari 111 */ 98 112 genolve_getsvg_class = function() { 99 113 var self=this; … … 138 152 this.isMobile = String(window.navigator.userAgent).match(/(iPod|iPhone|iPad|Android)/)?true:false; 139 153 this.isSafari = String(window.navigator.userAgent).match(/(Safari)/)?true:false; // new ipads claim they are desktop 154 140 155 // 141 156 // S T A R T C O D E -
genolve-toolkit/trunk/readme.txt
r3460464 r3486101 4 4 Tags: AI image, AI video, Midjourney, DALLE, podcast, ChatGPT, Veo, slider 5 5 Requires at least: 5.0 6 Tested up to: 6.9. 17 Stable tag: 5.0. 66 Tested up to: 6.9.4 7 Stable tag: 5.0.7 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 84 84 85 85 = Known Issues = 86 The Genolve Toolkit Plugin connects to and uses resources on the [genolve.com](https://www.genolve.com/) website. For this reason the plugin does not work well for 'localhost' installations. Install it on a deployed website with full internet access or evaluate it on genolve.com directly. 86 The Genolve Toolkit Plugin connects to and uses resources on the [genolve.com](https://www.genolve.com/) website. For this reason the plugin does not work well for 'localhost' installations. Install it on a deployed website with full internet access or evaluate it on genolve.com directly. A bug in the Safari browser causes video to appear in reduced size, on iOS and macOS use the Chrome browser instead. 87 87 88 88 = About Genolve = … … 125 125 == Changelog == 126 126 127 = 5.0.7 = 128 * AI image & video generation widget for resellers. 129 127 130 = 5.0.6 = 128 131 * Patch a security issue.
Note: See TracChangeset
for help on using the changeset viewer.