Plugin Directory

Changeset 2845092


Ignore:
Timestamp:
01/08/2023 01:26:31 PM (3 years ago)
Author:
wpgeekil
Message:

Initial Changes

Location:
wp-video-baker
Files:
8 added
10 edited

Legend:

Unmodified
Added
Removed
  • wp-video-baker/tags/1.0/README.txt

    r2844008 r2845092  
    1 === WPVideoBaker  – WordPress plugin that allows you easly convert your blog posts into shareable, engaging videos! ===
     1=== WPVideoBaker  – WordPress plugin that allows you easly transforms your blog posts into shareable, engaging videos! ===
    22Contributors: wpgeekil
    33Donate link: https://wpvideobaker.com
     
    6262== Screenshots ==
    6363
    64 1. Video Builder
    65 2. Admin Panel
     641. 'screenshots/global.png'
     652. 'screenshots/builder.png'
    6666
    6767== Changelog ==
  • wp-video-baker/tags/1.0/admin/functions/admin-options.php

    r2844008 r2845092  
    11<?php if ( ! defined( 'ABSPATH' )  ) { die; } // Cannot access directly.
    2 $fonts = get_google_fonts();
     2$fonts = vbaker_get_google_fonts();
    33
    44
     
    2424            array(
    2525                'type'     => 'callback',
    26                 'function' => 'welcome_window',
     26                'function' => 'vbaker_welcome_window',
    2727            ),
    2828            array(
     
    155155                'title'   => esc_html__('Voice Overlay Language', 'video_baker' ),
    156156                'type'    => 'select',
    157                 'options' => get_google_voices(),
     157                'options' => vbaker_get_google_voices(),
    158158                'chosen' => true,
    159159                'default' => 'en-US-Neural2-J|MALE',
  • wp-video-baker/tags/1.0/admin/functions/functions.php

    r2844008 r2845092  
    11<?php if ( ! defined( 'ABSPATH' )  ) { die; } // Cannot access directly.
    22
    3 function get_google_fonts(){
     3function vbaker_get_google_fonts(){
    44   
    55    $response = wp_remote_post( 'https://wpvideobaker.com/api/font_list.json');
     
    1717    return $fonts;
    1818}
    19 function get_google_voices(){
     19function vbaker_get_google_voices(){
    2020   
    2121    $lang = wp_remote_post('https://wpvideobaker.com/api/functions/lang.csv');
     
    4444}
    4545
    46 function welcome_window() {
     46function vbaker_welcome_window() {
    4747
    4848    $options = get_option( 'video_baker_admin' );
     
    5454    <script>
    5555   
    56         <?php if(check_license() == 367 || check_license() == 319 || check_license() == 320 || check_license() == 321){ ?>
     56        <?php if(vbaker_check_license() == 367 || vbaker_check_license() == 319 || vbaker_check_license() == 320 || vbaker_check_license() == 321){ ?>
    5757            jQuery(window).on('load', function(){
    5858                jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:green">Account is Active.</span>');
    5959            });
    60         <?php } else if(check_license() == 400){ ?>
     60        <?php } else if(vbaker_check_license() == 400){ ?>
    6161            jQuery(window).on('load', function(){
    6262                jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:red">Your Account is Inactive. Please Check Profile Page.</span>');
    6363            });     
    64         <?php } else if(check_license() == 500){?>
     64        <?php } else if(vbaker_check_license() == 500){?>
    6565            jQuery(window).on('load', function(){
    6666                jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:red">Incorect API KEY.</span>');
     
    7373}
    7474
    75 function check_license() {
     75function vbaker_check_license() {
    7676
    7777    $options = get_option( 'video_baker_admin' );
     
    8181}
    8282
    83 function create_buttons(){
     83function vbaker_create_buttons(){
    8484
    8585    $repeater = (isset(get_post_meta( get_the_ID(), 'videobaker_post', true )['video-section']) ? get_post_meta( get_the_ID(), 'videobaker_post', true )['video-section'] : false );
     
    8787    ?>
    8888   
    89     <div>
     89    <div id="buttonsHolder_vbaker">
    9090    <?php if($repeater){
    9191       
    92         if(check_license() != 400 && check_license() != 500){?>
     92        if(vbaker_check_license() != 400 && vbaker_check_license() != 500){?>
    9393            <input type="button" value="Generate Video" id="gen_video" style="color:white; background: #10393B; border:unset; cursor:pointer; font-size: 16px; padding: 5px 15px; margin-right:15px; border-radius:3px;" data-api='<?php echo esc_html($options['license']); ?>' data-id="<?php echo esc_html(get_the_ID()); ?>" />
    9494        <?php } else { ?>
     
    113113
    114114
    115 function send_data() {
     115function vbaker_send_data() {
    116116   
    117117        $args = array(
     
    131131}
    132132
    133 add_action( 'wp_ajax_send_data', 'send_data' );
     133add_action( 'wp_ajax_vbaker_send_data', 'vbaker_send_data' );
    134134
    135 function generate_preview(){ ?>
     135function vbaker_generate_preview(){ ?>
    136136
    137137    <?php if(isset(get_post_meta( get_the_ID(), 'videobaker_post', true )['video-section'])){ ?>
     
    149149<?php }
    150150
    151 function preview_data() {
     151function vbaker_preview_data() {
    152152   
    153153    $args = array(
     
    164164    </script>
    165165<?php }
    166 add_action( 'admin_head', 'preview_data' );
     166add_action( 'admin_head', 'vbaker_preview_data' );
    167167
  • wp-video-baker/tags/1.0/admin/functions/post-options.php

    r2844008 r2845092  
    136136            array(
    137137              'type'     => 'callback',
    138               'function' => 'generate_preview',
     138              'function' => 'vbaker_generate_preview',
    139139            ),
    140140            array(
    141141              'type'     => 'callback',
    142               'function' => 'create_buttons',
     142              'function' => 'vbaker_create_buttons',
    143143            ),
    144144           
  • wp-video-baker/tags/1.0/admin/js/wp-video-baker-admin.js

    r2844008 r2845092  
    3131    $('body').on('click','#gen_video',function(){
    3232       
    33             add_notice('warning','Please save all changes before sending video to render. Thank you.');
    34             $('#gen_video').addClass('warning');
     33        add_notice('warning','Please save all changes before sending video to render. Thank you.');
     34        $('#gen_video').addClass('warning');
    3535       
    3636    });         
  • wp-video-baker/trunk/README.txt

    r2844036 r2845092  
    1 === WPVideoBaker  – WordPress plugin that allows you easly convert your blog posts into shareable, engaging videos! ===
     1=== WPVideoBaker  – WordPress plugin that allows you easly transforms your blog posts into shareable, engaging videos! ===
    22Contributors: wpgeekil
    3 Plugin URI: https://wpvideobaker.com
    4 Tags: blog to video,article to video,post to video,convert to video,video,blog,posts,convert,transform,wpvideobaker,wp video baker
    5 Requires at least: 5.8.0
     3Donate link: https://wpvideobaker.com
     4Tags: blog to video, article to video, post to video, convert to video, video, blog, posts, convert, transform, wpvideobaker, wp video baker
    65Tested up to: 6.1
    76Stable tag: 1.0
     
    6362== Screenshots ==
    6463
    65 1. Video Builder
    66 2. Admin Panel
     641. 'screenshots/global.png'
     652. 'screenshots/builder.png'
    6766
    6867== Changelog ==
  • wp-video-baker/trunk/admin/functions/admin-options.php

    r2844008 r2845092  
    11<?php if ( ! defined( 'ABSPATH' )  ) { die; } // Cannot access directly.
    2 $fonts = get_google_fonts();
     2$fonts = vbaker_get_google_fonts();
    33
    44
     
    2424            array(
    2525                'type'     => 'callback',
    26                 'function' => 'welcome_window',
     26                'function' => 'vbaker_welcome_window',
    2727            ),
    2828            array(
     
    155155                'title'   => esc_html__('Voice Overlay Language', 'video_baker' ),
    156156                'type'    => 'select',
    157                 'options' => get_google_voices(),
     157                'options' => vbaker_get_google_voices(),
    158158                'chosen' => true,
    159159                'default' => 'en-US-Neural2-J|MALE',
  • wp-video-baker/trunk/admin/functions/functions.php

    r2844008 r2845092  
    11<?php if ( ! defined( 'ABSPATH' )  ) { die; } // Cannot access directly.
    22
    3 function get_google_fonts(){
     3function vbaker_get_google_fonts(){
    44   
    55    $response = wp_remote_post( 'https://wpvideobaker.com/api/font_list.json');
     
    1717    return $fonts;
    1818}
    19 function get_google_voices(){
     19function vbaker_get_google_voices(){
    2020   
    2121    $lang = wp_remote_post('https://wpvideobaker.com/api/functions/lang.csv');
     
    4444}
    4545
    46 function welcome_window() {
     46function vbaker_welcome_window() {
    4747
    4848    $options = get_option( 'video_baker_admin' );
     
    5454    <script>
    5555   
    56         <?php if(check_license() == 367 || check_license() == 319 || check_license() == 320 || check_license() == 321){ ?>
     56        <?php if(vbaker_check_license() == 367 || vbaker_check_license() == 319 || vbaker_check_license() == 320 || vbaker_check_license() == 321){ ?>
    5757            jQuery(window).on('load', function(){
    5858                jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:green">Account is Active.</span>');
    5959            });
    60         <?php } else if(check_license() == 400){ ?>
     60        <?php } else if(vbaker_check_license() == 400){ ?>
    6161            jQuery(window).on('load', function(){
    6262                jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:red">Your Account is Inactive. Please Check Profile Page.</span>');
    6363            });     
    64         <?php } else if(check_license() == 500){?>
     64        <?php } else if(vbaker_check_license() == 500){?>
    6565            jQuery(window).on('load', function(){
    6666                jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:red">Incorect API KEY.</span>');
     
    7373}
    7474
    75 function check_license() {
     75function vbaker_check_license() {
    7676
    7777    $options = get_option( 'video_baker_admin' );
     
    8181}
    8282
    83 function create_buttons(){
     83function vbaker_create_buttons(){
    8484
    8585    $repeater = (isset(get_post_meta( get_the_ID(), 'videobaker_post', true )['video-section']) ? get_post_meta( get_the_ID(), 'videobaker_post', true )['video-section'] : false );
     
    8787    ?>
    8888   
    89     <div>
     89    <div id="buttonsHolder_vbaker">
    9090    <?php if($repeater){
    9191       
    92         if(check_license() != 400 && check_license() != 500){?>
     92        if(vbaker_check_license() != 400 && vbaker_check_license() != 500){?>
    9393            <input type="button" value="Generate Video" id="gen_video" style="color:white; background: #10393B; border:unset; cursor:pointer; font-size: 16px; padding: 5px 15px; margin-right:15px; border-radius:3px;" data-api='<?php echo esc_html($options['license']); ?>' data-id="<?php echo esc_html(get_the_ID()); ?>" />
    9494        <?php } else { ?>
     
    113113
    114114
    115 function send_data() {
     115function vbaker_send_data() {
    116116   
    117117        $args = array(
     
    131131}
    132132
    133 add_action( 'wp_ajax_send_data', 'send_data' );
     133add_action( 'wp_ajax_vbaker_send_data', 'vbaker_send_data' );
    134134
    135 function generate_preview(){ ?>
     135function vbaker_generate_preview(){ ?>
    136136
    137137    <?php if(isset(get_post_meta( get_the_ID(), 'videobaker_post', true )['video-section'])){ ?>
     
    149149<?php }
    150150
    151 function preview_data() {
     151function vbaker_preview_data() {
    152152   
    153153    $args = array(
     
    164164    </script>
    165165<?php }
    166 add_action( 'admin_head', 'preview_data' );
     166add_action( 'admin_head', 'vbaker_preview_data' );
    167167
  • wp-video-baker/trunk/admin/functions/post-options.php

    r2844008 r2845092  
    136136            array(
    137137              'type'     => 'callback',
    138               'function' => 'generate_preview',
     138              'function' => 'vbaker_generate_preview',
    139139            ),
    140140            array(
    141141              'type'     => 'callback',
    142               'function' => 'create_buttons',
     142              'function' => 'vbaker_create_buttons',
    143143            ),
    144144           
  • wp-video-baker/trunk/admin/js/wp-video-baker-admin.js

    r2844008 r2845092  
    3131    $('body').on('click','#gen_video',function(){
    3232       
    33             add_notice('warning','Please save all changes before sending video to render. Thank you.');
    34             $('#gen_video').addClass('warning');
     33        add_notice('warning','Please save all changes before sending video to render. Thank you.');
     34        $('#gen_video').addClass('warning');
    3535       
    3636    });         
Note: See TracChangeset for help on using the changeset viewer.