Plugin Directory

Changeset 3147600


Ignore:
Timestamp:
09/06/2024 02:23:16 PM (19 months ago)
Author:
farmtab
Message:

Update file

Location:
farmtab-products-shortcode/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • farmtab-products-shortcode/trunk/productpage-iframe.php

    r3147595 r3147600  
    55Plugin Name: FarmTab Products Shortcode
    66Description: A plugin to display FarmTab products using a shortcode.
    7 Version: 1.0.1
     7Version: 1.0.2
    88Author: FarmersTable LLC, FarmTab
    99License: GPLv2 or later
     
    5454                resizeIframe(iframe);
    5555            });
     56
     57            // Listen for messages from the iframe
     58            window.addEventListener("message", function(event) {
     59                if (event.origin !== "https://www.farmtab.com") {
     60                    return;
     61                }
     62                if (event.data.type === "resize") {
     63                    iframe.style.height = event.data.height + "px";
     64                }
     65            });
    5666        });
    5767    ';
  • farmtab-products-shortcode/trunk/readme.txt

    r3147595 r3147600  
    44Requires at least: 5.0
    55Tested up to: 6.6
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.