Plugin Directory

Changeset 3491907


Ignore:
Timestamp:
03/26/2026 03:09:54 PM (9 days ago)
Author:
intellasoftsolutions
Message:

Update to version 1.69.0 from GitHub

Location:
seo-landing-page-generator
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • seo-landing-page-generator/tags/1.69.0/includes/class-issslpg.php

    r3491886 r3491907  
    271271//      $this->loader->add_filter( 'wp_footer',              $public_plugin, 'save_cache_record',           9999, 0 );
    272272        $this->loader->add_filter( 'template_include',       $public_plugin, 'landing_page_theme_template',   99, 1 );
     273        $this->loader->add_filter( 'get_post_metadata',      $public_plugin, 'filter_landing_page_template_meta', 10, 4 );
    273274        add_filter( 'widget_text', 'do_shortcode' ); // Activate shortcodes in widgets
    274275        add_filter( 'the_excerpt', 'do_shortcode' ); // Activate shortcodes in excerpts
  • seo-landing-page-generator/tags/1.69.0/public/class-issslpg-public.php

    r3491886 r3491907  
    121121    function landing_page_theme_template( $template ) {
    122122        if ( ISSSLPG_Landing_Page::is_landing_page() ) {
     123            // Block themes handle template resolution via the block template
     124            // system; the _wp_page_template meta filter takes care of it.
     125            if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) {
     126                return $template;
     127            }
     128
    123129            $page_template_setting = ISSSLPG_Options::get_setting( 'landing_page_template_file', 'single-issslpg-landing-page.php' );
    124130            $page_template = locate_template( array( $page_template_setting, 'page.php' ) );
     
    129135
    130136        return $template;
     137    }
     138
     139    /**
     140     * Filter the _wp_page_template meta for landing pages.
     141     *
     142     * Makes WordPress's template resolver (both classic and block) use the
     143     * template selected in the plugin settings, without writing to the DB.
     144     *
     145     * @since    1.30.0
     146     * @wp-hook  get_post_metadata
     147     */
     148    function filter_landing_page_template_meta( $value, $object_id, $meta_key, $single ) {
     149        if ( '_wp_page_template' !== $meta_key ) {
     150            return $value;
     151        }
     152
     153        if ( 'issslpg-landing-page' !== get_post_type( $object_id ) ) {
     154            return $value;
     155        }
     156
     157        $page_template_setting = ISSSLPG_Options::get_setting( 'landing_page_template_file', 'single-issslpg-landing-page.php' );
     158
     159        // If using the default, don't interfere with normal resolution.
     160        if ( 'single-issslpg-landing-page.php' === $page_template_setting ) {
     161            return $value;
     162        }
     163
     164        // For block themes, strip the .php extension (block templates use slugs).
     165        if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) {
     166            $page_template_setting = str_replace( '.php', '', $page_template_setting );
     167        }
     168
     169        if ( $single ) {
     170            return $page_template_setting;
     171        }
     172
     173        return array( $page_template_setting );
    131174    }
    132175
  • seo-landing-page-generator/tags/1.69.0/readme.txt

    r3491886 r3491907  
    55Tested up to: 7.0
    66Requires PHP: 7.2
    7 Stable tag: 1.68.0
     7Stable tag: 1.69.0
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl.html
  • seo-landing-page-generator/tags/1.69.0/seo-landing-page-generator.php

    r3491886 r3491907  
    1616 * Plugin URI:        https://intellasoftplugins.com/
    1717 * Description:       Generate landing pages in bulk based on location with randomized content. Update thousands of landing pages in seconds.
    18  * Version:           1.68.0
     18 * Version:           1.69.0
    1919 * Author:            IntellaSoft Solutions
    2020 * Author URI:        https://intellasoftplugins.com/
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define( 'ISSSLPG_VERSION', '1.68.0' );
     43define( 'ISSSLPG_VERSION', '1.69.0' );
    4444define( 'ISSSLPG_BASENAME', plugin_basename(__FILE__) );
    4545
  • seo-landing-page-generator/trunk/includes/class-issslpg.php

    r3491886 r3491907  
    271271//      $this->loader->add_filter( 'wp_footer',              $public_plugin, 'save_cache_record',           9999, 0 );
    272272        $this->loader->add_filter( 'template_include',       $public_plugin, 'landing_page_theme_template',   99, 1 );
     273        $this->loader->add_filter( 'get_post_metadata',      $public_plugin, 'filter_landing_page_template_meta', 10, 4 );
    273274        add_filter( 'widget_text', 'do_shortcode' ); // Activate shortcodes in widgets
    274275        add_filter( 'the_excerpt', 'do_shortcode' ); // Activate shortcodes in excerpts
  • seo-landing-page-generator/trunk/public/class-issslpg-public.php

    r3491886 r3491907  
    121121    function landing_page_theme_template( $template ) {
    122122        if ( ISSSLPG_Landing_Page::is_landing_page() ) {
     123            // Block themes handle template resolution via the block template
     124            // system; the _wp_page_template meta filter takes care of it.
     125            if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) {
     126                return $template;
     127            }
     128
    123129            $page_template_setting = ISSSLPG_Options::get_setting( 'landing_page_template_file', 'single-issslpg-landing-page.php' );
    124130            $page_template = locate_template( array( $page_template_setting, 'page.php' ) );
     
    129135
    130136        return $template;
     137    }
     138
     139    /**
     140     * Filter the _wp_page_template meta for landing pages.
     141     *
     142     * Makes WordPress's template resolver (both classic and block) use the
     143     * template selected in the plugin settings, without writing to the DB.
     144     *
     145     * @since    1.30.0
     146     * @wp-hook  get_post_metadata
     147     */
     148    function filter_landing_page_template_meta( $value, $object_id, $meta_key, $single ) {
     149        if ( '_wp_page_template' !== $meta_key ) {
     150            return $value;
     151        }
     152
     153        if ( 'issslpg-landing-page' !== get_post_type( $object_id ) ) {
     154            return $value;
     155        }
     156
     157        $page_template_setting = ISSSLPG_Options::get_setting( 'landing_page_template_file', 'single-issslpg-landing-page.php' );
     158
     159        // If using the default, don't interfere with normal resolution.
     160        if ( 'single-issslpg-landing-page.php' === $page_template_setting ) {
     161            return $value;
     162        }
     163
     164        // For block themes, strip the .php extension (block templates use slugs).
     165        if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) {
     166            $page_template_setting = str_replace( '.php', '', $page_template_setting );
     167        }
     168
     169        if ( $single ) {
     170            return $page_template_setting;
     171        }
     172
     173        return array( $page_template_setting );
    131174    }
    132175
  • seo-landing-page-generator/trunk/readme.txt

    r3491886 r3491907  
    55Tested up to: 7.0
    66Requires PHP: 7.2
    7 Stable tag: 1.68.0
     7Stable tag: 1.69.0
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl.html
  • seo-landing-page-generator/trunk/seo-landing-page-generator.php

    r3491886 r3491907  
    1616 * Plugin URI:        https://intellasoftplugins.com/
    1717 * Description:       Generate landing pages in bulk based on location with randomized content. Update thousands of landing pages in seconds.
    18  * Version:           1.68.0
     18 * Version:           1.69.0
    1919 * Author:            IntellaSoft Solutions
    2020 * Author URI:        https://intellasoftplugins.com/
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define( 'ISSSLPG_VERSION', '1.68.0' );
     43define( 'ISSSLPG_VERSION', '1.69.0' );
    4444define( 'ISSSLPG_BASENAME', plugin_basename(__FILE__) );
    4545
Note: See TracChangeset for help on using the changeset viewer.