Plugin Directory

Changeset 2965325


Ignore:
Timestamp:
09/11/2023 12:31:34 PM (3 years ago)
Author:
mekshq
Message:

version 1.0.11

Location:
meks-video-importer/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • meks-video-importer/trunk/includes/meks-video-importer-helpers.php

    r2463465 r2965325  
    394394    }
    395395endif;
    396 
    397 
    398 /**
    399  * Upsell Meks themes with notice info
    400  *
    401  * @return void
    402  */
    403 add_action( 'admin_notices', 'meks_admin_notice__info' );
    404 
    405 if ( ! function_exists( 'meks_admin_notice__info' ) ) :
    406 
    407     function meks_admin_notice__info() {
    408 
    409         $meks_themes  = array( 'shamrock', 'awsm', 'safarica', 'seashell', 'sidewalk', 'throne', 'voice', 'herald', 'vlog', 'gridlove', 'pinhole', 'typology', 'trawell', 'opinion', 'johannes', 'megaphone', 'toucan', 'roogan' );
    410         $active_theme = get_option( 'template' );
    411 
    412 
    413         if ( ! in_array( $active_theme, $meks_themes ) ) {
    414 
    415             if ( get_option('has_transient') == 0 ) {
    416                 set_transient( 'meks_admin_notice_time_'. get_current_user_id() , true, WEEK_IN_SECONDS );
    417                 update_option('has_transient', 1);
    418                 update_option('track_transient', 1);
    419             }
    420            
    421             if (  !get_option('meks_admin_notice_info') || ( get_option('track_transient') && !get_transient( 'meks_admin_notice_time_'. get_current_user_id() ) ) ) {
    422 
    423                 $all_themes = wp_get_themes();
    424 
    425                 ?>
    426                 <div class="meks-notice notice notice-info is-dismissible">
    427                     <p>
    428                         <?php
    429                             echo sprintf( __( 'You are currently using %1$s theme. Did you know that Meks plugins give you more features and flexibility with one of our <a href="%2$s">Meks themes</a>?', MEKS_VIDEO_IMPORTER_PAGE_SLUG ), $all_themes[ $active_theme ], 'https://1.envato.market/4DE2o' );
    430                         ?>
    431                     </p>
    432                 </div>
    433                 <?php
    434 
    435             }
    436         } else {
    437             delete_option('meks_admin_notice_info');
    438             delete_option('has_transient');
    439             delete_option('track_transient');
    440         }
    441     }
    442 
    443 endif;
    444 
    445 
    446 /**
    447  * Colose/remove info notice with ajax
    448  *
    449  * @return void
    450  */
    451 add_action( 'wp_ajax_meks_remove_notification', 'meks_remove_notification' );
    452 add_action( 'wp_ajax_nopriv_meks_remove_notification', 'meks_remove_notification' );
    453 
    454 if ( !function_exists( 'meks_remove_notification' ) ) :
    455     function meks_remove_notification() {
    456         add_option('meks_admin_notice_info', 1);
    457         if ( !get_transient( 'meks_admin_notice_time_'. get_current_user_id() ) ) {
    458             update_option('track_transient', 0);
    459         }
    460     }
    461 endif;
    462 
    463 /**
    464  * Add admin scripts
    465  *
    466  * @return void
    467  */
    468 add_action( 'admin_enqueue_scripts', 'meks_video_importer_enqueue_admin_scripts' );
    469 
    470 if ( !function_exists( 'meks_video_importer_enqueue_admin_scripts' ) ) :
    471     function meks_video_importer_enqueue_admin_scripts() {
    472         wp_enqueue_script( 'meks-video-importer-ajax', MEKS_VIDEO_IMPORTER_URL . 'assets/js/admin.js', array('jquery'), MEKS_VIDEO_IMPORTER_VERSION );
    473     }
    474 endif;
  • meks-video-importer/trunk/meks-video-importer.php

    r2879760 r2965325  
    33Plugin Name: Meks Video Importer
    44Description: Easily import YouTube and Vimeo videos in bulk to your posts, pages or any custom post type.
    5 Version: 1.0.10
     5Version: 1.0.11
    66Author: Meks
    77Author URI: http://mekshq.com
     
    1919 * Define useful constants here
    2020 */
    21 define( 'MEKS_VIDEO_IMPORTER_VERSION', '1.0.10' );
     21define( 'MEKS_VIDEO_IMPORTER_VERSION', '1.0.11' );
    2222define( 'MEKS_VIDEO_IMPORTER_BASENAME', plugin_basename(__FILE__) );
    2323define( 'MEKS_VIDEO_IMPORTER_DIR', plugin_dir_path( __FILE__ ) );
  • meks-video-importer/trunk/readme.txt

    r2879760 r2965325  
    44Tags: youtube, vimeo, video, import, bulk, videos, importer, channel, playlist, user
    55Requires at least: 3.7
    6 Tested up to: 6.1
    7 Stable tag: 1.0.10
     6Tested up to: 6.3
     7Stable tag: 1.0.11
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    4646
    4747== Changelog ==
     48
     49= 1.0.11 =
     50* WP 6.3 compatibility tested
     51* Patched a minor security issue
    4852
    4953= 1.0.10 =
Note: See TracChangeset for help on using the changeset viewer.