Changeset 2845092
- Timestamp:
- 01/08/2023 01:26:31 PM (3 years ago)
- Location:
- wp-video-baker
- Files:
-
- 8 added
- 10 edited
-
tags/1.0/README.txt (modified) (2 diffs)
-
tags/1.0/admin/functions/admin-options.php (modified) (3 diffs)
-
tags/1.0/admin/functions/assets/json (added)
-
tags/1.0/admin/functions/functions.php (modified) (11 diffs)
-
tags/1.0/admin/functions/post-options.php (modified) (1 diff)
-
tags/1.0/admin/js/wp-video-baker-admin.js (modified) (1 diff)
-
tags/1.0/screenshots (added)
-
tags/1.0/screenshots/builder.png (added)
-
tags/1.0/screenshots/global.png (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/functions/admin-options.php (modified) (3 diffs)
-
trunk/admin/functions/assets/json (added)
-
trunk/admin/functions/functions.php (modified) (11 diffs)
-
trunk/admin/functions/post-options.php (modified) (1 diff)
-
trunk/admin/js/wp-video-baker-admin.js (modified) (1 diff)
-
trunk/screenshots (added)
-
trunk/screenshots/builder.png (added)
-
trunk/screenshots/global.png (added)
Legend:
- Unmodified
- Added
- Removed
-
wp-video-baker/tags/1.0/README.txt
r2844008 r2845092 1 === WPVideoBaker – WordPress plugin that allows you easly convertyour blog posts into shareable, engaging videos! ===1 === WPVideoBaker – WordPress plugin that allows you easly transforms your blog posts into shareable, engaging videos! === 2 2 Contributors: wpgeekil 3 3 Donate link: https://wpvideobaker.com … … 62 62 == Screenshots == 63 63 64 1. Video Builder65 2. Admin Panel64 1. 'screenshots/global.png' 65 2. 'screenshots/builder.png' 66 66 67 67 == Changelog == -
wp-video-baker/tags/1.0/admin/functions/admin-options.php
r2844008 r2845092 1 1 <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. 2 $fonts = get_google_fonts();2 $fonts = vbaker_get_google_fonts(); 3 3 4 4 … … 24 24 array( 25 25 'type' => 'callback', 26 'function' => ' welcome_window',26 'function' => 'vbaker_welcome_window', 27 27 ), 28 28 array( … … 155 155 'title' => esc_html__('Voice Overlay Language', 'video_baker' ), 156 156 'type' => 'select', 157 'options' => get_google_voices(),157 'options' => vbaker_get_google_voices(), 158 158 'chosen' => true, 159 159 'default' => 'en-US-Neural2-J|MALE', -
wp-video-baker/tags/1.0/admin/functions/functions.php
r2844008 r2845092 1 1 <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. 2 2 3 function get_google_fonts(){3 function vbaker_get_google_fonts(){ 4 4 5 5 $response = wp_remote_post( 'https://wpvideobaker.com/api/font_list.json'); … … 17 17 return $fonts; 18 18 } 19 function get_google_voices(){19 function vbaker_get_google_voices(){ 20 20 21 21 $lang = wp_remote_post('https://wpvideobaker.com/api/functions/lang.csv'); … … 44 44 } 45 45 46 function welcome_window() {46 function vbaker_welcome_window() { 47 47 48 48 $options = get_option( 'video_baker_admin' ); … … 54 54 <script> 55 55 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){ ?> 57 57 jQuery(window).on('load', function(){ 58 58 jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:green">Account is Active.</span>'); 59 59 }); 60 <?php } else if( check_license() == 400){ ?>60 <?php } else if(vbaker_check_license() == 400){ ?> 61 61 jQuery(window).on('load', function(){ 62 62 jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:red">Your Account is Inactive. Please Check Profile Page.</span>'); 63 63 }); 64 <?php } else if( check_license() == 500){?>64 <?php } else if(vbaker_check_license() == 500){?> 65 65 jQuery(window).on('load', function(){ 66 66 jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:red">Incorect API KEY.</span>'); … … 73 73 } 74 74 75 function check_license() {75 function vbaker_check_license() { 76 76 77 77 $options = get_option( 'video_baker_admin' ); … … 81 81 } 82 82 83 function create_buttons(){83 function vbaker_create_buttons(){ 84 84 85 85 $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 ); … … 87 87 ?> 88 88 89 <div >89 <div id="buttonsHolder_vbaker"> 90 90 <?php if($repeater){ 91 91 92 if( check_license() != 400 &&check_license() != 500){?>92 if(vbaker_check_license() != 400 && vbaker_check_license() != 500){?> 93 93 <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()); ?>" /> 94 94 <?php } else { ?> … … 113 113 114 114 115 function send_data() {115 function vbaker_send_data() { 116 116 117 117 $args = array( … … 131 131 } 132 132 133 add_action( 'wp_ajax_ send_data', 'send_data' );133 add_action( 'wp_ajax_vbaker_send_data', 'vbaker_send_data' ); 134 134 135 function generate_preview(){ ?>135 function vbaker_generate_preview(){ ?> 136 136 137 137 <?php if(isset(get_post_meta( get_the_ID(), 'videobaker_post', true )['video-section'])){ ?> … … 149 149 <?php } 150 150 151 function preview_data() {151 function vbaker_preview_data() { 152 152 153 153 $args = array( … … 164 164 </script> 165 165 <?php } 166 add_action( 'admin_head', ' preview_data' );166 add_action( 'admin_head', 'vbaker_preview_data' ); 167 167 -
wp-video-baker/tags/1.0/admin/functions/post-options.php
r2844008 r2845092 136 136 array( 137 137 'type' => 'callback', 138 'function' => ' generate_preview',138 'function' => 'vbaker_generate_preview', 139 139 ), 140 140 array( 141 141 'type' => 'callback', 142 'function' => ' create_buttons',142 'function' => 'vbaker_create_buttons', 143 143 ), 144 144 -
wp-video-baker/tags/1.0/admin/js/wp-video-baker-admin.js
r2844008 r2845092 31 31 $('body').on('click','#gen_video',function(){ 32 32 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'); 35 35 36 36 }); -
wp-video-baker/trunk/README.txt
r2844036 r2845092 1 === WPVideoBaker – WordPress plugin that allows you easly convertyour blog posts into shareable, engaging videos! ===1 === WPVideoBaker – WordPress plugin that allows you easly transforms your blog posts into shareable, engaging videos! === 2 2 Contributors: 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 3 Donate link: 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 6 5 Tested up to: 6.1 7 6 Stable tag: 1.0 … … 63 62 == Screenshots == 64 63 65 1. Video Builder66 2. Admin Panel64 1. 'screenshots/global.png' 65 2. 'screenshots/builder.png' 67 66 68 67 == Changelog == -
wp-video-baker/trunk/admin/functions/admin-options.php
r2844008 r2845092 1 1 <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. 2 $fonts = get_google_fonts();2 $fonts = vbaker_get_google_fonts(); 3 3 4 4 … … 24 24 array( 25 25 'type' => 'callback', 26 'function' => ' welcome_window',26 'function' => 'vbaker_welcome_window', 27 27 ), 28 28 array( … … 155 155 'title' => esc_html__('Voice Overlay Language', 'video_baker' ), 156 156 'type' => 'select', 157 'options' => get_google_voices(),157 'options' => vbaker_get_google_voices(), 158 158 'chosen' => true, 159 159 'default' => 'en-US-Neural2-J|MALE', -
wp-video-baker/trunk/admin/functions/functions.php
r2844008 r2845092 1 1 <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. 2 2 3 function get_google_fonts(){3 function vbaker_get_google_fonts(){ 4 4 5 5 $response = wp_remote_post( 'https://wpvideobaker.com/api/font_list.json'); … … 17 17 return $fonts; 18 18 } 19 function get_google_voices(){19 function vbaker_get_google_voices(){ 20 20 21 21 $lang = wp_remote_post('https://wpvideobaker.com/api/functions/lang.csv'); … … 44 44 } 45 45 46 function welcome_window() {46 function vbaker_welcome_window() { 47 47 48 48 $options = get_option( 'video_baker_admin' ); … … 54 54 <script> 55 55 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){ ?> 57 57 jQuery(window).on('load', function(){ 58 58 jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:green">Account is Active.</span>'); 59 59 }); 60 <?php } else if( check_license() == 400){ ?>60 <?php } else if(vbaker_check_license() == 400){ ?> 61 61 jQuery(window).on('load', function(){ 62 62 jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:red">Your Account is Inactive. Please Check Profile Page.</span>'); 63 63 }); 64 <?php } else if( check_license() == 500){?>64 <?php } else if(vbaker_check_license() == 500){?> 65 65 jQuery(window).on('load', function(){ 66 66 jQuery("input[data-depend-id=license]").parent().append('<br/><span style="color:red">Incorect API KEY.</span>'); … … 73 73 } 74 74 75 function check_license() {75 function vbaker_check_license() { 76 76 77 77 $options = get_option( 'video_baker_admin' ); … … 81 81 } 82 82 83 function create_buttons(){83 function vbaker_create_buttons(){ 84 84 85 85 $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 ); … … 87 87 ?> 88 88 89 <div >89 <div id="buttonsHolder_vbaker"> 90 90 <?php if($repeater){ 91 91 92 if( check_license() != 400 &&check_license() != 500){?>92 if(vbaker_check_license() != 400 && vbaker_check_license() != 500){?> 93 93 <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()); ?>" /> 94 94 <?php } else { ?> … … 113 113 114 114 115 function send_data() {115 function vbaker_send_data() { 116 116 117 117 $args = array( … … 131 131 } 132 132 133 add_action( 'wp_ajax_ send_data', 'send_data' );133 add_action( 'wp_ajax_vbaker_send_data', 'vbaker_send_data' ); 134 134 135 function generate_preview(){ ?>135 function vbaker_generate_preview(){ ?> 136 136 137 137 <?php if(isset(get_post_meta( get_the_ID(), 'videobaker_post', true )['video-section'])){ ?> … … 149 149 <?php } 150 150 151 function preview_data() {151 function vbaker_preview_data() { 152 152 153 153 $args = array( … … 164 164 </script> 165 165 <?php } 166 add_action( 'admin_head', ' preview_data' );166 add_action( 'admin_head', 'vbaker_preview_data' ); 167 167 -
wp-video-baker/trunk/admin/functions/post-options.php
r2844008 r2845092 136 136 array( 137 137 'type' => 'callback', 138 'function' => ' generate_preview',138 'function' => 'vbaker_generate_preview', 139 139 ), 140 140 array( 141 141 'type' => 'callback', 142 'function' => ' create_buttons',142 'function' => 'vbaker_create_buttons', 143 143 ), 144 144 -
wp-video-baker/trunk/admin/js/wp-video-baker-admin.js
r2844008 r2845092 31 31 $('body').on('click','#gen_video',function(){ 32 32 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'); 35 35 36 36 });
Note: See TracChangeset
for help on using the changeset viewer.