PluginProbe
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels / 2.3.2
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels v2.3.2
2.9.1 2.9.0 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 2.0.0 2.1.0 2.2.0 2.3.2 2.3.3 2.3.5 2.3.6 2.3.8 2.3.9 2.4.3 All 37 releases
← All changes | automatic-youtube-gallery.php +40 -22 2.3.92.3.2 View file →
@@ -10,9 +10,9 @@
10 10 * @wordpress-plugin
11 11 * Plugin Name: Automatic YouTube Gallery
12 12 * Plugin URI: https://plugins360.com/automatic-youtube-gallery/
13 13 * Description: Create responsive, modern & dynamic video galleries by simply adding a YouTube USERNAME, CHANNEL, PLAYLIST, SEARCH KEYWORDS, or a custom list of YouTube URLs.
14 - * Version: 2.3.9
14 + * Version: 2.3.2
15 15 * Author: Team Plugins360
16 16 * Author URI: https://plugins360.com
17 17 * License: GPL-2.0+
18 18 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -23,15 +23,17 @@
23 23 // Exit if accessed directly
24 24 if ( !defined( 'WPINC' ) ) {
25 25 die;
26 26 }
27 +
27 28 if ( function_exists( 'ayg_fs' ) ) {
28 29 ayg_fs()->set_basename( false, __FILE__ );
29 30 return;
30 31 }
32 +
31 33 // Current version of the plugin
32 34 if ( !defined( 'AYG_VERSION' ) ) {
33 - define( 'AYG_VERSION', '2.3.9' );
35 + define( 'AYG_VERSION', '2.3.2' );
34 36 }
35 37 // Unique identifier of the plugin
36 38 if ( !defined( 'AYG_SLUG' ) ) {
37 39 define( 'AYG_SLUG', 'automatic-youtube-gallery' );
@@ -47,12 +49,15 @@
47 49 // The plugin file name
48 50 if ( !defined( 'AYG_FILE_NAME' ) ) {
49 51 define( 'AYG_FILE_NAME', plugin_basename( __FILE__ ) );
50 52 }
53 +
51 54 if ( !function_exists( 'ayg_fs' ) ) {
52 55 // Create a helper function for easy SDK access
53 - function ayg_fs() {
54 - global $ayg_fs;
56 + function ayg_fs()
57 + {
58 + global $ayg_fs ;
59 +
55 60 if ( !isset( $ayg_fs ) ) {
56 61 // Activate multisite network integration
57 62 if ( !defined( 'WP_FS__PRODUCT_2922_MULTISITE' ) ) {
58 63 define( 'WP_FS__PRODUCT_2922_MULTISITE', true );
@@ -68,51 +73,60 @@
68 73 'premium_suffix' => 'Premium',
69 74 'has_addons' => false,
70 75 'has_paid_plans' => true,
71 76 'trial' => array(
72 - 'days' => 7,
73 - 'is_require_payment' => false,
74 - ),
77 + 'days' => 7,
78 + 'is_require_payment' => false,
79 + ),
75 80 'menu' => array(
76 - 'slug' => 'automatic-youtube-gallery',
77 - 'first-path' => 'admin.php?page=automatic-youtube-gallery',
78 - 'support' => false,
79 - ),
81 + 'slug' => 'automatic-youtube-gallery',
82 + 'first-path' => 'admin.php?page=automatic-youtube-gallery',
83 + 'support' => false,
84 + ),
80 85 'is_live' => true,
81 86 ) );
82 87 }
88 +
83 89 return $ayg_fs;
84 90 }
85 -
91 +
86 92 // Init Freemius
87 93 ayg_fs();
88 94 // Signal that SDK was initiated
89 95 do_action( 'ayg_fs_loaded' );
90 96 }
97 +
98 +
91 99 if ( !function_exists( 'activate_ayg' ) ) {
92 100 /**
93 101 * The code that runs during plugin activation.
94 102 * This action is documented in includes/activator.php
95 103 */
96 - function activate_ayg() {
104 + function activate_ayg()
105 + {
97 106 require_once AYG_DIR . 'includes/activator.php';
98 107 AYG_Activator::activate();
99 108 }
100 -
109 +
101 110 register_activation_hook( __FILE__, 'activate_ayg' );
102 111 }
112 +
113 +
103 114 if ( !function_exists( 'deactivate_ayg' ) ) {
104 115 /**
105 116 * The code that runs during plugin deactivation.
106 117 * This action is documented in includes/deactivator.php
107 118 */
108 - function deactivate_ayg() {
119 + function deactivate_ayg()
120 + {
109 121 require_once AYG_DIR . 'includes/deactivator.php';
110 122 AYG_Deactivator::deactivate();
111 123 }
112 -
124 +
113 125 register_deactivation_hook( __FILE__, 'deactivate_ayg' );
114 126 }
127 +
128 +
115 129 if ( !function_exists( 'run_ayg' ) ) {
116 130 /**
117 131 * Begins execution of the plugin.
118 132 *
@@ -121,16 +135,19 @@
121 135 * not affect the page life cycle.
122 136 *
123 137 * @since 1.0.0
124 138 */
125 - function run_ayg() {
139 + function run_ayg()
140 + {
126 141 require_once AYG_DIR . 'includes/init.php';
127 142 $plugin = new AYG_Init();
128 143 $plugin->run();
129 144 }
130 -
145 +
131 146 run_ayg();
132 147 }
148 +
149 +
133 150 if ( !function_exists( 'ayg_fs_uninstall_cleanup' ) ) {
134 151 /**
135 152 * Plugin uninstall cleanup.
136 153 *
@@ -135,10 +152,11 @@
135 152 * Plugin uninstall cleanup.
136 153 *
137 154 * @since 1.0.0
138 155 */
139 - function ayg_fs_uninstall_cleanup() {
140 - global $wpdb;
156 + function ayg_fs_uninstall_cleanup()
157 + {
158 + global $wpdb ;
141 159 // Delete all the plugin transients
142 160 $transient_keys = get_option( 'ayg_transient_keys', array() );
143 161 foreach ( $transient_keys as $key ) {
144 162 delete_transient( $key );
@@ -157,7 +175,7 @@
157 175 delete_option( 'ayg_version' );
158 176 // Delete our custom database table "{$wpdb->prefix}ayg_videos"
159 177 $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}ayg_videos" );
160 178 }
161 -
179 +
162 180 ayg_fs()->add_action( 'after_uninstall', 'ayg_fs_uninstall_cleanup' );
163 -}
181 +}