Changeset 3250619
- Timestamp:
- 03/04/2025 06:17:04 PM (13 months ago)
- Location:
- topirank-integration
- Files:
-
- 32 added
- 4 edited
-
tags/1.1.1 (added)
-
tags/1.1.1/admin (added)
-
tags/1.1.1/admin/admin-page.php (added)
-
tags/1.1.1/admin/menu.php (added)
-
tags/1.1.1/assets (added)
-
tags/1.1.1/assets/css (added)
-
tags/1.1.1/assets/css/topirank-admin-style.css (added)
-
tags/1.1.1/assets/css/topirank-editor-style.css (added)
-
tags/1.1.1/assets/css/topirank-normalize.css (added)
-
tags/1.1.1/assets/css/topirank-post-admin-style.css (added)
-
tags/1.1.1/assets/js (added)
-
tags/1.1.1/assets/js/topirank-admin-scripts.js (added)
-
tags/1.1.1/assets/js/topirank-normalize.js (added)
-
tags/1.1.1/includes (added)
-
tags/1.1.1/includes/api-integration.php (added)
-
tags/1.1.1/includes/create-template.php (added)
-
tags/1.1.1/includes/extract-and-create.php (added)
-
tags/1.1.1/includes/file-upload.php (added)
-
tags/1.1.1/includes/helpers.php (added)
-
tags/1.1.1/includes/init.php (added)
-
tags/1.1.1/includes/process-folders.php (added)
-
tags/1.1.1/includes/register-files.php (added)
-
tags/1.1.1/includes/resource-cleaner.php (added)
-
tags/1.1.1/includes/topirank-template.php (added)
-
tags/1.1.1/includes/update-content-and-seo.php (added)
-
tags/1.1.1/includes/update-functionality.php (added)
-
tags/1.1.1/languages (added)
-
tags/1.1.1/languages/topirank-integration-fr_FR.mo (added)
-
tags/1.1.1/languages/topirank-integration-fr_FR.po (added)
-
tags/1.1.1/languages/topirank-integration.pot (added)
-
tags/1.1.1/readme.txt (added)
-
tags/1.1.1/topirank-integration.php (added)
-
trunk/includes/extract-and-create.php (modified) (1 diff)
-
trunk/includes/register-files.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/topirank-integration.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
topirank-integration/trunk/includes/extract-and-create.php
r3249873 r3250619 105 105 106 106 while ($wp_filesystem->is_dir($path)) { 107 $archive_name = $original_name . ' (' . $counter . ')';107 $archive_name = $original_name . '--(' . $counter . ')'; 108 108 $path = dirname($original_path) . '/' . $archive_name; 109 109 $counter++; -
topirank-integration/trunk/includes/register-files.php
r3249873 r3250619 117 117 if (is_dir($js_path)) { 118 118 $js_files = glob($js_path . '/*.js'); 119 120 119 $current_slug = sanitize_title($post->post_name); 120 $clean_archive_name = preg_replace('/--\d+$/', '', $archive_name); 121 121 122 122 foreach ($js_files as $js_file) { 123 123 124 $file_name = basename($js_file, '.js'); 124 $file_name = str_replace('-script', '', $file_name); 125 126 $slug_pos = strpos($file_name, $current_slug); 127 128 if ($slug_pos === 0) { 129 $file_name = substr_replace($file_name, '', $slug_pos, strlen($current_slug)); 130 $page_pos = strpos($file_name, '-page-'); 131 if ($page_pos !== false) { 132 $file_name = substr_replace($file_name, '', $page_pos, 6); 133 } 134 135 if (strpos($file_name, $current_slug) === false) { 136 continue; 137 } 125 $file_name = preg_replace('/-script$/', '', $file_name); 126 127 if (strpos($file_name, '-page-') === false) { 128 wp_enqueue_script( 129 'topirank-archive-js-' . sanitize_title($file_name), 130 $js_url . '/' . basename($js_file), 131 [], 132 time(), 133 true 134 ); 135 continue; 136 } 137 138 $file_name = str_replace($clean_archive_name, '', $file_name); 139 $file_name = preg_replace('/-page-/', '', $file_name, 1); 140 141 if (strpos($file_name, $current_slug) === false) { 142 continue; 138 143 } 139 144 -
topirank-integration/trunk/readme.txt
r3249873 r3250619 4 4 Requires at least: 6.0 5 5 Tested up to: 6.7.1 6 Stable tag: 1.1 6 Stable tag: 1.1.1 7 7 Requires PHP: 7.3 8 8 License: GPLv2 or later … … 58 58 == Changelog == 59 59 60 = 1.1.1 = 61 * Optimize JS file inclusion. 62 60 63 = 1.1 = 61 64 * Optimized parsing. -
topirank-integration/trunk/topirank-integration.php
r3249873 r3250619 3 3 Plugin Name: Topirank Integration 4 4 Description: Plugin for parsing pages 5 Version: 1.1 5 Version: 1.1.1 6 6 Author: Topirank 7 7 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.