Changeset 3585559
- Timestamp:
- 06/25/2026 02:47:20 AM (4 months ago)
- Location:
- popaeo-llms-txt
- Files:
-
- 2 edited
- 4 copied
-
tags/0.3.0 (copied) (copied from popaeo-llms-txt/trunk )
-
tags/0.3.0/README.md (copied) (copied from popaeo-llms-txt/trunk/README.md )
-
tags/0.3.0/popaeo-llms-txt.php (copied) (copied from popaeo-llms-txt/trunk/popaeo-llms-txt.php ) (4 diffs)
-
tags/0.3.0/readme.txt (copied) (copied from popaeo-llms-txt/trunk/readme.txt ) (2 diffs)
-
trunk/popaeo-llms-txt.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
popaeo-llms-txt/tags/0.3.0/popaeo-llms-txt.php
r3585552 r3585559 4 4 * Plugin URI: https://www.popaeo.com/docs 5 5 * Description: Helps WooCommerce stores improve AI recommendation readiness with PopAEO AEO audits, catalog signals, and llms.txt publishing. 6 * Version: 0. 2.96 * Version: 0.3.0 7 7 * Author: PopAEO 8 8 * Author URI: https://www.popaeo.com … … 32 32 33 33 function popaeo_llms_menu_icon() { 34 $svg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="#000" d="M 3 15.5V4.5h6.9c2.8 0 4.7 1.6 4.7 4.1s-1.9 4.1-4.7 4.1H6.5v2.8H3Zm3.5-5.7h3.1c1 0 1.6-.4 1.6-1.2s-.6-1.2-1.6-1.2H6.5v2.4Zm8 5.7-3-4.7h3.5l3 4.7h-3.5Z"/></svg>';34 $svg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="#000" d="M4.2 3h11.6C17 3 18 4 18 5.2v6.6c0 1.2-1 2.2-2.2 2.2H9.1l-4.4 3.2c-.6.4-1.4 0-1.4-.7V14c-.8-.3-1.3-1.1-1.3-2.1V5.2C2 4 3 3 4.2 3Zm2.5 7.8c0 .4.3.7.7.7h1.8l1.1 1.4c.3.4.9.4 1.2 0l3.3-4.5c.2-.3.2-.8-.2-1-.3-.2-.8-.2-1 .2l-2.7 3.6-1-1.2c-.1-.2-.3-.3-.6-.3H7.4c-.4 0-.7.3-.7.7v.4Z"/></svg>'; 35 35 return 'data:image/svg+xml;base64,' . base64_encode($svg); 36 36 } 37 38 function popaeo_llms_plugin_row_meta($links, $file) { 39 if ($file !== plugin_basename(__FILE__)) { 40 return $links; 41 } 42 43 $filtered_links = array_filter($links, function($link) { 44 return strpos($link, 'plugins/popaeo-llms-txt') === false 45 && strpos($link, 'www.popaeo.com/docs') === false; 46 }); 47 48 $filtered_links[] = '<a href="https://www.popaeo.com" target="_blank" rel="noopener noreferrer">访问插件官网</a>'; 49 $filtered_links[] = '<a href="' . esc_url(self_admin_url('plugin-install.php?tab=plugin-information&plugin=popaeo-llms-txt&TB_iframe=true&width=600&height=550')) . '" class="thickbox open-plugin-details-modal" aria-label="' . esc_attr__('View PopAEO plugin details', 'popaeo-llms-txt') . '">查看详情</a>'; 50 51 return $filtered_links; 52 } 53 add_filter('plugin_row_meta', 'popaeo_llms_plugin_row_meta', 10, 2); 37 54 38 55 function popaeo_llms_default_settings() { … … 281 298 display: block; 282 299 width: 100%; 283 height: 1400px;284 min-height: calc(100vh - 32px);300 height: calc(100vh - 32px); 301 min-height: 760px; 285 302 border: 0; 286 303 background: #f6f7fb; … … 300 317 src="<?php echo esc_url($iframe_url); ?>" 301 318 ></iframe> 302 <script>303 (function() {304 var iframe = document.getElementById('popaeo-admin-iframe');305 if (!iframe) {306 return;307 }308 var iframeOrigin = '';309 try {310 iframeOrigin = new URL(iframe.src).origin;311 } catch (error) {312 return;313 }314 window.addEventListener('message', function(event) {315 var data = event.data || {};316 if (event.origin !== iframeOrigin || data.source !== 'popaeo-woocommerce-embed' || data.type !== 'resize') {317 return;318 }319 var height = parseInt(data.height, 10);320 if (!height || height < 900) {321 return;322 }323 iframe.style.height = Math.min(height + 48, 6000) + 'px';324 });325 })();326 </script>327 319 </div> 328 320 <?php -
popaeo-llms-txt/tags/0.3.0/readme.txt
r3585552 r3585559 5 5 Tested up to: 7.0 6 6 Requires PHP: 7.4 7 Stable tag: 0. 2.97 Stable tag: 0.3.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 95 95 == Changelog == 96 96 97 = 0.3.0 = 98 * Adjusted the embedded PopAEO workspace to use the visible WordPress admin viewport so modals and paid checkout prompts appear in view instead of below large blank space. 99 * Updated the WordPress Admin menu icon to better match the PopAEO app icon shape. 100 * Added installed-plugin row links for the official PopAEO website and plugin details. 101 97 102 = 0.2.9 = 98 103 * Dynamically resizes the embedded PopAEO workspace so bottom action buttons are visible without an extra iframe scroll. -
popaeo-llms-txt/trunk/popaeo-llms-txt.php
r3585552 r3585559 4 4 * Plugin URI: https://www.popaeo.com/docs 5 5 * Description: Helps WooCommerce stores improve AI recommendation readiness with PopAEO AEO audits, catalog signals, and llms.txt publishing. 6 * Version: 0. 2.96 * Version: 0.3.0 7 7 * Author: PopAEO 8 8 * Author URI: https://www.popaeo.com … … 32 32 33 33 function popaeo_llms_menu_icon() { 34 $svg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="#000" d="M 3 15.5V4.5h6.9c2.8 0 4.7 1.6 4.7 4.1s-1.9 4.1-4.7 4.1H6.5v2.8H3Zm3.5-5.7h3.1c1 0 1.6-.4 1.6-1.2s-.6-1.2-1.6-1.2H6.5v2.4Zm8 5.7-3-4.7h3.5l3 4.7h-3.5Z"/></svg>';34 $svg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="#000" d="M4.2 3h11.6C17 3 18 4 18 5.2v6.6c0 1.2-1 2.2-2.2 2.2H9.1l-4.4 3.2c-.6.4-1.4 0-1.4-.7V14c-.8-.3-1.3-1.1-1.3-2.1V5.2C2 4 3 3 4.2 3Zm2.5 7.8c0 .4.3.7.7.7h1.8l1.1 1.4c.3.4.9.4 1.2 0l3.3-4.5c.2-.3.2-.8-.2-1-.3-.2-.8-.2-1 .2l-2.7 3.6-1-1.2c-.1-.2-.3-.3-.6-.3H7.4c-.4 0-.7.3-.7.7v.4Z"/></svg>'; 35 35 return 'data:image/svg+xml;base64,' . base64_encode($svg); 36 36 } 37 38 function popaeo_llms_plugin_row_meta($links, $file) { 39 if ($file !== plugin_basename(__FILE__)) { 40 return $links; 41 } 42 43 $filtered_links = array_filter($links, function($link) { 44 return strpos($link, 'plugins/popaeo-llms-txt') === false 45 && strpos($link, 'www.popaeo.com/docs') === false; 46 }); 47 48 $filtered_links[] = '<a href="https://www.popaeo.com" target="_blank" rel="noopener noreferrer">访问插件官网</a>'; 49 $filtered_links[] = '<a href="' . esc_url(self_admin_url('plugin-install.php?tab=plugin-information&plugin=popaeo-llms-txt&TB_iframe=true&width=600&height=550')) . '" class="thickbox open-plugin-details-modal" aria-label="' . esc_attr__('View PopAEO plugin details', 'popaeo-llms-txt') . '">查看详情</a>'; 50 51 return $filtered_links; 52 } 53 add_filter('plugin_row_meta', 'popaeo_llms_plugin_row_meta', 10, 2); 37 54 38 55 function popaeo_llms_default_settings() { … … 281 298 display: block; 282 299 width: 100%; 283 height: 1400px;284 min-height: calc(100vh - 32px);300 height: calc(100vh - 32px); 301 min-height: 760px; 285 302 border: 0; 286 303 background: #f6f7fb; … … 300 317 src="<?php echo esc_url($iframe_url); ?>" 301 318 ></iframe> 302 <script>303 (function() {304 var iframe = document.getElementById('popaeo-admin-iframe');305 if (!iframe) {306 return;307 }308 var iframeOrigin = '';309 try {310 iframeOrigin = new URL(iframe.src).origin;311 } catch (error) {312 return;313 }314 window.addEventListener('message', function(event) {315 var data = event.data || {};316 if (event.origin !== iframeOrigin || data.source !== 'popaeo-woocommerce-embed' || data.type !== 'resize') {317 return;318 }319 var height = parseInt(data.height, 10);320 if (!height || height < 900) {321 return;322 }323 iframe.style.height = Math.min(height + 48, 6000) + 'px';324 });325 })();326 </script>327 319 </div> 328 320 <?php -
popaeo-llms-txt/trunk/readme.txt
r3585552 r3585559 5 5 Tested up to: 7.0 6 6 Requires PHP: 7.4 7 Stable tag: 0. 2.97 Stable tag: 0.3.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 95 95 == Changelog == 96 96 97 = 0.3.0 = 98 * Adjusted the embedded PopAEO workspace to use the visible WordPress admin viewport so modals and paid checkout prompts appear in view instead of below large blank space. 99 * Updated the WordPress Admin menu icon to better match the PopAEO app icon shape. 100 * Added installed-plugin row links for the official PopAEO website and plugin details. 101 97 102 = 0.2.9 = 98 103 * Dynamically resizes the embedded PopAEO workspace so bottom action buttons are visible without an extra iframe scroll.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)