Plugin Directory

Changeset 3585559


Ignore:
Timestamp:
06/25/2026 02:47:20 AM (4 months ago)
Author:
marcusxue
Message:

Release PopAEO 0.3.0

Location:
popaeo-llms-txt
Files:
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • popaeo-llms-txt/tags/0.3.0/popaeo-llms-txt.php

    r3585552 r3585559  
    44 * Plugin URI: https://www.popaeo.com/docs
    55 * Description: Helps WooCommerce stores improve AI recommendation readiness with PopAEO AEO audits, catalog signals, and llms.txt publishing.
    6  * Version: 0.2.9
     6 * Version: 0.3.0
    77 * Author: PopAEO
    88 * Author URI: https://www.popaeo.com
    … …  
    3232
    3333function popaeo_llms_menu_icon() {
    34     $svg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="#000" d="M3 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>';
    3535    return 'data:image/svg+xml;base64,' . base64_encode($svg);
    3636}
     37
     38function 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}
     53add_filter('plugin_row_meta', 'popaeo_llms_plugin_row_meta', 10, 2);
    3754
    3855function popaeo_llms_default_settings() {
    … …  
    281298                    display: block;
    282299                    width: 100%;
    283                     height: 1400px;
    284                     min-height: calc(100vh - 32px);
     300                    height: calc(100vh - 32px);
     301                    min-height: 760px;
    285302                    border: 0;
    286303                    background: #f6f7fb;
    … …  
    300317                src="<?php echo esc_url($iframe_url); ?>"
    301318            ></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>
    327319        </div>
    328320        <?php
  • popaeo-llms-txt/tags/0.3.0/readme.txt

    r3585552 r3585559  
    55Tested up to: 7.0
    66Requires PHP: 7.4
    7 Stable tag: 0.2.9
     7Stable tag: 0.3.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    9595== Changelog ==
    9696
     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
    97102= 0.2.9 =
    98103* 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  
    44 * Plugin URI: https://www.popaeo.com/docs
    55 * Description: Helps WooCommerce stores improve AI recommendation readiness with PopAEO AEO audits, catalog signals, and llms.txt publishing.
    6  * Version: 0.2.9
     6 * Version: 0.3.0
    77 * Author: PopAEO
    88 * Author URI: https://www.popaeo.com
    … …  
    3232
    3333function popaeo_llms_menu_icon() {
    34     $svg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="#000" d="M3 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>';
    3535    return 'data:image/svg+xml;base64,' . base64_encode($svg);
    3636}
     37
     38function 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}
     53add_filter('plugin_row_meta', 'popaeo_llms_plugin_row_meta', 10, 2);
    3754
    3855function popaeo_llms_default_settings() {
    … …  
    281298                    display: block;
    282299                    width: 100%;
    283                     height: 1400px;
    284                     min-height: calc(100vh - 32px);
     300                    height: calc(100vh - 32px);
     301                    min-height: 760px;
    285302                    border: 0;
    286303                    background: #f6f7fb;
    … …  
    300317                src="<?php echo esc_url($iframe_url); ?>"
    301318            ></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>
    327319        </div>
    328320        <?php
  • popaeo-llms-txt/trunk/readme.txt

    r3585552 r3585559  
    55Tested up to: 7.0
    66Requires PHP: 7.4
    7 Stable tag: 0.2.9
     7Stable tag: 0.3.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    9595== Changelog ==
    9696
     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
    97102= 0.2.9 =
    98103* 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.