Changeset 3382807
- Timestamp:
- 10/22/2025 04:46:32 PM (7 weeks ago)
- Location:
- coming-soon/trunk
- Files:
-
- 5 edited
-
admin/includes/class-seedprod-landing-pages-table.php (modified) (4 diffs)
-
admin/includes/settings-functions.php (modified) (3 diffs)
-
admin/includes/template-functions.php (modified) (1 diff)
-
coming-soon.php (modified) (2 diffs)
-
languages/coming-soon.pot (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
coming-soon/trunk/admin/includes/class-seedprod-landing-pages-table.php
r3382013 r3382807 152 152 */ 153 153 protected function column_url( $item ) { 154 // Use ?page_id= format like old Vue system (matching Dashboard-Pro.vue) 155 $url = home_url( '?page_id=' . $item['ID'] ); 154 // Use get_permalink() to respect permalink settings 155 // This will show pretty URLs when permalinks are enabled, or ?page_id= when they're not 156 $url = get_permalink( $item['ID'] ); 156 157 157 158 return sprintf( … … 307 308 ); 308 309 309 // Query to get counts - ONLY landing pages (template_type = 'lp') 310 // Get special page IDs to exclude (Coming Soon, Maintenance, 404, Login) 311 $csp_id = get_option( 'seedprod_coming_soon_page_id' ); 312 $mmp_id = get_option( 'seedprod_maintenance_mode_page_id' ); 313 $p404_id = get_option( 'seedprod_404_page_id' ); 314 $loginp_id = get_option( 'seedprod_login_page_id' ); 315 316 // Build exclusion list (only include non-empty IDs) 317 $exclude_ids = array_filter( array( $csp_id, $mmp_id, $p404_id, $loginp_id ) ); 318 319 // Build WHERE clause for exclusions 320 $exclude_clause = ''; 321 if ( ! empty( $exclude_ids ) ) { 322 $exclude_ids_string = implode( ',', array_map( 'absint', $exclude_ids ) ); 323 $exclude_clause = "AND p.ID NOT IN ($exclude_ids_string)"; 324 } 325 326 // Query to get counts - All pages with _seedprod_page (landing pages only, excludes theme pages) 310 327 $results = $wpdb->get_results( 311 328 "SELECT p.post_status, COUNT(*) as count 312 329 FROM {$wpdb->posts} p 313 INNER JOIN {$wpdb->postmeta} pm_uuid ON (p.ID = pm_uuid.post_id AND pm_uuid.meta_key = '_seedprod_page_uuid') 314 INNER JOIN {$wpdb->postmeta} pm_type ON (p.ID = pm_type.post_id AND pm_type.meta_key = '_seedprod_page_template_type') 330 INNER JOIN {$wpdb->postmeta} pm ON (p.ID = pm.post_id AND pm.meta_key = '_seedprod_page') 315 331 WHERE p.post_type = 'page' 316 AND pm_type.meta_value = 'lp'332 $exclude_clause 317 333 GROUP BY p.post_status", 318 334 ARRAY_A … … 354 370 $offset = ( $current_page - 1 ) * $per_page; 355 371 356 // Build query args - ONLY show landing pages (template_type = 'lp') 372 // Get special page IDs to exclude (Coming Soon, Maintenance, 404, Login) 373 $csp_id = get_option( 'seedprod_coming_soon_page_id' ); 374 $mmp_id = get_option( 'seedprod_maintenance_mode_page_id' ); 375 $p404_id = get_option( 'seedprod_404_page_id' ); 376 $loginp_id = get_option( 'seedprod_login_page_id' ); 377 378 // Build exclusion list (only include non-empty IDs) 379 $exclude_ids = array_filter( array( $csp_id, $mmp_id, $p404_id, $loginp_id ) ); 380 381 // Build query args - All pages with _seedprod_page (landing pages only, excludes theme pages) 357 382 $args = array( 358 383 'post_type' => 'page', … … 360 385 'offset' => $offset, 361 386 'post_status' => 'any', 387 'post__not_in' => $exclude_ids, 362 388 'meta_query' => array( 363 'relation' => 'AND',364 389 array( 365 'key' => '_seedprod_page _uuid',390 'key' => '_seedprod_page', 366 391 'compare' => 'EXISTS', 367 392 ), 368 array(369 'key' => '_seedprod_page_template_type',370 'value' => 'lp',371 'compare' => '=',372 ),373 393 ), 374 394 ); 375 376 // Note: No need to exclude special pages anymore - they have template_type cs/mm/404/loginpage, not 'lp'377 395 378 396 // Filter by status -
coming-soon/trunk/admin/includes/settings-functions.php
r3381273 r3382807 121 121 $stats['theme_templates_count'] = $wpdb->get_var( "SELECT COUNT(DISTINCT post_id) FROM $tablename WHERE meta_key = '_seedprod_is_theme_template' AND meta_value = '1'" ); 122 122 123 // Count landing pages: pages with _seedprod_page_uuid that are NOT special pages and NOT theme templates 123 // Count landing pages: pages with _seedprod_page that are NOT special pages 124 // Using _seedprod_page (not _seedprod_page_uuid) ensures we only count landing pages, not theme pages 124 125 // Match the logic from class-seedprod-landing-pages-table.php 125 126 if ( ! empty( $exclude_ids ) ) { … … 129 130 FROM $tablename pm 130 131 INNER JOIN $posts_table p ON pm.post_id = p.ID 131 WHERE pm.meta_key = '_seedprod_page _uuid'132 WHERE pm.meta_key = '_seedprod_page' 132 133 AND p.post_type = 'page' 133 134 AND p.post_status != 'trash' … … 139 140 FROM $tablename pm 140 141 INNER JOIN $posts_table p ON pm.post_id = p.ID 141 WHERE pm.meta_key = '_seedprod_page _uuid'142 WHERE pm.meta_key = '_seedprod_page' 142 143 AND p.post_type = 'page' 143 144 AND p.post_status != 'trash'" -
coming-soon/trunk/admin/includes/template-functions.php
r3382013 r3382807 613 613 '_seedprod_page_type', 614 614 '_seedprod_page_template_id', 615 '_seedprod_page_template_type', 615 616 ); 616 617 -
coming-soon/trunk/coming-soon.php
r3382013 r3382807 4 4 Plugin URI: https://www.seedprod.com/lite-upgrade/?utm_source=WordPress&utm_campaign=liteplugin&utm_medium=plugin-uri-link 5 5 Description: The Easiest WordPress Drag & Drop Page Builder that allows you to build your website, create Landing Pages, Coming Soon Pages, Maintenance Mode Pages and more. 6 Version: 6.19. 16 Version: 6.19.3 7 7 Author: SeedProd 8 8 Author URI: https://www.seedprod.com/lite-upgrade/?utm_source=WordPress&utm_campaign=liteplugin&utm_medium=author-uri-link … … 18 18 define( 'SEEDPROD_BUILD', 'lite' ); 19 19 define( 'SEEDPROD_SLUG', 'coming-soon/coming-soon.php' ); 20 define( 'SEEDPROD_VERSION', '6.19. 1' );20 define( 'SEEDPROD_VERSION', '6.19.3' ); 21 21 define( 'SEEDPROD_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); 22 22 // Example output: /Applications/MAMP/htdocs/wordpress/wp-content/plugins/seedprod/ -
coming-soon/trunk/languages/coming-soon.pot
r3382013 r3382807 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd 6.19. 1\n"5 "Project-Id-Version: Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd 6.19.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/coming-soon\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-10-2 1T15:30:02+00:00\n"12 "POT-Creation-Date: 2025-10-22T16:11:14+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 1278 1278 1279 1279 #: admin/includes/class-seedprod-landing-pages-table.php:123 1280 #: admin/includes/class-seedprod-landing-pages-table.php:17 21281 #: admin/includes/class-seedprod-landing-pages-table.php:28 41280 #: admin/includes/class-seedprod-landing-pages-table.php:173 1281 #: admin/includes/class-seedprod-landing-pages-table.php:285 1282 1282 #: admin/includes/class-seedprod-theme-templates-table.php:199 1283 1283 #: admin/partials/seedprod-admin-website-builder.php:230 … … 1286 1286 1287 1287 #: admin/includes/class-seedprod-landing-pages-table.php:130 1288 #: admin/includes/class-seedprod-landing-pages-table.php:22 51288 #: admin/includes/class-seedprod-landing-pages-table.php:226 1289 1289 #: admin/includes/class-seedprod-theme-templates-table.php:186 1290 1290 #: admin/includes/class-seedprod-theme-templates-table.php:240 … … 1293 1293 1294 1294 #: admin/includes/class-seedprod-landing-pages-table.php:137 1295 #: admin/includes/class-seedprod-landing-pages-table.php:22 61295 #: admin/includes/class-seedprod-landing-pages-table.php:227 1296 1296 #: admin/includes/class-seedprod-theme-templates-table.php:192 1297 1297 #: admin/includes/class-seedprod-theme-templates-table.php:241 … … 1299 1299 msgstr "" 1300 1300 1301 #: admin/includes/class-seedprod-landing-pages-table.php:17 01302 #: admin/includes/class-seedprod-landing-pages-table.php:26 01301 #: admin/includes/class-seedprod-landing-pages-table.php:171 1302 #: admin/includes/class-seedprod-landing-pages-table.php:261 1303 1303 #: admin/includes/class-seedprod-theme-templates-table.php:45 1304 1304 #: admin/partials/seedprod-admin-website-builder.php:216 … … 1306 1306 msgstr "" 1307 1307 1308 #: admin/includes/class-seedprod-landing-pages-table.php:17 11308 #: admin/includes/class-seedprod-landing-pages-table.php:172 1309 1309 #: languages/seedprod-lite.php:948 1310 1310 msgid "Draft" 1311 1311 msgstr "" 1312 1312 1313 #: admin/includes/class-seedprod-landing-pages-table.php:17 31313 #: admin/includes/class-seedprod-landing-pages-table.php:174 1314 1314 msgid "Private" 1315 1315 msgstr "" 1316 1316 1317 #: admin/includes/class-seedprod-landing-pages-table.php:19 31317 #: admin/includes/class-seedprod-landing-pages-table.php:194 1318 1318 msgid "Unpublished" 1319 1319 msgstr "" 1320 1320 1321 #: admin/includes/class-seedprod-landing-pages-table.php:20 01321 #: admin/includes/class-seedprod-landing-pages-table.php:201 1322 1322 #, php-format 1323 1323 msgid "%s ago" 1324 1324 msgstr "" 1325 1325 1326 #: admin/includes/class-seedprod-landing-pages-table.php:20 21326 #: admin/includes/class-seedprod-landing-pages-table.php:203 1327 1327 #: languages/seedprod-lite.php:8902 1328 1328 msgid "F j, Y" 1329 1329 msgstr "" 1330 1330 1331 #: admin/includes/class-seedprod-landing-pages-table.php:20 41331 #: admin/includes/class-seedprod-landing-pages-table.php:205 1332 1332 msgid "F j, Y \\a\\t g:i a" 1333 1333 msgstr "" 1334 1334 1335 #: admin/includes/class-seedprod-landing-pages-table.php:2 091335 #: admin/includes/class-seedprod-landing-pages-table.php:210 1336 1336 msgid "Last Modified" 1337 1337 msgstr "" 1338 1338 1339 #: admin/includes/class-seedprod-landing-pages-table.php:2 191339 #: admin/includes/class-seedprod-landing-pages-table.php:220 1340 1340 #: admin/includes/class-seedprod-theme-templates-table.php:243 1341 1341 msgid "Move to Trash" 1342 1342 msgstr "" 1343 1343 1344 #: admin/includes/class-seedprod-landing-pages-table.php:2 491344 #: admin/includes/class-seedprod-landing-pages-table.php:250 1345 1345 #: admin/partials/seedprod-admin-template-selection.php:138 1346 1346 #: admin/partials/seedprod-admin-theme-kits-selection.php:56 … … 1350 1350 msgstr "" 1351 1351 1352 #: admin/includes/class-seedprod-landing-pages-table.php:27 21352 #: admin/includes/class-seedprod-landing-pages-table.php:273 1353 1353 #: admin/partials/seedprod-admin-website-builder.php:223 1354 1354 msgid "Drafts" 1355 1355 msgstr "" 1356 1356 1357 #: admin/includes/class-seedprod-landing-pages-table.php:4 531357 #: admin/includes/class-seedprod-landing-pages-table.php:471 1358 1358 msgid "No landing pages found for your search." 1359 1359 msgstr "" 1360 1360 1361 #: admin/includes/class-seedprod-landing-pages-table.php:4 551361 #: admin/includes/class-seedprod-landing-pages-table.php:473 1362 1362 msgid "No landing pages found." 1363 1363 msgstr "" … … 1465 1465 #: admin/includes/license-functions.php:173 1466 1466 #: admin/includes/template-functions.php:551 1467 #: admin/includes/template-functions.php:64 51468 #: admin/includes/template-functions.php:68 01469 #: admin/includes/template-functions.php:71 51470 #: admin/includes/template-functions.php:75 01467 #: admin/includes/template-functions.php:646 1468 #: admin/includes/template-functions.php:681 1469 #: admin/includes/template-functions.php:716 1470 #: admin/includes/template-functions.php:751 1471 1471 msgid "Security check failed." 1472 1472 msgstr "" … … 2180 2180 2181 2181 #: admin/includes/template-functions.php:563 2182 #: admin/includes/template-functions.php:65 72183 #: admin/includes/template-functions.php:69 22184 #: admin/includes/template-functions.php:72 72182 #: admin/includes/template-functions.php:658 2183 #: admin/includes/template-functions.php:693 2184 #: admin/includes/template-functions.php:728 2185 2185 msgid "Invalid page ID." 2186 2186 msgstr "" … … 2190 2190 msgstr "" 2191 2191 2192 #: admin/includes/template-functions.php:6 292192 #: admin/includes/template-functions.php:630 2193 2193 msgid "Page duplicated successfully." 2194 2194 msgstr "" 2195 2195 2196 #: admin/includes/template-functions.php:65 02196 #: admin/includes/template-functions.php:651 2197 2197 msgid "You do not have permission to trash pages." 2198 2198 msgstr "" 2199 2199 2200 #: admin/includes/template-functions.php:66 42200 #: admin/includes/template-functions.php:665 2201 2201 msgid "Failed to trash page." 2202 2202 msgstr "" 2203 2203 2204 #: admin/includes/template-functions.php:6 692204 #: admin/includes/template-functions.php:670 2205 2205 msgid "Page moved to trash." 2206 2206 msgstr "" 2207 2207 2208 #: admin/includes/template-functions.php:68 52208 #: admin/includes/template-functions.php:686 2209 2209 msgid "You do not have permission to restore pages." 2210 2210 msgstr "" 2211 2211 2212 #: admin/includes/template-functions.php: 6992212 #: admin/includes/template-functions.php:700 2213 2213 msgid "Failed to restore page." 2214 2214 msgstr "" 2215 2215 2216 #: admin/includes/template-functions.php:70 42216 #: admin/includes/template-functions.php:705 2217 2217 msgid "Page restored successfully." 2218 2218 msgstr "" 2219 2219 2220 #: admin/includes/template-functions.php:72 02220 #: admin/includes/template-functions.php:721 2221 2221 msgid "You do not have permission to delete pages." 2222 2222 msgstr "" 2223 2223 2224 #: admin/includes/template-functions.php:73 42224 #: admin/includes/template-functions.php:735 2225 2225 msgid "Failed to delete page." 2226 2226 msgstr "" 2227 2227 2228 #: admin/includes/template-functions.php:7 392228 #: admin/includes/template-functions.php:740 2229 2229 msgid "Page deleted permanently." 2230 2230 msgstr "" 2231 2231 2232 #: admin/includes/template-functions.php:75 52232 #: admin/includes/template-functions.php:756 2233 2233 msgid "You do not have permission to perform bulk actions." 2234 2234 msgstr "" 2235 2235 2236 #: admin/includes/template-functions.php:76 32236 #: admin/includes/template-functions.php:764 2237 2237 #: admin/includes/theme-functions.php:578 2238 2238 msgid "Invalid request." 2239 2239 msgstr "" 2240 2240 2241 #: admin/includes/template-functions.php:79 42241 #: admin/includes/template-functions.php:795 2242 2242 #, php-format 2243 2243 msgid "%d pages moved to trash." 2244 2244 msgstr "" 2245 2245 2246 #: admin/includes/template-functions.php:79 72246 #: admin/includes/template-functions.php:798 2247 2247 #, php-format 2248 2248 msgid "%d pages restored." 2249 2249 msgstr "" 2250 2250 2251 #: admin/includes/template-functions.php:80 02251 #: admin/includes/template-functions.php:801 2252 2252 #, php-format 2253 2253 msgid "%d pages deleted permanently." 2254 2254 msgstr "" 2255 2255 2256 #: admin/includes/template-functions.php:80 52256 #: admin/includes/template-functions.php:806 2257 2257 #, php-format 2258 2258 msgid "%d pages failed."
Note: See TracChangeset
for help on using the changeset viewer.