Changeset 3207605
- Timestamp:
- 12/13/2024 12:38:08 PM (16 months ago)
- Location:
- alter-media
- Files:
-
- 15 edited
- 9 copied
-
tags/1.0.1 (copied) (copied from alter-media/trunk)
-
tags/1.0.1/LICENSE (copied) (copied from alter-media/trunk/LICENSE)
-
tags/1.0.1/README.md (copied) (copied from alter-media/trunk/README.md) (2 diffs)
-
tags/1.0.1/alter-media.php (copied) (copied from alter-media/trunk/alter-media.php) (2 diffs)
-
tags/1.0.1/assets (copied) (copied from alter-media/trunk/assets)
-
tags/1.0.1/composer.json (copied) (copied from alter-media/trunk/composer.json) (1 diff)
-
tags/1.0.1/index.php (copied) (copied from alter-media/trunk/index.php)
-
tags/1.0.1/src (copied) (copied from alter-media/trunk/src)
-
tags/1.0.1/vendor (copied) (copied from alter-media/trunk/vendor)
-
tags/1.0.1/vendor/composer/installed.json (modified) (3 diffs)
-
tags/1.0.1/vendor/composer/installed.php (modified) (3 diffs)
-
tags/1.0.1/vendor/matterwp/wp-subscription-manager/src/Diagnosis.php (modified) (3 diffs)
-
tags/1.0.1/vendor/matterwp/wp-subscription-manager/src/SubscriptionManager.php (modified) (2 diffs)
-
tags/1.0.1/vendor/matterwp/wp-subscription-manager/src/SubscriptionManagerFactory.php (modified) (1 diff)
-
tags/1.0.1/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php (modified) (2 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/alter-media.php (modified) (2 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/vendor/composer/installed.json (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (3 diffs)
-
trunk/vendor/matterwp/wp-subscription-manager/src/Diagnosis.php (modified) (3 diffs)
-
trunk/vendor/matterwp/wp-subscription-manager/src/SubscriptionManager.php (modified) (2 diffs)
-
trunk/vendor/matterwp/wp-subscription-manager/src/SubscriptionManagerFactory.php (modified) (1 diff)
-
trunk/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alter-media/tags/1.0.1/README.md
r3207530 r3207605 5 5 Requires at least: 4.7 6 6 Tested up to: 6.7 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 Requires PHP: 7.3.5 9 9 License: GPLv2 or later … … 82 82 - Implemented filtering system 83 83 - Added visual indicators for attribute status 84 85 = 1.0.1 = 86 87 - Composer package updated -
alter-media/tags/1.0.1/alter-media.php
r3207521 r3207605 4 4 * Plugin URI: https://matterwp.com/plugins/alter 5 5 * Description: A WordPress plugin to filter media library by alternative text and caption. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: MatterWP 8 8 * Author URI: https://matterwp.com … … 34 34 */ 35 35 define( 'ALTER_NAME', 'alter-media' ); 36 define( 'ALTER_VERSION', '1.0. 0' );36 define( 'ALTER_VERSION', '1.0.1' ); 37 37 define( 'ALTER_FILE', __FILE__ ); 38 38 define( 'ALTER_PLUGIN_DIR', trailingslashit( dirname( ALTER_FILE ) ) ); -
alter-media/tags/1.0.1/composer.json
r3207521 r3207605 17 17 ], 18 18 "require": { 19 "matterwp/wp-subscription-manager": "^0.0. 3"19 "matterwp/wp-subscription-manager": "^0.0.4" 20 20 } 21 21 } -
alter-media/tags/1.0.1/vendor/composer/installed.json
r3207521 r3207605 3 3 { 4 4 "name": "matterwp/wp-subscription-manager", 5 "version": "v0.0. 3",6 "version_normalized": "0.0. 3.0",5 "version": "v0.0.4", 6 "version_normalized": "0.0.4.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/matterwp/matterwp-subscription-manager.git", 10 "reference": " 482ebdc19603dad0830850481c36a22daea5d888"10 "reference": "1676660b867fea389259dee6d6b80a92c2090c04" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/ 482ebdc19603dad0830850481c36a22daea5d888",15 "reference": " 482ebdc19603dad0830850481c36a22daea5d888",14 "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/1676660b867fea389259dee6d6b80a92c2090c04", 15 "reference": "1676660b867fea389259dee6d6b80a92c2090c04", 16 16 "shasum": "" 17 17 }, … … 19 19 "php": ">=7.3.5" 20 20 }, 21 "time": "2024-12-13T 09:30:03+00:00",21 "time": "2024-12-13T12:28:35+00:00", 22 22 "type": "wordpress-plugin", 23 23 "installation-source": "dist", … … 40 40 "support": { 41 41 "issues": "https://github.com/matterwp/matterwp-subscription-manager/issues", 42 "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0. 3"42 "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0.4" 43 43 }, 44 44 "install-path": "../matterwp/wp-subscription-manager" -
alter-media/tags/1.0.1/vendor/composer/installed.php
r3207521 r3207605 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 69331a7b53fe64920453f9d6f9b6136df825dddd',6 'reference' => '562b6f2f45c5201fe342de64db2b16f071ff9010', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 69331a7b53fe64920453f9d6f9b6136df825dddd',16 'reference' => '562b6f2f45c5201fe342de64db2b16f071ff9010', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'matterwp/wp-subscription-manager' => array( 23 'pretty_version' => 'v0.0. 3',24 'version' => '0.0. 3.0',25 'reference' => ' 482ebdc19603dad0830850481c36a22daea5d888',23 'pretty_version' => 'v0.0.4', 24 'version' => '0.0.4.0', 25 'reference' => '1676660b867fea389259dee6d6b80a92c2090c04', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../matterwp/wp-subscription-manager', -
alter-media/tags/1.0.1/vendor/matterwp/wp-subscription-manager/src/Diagnosis.php
r3207521 r3207605 9 9 class Diagnosis { 10 10 /** 11 * SubscriptionManager instance 12 * 13 * @var SubscriptionManager 14 */ 15 private static $manager; 16 17 /** 18 * Set the SubscriptionManager instance 19 * 20 * @param SubscriptionManager $manager 21 */ 22 public static function set_manager( SubscriptionManager $manager ) { 23 self::$manager = $manager; 24 } 25 26 /** 11 27 * Retrieves comprehensive system information about the WordPress installation 12 28 * … … 15 31 public static function get_system_info() { 16 32 $data = array( 33 'plugin_slug' => self::safely_run( 'get_plugin_slug' ), 17 34 'email' => self::safely_run( 'get_admin_email' ), 18 35 'website_url' => self::safely_run( 'get_site_url' ), … … 302 319 wp_send_json_success( self::get_system_info() ); 303 320 } 321 322 /** 323 * Gets the plugin slug from the Config instance 324 * 325 * @return string Plugin slug or empty string on failure 326 */ 327 private static function get_plugin_slug() { 328 if (!isset(self::$manager)) { 329 return ''; 330 } 331 332 try { 333 $config = self::$manager->get_config(); 334 return $config ? sanitize_key($config->get('plugin_slug')) : ''; 335 } catch (\Exception $e) { 336 return ''; 337 } 338 } 304 339 } -
alter-media/tags/1.0.1/vendor/matterwp/wp-subscription-manager/src/SubscriptionManager.php
r3207521 r3207605 30 30 $this->config = new Config( $settings ); 31 31 $this->welcome_page = new WelcomePage( $this->config ); 32 33 // Set the manager instance for Diagnosis 34 Diagnosis::set_manager( $this ); 32 35 33 36 $this->setup_hooks(); … … 88 91 return admin_url( 'admin.php?page=' . $this->config->get( 'plugin_slug' ) . '-welcome' ); 89 92 } 93 94 /** 95 * Get the config instance 96 * 97 * @return Config 98 */ 99 public function get_config() { 100 return $this->config; 101 } 90 102 } -
alter-media/tags/1.0.1/vendor/matterwp/wp-subscription-manager/src/SubscriptionManagerFactory.php
r3207521 r3207605 34 34 $settings = self::prepareSettings( $settings ); 35 35 36 return new SubscriptionManager( $settings ); 36 $manager = new SubscriptionManager( $settings ); 37 return $manager; 37 38 } 38 39 -
alter-media/tags/1.0.1/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php
r3207521 r3207605 106 106 transition: all 0.3s ease; 107 107 background-color: 108 <?php 109 echo esc_attr( $btn_color ); 110 ?> 111 ; 108 <?php echo esc_attr($btn_color); 109 ?>; 112 110 } 113 111 114 112 .btn-subscribe:hover { 115 113 background-color: 116 <?php 117 echo esc_attr( $btn_hover ); 118 ?> 119 ; 114 <?php echo esc_attr($btn_hover); 115 ?>; 120 116 } 121 117 … … 300 296 } 301 297 302 if (this.isSkipped) { 303 setTimeout(() => { 304 window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>'; 305 }, 0); 306 } else { 307 setTimeout(() => { 308 window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>'; 309 }, 1500); 310 } 298 setTimeout(() => { 299 window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>'; 300 }, 1000); 311 301 } catch (error) { 312 302 console.error('Error:', error); -
alter-media/trunk/README.md
r3207530 r3207605 5 5 Requires at least: 4.7 6 6 Tested up to: 6.7 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 Requires PHP: 7.3.5 9 9 License: GPLv2 or later … … 82 82 - Implemented filtering system 83 83 - Added visual indicators for attribute status 84 85 = 1.0.1 = 86 87 - Composer package updated -
alter-media/trunk/alter-media.php
r3207521 r3207605 4 4 * Plugin URI: https://matterwp.com/plugins/alter 5 5 * Description: A WordPress plugin to filter media library by alternative text and caption. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: MatterWP 8 8 * Author URI: https://matterwp.com … … 34 34 */ 35 35 define( 'ALTER_NAME', 'alter-media' ); 36 define( 'ALTER_VERSION', '1.0. 0' );36 define( 'ALTER_VERSION', '1.0.1' ); 37 37 define( 'ALTER_FILE', __FILE__ ); 38 38 define( 'ALTER_PLUGIN_DIR', trailingslashit( dirname( ALTER_FILE ) ) ); -
alter-media/trunk/composer.json
r3207521 r3207605 17 17 ], 18 18 "require": { 19 "matterwp/wp-subscription-manager": "^0.0. 3"19 "matterwp/wp-subscription-manager": "^0.0.4" 20 20 } 21 21 } -
alter-media/trunk/vendor/composer/installed.json
r3207521 r3207605 3 3 { 4 4 "name": "matterwp/wp-subscription-manager", 5 "version": "v0.0. 3",6 "version_normalized": "0.0. 3.0",5 "version": "v0.0.4", 6 "version_normalized": "0.0.4.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/matterwp/matterwp-subscription-manager.git", 10 "reference": " 482ebdc19603dad0830850481c36a22daea5d888"10 "reference": "1676660b867fea389259dee6d6b80a92c2090c04" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/ 482ebdc19603dad0830850481c36a22daea5d888",15 "reference": " 482ebdc19603dad0830850481c36a22daea5d888",14 "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/1676660b867fea389259dee6d6b80a92c2090c04", 15 "reference": "1676660b867fea389259dee6d6b80a92c2090c04", 16 16 "shasum": "" 17 17 }, … … 19 19 "php": ">=7.3.5" 20 20 }, 21 "time": "2024-12-13T 09:30:03+00:00",21 "time": "2024-12-13T12:28:35+00:00", 22 22 "type": "wordpress-plugin", 23 23 "installation-source": "dist", … … 40 40 "support": { 41 41 "issues": "https://github.com/matterwp/matterwp-subscription-manager/issues", 42 "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0. 3"42 "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0.4" 43 43 }, 44 44 "install-path": "../matterwp/wp-subscription-manager" -
alter-media/trunk/vendor/composer/installed.php
r3207521 r3207605 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 69331a7b53fe64920453f9d6f9b6136df825dddd',6 'reference' => '562b6f2f45c5201fe342de64db2b16f071ff9010', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 69331a7b53fe64920453f9d6f9b6136df825dddd',16 'reference' => '562b6f2f45c5201fe342de64db2b16f071ff9010', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'matterwp/wp-subscription-manager' => array( 23 'pretty_version' => 'v0.0. 3',24 'version' => '0.0. 3.0',25 'reference' => ' 482ebdc19603dad0830850481c36a22daea5d888',23 'pretty_version' => 'v0.0.4', 24 'version' => '0.0.4.0', 25 'reference' => '1676660b867fea389259dee6d6b80a92c2090c04', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../matterwp/wp-subscription-manager', -
alter-media/trunk/vendor/matterwp/wp-subscription-manager/src/Diagnosis.php
r3207521 r3207605 9 9 class Diagnosis { 10 10 /** 11 * SubscriptionManager instance 12 * 13 * @var SubscriptionManager 14 */ 15 private static $manager; 16 17 /** 18 * Set the SubscriptionManager instance 19 * 20 * @param SubscriptionManager $manager 21 */ 22 public static function set_manager( SubscriptionManager $manager ) { 23 self::$manager = $manager; 24 } 25 26 /** 11 27 * Retrieves comprehensive system information about the WordPress installation 12 28 * … … 15 31 public static function get_system_info() { 16 32 $data = array( 33 'plugin_slug' => self::safely_run( 'get_plugin_slug' ), 17 34 'email' => self::safely_run( 'get_admin_email' ), 18 35 'website_url' => self::safely_run( 'get_site_url' ), … … 302 319 wp_send_json_success( self::get_system_info() ); 303 320 } 321 322 /** 323 * Gets the plugin slug from the Config instance 324 * 325 * @return string Plugin slug or empty string on failure 326 */ 327 private static function get_plugin_slug() { 328 if (!isset(self::$manager)) { 329 return ''; 330 } 331 332 try { 333 $config = self::$manager->get_config(); 334 return $config ? sanitize_key($config->get('plugin_slug')) : ''; 335 } catch (\Exception $e) { 336 return ''; 337 } 338 } 304 339 } -
alter-media/trunk/vendor/matterwp/wp-subscription-manager/src/SubscriptionManager.php
r3207521 r3207605 30 30 $this->config = new Config( $settings ); 31 31 $this->welcome_page = new WelcomePage( $this->config ); 32 33 // Set the manager instance for Diagnosis 34 Diagnosis::set_manager( $this ); 32 35 33 36 $this->setup_hooks(); … … 88 91 return admin_url( 'admin.php?page=' . $this->config->get( 'plugin_slug' ) . '-welcome' ); 89 92 } 93 94 /** 95 * Get the config instance 96 * 97 * @return Config 98 */ 99 public function get_config() { 100 return $this->config; 101 } 90 102 } -
alter-media/trunk/vendor/matterwp/wp-subscription-manager/src/SubscriptionManagerFactory.php
r3207521 r3207605 34 34 $settings = self::prepareSettings( $settings ); 35 35 36 return new SubscriptionManager( $settings ); 36 $manager = new SubscriptionManager( $settings ); 37 return $manager; 37 38 } 38 39 -
alter-media/trunk/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php
r3207521 r3207605 106 106 transition: all 0.3s ease; 107 107 background-color: 108 <?php 109 echo esc_attr( $btn_color ); 110 ?> 111 ; 108 <?php echo esc_attr($btn_color); 109 ?>; 112 110 } 113 111 114 112 .btn-subscribe:hover { 115 113 background-color: 116 <?php 117 echo esc_attr( $btn_hover ); 118 ?> 119 ; 114 <?php echo esc_attr($btn_hover); 115 ?>; 120 116 } 121 117 … … 300 296 } 301 297 302 if (this.isSkipped) { 303 setTimeout(() => { 304 window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>'; 305 }, 0); 306 } else { 307 setTimeout(() => { 308 window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>'; 309 }, 1500); 310 } 298 setTimeout(() => { 299 window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>'; 300 }, 1000); 311 301 } catch (error) { 312 302 console.error('Error:', error);
Note: See TracChangeset
for help on using the changeset viewer.