Plugin Directory

Changeset 3486101


Ignore:
Timestamp:
03/19/2026 02:41:59 AM (2 weeks ago)
Author:
genolve
Message:
  • AI image & video generation widget for resellers.
Location:
genolve-toolkit/trunk
Files:
6 added
8 edited

Legend:

Unmodified
Added
Removed
  • genolve-toolkit/trunk/bseparator/block.js

    r2918112 r3486101  
    4343        icon: iconEl,
    4444        category: 'layout',
     45        description: __( 'Highlight pull quotes, separate sections or add texture to page, 1000 variations', 'genolve-toolkit' ),
    4546        //                                                A T T R I B U T E S
    4647        attributes: {
     
    4950                        default:  'sep'+Math.floor(100000 * Math.random())
    5051                        },
     52                isPreview: {
     53                    type: 'boolean',
     54                    default: false
     55                    },
    5156                background: {
    5257                        type: 'string',
     
    8186                        default: 100
    8287                    }
    83                 },
     88                }, // end attributes
     89        example: {
     90            attributes: {
     91                isPreview: true
     92                }
     93            },
    8494        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                }
    85104                isSelected = props.isSelected,
    86105        toggleSelection = props.toggleSelection,
  • genolve-toolkit/trunk/bseparator/index.php

    r2090755 r3486101  
    3636            filemtime( plugin_dir_path( __FILE__ ) . 'block.js' )
    3737        );
    38 
     38 
     39    wp_localize_script( 'genolve-toolkit-bseparator', 'genolveToolkitBseparator', array(
     40        'pluginUrl' => plugin_dir_url( dirname( __FILE__ ) ),
     41    ) );
     42   
    3943    register_block_type( 'genolve-toolkit/bseparator', array(
    4044            'editor_script' => 'genolve-toolkit-bseparator'
  • genolve-toolkit/trunk/genolve-toolkit.php

    r3460463 r3486101  
    22/*
    33 * Plugin Name: Genolve AI image AI video generator
    4  * Version: 5.0.6
     4 * Version: 5.0.7
    55 * Plugin URI: https://www.genolve.com/
    66 * Description: Stunning AI video & images from a prompt, plus amazing toolkit to make blog graphics, podcasts or promotional videos with AI assisted design.
     
    3737require_once(dirname(__FILE__) . '/bseparator/index.php');
    3838require_once(dirname(__FILE__) . '/bimage/index.php');
     39require_once(dirname(__FILE__) . '/bwidgetai/index.php');
    3940
    4041// Add the header code (css & javascript) to WordPress page
  • genolve-toolkit/trunk/inc/functions.php

    r3460463 r3486101  
    1212define( 'GENOLVE_MANAGE_GROUP', 'genolve-manage-group');
    1313define( 'GENOLVE_DASHBOARD_GROUP', 'genolve-dashboard-group');
    14 /* TEST 
     14/* TEST   
    1515define( 'GENOLVE_ACTION_URL',  'http://localhost/widget/');
    1616define( 'GENOLVE_JS_URL',      'http://localhost/widget/js/' );
    1717define( 'GENOLVE_VER',      '' );
    18  */
     18*/
    1919/* PRODUCTION  also change version in genolve-toolkit.php, eloop and readme.txt */
    2020define( 'GENOLVE_ACTION_URL',  'https://www.genolve.com/');     
    2121define( 'GENOLVE_JS_URL',      'https://www.genolve.com/js/' );
    22 define( 'GENOLVE_VER',         '-5.0.6' );
     22define( 'GENOLVE_VER',         '-5.0.7' );
    2323
    2424/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
     
    415415// adding a new one? dont forget the add_action( 'wp_ajax_
    416416/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
    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)
    418418                         OR direct call by setting arg postO
    419419  expecting POSTvars faction - the forward action
     
    434434    if($faction=="track")
    435435        $faction=GENOLVE_ACTION_URL.'athena/en/track.php';
     436    else if($faction=="evolve")
     437        $faction=GENOLVE_ACTION_URL.'svg/en/evolve.php';
    436438    else if($faction=="control")
    437439        $faction=GENOLVE_ACTION_URL.'athena/en/ZlistControl.php';
     
    481483        }
    482484    else { //good2go
    483         $thebody = $result['body'];
     485        //$thebody = $result['body'];
     486        $thebody = wp_remote_retrieve_body( $result );
    484487        /* debug yes, always expect type string     genolve_send_json_error("genolve_proxy: mode:".$mode." got body type:".gettype($thebody) ." body dump:".$thebody);     
    485488        genolve_send_json_error("genolve_proxy: got type:".gettype($thebody) ." this proves the bad request NOT CAUSED by svg because there is no svg");
     
    492495            // special processing
    493496            $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']);
    495501            if(!empty($thebodyJ) && array_key_exists('newapikey',$thebodyJ) && $thebodyJ['newapikey'] !=null )// set it
    496502                if( get_option("genolve_apikey")==null )// set it
     
    511517            }
    512518        // 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));
    514520        }// end good2go
    515521    //
  • genolve-toolkit/trunk/inc/settings.php

    r3460463 r3486101  
    293293  <div class="card-body text-secondary">
    294294    <p class="card-text"> <p><?php
    295         if(array_key_exists('aicredhistory',$respA) ){
     295        if(!empty($respA) && array_key_exists('aicredhistory',$respA) ){
    296296            $histO =  $respA['aicredhistory'];
    297297            //echo 'type of history:'.gettype($histO);
     
    325325  <div class="card-body text-secondary">
    326326    <p class="card-text"> <p><?php
    327         if(array_key_exists('aicredmonthly',$respA) ){
     327        if(!empty($respA) && array_key_exists('aicredmonthly',$respA) ){
    328328            $histO =  $respA['aicredmonthly'];
    329329            //echo 'type of history:'.gettype($histO);
     
    543543                    if($genolve_img_par[$ii]!='' && $genolve_img_par[$ii]!=null){
    544544                        $respA =json_decode($genolve_img_par[$ii],true);
    545                         if( array_key_exists('date',$respA ))
     545                        if(!empty($respA) && array_key_exists('date',$respA ))
    546546                            $zdate = $respA['date'];
    547547                        }
  • genolve-toolkit/trunk/js/bootstrap-4-0-ns/css/bootstrap-ns.css

    r3369385 r3486101  
    18471847  border-radius: 0.25rem;
    18481848  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 */
    18491850}
    18501851
     
    52725273  bottom: 0;
    52735274  left: 0;
    5274   z-index: 1050;
     5275  z-index: 10050; /* 1050 -> 10050 for wordpress */
    52755276  display: none;
    52765277  overflow: hidden;
     
    64296430  padding-top: 56.25%;
    64306431}
    6431 
     6432.twbs .embed-responsive-9by16::before {
     6433  padding-left: 56.25%;
     6434}
    64326435.twbs .embed-responsive-4by3::before {
    64336436  padding-top: 75%;
  • genolve-toolkit/trunk/js/genolve-getsvg.js

    r3369385 r3486101  
    1212          // parseJSON
    1313          try{
    14             paramO = $.parseJSON(String(PAR).replace(/\\"/g,'"') );
     14            paramO = JSON.parse(String(PAR).replace(/\\"/g,'"') );
    1515          if(paramO.selector && $(paramO.selector).length >=1){
    1616            //alert("found selector:"+PAR);
     
    8989          } // end true
    9090                }// end genolve_divEffect
     91var 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   
    91100jQuery(document).ready(function ($) {
    92101  vv=true;//production true
     
    95104        document.eloop = eloop;
    96105        }
    97    
     106  /*
     107    functions:
     108    checkbrowser
     109    isMobile
     110    isSafari
     111    */
    98112  genolve_getsvg_class = function() {
    99113    var self=this;
     
    138152    this.isMobile =  String(window.navigator.userAgent).match(/(iPod|iPhone|iPad|Android)/)?true:false;
    139153    this.isSafari =  String(window.navigator.userAgent).match(/(Safari)/)?true:false; // new ipads claim they are desktop
     154       
    140155    //
    141156    //  S T A R T     C O D E   
  • genolve-toolkit/trunk/readme.txt

    r3460464 r3486101  
    44Tags: AI image, AI video, Midjourney, DALLE, podcast, ChatGPT, Veo, slider
    55Requires at least: 5.0
    6 Tested up to: 6.9.1
    7 Stable tag: 5.0.6
     6Tested up to: 6.9.4
     7Stable tag: 5.0.7
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    8484
    8585= 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.
     86The 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.
    8787
    8888= About Genolve =
     
    125125== Changelog ==
    126126
     127= 5.0.7 =
     128* AI image & video generation widget for resellers.
     129
    127130= 5.0.6 =
    128131* Patch a security issue.
Note: See TracChangeset for help on using the changeset viewer.