Changeset 3491907
- Timestamp:
- 03/26/2026 03:09:54 PM (9 days ago)
- Location:
- seo-landing-page-generator
- Files:
-
- 8 edited
- 1 copied
-
tags/1.69.0 (copied) (copied from seo-landing-page-generator/trunk)
-
tags/1.69.0/includes/class-issslpg.php (modified) (1 diff)
-
tags/1.69.0/public/class-issslpg-public.php (modified) (2 diffs)
-
tags/1.69.0/readme.txt (modified) (1 diff)
-
tags/1.69.0/seo-landing-page-generator.php (modified) (2 diffs)
-
trunk/includes/class-issslpg.php (modified) (1 diff)
-
trunk/public/class-issslpg-public.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/seo-landing-page-generator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seo-landing-page-generator/tags/1.69.0/includes/class-issslpg.php
r3491886 r3491907 271 271 // $this->loader->add_filter( 'wp_footer', $public_plugin, 'save_cache_record', 9999, 0 ); 272 272 $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 ); 273 274 add_filter( 'widget_text', 'do_shortcode' ); // Activate shortcodes in widgets 274 275 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 121 121 function landing_page_theme_template( $template ) { 122 122 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 123 129 $page_template_setting = ISSSLPG_Options::get_setting( 'landing_page_template_file', 'single-issslpg-landing-page.php' ); 124 130 $page_template = locate_template( array( $page_template_setting, 'page.php' ) ); … … 129 135 130 136 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 ); 131 174 } 132 175 -
seo-landing-page-generator/tags/1.69.0/readme.txt
r3491886 r3491907 5 5 Tested up to: 7.0 6 6 Requires PHP: 7.2 7 Stable tag: 1.6 8.07 Stable tag: 1.69.0 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl.html -
seo-landing-page-generator/tags/1.69.0/seo-landing-page-generator.php
r3491886 r3491907 16 16 * Plugin URI: https://intellasoftplugins.com/ 17 17 * Description: Generate landing pages in bulk based on location with randomized content. Update thousands of landing pages in seconds. 18 * Version: 1.6 8.018 * Version: 1.69.0 19 19 * Author: IntellaSoft Solutions 20 20 * Author URI: https://intellasoftplugins.com/ … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define( 'ISSSLPG_VERSION', '1.6 8.0' );43 define( 'ISSSLPG_VERSION', '1.69.0' ); 44 44 define( 'ISSSLPG_BASENAME', plugin_basename(__FILE__) ); 45 45 -
seo-landing-page-generator/trunk/includes/class-issslpg.php
r3491886 r3491907 271 271 // $this->loader->add_filter( 'wp_footer', $public_plugin, 'save_cache_record', 9999, 0 ); 272 272 $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 ); 273 274 add_filter( 'widget_text', 'do_shortcode' ); // Activate shortcodes in widgets 274 275 add_filter( 'the_excerpt', 'do_shortcode' ); // Activate shortcodes in excerpts -
seo-landing-page-generator/trunk/public/class-issslpg-public.php
r3491886 r3491907 121 121 function landing_page_theme_template( $template ) { 122 122 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 123 129 $page_template_setting = ISSSLPG_Options::get_setting( 'landing_page_template_file', 'single-issslpg-landing-page.php' ); 124 130 $page_template = locate_template( array( $page_template_setting, 'page.php' ) ); … … 129 135 130 136 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 ); 131 174 } 132 175 -
seo-landing-page-generator/trunk/readme.txt
r3491886 r3491907 5 5 Tested up to: 7.0 6 6 Requires PHP: 7.2 7 Stable tag: 1.6 8.07 Stable tag: 1.69.0 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl.html -
seo-landing-page-generator/trunk/seo-landing-page-generator.php
r3491886 r3491907 16 16 * Plugin URI: https://intellasoftplugins.com/ 17 17 * Description: Generate landing pages in bulk based on location with randomized content. Update thousands of landing pages in seconds. 18 * Version: 1.6 8.018 * Version: 1.69.0 19 19 * Author: IntellaSoft Solutions 20 20 * Author URI: https://intellasoftplugins.com/ … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define( 'ISSSLPG_VERSION', '1.6 8.0' );43 define( 'ISSSLPG_VERSION', '1.69.0' ); 44 44 define( 'ISSSLPG_BASENAME', plugin_basename(__FILE__) ); 45 45
Note: See TracChangeset
for help on using the changeset viewer.