Plugin Directory

Changeset 2944358


Ignore:
Timestamp:
07/27/2023 07:42:36 PM (3 years ago)
Author:
genolve
Message:
  • Automatic AI prompt suggestions.
  • Quick download link.
Location:
genolve-toolkit
Files:
4 added
11 edited

Legend:

Unmodified
Added
Removed
  • genolve-toolkit/trunk/css/genolve-settings.css

    r2693883 r2944358  
    3030}
    3131#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;
     32font-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
     33padding:0 0 0 25px; remove to maximize working area
     34*/
    3435background-color:white;}
    35 
     36.gnlv-nopadb {padding-bottom:0 !important}
    3637#gnlv-main {width:600px; float:left;}
    3738#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  
    22/*
    33 * Plugin Name: Genolve AI image generator + Toolkit
    4  * Version: 4.0.2
     4 * Version: 4.0.3
    55 * Plugin URI: https://www.genolve.com/
    66 * Description: Stunning AI images from a prompt, AI-edit photos, plus amazing toolkit to make banners, collages, slideshows or music videos.
     
    7171    }
    7272}
     73
    7374
    7475/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  • genolve-toolkit/trunk/inc/functions.php

    r2932689 r2944358  
    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
    2020/* PRODUCTION  also change version in genolve-toolkit.php,eloop and readme.txt */
    2121define( 'GENOLVE_ACTION_URL',  'https://www.genolve.com/');     
    2222define( 'GENOLVE_JS_URL',      'https://www.genolve.com/js/' );
    23 define( 'GENOLVE_VER',         '-4.0.2' );
     23define( 'GENOLVE_VER',         '-4.0.3' );
    2424
    2525/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
     
    417417                $thebody = preg_replace("/^{/",'{"'.$mybeyonce.'":"'.wp_create_nonce($mybeyonce).'",',$thebody);
    418418            // 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           
    421421            if(!empty($thebodyJ) && array_key_exists('newapikey',$thebodyJ) && $thebodyJ['newapikey'] !=null )// set it
    422422                if( get_option("genolve_apikey")==null )// set it
     
    719719    add_action('admin_init', 'genolve_addHeaderCode');
    720720    }
     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    */
    721731/**
    722732 * Add button size class.
  • genolve-toolkit/trunk/inc/settings.php

    r2932689 r2944358  
    66    // Call the html code for the admin menu page
    77    add_action('admin_menu', 'genolve_adminMenu');
     8   
    89    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
    910   genolve_adminMenu - add Genolve to settings menu
     
    1920        add_action('admin_print_styles-' . $genolve_adminMenu, 'genolve_loadCSS');
    2021        }
    21        
     22
    2223    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
    2324    genolve_get_icon_svg - return logo svg
     
    116117    $theicon = 'circle-x';
    117118    $alertkind='danger';
    118     if ( is_wp_error( $result ) ) {// errors
     119    if ( is_wp_error( $result ) || $result==null || $result=="") {// errors
    119120        $themsg =  $result->get_error_message() ;
    120121        if(preg_match("/host not found/i",$themsg))
     
    124125        $respA =json_decode($result['body'],true);
    125126        $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';
    128133        if($respA['success']){
    129134            $loginurl = $faction.'?CMD=login&UserID='.$respA['UserID'].'&code='.$thecod;
     
    346351                    if($genolve_img_par[$ii]!='' && $genolve_img_par[$ii]!=null){
    347352                        $respA =json_decode($genolve_img_par[$ii],true);
    348                         if( array_key_exists('date', $respA))
     353                        if( array_key_exists('date',$respA ))
    349354                            $zdate = $respA['date'];
    350355                        }
     
    433438    <?php
    434439    }// end help
    435    
     440
     441       
    436442} // end isadmin
    437443?>
  • genolve-toolkit/trunk/js/genolve-meta.js

    r2500177 r2944358  
    33//  C H E C K    I F    E N A B L E D
    44if ( 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">&times;</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">&nbsp;&nbsp;&nbsp;<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);
    662
    763} // end genolve enabled
  • genolve-toolkit/trunk/js/genolve-scripts.js

    r2918112 r2944358  
    2929    $('button.edit-post-sidebar__panel-tab').on('click',addGenolve);
    3030    },700);
     31       
     32       
    3133
    3234
  • genolve-toolkit/trunk/readme.txt

    r2932689 r2944358  
    55Requires at least: 5.0
    66Tested up to: 6.2.2
    7 Stable tag: 4.0.2
     7Stable tag: 4.0.3
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    1919
    2020= 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 images using 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.
    2525* **GhatGPT** - At your fingertips to help create ads, product descriptions, proofread text or generate quotes.
    2626* **Current models** - As soon as a new version is released it's added in the toolbox.
     
    68681. Add the Genolve Toolkit Plugin via the WordPress Plugins menu.
    69692. Activate the plugin.
    70 3. Go to 'Design Editor', accept the terms of use and start designing.
     703. Go to 'Design Editor', click auto-install API key and start designing.
    71714. Watch the QuickStart Tutorial under the help tab.
    7272
     
    8888
    89891. 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 craig
    93 5. Slideshow by Genolve user craig
     902. AI text-to-image generation with huge styles menu and prompt suggestions
     913. Inpainting and outpainting in one easy tool
     924. Music can drive animations
     935. Easy graphic animation controls
    9494
    9595== Changelog ==
     96
     97= 4.0.3 =
     98* Automatic AI prompt suggestions.
     99* Quick download link.
    96100
    97101= 4.0.2 =
Note: See TracChangeset for help on using the changeset viewer.