Changeset 3301582
- Timestamp:
- 05/27/2025 02:57:57 PM (10 months ago)
- Location:
- eesy-id2wp-publish-indesign-html5
- Files:
-
- 35 added
- 4 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/admin (added)
-
tags/1.0.2/admin/assets (added)
-
tags/1.0.2/admin/assets/eesy-icon_20x20_id.png (added)
-
tags/1.0.2/admin/assets/eesy-icon_32x32_id.png (added)
-
tags/1.0.2/admin/assets/eesy-logo.png (added)
-
tags/1.0.2/admin/assets/image.png (added)
-
tags/1.0.2/admin/class-id2wp-admin.php (added)
-
tags/1.0.2/admin/class-id2wp-help.php (added)
-
tags/1.0.2/admin/includes (added)
-
tags/1.0.2/admin/includes/admin.css (added)
-
tags/1.0.2/admin/includes/admin.js (added)
-
tags/1.0.2/admin/includes/colorpicker (added)
-
tags/1.0.2/admin/includes/colorpicker/colorpicker.min.css (added)
-
tags/1.0.2/admin/includes/colorpicker/colorpicker.min.js (added)
-
tags/1.0.2/admin/includes/help.js (added)
-
tags/1.0.2/eesy-id2wp-publish-indesign-html5.php (added)
-
tags/1.0.2/includes (added)
-
tags/1.0.2/includes/class-id2wp-access-controller.php (added)
-
tags/1.0.2/includes/class-id2wp-error.php (added)
-
tags/1.0.2/includes/class-id2wp-handler.php (added)
-
tags/1.0.2/includes/class-id2wp-image-optimizer.php (added)
-
tags/1.0.2/includes/class-id2wp-parser.php (added)
-
tags/1.0.2/includes/class-id2wp-post-type.php (added)
-
tags/1.0.2/includes/class-id2wp-rewrite-handler.php (added)
-
tags/1.0.2/includes/class-id2wp-tracking.php (added)
-
tags/1.0.2/includes/functions.php (added)
-
tags/1.0.2/includes/parser (added)
-
tags/1.0.2/includes/parser/favicon.png (added)
-
tags/1.0.2/includes/parser/id2wp-index.js (added)
-
tags/1.0.2/includes/parser/id2wp.css (added)
-
tags/1.0.2/includes/parser/id2wp.js (added)
-
tags/1.0.2/languages (added)
-
tags/1.0.2/languages/eesy-id2wp-publish-indesign-html5.pot (added)
-
tags/1.0.2/readme.txt (added)
-
trunk/admin/class-id2wp-help.php (modified) (1 diff)
-
trunk/eesy-id2wp-publish-indesign-html5.php (modified) (3 diffs)
-
trunk/includes/class-id2wp-rewrite-handler.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eesy-id2wp-publish-indesign-html5/trunk/admin/class-id2wp-help.php
r3296550 r3301582 48 48 ), 49 49 'editor-project-folder-light' => array( 50 'description' => __( ' The project folder name is the name of the folder in which the project will be available. If you leave it empty, a random name will be generated each time you upload a new .zip file. This is important because it ensures that the client-side browser cache is overridden. If you overwrite the name of the project folder, remember that the browser will keep the project in the cache. It is therefore possible that the browser displays an older version because the cache may not have been cleared. We therefore recommend working with the randomly generated URLs and creating a separate page in WordPress and displaying the uploaded project using a shortcode.', 'eesy-id2wp-publish-indesign-html5' ),50 'description' => __( 'Spaces are not allowed for the project folder name! The project folder name is the name of the folder in which the project will be available. If you leave it empty, a random name will be generated each time you upload a new .zip file. This is important because it ensures that the client-side browser cache is overridden. If you overwrite the name of the project folder, remember that the browser will keep the project in the cache. It is therefore possible that the browser displays an older version because the cache may not have been cleared. We therefore recommend working with the randomly generated URLs and creating a separate page in WordPress and displaying the uploaded project using a shortcode.', 'eesy-id2wp-publish-indesign-html5' ), 51 51 'link' => false, 52 52 ), -
eesy-id2wp-publish-indesign-html5/trunk/eesy-id2wp-publish-indesign-html5.php
r3296550 r3301582 4 4 Plugin URI: https://eesy.com/eesy_id2wp/ 5 5 Description: A plugin for publishing InDesign HTML5 packages in WordPress. The HTML5 packages exported from InDesign are optimised during upload and can then be edited. 6 Version: 1.0. 16 Version: 1.0.2 7 7 Requires at least: 6.0 8 8 Requires PHP: 8.0 … … 17 17 exit; // Exit if accessed directly. 18 18 } 19 define( 'ID2WP_VERSION', '0.1' );20 19 define( 'ID2WP_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 21 20 define( 'ID2WP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); … … 61 60 ID2WP_Post_Type::register(); 62 61 ID2WP_Rewrite_Handler::register_rewrite_rules(); 62 flush_rewrite_rules(); 63 63 64 } 64 65 register_activation_hook(__FILE__, 'id2wp_register'); -
eesy-id2wp-publish-indesign-html5/trunk/includes/class-id2wp-rewrite-handler.php
r3280160 r3301582 19 19 // Add redirect_canonical filter that only affects our rewrite rules 20 20 add_filter('redirect_canonical', array($this, 'handle_redirect_canonical'), 10, 2); 21 22 add_action('init', array($this, 'register_rewrite_rules')); 21 23 22 24 } … … 51 53 */ 52 54 public static function register_rewrite_rules() { 53 // Retrieve the applications folder from settings, with a default value54 $app_folder =id2wp_get_application_folder();55 55 // Retrieve the applications folder from settings, with a default value 56 $app_folder =id2wp_get_application_folder(); 57 56 58 57 // Define the rewrite rule dynamically based on the applications folder58 add_rewrite_rule(59 sprintf('^%s/([^/]+)(/.*)?$', preg_quote($app_folder, '/')), // Match with or without trailing slash60 'index.php?id2wp_project=$matches[1]&id2wp_path=$matches[2]',61 'top'62 );59 // Define the rewrite rule dynamically based on the applications folder 60 add_rewrite_rule( 61 sprintf('^%s/([^/]+)(/.*)?$', preg_quote($app_folder, '/')), // Match with or without trailing slash 62 'index.php?id2wp_project=$matches[1]&id2wp_path=$matches[2]', 63 'top' 64 ); 63 65 64 // Flush rewrite rules to apply changes65 flush_rewrite_rules();66 66 } 67 67 -
eesy-id2wp-publish-indesign-html5/trunk/readme.txt
r3296550 r3301582 5 5 Requires at least: 6.0 6 6 Tested up to: 6.8.1 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 Requires PHP: 8.0 9 9 License: GPLv2 or later … … 140 140 * Improved password logic in Backend 141 141 * Fixed minor bugs 142 * Tested for newer Wordpress version 142 * Tested for newer Wordpress Version 143 144 = 1.0.2 = 145 * Fix Rewrite Rules
Note: See TracChangeset
for help on using the changeset viewer.