Changeset 3045132
- Timestamp:
- 03/04/2024 03:46:22 PM (2 years ago)
- Location:
- diagnoseo
- Files:
-
- 10 edited
- 37 copied
-
tags/1.2.28 (copied) (copied from diagnoseo/trunk)
-
tags/1.2.28/css/diagnoseo-admin.css (copied) (copied from diagnoseo/trunk/css/diagnoseo-admin.css)
-
tags/1.2.28/css/diagnoseo-editor.css (copied) (copied from diagnoseo/trunk/css/diagnoseo-editor.css)
-
tags/1.2.28/diagnoseo.php (copied) (copied from diagnoseo/trunk/diagnoseo.php) (2 diffs)
-
tags/1.2.28/includes/admin-bar-menu.php (copied) (copied from diagnoseo/trunk/includes/admin-bar-menu.php) (1 diff)
-
tags/1.2.28/includes/api-endpoints.php (copied) (copied from diagnoseo/trunk/includes/api-endpoints.php)
-
tags/1.2.28/includes/assets.php (copied) (copied from diagnoseo/trunk/includes/assets.php)
-
tags/1.2.28/includes/blocks.php (copied) (copied from diagnoseo/trunk/includes/blocks.php)
-
tags/1.2.28/includes/blocks/breadcrumbs/breadcrumbs.php (copied) (copied from diagnoseo/trunk/includes/blocks/breadcrumbs/breadcrumbs.php)
-
tags/1.2.28/includes/category-links.php (copied) (copied from diagnoseo/trunk/includes/category-links.php) (2 diffs)
-
tags/1.2.28/includes/class-diagnoseo-breadcrumbs.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-breadcrumbs.php)
-
tags/1.2.28/includes/class-diagnoseo-generalsettings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-generalsettings.php)
-
tags/1.2.28/includes/class-diagnoseo-metatags.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-metatags.php) (1 diff)
-
tags/1.2.28/includes/class-diagnoseo-metatagsettings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-metatagsettings.php) (19 diffs)
-
tags/1.2.28/includes/class-diagnoseo-schemasettings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-schemasettings.php) (13 diffs)
-
tags/1.2.28/includes/class-diagnoseo-settings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-settings.php) (3 diffs)
-
tags/1.2.28/includes/class-diagnoseo-settingshelper.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-settingshelper.php)
-
tags/1.2.28/includes/class-diagnoseo-socialsettings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-socialsettings.php)
-
tags/1.2.28/includes/content-watcher-meta.php (copied) (copied from diagnoseo/trunk/includes/content-watcher-meta.php)
-
tags/1.2.28/includes/content-watcher-scripts.php (copied) (copied from diagnoseo/trunk/includes/content-watcher-scripts.php)
-
tags/1.2.28/includes/customize/breadcrumbs.php (copied) (copied from diagnoseo/trunk/includes/customize/breadcrumbs.php)
-
tags/1.2.28/includes/customize/customize-utils.php (copied) (copied from diagnoseo/trunk/includes/customize/customize-utils.php)
-
tags/1.2.28/includes/customize/defaults.php (copied) (copied from diagnoseo/trunk/includes/customize/defaults.php)
-
tags/1.2.28/includes/metabox-seo-settings.php (copied) (copied from diagnoseo/trunk/includes/metabox-seo-settings.php) (3 diffs)
-
tags/1.2.28/includes/option-defaults.php (copied) (copied from diagnoseo/trunk/includes/option-defaults.php)
-
tags/1.2.28/includes/sitemap.php (copied) (copied from diagnoseo/trunk/includes/sitemap.php)
-
tags/1.2.28/includes/structured-data.php (copied) (copied from diagnoseo/trunk/includes/structured-data.php) (1 diff)
-
tags/1.2.28/includes/utils.php (copied) (copied from diagnoseo/trunk/includes/utils.php)
-
tags/1.2.28/js/blocks/breadcrumbs.min.js (copied) (copied from diagnoseo/trunk/js/blocks/breadcrumbs.min.js)
-
tags/1.2.28/js/build/index.js (copied) (copied from diagnoseo/trunk/js/build/index.js)
-
tags/1.2.28/js/diagnoseo-checks.min.js (copied) (copied from diagnoseo/trunk/js/diagnoseo-checks.min.js)
-
tags/1.2.28/js/diagnoseo-editor-metabox.min.js (copied) (copied from diagnoseo/trunk/js/diagnoseo-editor-metabox.min.js)
-
tags/1.2.28/js/diagnoseo-editor.min.js (copied) (copied from diagnoseo/trunk/js/diagnoseo-editor.min.js)
-
tags/1.2.28/js/diagnoseo.min.js (copied) (copied from diagnoseo/trunk/js/diagnoseo.min.js)
-
tags/1.2.28/languages (copied) (copied from diagnoseo/trunk/languages)
-
tags/1.2.28/readme.txt (copied) (copied from diagnoseo/trunk/readme.txt) (1 diff)
-
tags/1.2.28/wpml-config.xml (copied) (copied from diagnoseo/trunk/wpml-config.xml)
-
trunk/diagnoseo.php (modified) (2 diffs)
-
trunk/includes/admin-bar-menu.php (modified) (1 diff)
-
trunk/includes/category-links.php (modified) (2 diffs)
-
trunk/includes/class-diagnoseo-metatags.php (modified) (1 diff)
-
trunk/includes/class-diagnoseo-metatagsettings.php (modified) (19 diffs)
-
trunk/includes/class-diagnoseo-schemasettings.php (modified) (13 diffs)
-
trunk/includes/class-diagnoseo-settings.php (modified) (3 diffs)
-
trunk/includes/metabox-seo-settings.php (modified) (3 diffs)
-
trunk/includes/structured-data.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
diagnoseo/tags/1.2.28/diagnoseo.php
r3039236 r3045132 4 4 * Plugin URI: https://diagnoseo.com/wordpress-seo-plugin/ 5 5 * Description: Powerful SEO plugin for WordPress. The most lightweight and complete SEO solution on the market! It includes best-in-class content analyzer and keyword placement checkpoints. 6 * Version: 1.2.2 76 * Version: 1.2.28 7 7 * Author: DiagnoSEO 8 8 * Author URI: https://diagnoseo.com/ … … 63 63 */ 64 64 function diagnoseo_init() { 65 include DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php';65 require_once DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php'; 66 66 require_once DIAGNOSEO_INCLUDES_PATH . 'admin-bar-menu.php'; 67 67 -
diagnoseo/tags/1.2.28/includes/admin-bar-menu.php
r2928487 r3045132 41 41 'meta' => array( 42 42 'title' => __( 'Meta tag settings', 'diagnoseo' ), 43 ),44 )45 );46 $admin_bar->add_menu(47 array(48 'id' => 'diagnoseo-settings-scripts',49 'parent' => 'diagnoseo-menu',50 'group' => null,51 'title' => 'Script settings',52 'href' => admin_url( 'admin.php?page=diagnoseo-settings-scripts' ),53 'meta' => array(54 'title' => __( 'Scripts in header, content and footer', 'diagnoseo' ),55 43 ), 56 44 ) -
diagnoseo/tags/1.2.28/includes/category-links.php
r3039146 r3045132 34 34 */ 35 35 function diagnoseo_refresh_rewrite_rules() { 36 update_option( 'diagnose _flush_rewrite_rules', 1 );36 update_option( 'diagnoseo_flush_rewrite_rules', 1 ); 37 37 } 38 38 … … 131 131 } 132 132 133 if ( get_option( 'diagnose _flush_rewrite_rules' ) ) {134 delete_option( 'diagnose _flush_rewrite_rules' );133 if ( get_option( 'diagnoseo_flush_rewrite_rules' ) ) { 134 delete_option( 'diagnoseo_flush_rewrite_rules' ); 135 135 flush_rewrite_rules(); 136 136 } -
diagnoseo/tags/1.2.28/includes/class-diagnoseo-metatags.php
r3032390 r3045132 570 570 571 571 if ( empty( $image ) ) { 572 $image = empty( get_option( 'diagnoseo_facebook_image' ) ) ? DIAGNOSEO_SOCIAL_IMAGE : get_option( 'diagnoseo_facebook_image');572 $image = get_option( 'diagnoseo_facebook_image', DIAGNOSEO_SOCIAL_IMAGE ); 573 573 } 574 574 -
diagnoseo/tags/1.2.28/includes/class-diagnoseo-metatagsettings.php
r2920588 r3045132 453 453 */ 454 454 public function register_settings() { 455 add_option( 'diagnoseo_separator', '-' ); 455 456 register_setting( 456 457 'diagnoseo_metatag_options', … … 464 465 ); 465 466 467 add_option( 'diagnoseo_separator', '-' ); 466 468 register_setting( 467 469 'diagnoseo_metatag_options', … … 475 477 ); 476 478 479 add_option( 'diagnoseo_home_description', '' ); 477 480 register_setting( 478 481 'diagnoseo_metatag_options', … … 486 489 ); 487 490 491 add_option( 'diagnoseo_post_title_template', '' ); 488 492 register_setting( 489 493 'diagnoseo_metatag_options', … … 497 501 ); 498 502 503 add_option( 'diagnoseo_post_description_template', '' ); 499 504 register_setting( 500 505 'diagnoseo_metatag_options', … … 508 513 ); 509 514 515 add_option( 'diagnoseo_page_title_template', '' ); 510 516 register_setting( 511 517 'diagnoseo_metatag_options', … … 519 525 ); 520 526 527 add_aption( 'diagnoseo_page_description_template', '' ); 521 528 register_setting( 522 529 'diagnoseo_metatag_options', … … 530 537 ); 531 538 539 add_aption( 'diagnoseo_category_title_template', '' ); 532 540 register_setting( 533 541 'diagnoseo_metatag_options', … … 541 549 ); 542 550 551 add_aption( 'diagnoseo_category_description_template', '' ); 543 552 register_setting( 544 553 'diagnoseo_metatag_options', … … 552 561 ); 553 562 563 add_aption( 'diagnoseo_tag_title_template', '' ); 554 564 register_setting( 555 565 'diagnoseo_metatag_options', … … 563 573 ); 564 574 575 add_aption( 'diagnoseo_tag_description_template', '' ); 565 576 register_setting( 566 577 'diagnoseo_metatag_options', … … 574 585 ); 575 586 587 add_aption( 'diagnoseo_date_title_template', '' ); 576 588 register_setting( 577 589 'diagnoseo_metatag_options', … … 585 597 ); 586 598 599 add_aption( 'diagnoseo_date_description_template', '' ); 587 600 register_setting( 588 601 'diagnoseo_metatag_options', … … 596 609 ); 597 610 611 add_aption( 'diagnoseo_archive_title_template', '' ); 598 612 register_setting( 599 613 'diagnoseo_metatag_options', … … 607 621 ); 608 622 623 add_aption( 'diagnoseo_archive_description_template', '' ); 609 624 register_setting( 610 625 'diagnoseo_metatag_options', … … 619 634 620 635 if ( class_exists( 'MultiBuilder' ) ) { 636 add_aption( 'diagnoseo_project_title_template', '' ); 621 637 register_setting( 622 638 'diagnoseo_metatag_options', … … 631 647 $this->defaults['diagnoseo_project_title_template'] = '%title% %sep% %sitename%'; 632 648 649 add_aption( 'diagnoseo_project_description_template', '' ); 633 650 register_setting( 634 651 'diagnoseo_metatag_options', … … 644 661 $this->defaults['diagnoseo_project_description_template'] = ''; 645 662 663 add_aption( 'diagnoseo_project_category_title_template', '' ); 646 664 register_setting( 647 665 'diagnoseo_metatag_options', … … 657 675 $this->defaults['diagnoseo_project_category_title_template'] = '%title% %sep% %sitename%'; 658 676 677 add_aption( 'diagnoseo_project_category_description_template', '' ); 659 678 register_setting( 660 679 'diagnoseo_metatag_options', -
diagnoseo/tags/1.2.28/includes/class-diagnoseo-schemasettings.php
r3039155 r3045132 150 150 <?php 151 151 $schema_types = Diagnoseo_SettingsHelper::$post_schema_types; 152 $value = get_option( $setting_name, $this->defaults[ $setting_name ] );152 $value = get_option( $setting_name, empty( $this->defaults[ $setting_name ] ) ? '' : $this->defaults[ $setting_name ] ); 153 153 foreach ( $schema_types as $schema_type ) : 154 154 ?> … … 194 194 } 195 195 196 add_option( 'diagnoseo_site_owner_type', '' ); 196 197 register_setting( 197 198 'diagnoseo_schema_options', … … 205 206 ); 206 207 208 add_option( 'diagnoseo_site_owner_name', '' ); 207 209 register_setting( 208 210 'diagnoseo_schema_options', … … 216 218 ); 217 219 220 add_option( 'diagnoseo_site_owner_image', '' ); 218 221 register_setting( 219 222 'diagnoseo_schema_options', … … 227 230 ); 228 231 232 add_option( 'diagnoseo_site_owner_url', '' ); 229 233 register_setting( 230 234 'diagnoseo_schema_options', … … 238 242 ); 239 243 244 add_option( 'diagnoseo_site_owner_email', '' ); 240 245 register_setting( 241 246 'diagnoseo_schema_options', … … 249 254 ); 250 255 256 add_option( 'diagnoseo_site_owner_phone', '' ); 251 257 register_setting( 252 258 'diagnoseo_schema_options', … … 260 266 ); 261 267 268 add_option( 'diagnoseo_site_owner_street_address', '' ); 262 269 register_setting( 263 270 'diagnoseo_schema_options', … … 271 278 ); 272 279 280 add_option( 'diagnoseo_site_owner_locality', '' ); 273 281 register_setting( 274 282 'diagnoseo_schema_options', … … 282 290 ); 283 291 292 add_option( 'diagnoseo_site_owner_region', '' ); 284 293 register_setting( 285 294 'diagnoseo_schema_options', … … 293 302 ); 294 303 304 add_option( 'diagnoseo_site_owner_postal_code', '' ); 295 305 register_setting( 296 306 'diagnoseo_schema_options', … … 304 314 ); 305 315 316 add_option( 'diagnoseo_site_owner_country', '' ); 306 317 register_setting( 307 318 'diagnoseo_schema_options', … … 345 356 <tbody> 346 357 <tr> 358 <th><?php esc_html_e( 'ReviewedBy Schema', 'diagnoseo' ); ?></th> 359 <td> 360 <?php 361 $reviewedby_type = get_option( 'diagnoseo_reviewedby_type', '' ); 362 $reviewedby_name = get_option( 'diagnoseo_reviewedby_name', '' ); 363 $reviewedby_url = get_option( 'diagnoseo_reviewedby_url', '' ); 364 ?> 365 <p> 366 <label for="diagnoseo_reviewedby_type"><?php esc_html_e( 'Type', 'diagnoseo' ); ?>:</label> 367 </p> 368 <select name="diagnoseo_reviewedby_type" id="diagnoseo_reviewedby_type" disabled> 369 <option value="Person"><?php esc_html_e( 'Person', 'diagnoseo' ); ?></option> 370 <option value="Organization"><?php esc_html_e( 'Organization', 'diagnoseo' ); ?></option> 371 </select> 372 <p> 373 <label for="diagnoseo_reviewedby_name"><?php esc_html_e( 'Name', 'diagnoseo' ); ?></label> 374 </p> 375 <input disabled type="text" class="regular-text" name="diagnoseo_reviewedby_name" id="diagnoseo_reviewedby_name"> 376 <p> 377 <label for="diagnoseo_reviewedby_url"><?php esc_html_e( 'URL', 'diagnoseo' ); ?></label> 378 </p> 379 <input disabled type="url" class="regular-text" name="diagnoseo_reviewedby_url" id="diagnoseo_reviewedby_url"> 380 </td> 381 </tr> 382 </tbody> 383 </table> 384 385 <table class="form-table" role="presentation"> 386 <tbody> 387 <tr> 347 388 <th><?php esc_html_e( 'Social media profiles', 'diagnoseo' ); ?></th> 348 389 <td> -
diagnoseo/tags/1.2.28/includes/class-diagnoseo-settings.php
r2984954 r3045132 78 78 add_submenu_page( 79 79 'diagnoseo-settings', 80 __( 'Breadcrumbs', 'diagnoseo' ), 81 __( 'Breadcrumbs', 'diagnoseo' ), 82 'manage_options', 83 '/customize.php?autofocus[section]=diagnoseo_breadcrumbs' 84 ); 85 add_submenu_page( 86 'diagnoseo-settings', 80 87 __( 'Social settings', 'diagnoseo' ), 81 88 __( 'Social/OpenGraph settings', 'diagnoseo' ), … … 94 101 add_submenu_page( 95 102 'diagnoseo-settings', 96 __( 'Post meta tag import', 'diagnoseo' ),97 __( 'Import post meta', 'diagnoseo' ),98 'manage_options',99 'diagnoseo-import-postmeta',100 array( $this, 'render_settings' )101 );102 add_submenu_page(103 'diagnoseo-settings',104 103 __( 'Tools', 'diagnoseo' ), 105 104 __( 'Tools', 'diagnoseo' ), … … 110 109 add_submenu_page( 111 110 'diagnoseo-settings', 112 __( ' Breadcrumbs', 'diagnoseo' ),113 __( ' Breadcrumbs', 'diagnoseo' ),111 __( 'Post meta tag import', 'diagnoseo' ), 112 __( 'Import post meta', 'diagnoseo' ), 114 113 'manage_options', 115 '/customize.php?autofocus[section]=diagnoseo_breadcrumbs' 114 'diagnoseo-import-postmeta', 115 array( $this, 'render_settings' ) 116 116 ); 117 117 } -
diagnoseo/tags/1.2.28/includes/metabox-seo-settings.php
r3039146 r3045132 29 29 */ 30 30 function diagnoseo_draw_post_metabox( $post ) { 31 include DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php';32 31 global $post; 33 32 $data = get_post_custom( $post->ID ); … … 121 120 $description_fallback = $excerpt; 122 121 $canonical_fallback = wp_get_canonical_url( $post ); 123 $separator = get_option( 'diagnoseo_separator', $diagnoseo_defaults['diagnoseo_separator']);122 $separator = get_option( 'diagnoseo_separator', '-' ); 124 123 $post_list_title = isset( $data['diagnoseo_postlist_title'] ) ? $data['diagnoseo_postlist_title'][0] : ''; 125 124 ?> … … 351 350 $def_schema_type_caption = empty( $def_schema_type ) ? __( 'None', 'diagnoseo' ) : $def_schema_type; 352 351 ?> 353 <option value=" <?php echo esc_attr( $def_schema_type ); ?>"><?php esc_html_e( 'Default', 'diagnoseo' ); ?> (<?php echo esc_html( $def_schema_type_caption ); ?>)</option>352 <option value=""><?php esc_html_e( 'Default', 'diagnoseo' ); ?> (<?php echo esc_html( $def_schema_type_caption ); ?>)</option> 354 353 <option value="none"><?php esc_html_e( 'None', 'diagnoseo' ); ?></option> 355 354 <?php foreach ( $schema_types as $type ) : ?> -
diagnoseo/tags/1.2.28/includes/structured-data.php
r3039236 r3045132 40 40 $schema_function = 'diagnoseo_schema_' . strtolower( $post_schema_type ); 41 41 $schema = $schema_function( $post_schema_data ); 42 } else {42 } elseif ( 'none' !== $post_schema_type ) { 43 43 $post_data = get_post(); 44 44 -
diagnoseo/tags/1.2.28/readme.txt
r3039236 r3045132 4 4 Requires at least: 4.7 5 5 Tested up to: 6.4.3 6 Stable tag: 1.2.2 76 Stable tag: 1.2.28 7 7 Requires PHP: 5.0 8 8 License: GPLv2 or later -
diagnoseo/trunk/diagnoseo.php
r3039236 r3045132 4 4 * Plugin URI: https://diagnoseo.com/wordpress-seo-plugin/ 5 5 * Description: Powerful SEO plugin for WordPress. The most lightweight and complete SEO solution on the market! It includes best-in-class content analyzer and keyword placement checkpoints. 6 * Version: 1.2.2 76 * Version: 1.2.28 7 7 * Author: DiagnoSEO 8 8 * Author URI: https://diagnoseo.com/ … … 63 63 */ 64 64 function diagnoseo_init() { 65 include DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php';65 require_once DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php'; 66 66 require_once DIAGNOSEO_INCLUDES_PATH . 'admin-bar-menu.php'; 67 67 -
diagnoseo/trunk/includes/admin-bar-menu.php
r2928487 r3045132 41 41 'meta' => array( 42 42 'title' => __( 'Meta tag settings', 'diagnoseo' ), 43 ),44 )45 );46 $admin_bar->add_menu(47 array(48 'id' => 'diagnoseo-settings-scripts',49 'parent' => 'diagnoseo-menu',50 'group' => null,51 'title' => 'Script settings',52 'href' => admin_url( 'admin.php?page=diagnoseo-settings-scripts' ),53 'meta' => array(54 'title' => __( 'Scripts in header, content and footer', 'diagnoseo' ),55 43 ), 56 44 ) -
diagnoseo/trunk/includes/category-links.php
r3039146 r3045132 34 34 */ 35 35 function diagnoseo_refresh_rewrite_rules() { 36 update_option( 'diagnose _flush_rewrite_rules', 1 );36 update_option( 'diagnoseo_flush_rewrite_rules', 1 ); 37 37 } 38 38 … … 131 131 } 132 132 133 if ( get_option( 'diagnose _flush_rewrite_rules' ) ) {134 delete_option( 'diagnose _flush_rewrite_rules' );133 if ( get_option( 'diagnoseo_flush_rewrite_rules' ) ) { 134 delete_option( 'diagnoseo_flush_rewrite_rules' ); 135 135 flush_rewrite_rules(); 136 136 } -
diagnoseo/trunk/includes/class-diagnoseo-metatags.php
r3032390 r3045132 570 570 571 571 if ( empty( $image ) ) { 572 $image = empty( get_option( 'diagnoseo_facebook_image' ) ) ? DIAGNOSEO_SOCIAL_IMAGE : get_option( 'diagnoseo_facebook_image');572 $image = get_option( 'diagnoseo_facebook_image', DIAGNOSEO_SOCIAL_IMAGE ); 573 573 } 574 574 -
diagnoseo/trunk/includes/class-diagnoseo-metatagsettings.php
r2920588 r3045132 453 453 */ 454 454 public function register_settings() { 455 add_option( 'diagnoseo_separator', '-' ); 455 456 register_setting( 456 457 'diagnoseo_metatag_options', … … 464 465 ); 465 466 467 add_option( 'diagnoseo_separator', '-' ); 466 468 register_setting( 467 469 'diagnoseo_metatag_options', … … 475 477 ); 476 478 479 add_option( 'diagnoseo_home_description', '' ); 477 480 register_setting( 478 481 'diagnoseo_metatag_options', … … 486 489 ); 487 490 491 add_option( 'diagnoseo_post_title_template', '' ); 488 492 register_setting( 489 493 'diagnoseo_metatag_options', … … 497 501 ); 498 502 503 add_option( 'diagnoseo_post_description_template', '' ); 499 504 register_setting( 500 505 'diagnoseo_metatag_options', … … 508 513 ); 509 514 515 add_option( 'diagnoseo_page_title_template', '' ); 510 516 register_setting( 511 517 'diagnoseo_metatag_options', … … 519 525 ); 520 526 527 add_aption( 'diagnoseo_page_description_template', '' ); 521 528 register_setting( 522 529 'diagnoseo_metatag_options', … … 530 537 ); 531 538 539 add_aption( 'diagnoseo_category_title_template', '' ); 532 540 register_setting( 533 541 'diagnoseo_metatag_options', … … 541 549 ); 542 550 551 add_aption( 'diagnoseo_category_description_template', '' ); 543 552 register_setting( 544 553 'diagnoseo_metatag_options', … … 552 561 ); 553 562 563 add_aption( 'diagnoseo_tag_title_template', '' ); 554 564 register_setting( 555 565 'diagnoseo_metatag_options', … … 563 573 ); 564 574 575 add_aption( 'diagnoseo_tag_description_template', '' ); 565 576 register_setting( 566 577 'diagnoseo_metatag_options', … … 574 585 ); 575 586 587 add_aption( 'diagnoseo_date_title_template', '' ); 576 588 register_setting( 577 589 'diagnoseo_metatag_options', … … 585 597 ); 586 598 599 add_aption( 'diagnoseo_date_description_template', '' ); 587 600 register_setting( 588 601 'diagnoseo_metatag_options', … … 596 609 ); 597 610 611 add_aption( 'diagnoseo_archive_title_template', '' ); 598 612 register_setting( 599 613 'diagnoseo_metatag_options', … … 607 621 ); 608 622 623 add_aption( 'diagnoseo_archive_description_template', '' ); 609 624 register_setting( 610 625 'diagnoseo_metatag_options', … … 619 634 620 635 if ( class_exists( 'MultiBuilder' ) ) { 636 add_aption( 'diagnoseo_project_title_template', '' ); 621 637 register_setting( 622 638 'diagnoseo_metatag_options', … … 631 647 $this->defaults['diagnoseo_project_title_template'] = '%title% %sep% %sitename%'; 632 648 649 add_aption( 'diagnoseo_project_description_template', '' ); 633 650 register_setting( 634 651 'diagnoseo_metatag_options', … … 644 661 $this->defaults['diagnoseo_project_description_template'] = ''; 645 662 663 add_aption( 'diagnoseo_project_category_title_template', '' ); 646 664 register_setting( 647 665 'diagnoseo_metatag_options', … … 657 675 $this->defaults['diagnoseo_project_category_title_template'] = '%title% %sep% %sitename%'; 658 676 677 add_aption( 'diagnoseo_project_category_description_template', '' ); 659 678 register_setting( 660 679 'diagnoseo_metatag_options', -
diagnoseo/trunk/includes/class-diagnoseo-schemasettings.php
r3039155 r3045132 150 150 <?php 151 151 $schema_types = Diagnoseo_SettingsHelper::$post_schema_types; 152 $value = get_option( $setting_name, $this->defaults[ $setting_name ] );152 $value = get_option( $setting_name, empty( $this->defaults[ $setting_name ] ) ? '' : $this->defaults[ $setting_name ] ); 153 153 foreach ( $schema_types as $schema_type ) : 154 154 ?> … … 194 194 } 195 195 196 add_option( 'diagnoseo_site_owner_type', '' ); 196 197 register_setting( 197 198 'diagnoseo_schema_options', … … 205 206 ); 206 207 208 add_option( 'diagnoseo_site_owner_name', '' ); 207 209 register_setting( 208 210 'diagnoseo_schema_options', … … 216 218 ); 217 219 220 add_option( 'diagnoseo_site_owner_image', '' ); 218 221 register_setting( 219 222 'diagnoseo_schema_options', … … 227 230 ); 228 231 232 add_option( 'diagnoseo_site_owner_url', '' ); 229 233 register_setting( 230 234 'diagnoseo_schema_options', … … 238 242 ); 239 243 244 add_option( 'diagnoseo_site_owner_email', '' ); 240 245 register_setting( 241 246 'diagnoseo_schema_options', … … 249 254 ); 250 255 256 add_option( 'diagnoseo_site_owner_phone', '' ); 251 257 register_setting( 252 258 'diagnoseo_schema_options', … … 260 266 ); 261 267 268 add_option( 'diagnoseo_site_owner_street_address', '' ); 262 269 register_setting( 263 270 'diagnoseo_schema_options', … … 271 278 ); 272 279 280 add_option( 'diagnoseo_site_owner_locality', '' ); 273 281 register_setting( 274 282 'diagnoseo_schema_options', … … 282 290 ); 283 291 292 add_option( 'diagnoseo_site_owner_region', '' ); 284 293 register_setting( 285 294 'diagnoseo_schema_options', … … 293 302 ); 294 303 304 add_option( 'diagnoseo_site_owner_postal_code', '' ); 295 305 register_setting( 296 306 'diagnoseo_schema_options', … … 304 314 ); 305 315 316 add_option( 'diagnoseo_site_owner_country', '' ); 306 317 register_setting( 307 318 'diagnoseo_schema_options', … … 345 356 <tbody> 346 357 <tr> 358 <th><?php esc_html_e( 'ReviewedBy Schema', 'diagnoseo' ); ?></th> 359 <td> 360 <?php 361 $reviewedby_type = get_option( 'diagnoseo_reviewedby_type', '' ); 362 $reviewedby_name = get_option( 'diagnoseo_reviewedby_name', '' ); 363 $reviewedby_url = get_option( 'diagnoseo_reviewedby_url', '' ); 364 ?> 365 <p> 366 <label for="diagnoseo_reviewedby_type"><?php esc_html_e( 'Type', 'diagnoseo' ); ?>:</label> 367 </p> 368 <select name="diagnoseo_reviewedby_type" id="diagnoseo_reviewedby_type" disabled> 369 <option value="Person"><?php esc_html_e( 'Person', 'diagnoseo' ); ?></option> 370 <option value="Organization"><?php esc_html_e( 'Organization', 'diagnoseo' ); ?></option> 371 </select> 372 <p> 373 <label for="diagnoseo_reviewedby_name"><?php esc_html_e( 'Name', 'diagnoseo' ); ?></label> 374 </p> 375 <input disabled type="text" class="regular-text" name="diagnoseo_reviewedby_name" id="diagnoseo_reviewedby_name"> 376 <p> 377 <label for="diagnoseo_reviewedby_url"><?php esc_html_e( 'URL', 'diagnoseo' ); ?></label> 378 </p> 379 <input disabled type="url" class="regular-text" name="diagnoseo_reviewedby_url" id="diagnoseo_reviewedby_url"> 380 </td> 381 </tr> 382 </tbody> 383 </table> 384 385 <table class="form-table" role="presentation"> 386 <tbody> 387 <tr> 347 388 <th><?php esc_html_e( 'Social media profiles', 'diagnoseo' ); ?></th> 348 389 <td> -
diagnoseo/trunk/includes/class-diagnoseo-settings.php
r2984954 r3045132 78 78 add_submenu_page( 79 79 'diagnoseo-settings', 80 __( 'Breadcrumbs', 'diagnoseo' ), 81 __( 'Breadcrumbs', 'diagnoseo' ), 82 'manage_options', 83 '/customize.php?autofocus[section]=diagnoseo_breadcrumbs' 84 ); 85 add_submenu_page( 86 'diagnoseo-settings', 80 87 __( 'Social settings', 'diagnoseo' ), 81 88 __( 'Social/OpenGraph settings', 'diagnoseo' ), … … 94 101 add_submenu_page( 95 102 'diagnoseo-settings', 96 __( 'Post meta tag import', 'diagnoseo' ),97 __( 'Import post meta', 'diagnoseo' ),98 'manage_options',99 'diagnoseo-import-postmeta',100 array( $this, 'render_settings' )101 );102 add_submenu_page(103 'diagnoseo-settings',104 103 __( 'Tools', 'diagnoseo' ), 105 104 __( 'Tools', 'diagnoseo' ), … … 110 109 add_submenu_page( 111 110 'diagnoseo-settings', 112 __( ' Breadcrumbs', 'diagnoseo' ),113 __( ' Breadcrumbs', 'diagnoseo' ),111 __( 'Post meta tag import', 'diagnoseo' ), 112 __( 'Import post meta', 'diagnoseo' ), 114 113 'manage_options', 115 '/customize.php?autofocus[section]=diagnoseo_breadcrumbs' 114 'diagnoseo-import-postmeta', 115 array( $this, 'render_settings' ) 116 116 ); 117 117 } -
diagnoseo/trunk/includes/metabox-seo-settings.php
r3039146 r3045132 29 29 */ 30 30 function diagnoseo_draw_post_metabox( $post ) { 31 include DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php';32 31 global $post; 33 32 $data = get_post_custom( $post->ID ); … … 121 120 $description_fallback = $excerpt; 122 121 $canonical_fallback = wp_get_canonical_url( $post ); 123 $separator = get_option( 'diagnoseo_separator', $diagnoseo_defaults['diagnoseo_separator']);122 $separator = get_option( 'diagnoseo_separator', '-' ); 124 123 $post_list_title = isset( $data['diagnoseo_postlist_title'] ) ? $data['diagnoseo_postlist_title'][0] : ''; 125 124 ?> … … 351 350 $def_schema_type_caption = empty( $def_schema_type ) ? __( 'None', 'diagnoseo' ) : $def_schema_type; 352 351 ?> 353 <option value=" <?php echo esc_attr( $def_schema_type ); ?>"><?php esc_html_e( 'Default', 'diagnoseo' ); ?> (<?php echo esc_html( $def_schema_type_caption ); ?>)</option>352 <option value=""><?php esc_html_e( 'Default', 'diagnoseo' ); ?> (<?php echo esc_html( $def_schema_type_caption ); ?>)</option> 354 353 <option value="none"><?php esc_html_e( 'None', 'diagnoseo' ); ?></option> 355 354 <?php foreach ( $schema_types as $type ) : ?> -
diagnoseo/trunk/includes/structured-data.php
r3039236 r3045132 40 40 $schema_function = 'diagnoseo_schema_' . strtolower( $post_schema_type ); 41 41 $schema = $schema_function( $post_schema_data ); 42 } else {42 } elseif ( 'none' !== $post_schema_type ) { 43 43 $post_data = get_post(); 44 44 -
diagnoseo/trunk/readme.txt
r3039236 r3045132 4 4 Requires at least: 4.7 5 5 Tested up to: 6.4.3 6 Stable tag: 1.2.2 76 Stable tag: 1.2.28 7 7 Requires PHP: 5.0 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.