Plugin Directory

Changeset 3313760


Ignore:
Timestamp:
06/18/2025 10:25:50 AM (10 months ago)
Author:
kvsteam
Message:

updated to v1.0.10

Location:
kernel-video-sharing/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • kernel-video-sharing/trunk/README.txt

    r3043205 r3313760  
    44Tags: video, player, tube, videoplayer
    55Requires at least: 3.0.1
    6 Tested up to: 6.4.3
    7 Stable tag: 1.0.9
     6Tested up to: 6.8.1
     7Stable tag: 1.0.10
    88Requires PHP: 7.1
    99License: GPLv2 or later
     
    6565* Added support for post publishing date (either take from feed, or current date).
    6666* 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  
    508508
    509509        $custom_fields = [];
    510         for ($i = 1; $i <= 3; $i++) {
     510        for ($i = 1; $i <= 5; $i++) {
    511511            if (!empty(get_option( "kvs_custom{$i}_name" )) && !empty(get_option( "kvs_custom{$i}_value" ))) {
    512512                $custom_fields[get_option( "kvs_custom{$i}_name" )] = get_option( "kvs_custom{$i}_value" );
     
    635635                        '{%votes%}'          => $row['votes'],
    636636                        '{%duration%}'       => $row['duration'],
     637                        '{%channel%}'        => $row['dvd'],
    637638                        '{%link%}'           => $row['link'],
     639                        '{%embed%}'          => $row['embed'],
     640                        '{%file_url%}'       => $row['file_url'],
    638641                    );
    639642                    $contentTemplate = get_option( 'kvs_post_body_template' ) ?: '{%description%}';
  • kernel-video-sharing/trunk/admin/partials/settings/post.php

    r2850891 r3313760  
    107107                    <li><code>{%votes%}</code> - votes amount</li>
    108108                    <li><code>{%duration%}</code> - video duration <i>h:m:s</i></li>
     109                    <li><code>{%channel%}</code> - video channel</li>
    109110                    <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>
    110113                </ul>
    111114            </div>
     
    235238        </td>
    236239        </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>
    237258    </table>
    238259    <?php submit_button( __( 'Save Changes', 'kvs' ) ); ?>
  • kernel-video-sharing/trunk/includes/class-kvs-logger.php

    r2667866 r3313760  
    143143     */
    144144    public static function get_log_content() {
    145         return file_get_contents( KVS_LOGFILE );
     145        return @file_get_contents( KVS_LOGFILE );
    146146    }
    147147   
  • kernel-video-sharing/trunk/includes/class-kvs.php

    r2850891 r3313760  
    328328        register_setting( 'kvs-settings-group-post', 'kvs_custom3_name' );
    329329        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' );
    330334
    331335        register_setting( 'kvs-settings-group-advanced', 'kvs_feed_last_id' );
  • kernel-video-sharing/trunk/kvs.php

    r2850891 r3313760  
    1212 * Plugin URI:        https://www.kernel-video-sharing.com/en/wordpress/
    1313 * 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.9
     14 * Version:           1.0.10
    1515 * Requires at least: 5.0
    1616 * Requires PHP:      5.6
     
    2929
    3030define( 'KVS_WEBSITE', 'https://www.kernel-video-sharing.com/' );
    31 define( 'KVS_VERSION', '1.0.9' );
     31define( 'KVS_VERSION', '1.0.10' );
    3232define( 'KVS_PREFIX', 'kvs' );
    3333define( 'KVS_DIRPATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.