Changeset 3313760
- Timestamp:
- 06/18/2025 10:25:50 AM (10 months ago)
- Location:
- kernel-video-sharing/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (2 diffs)
-
admin/class-kvs-admin.php (modified) (2 diffs)
-
admin/partials/settings/post.php (modified) (2 diffs)
-
includes/class-kvs-logger.php (modified) (1 diff)
-
includes/class-kvs.php (modified) (1 diff)
-
kvs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel-video-sharing/trunk/README.txt
r3043205 r3313760 4 4 Tags: video, player, tube, videoplayer 5 5 Requires at least: 3.0.1 6 Tested up to: 6. 4.37 Stable tag: 1.0. 96 Tested up to: 6.8.1 7 Stable tag: 1.0.10 8 8 Requires PHP: 7.1 9 9 License: GPLv2 or later … … 65 65 * Added support for post publishing date (either take from feed, or current date). 66 66 * Fixed bug with sending parameters in feed URL. 67 68 = 1.0.10 = 69 * Added support for embed code, video file and channel tokens that you can use in your post template / custom fields. 70 * Extended the number of custom fields to 5. -
kernel-video-sharing/trunk/admin/class-kvs-admin.php
r2850891 r3313760 508 508 509 509 $custom_fields = []; 510 for ($i = 1; $i <= 3; $i++) {510 for ($i = 1; $i <= 5; $i++) { 511 511 if (!empty(get_option( "kvs_custom{$i}_name" )) && !empty(get_option( "kvs_custom{$i}_value" ))) { 512 512 $custom_fields[get_option( "kvs_custom{$i}_name" )] = get_option( "kvs_custom{$i}_value" ); … … 635 635 '{%votes%}' => $row['votes'], 636 636 '{%duration%}' => $row['duration'], 637 '{%channel%}' => $row['dvd'], 637 638 '{%link%}' => $row['link'], 639 '{%embed%}' => $row['embed'], 640 '{%file_url%}' => $row['file_url'], 638 641 ); 639 642 $contentTemplate = get_option( 'kvs_post_body_template' ) ?: '{%description%}'; -
kernel-video-sharing/trunk/admin/partials/settings/post.php
r2850891 r3313760 107 107 <li><code>{%votes%}</code> - votes amount</li> 108 108 <li><code>{%duration%}</code> - video duration <i>h:m:s</i></li> 109 <li><code>{%channel%}</code> - video channel</li> 109 110 <li><code>{%link%}</code> - KVS video page URL</li> 111 <li><code>{%embed%}</code> - KVS embed code</li> 112 <li><code>{%file_url%}</code> - KVS video file URL</li> 110 113 </ul> 111 114 </div> … … 235 238 </td> 236 239 </tr> 240 <tr valign="top"> 241 <th scope="row"><?php _e( 'Custom 4', 'kvs' ); ?></th> 242 <td> 243 <input type="text" name="kvs_custom4_name" value="<?php echo esc_attr( get_option( 'kvs_custom4_name' )); ?>" /> 244 = 245 <input type="text" name="kvs_custom4_value" value="<?php echo esc_attr( get_option( 'kvs_custom4_value' )); ?>" /> 246 <p class="description">Specify custom field name and value (see <b>Template elements</b> above)</p> 247 </td> 248 </tr> 249 <tr valign="top"> 250 <th scope="row"><?php _e( 'Custom 5', 'kvs' ); ?></th> 251 <td> 252 <input type="text" name="kvs_custom5_name" value="<?php echo esc_attr( get_option( 'kvs_custom5_name' )); ?>" /> 253 = 254 <input type="text" name="kvs_custom5_value" value="<?php echo esc_attr( get_option( 'kvs_custom5_value' )); ?>" /> 255 <p class="description">Specify custom field name and value (see <b>Template elements</b> above)</p> 256 </td> 257 </tr> 237 258 </table> 238 259 <?php submit_button( __( 'Save Changes', 'kvs' ) ); ?> -
kernel-video-sharing/trunk/includes/class-kvs-logger.php
r2667866 r3313760 143 143 */ 144 144 public static function get_log_content() { 145 return file_get_contents( KVS_LOGFILE );145 return @file_get_contents( KVS_LOGFILE ); 146 146 } 147 147 -
kernel-video-sharing/trunk/includes/class-kvs.php
r2850891 r3313760 328 328 register_setting( 'kvs-settings-group-post', 'kvs_custom3_name' ); 329 329 register_setting( 'kvs-settings-group-post', 'kvs_custom3_value' ); 330 register_setting( 'kvs-settings-group-post', 'kvs_custom4_name' ); 331 register_setting( 'kvs-settings-group-post', 'kvs_custom4_value' ); 332 register_setting( 'kvs-settings-group-post', 'kvs_custom5_name' ); 333 register_setting( 'kvs-settings-group-post', 'kvs_custom5_value' ); 330 334 331 335 register_setting( 'kvs-settings-group-advanced', 'kvs_feed_last_id' ); -
kernel-video-sharing/trunk/kvs.php
r2850891 r3313760 12 12 * Plugin URI: https://www.kernel-video-sharing.com/en/wordpress/ 13 13 * Description: Kernel Video Sharing plugin for WordPress. Provides integration with KVS video content manager and automates video import from KVS into your Wordpress projects. 14 * Version: 1.0. 914 * Version: 1.0.10 15 15 * Requires at least: 5.0 16 16 * Requires PHP: 5.6 … … 29 29 30 30 define( 'KVS_WEBSITE', 'https://www.kernel-video-sharing.com/' ); 31 define( 'KVS_VERSION', '1.0. 9' );31 define( 'KVS_VERSION', '1.0.10' ); 32 32 define( 'KVS_PREFIX', 'kvs' ); 33 33 define( 'KVS_DIRPATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.