Changeset 2965325
- Timestamp:
- 09/11/2023 12:31:34 PM (3 years ago)
- Location:
- meks-video-importer/trunk
- Files:
-
- 3 edited
-
includes/meks-video-importer-helpers.php (modified) (1 diff)
-
meks-video-importer.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
meks-video-importer/trunk/includes/meks-video-importer-helpers.php
r2463465 r2965325 394 394 } 395 395 endif; 396 397 398 /**399 * Upsell Meks themes with notice info400 *401 * @return void402 */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 <?php429 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 <?php434 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 ajax448 *449 * @return void450 */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 scripts465 *466 * @return void467 */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 3 3 Plugin Name: Meks Video Importer 4 4 Description: Easily import YouTube and Vimeo videos in bulk to your posts, pages or any custom post type. 5 Version: 1.0.1 05 Version: 1.0.11 6 6 Author: Meks 7 7 Author URI: http://mekshq.com … … 19 19 * Define useful constants here 20 20 */ 21 define( 'MEKS_VIDEO_IMPORTER_VERSION', '1.0.1 0' );21 define( 'MEKS_VIDEO_IMPORTER_VERSION', '1.0.11' ); 22 22 define( 'MEKS_VIDEO_IMPORTER_BASENAME', plugin_basename(__FILE__) ); 23 23 define( 'MEKS_VIDEO_IMPORTER_DIR', plugin_dir_path( __FILE__ ) ); -
meks-video-importer/trunk/readme.txt
r2879760 r2965325 4 4 Tags: youtube, vimeo, video, import, bulk, videos, importer, channel, playlist, user 5 5 Requires at least: 3.7 6 Tested up to: 6. 17 Stable tag: 1.0.1 06 Tested up to: 6.3 7 Stable tag: 1.0.11 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl.html … … 46 46 47 47 == Changelog == 48 49 = 1.0.11 = 50 * WP 6.3 compatibility tested 51 * Patched a minor security issue 48 52 49 53 = 1.0.10 =
Note: See TracChangeset
for help on using the changeset viewer.