- Timestamp:
- 07/19/2022 09:49:12 PM (4 years ago)
- Location:
- anrghg
- Files:
-
- 1 deleted
- 16 edited
- 1 copied
-
tags/1.4.6 (deleted)
-
tags/1.4.7 (copied) (copied from anrghg/trunk)
-
tags/1.4.7/admin/anrghg-admin.php (modified) (2 diffs)
-
tags/1.4.7/admin/includes/settings.php (modified) (21 diffs)
-
tags/1.4.7/anrghg.php (modified) (14 diffs)
-
tags/1.4.7/includes/styles.php (modified) (3 diffs)
-
tags/1.4.7/package.json (modified) (1 diff)
-
tags/1.4.7/readme.txt (modified) (3 diffs)
-
tags/1.4.7/svn-revs.txt (modified) (1 diff)
-
tags/1.4.7/tpl-filter-config.php (modified) (1 diff)
-
trunk/admin/anrghg-admin.php (modified) (2 diffs)
-
trunk/admin/includes/settings.php (modified) (21 diffs)
-
trunk/anrghg.php (modified) (14 diffs)
-
trunk/includes/styles.php (modified) (3 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/svn-revs.txt (modified) (1 diff)
-
trunk/tpl-filter-config.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
anrghg/tags/1.4.7/admin/anrghg-admin.php
r2757183 r2758870 507 507 508 508 /** 509 * Generates a hidden prefill saver. 510 * 511 * @since 0.70.0 512 * The prefill is the input field’s default value, and it is also 513 * held in a separate, dedicated key, whose value is saved to the 514 * database so as to become immutable, to be used for reference. 515 * @param array $p_a_post_meta Data. 516 * @param string $p_s_key Settings key. 517 * @return string $l_s_output 518 */ 519 function anrghg_metabox_save_prefill( 520 $p_a_post_meta, 521 $p_s_key 522 ) { 523 $l_s_output = '<input type="hidden" name="' . $p_s_key . '" value="'; 524 $l_s_output .= esc_attr( $p_a_post_meta[ $p_s_key ] ) . '" />'; 525 return $l_s_output; 526 } 527 528 /** 509 529 * Generates a single radio button. 510 530 * … … 847 867 $l_s_output .= $p_s_information ? '<br />' . $p_s_information : ''; 848 868 $l_s_output .= $p_s_label ? '</label>' : ''; 849 return $l_s_output;850 }851 852 /**853 * Generates a hidden prefill saver.854 *855 * @since 0.70.0856 * The prefill is the input field’s default value, and it is also857 * held in a separate, dedicated key, whose value is saved to the858 * database so as to become immutable, to be used for reference.859 * @param array $p_a_post_meta Data.860 * @param string $p_s_key Settings key.861 * @return string $l_s_output862 */863 function anrghg_metabox_save_prefill(864 $p_a_post_meta,865 $p_s_key866 ) {867 $l_s_output = '<input type="hidden" name="' . $p_s_key . '" value="';868 $l_s_output .= esc_attr( $p_a_post_meta[ $p_s_key ] ) . '" />';869 869 return $l_s_output; 870 870 } -
anrghg/tags/1.4.7/admin/includes/settings.php
r2758223 r2758870 2283 2283 $l_s_section, 2284 2284 'anrghg_note_delimiter_preset', 2285 'anrghg_easy_note_start', 2286 'anrghg_easy_note_end', 2287 'anrghg_safe_note_start', 2288 'anrghg_safe_note_end', 2285 2289 'anrghg_free_note_start', 2286 2290 'anrghg_free_note_end' … … 2293 2297 $l_s_section, 2294 2298 'anrghg_source_delimiter_preset', 2299 'anrghg_easy_source_start', 2300 'anrghg_easy_source_end', 2301 'anrghg_safe_source_start', 2302 'anrghg_safe_source_end', 2295 2303 'anrghg_free_source_start', 2296 2304 'anrghg_free_source_end' … … 2303 2311 $l_s_section, 2304 2312 'anrghg_name_delimiter_preset', 2313 'anrghg_easy_name_start', 2314 'anrghg_easy_name_end', 2315 'anrghg_safe_name_start', 2316 'anrghg_safe_name_end', 2305 2317 'anrghg_free_name_start', 2306 2318 'anrghg_free_name_end' … … 2451 2463 $l_s_section, 2452 2464 'anrghg_tooltip_delimiter_preset', 2465 'anrghg_easy_tooltip_end', 2466 'anrghg_safe_tooltip_end', 2453 2467 'anrghg_free_tooltip_end' 2454 2468 ); … … 2460 2474 $l_s_section, 2461 2475 'anrghg_list_link_delimiter_preset', 2476 'anrghg_easy_list_link_start', 2477 'anrghg_easy_list_link_end', 2478 'anrghg_safe_list_link_start', 2479 'anrghg_safe_list_link_end', 2462 2480 'anrghg_free_list_link_start', 2463 2481 'anrghg_free_list_link_end' … … 3249 3267 $l_s_output .= "\"></span></span>\r\n"; 3250 3268 echo wp_kses( $l_s_output, $p_a_params['ok'] ); 3269 } 3270 3271 /** 3272 * Generates a hidden preset saver. 3273 * 3274 * @since 0.70.0 For Post Meta box. 3275 * @see anrghg_metabox_save_prefill(). 3276 * @since 1.4.7 Port to settings page. 3277 * @since 1.4.7 Centralize delimiter preset configuration. 3278 * @since 1.4.7 Get delimiter presets saved to the DB. 3279 * The preset is the delimiter’s default value that must be saved 3280 * to the database so as to become immutable, to avoid disrupting 3281 * existing installations when the default needs to be changed. 3282 * In Gutenberg, square brackets are used as a shortcut, for page link insertion. 3283 * Thus, these must not be used any longer to delimit inline sources or endnotes. 3284 * @param array $p_a_params Settings keys and other parameters. 3285 * @param int $p_i_index If not first in field. 3286 * @return string $l_s_output 3287 */ 3288 function anrghg_save_preset( 3289 $p_a_params, 3290 $p_i_index = 0 3291 ) { 3292 $l_s_output = '<input type="hidden" name="anrghg[' . $p_a_params[ 'key_' . $p_i_index ] . ']"'; 3293 $l_s_output .= ' value="' . esc_attr( $p_a_params[ 'val_' . $p_i_index ] ) . '" />'; 3294 return $l_s_output; 3251 3295 } 3252 3296 … … 8394 8438 '-1', 8395 8439 // Translators: %s: Delimiter code. 8396 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code> {{{</code> … <code>}}}</code>' ),8440 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_1'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_2'] ) . '</code>' ), 8397 8441 $p_a_params 8398 8442 ), 8443 anrghg_save_preset( $p_a_params, 1 ), 8444 anrghg_save_preset( $p_a_params, 2 ), 8399 8445 anrghg_discrete_radio_button( 8400 8446 1, 8401 8447 '1', 8402 8448 // Translators: %s: Delimiter code. 8403 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code> [note]</code> … <code>[/note]</code>' ),8449 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_3'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_4'] ) . '</code>' ), 8404 8450 $p_a_params 8405 8451 ), 8452 anrghg_save_preset( $p_a_params, 3 ), 8453 anrghg_save_preset( $p_a_params, 4 ), 8406 8454 anrghg_discrete_radio_button( 8407 8455 2, … … 8418 8466 '', 8419 8467 $p_a_params, 8420 18468 5 8421 8469 ), 8422 8470 '<span class="field-ellipsis">…</span>', … … 8428 8476 '', 8429 8477 $p_a_params, 8430 28478 6 8431 8479 ) 8432 8480 ), … … 8460 8508 '-1', 8461 8509 // Translators: %s: Delimiter code. 8462 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code> [[[</code> … <code>]]]</code>' ),8510 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_1'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_2'] ) . '</code>' ), 8463 8511 $p_a_params 8464 8512 ), 8513 anrghg_save_preset( $p_a_params, 1 ), 8514 anrghg_save_preset( $p_a_params, 2 ), 8465 8515 anrghg_discrete_radio_button( 8466 8516 1, 8467 8517 '1', 8468 8518 // Translators: %s: Delimiter code. 8469 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code> [src]</code> … <code>[/src]</code>' ),8519 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_3'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_4'] ) . '</code>' ), 8470 8520 $p_a_params 8471 8521 ), 8522 anrghg_save_preset( $p_a_params, 3 ), 8523 anrghg_save_preset( $p_a_params, 4 ), 8472 8524 anrghg_discrete_radio_button( 8473 8525 2, … … 8484 8536 '', 8485 8537 $p_a_params, 8486 18538 5 8487 8539 ), 8488 8540 '<span class="field-ellipsis">…</span>', … … 8494 8546 '', 8495 8547 $p_a_params, 8496 28548 6 8497 8549 ) 8498 8550 ) … … 8527 8579 '-1', 8528 8580 // Translators: %s: Delimiter code. 8529 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code> [[</code> … <code>]]</code>' ),8581 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_1'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_2'] ) . '</code>' ), 8530 8582 $p_a_params 8531 8583 ), 8584 anrghg_save_preset( $p_a_params, 1 ), 8585 anrghg_save_preset( $p_a_params, 2 ), 8532 8586 anrghg_discrete_radio_button( 8533 8587 1, 8534 8588 '1', 8535 8589 // Translators: %s: Delimiter code. 8536 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code> [name]</code> … <code>[/name]</code>' ),8590 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_3'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_4'] ) . '</code>' ), 8537 8591 $p_a_params 8538 8592 ), 8593 anrghg_save_preset( $p_a_params, 3 ), 8594 anrghg_save_preset( $p_a_params, 4 ), 8539 8595 anrghg_discrete_radio_button( 8540 8596 2, … … 8551 8607 '', 8552 8608 $p_a_params, 8553 18609 5 8554 8610 ), 8555 8611 '<span class="field-ellipsis">…</span>', … … 8561 8617 '', 8562 8618 $p_a_params, 8563 28619 6 8564 8620 ) 8565 8621 ) … … 9011 9067 anrghg_settings_section_link( $p_a_params ); 9012 9068 anrghg_introduction( 9013 __( 'These tooltips work without JavaScript and are fully AMP compatible.', 'anrghg' ), 9014 __( 'On combined complements’ list numbers, the list of anchors is displayed in similar tooltips by default.', 'anrghg' ) 9069 __( 'These tooltips work without JavaScript and are fully AMP compatible.', 'anrghg' ) 9015 9070 ); 9016 9071 } … … 9077 9132 '-1', 9078 9133 // Translators: %s: Delimiter code. 9079 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code> ||</code>' ),9134 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_1'] ) . '</code>' ), 9080 9135 $p_a_params 9081 9136 ), 9137 anrghg_save_preset( $p_a_params, 1 ), 9082 9138 anrghg_discrete_radio_button( 9083 9139 1, 9084 9140 '1', 9085 9141 // Translators: %s: Delimiter code. 9086 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code> [/view]</code>' ),9142 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_2'] ) . '</code>' ), 9087 9143 $p_a_params 9088 9144 ), 9145 anrghg_save_preset( $p_a_params, 2 ), 9089 9146 anrghg_discrete_radio_button( 9090 9147 2, … … 9101 9158 '', 9102 9159 $p_a_params, 9103 19160 3 9104 9161 ) 9105 9162 ) … … 9135 9192 '-1', 9136 9193 // Translators: %s: Delimiter code. 9137 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code> {{</code> … <code>}}</code>' ),9194 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_1'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_2'] ) . '</code>' ), 9138 9195 $p_a_params 9139 9196 ), 9197 anrghg_save_preset( $p_a_params, 1 ), 9198 anrghg_save_preset( $p_a_params, 2 ), 9140 9199 anrghg_discrete_radio_button( 9141 9200 1, 9142 9201 '1', 9143 9202 // Translators: %s: Delimiter code. 9144 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code> [link]</code> … <code>[/link]</code>' ),9203 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_3'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_4'] ) . '</code>' ), 9145 9204 $p_a_params 9146 9205 ), 9206 anrghg_save_preset( $p_a_params, 3 ), 9207 anrghg_save_preset( $p_a_params, 4 ), 9147 9208 anrghg_discrete_radio_button( 9148 9209 2, … … 9159 9220 '', 9160 9221 $p_a_params, 9161 19222 5 9162 9223 ), 9163 9224 '<span class="field-ellipsis">…</span>', … … 9169 9230 '', 9170 9231 $p_a_params, 9171 29232 6 9172 9233 ) 9173 9234 ) -
anrghg/tags/1.4.7/anrghg.php
r2758223 r2758870 14 14 * Tested PHP up to: 8.0 15 15 * CAUTION: The following field is parsed in the `stable tag` folder for upgrade configuration: 16 * Version: 1.4. 616 * Version: 1.4.7 17 17 * Author: ANRGHG 18 18 * Author URI: https://anrghg.sunsite.fr … … 39 39 * 40 40 * @todo Security: Display login dialog status in settings, in Admin area header. 41 * @todo Notes and sources: Replace square bracket based delimiter presets (saved to the DB). 41 42 * @todo Localization: Add option to simplify configured HTML anchors, default to no. 42 43 * @todo Thank You message: Make style names configurable, add settings for each one. … … 87 88 * @var string C_S_ANRGHG_VER Plugin version constant. 88 89 */ 89 define( 'C_S_ANRGHG_VER', '1.4. 6' );90 define( 'C_S_ANRGHG_VER', '1.4.7' ); 90 91 91 92 /** … … 422 423 * Keys must not be longer than 44 characters, because of alignment 423 424 * issues reported by PHPCS when these keys are longer than that. 425 * 426 * @since 1.4.7 Centralize delimiter preset configuration. 427 * The preset is the delimiter’s default value that must be saved 428 * to the database so as to become immutable, to avoid disrupting 429 * existing installations when the default needs to be changed. 430 * In Gutenberg, square brackets are used as a shortcut, for page link insertion. 431 * Thus, these must not be used any longer to delimit inline sources or endnotes. 424 432 * 425 433 * @return void … … 702 710 'anrghg_complements_excluded_posts' => '', // comma-separated post IDs. 703 711 'anrghg_note_delimiter_preset' => '1', // -1 easy, 0 free, 1 safe. 712 'anrghg_easy_note_start' => '{{{', 713 'anrghg_easy_note_end' => '}}}', 714 'anrghg_safe_note_start' => '[note]', 715 'anrghg_safe_note_end' => '[/note]', 704 716 'anrghg_free_note_start' => '[σημ]', 705 717 'anrghg_free_note_end' => '[/σημ]', … … 707 719 'anrghg_note_end' => '', // Determined below. 708 720 'anrghg_source_delimiter_preset' => '1', // -1 easy, 0 free, 1 safe. 721 'anrghg_easy_source_start' => '[[[', 722 'anrghg_easy_source_end' => ']]]', 723 'anrghg_safe_source_start' => '[src]', 724 'anrghg_safe_source_end' => '[/src]', 709 725 'anrghg_free_source_start' => '[упом]', 710 726 'anrghg_free_source_end' => '[/упом]', … … 712 728 'anrghg_source_end' => '', // Determined below. 713 729 'anrghg_name_delimiter_preset' => '1', // -1 easy, 0 free, 1 safe. 730 'anrghg_easy_name_start' => '[[', 731 'anrghg_easy_name_end' => ']]', 732 'anrghg_safe_name_start' => '[name]', 733 'anrghg_safe_name_end' => '[/name]', 714 734 'anrghg_free_name_start' => '[이름]', 715 735 'anrghg_free_name_end' => '[/이름]', … … 755 775 'anrghg_display_anchor_tooltips_on_tap' => '0', 756 776 'anrghg_tooltip_delimiter_preset' => '1', // -1 easy, 0 free, 1 safe. 777 'anrghg_easy_tooltip_end' => '||', 778 'anrghg_safe_tooltip_end' => '[/view]', 757 779 'anrghg_free_tooltip_end' => '[/ดู]', 758 780 'anrghg_anchor_tooltip_end' => '', // Determined below. 759 781 'anrghg_list_link_delimiter_preset' => '1', // -1 easy, 0 free, 1 safe. 782 'anrghg_easy_list_link_start' => '{{', 783 'anrghg_easy_list_link_end' => '}}', 784 'anrghg_safe_list_link_start' => '[link]', 785 'anrghg_safe_list_link_end' => '[/link]', 760 786 'anrghg_free_list_link_start' => '[リンク]', 761 787 'anrghg_free_list_link_end' => '[/リンク]', … … 925 951 switch ( $g_a_anrghg_config['anrghg_note_delimiter_preset'] ) { 926 952 case '-1': 927 $g_a_anrghg_config['anrghg_note_start'] = '{{{';928 $g_a_anrghg_config['anrghg_note_end'] = '}}}';953 $g_a_anrghg_config['anrghg_note_start'] = $g_a_anrghg_config['anrghg_easy_note_start']; 954 $g_a_anrghg_config['anrghg_note_end'] = $g_a_anrghg_config['anrghg_easy_note_end']; 929 955 break; 930 956 case '0': … … 934 960 case '1': 935 961 default: 936 $g_a_anrghg_config['anrghg_note_start'] = '[note]';937 $g_a_anrghg_config['anrghg_note_end'] = '[/note]';962 $g_a_anrghg_config['anrghg_note_start'] = $g_a_anrghg_config['anrghg_safe_note_start']; 963 $g_a_anrghg_config['anrghg_note_end'] = $g_a_anrghg_config['anrghg_safe_note_end']; 938 964 } 939 965 switch ( $g_a_anrghg_config['anrghg_source_delimiter_preset'] ) { 940 966 case '-1': 941 $g_a_anrghg_config['anrghg_source_start'] = '[[[';942 $g_a_anrghg_config['anrghg_source_end'] = ']]]';967 $g_a_anrghg_config['anrghg_source_start'] = $g_a_anrghg_config['anrghg_easy_source_start']; 968 $g_a_anrghg_config['anrghg_source_end'] = $g_a_anrghg_config['anrghg_easy_source_end']; 943 969 break; 944 970 case '0': … … 948 974 case '1': 949 975 default: 950 $g_a_anrghg_config['anrghg_source_start'] = '[src]';951 $g_a_anrghg_config['anrghg_source_end'] = '[/src]';976 $g_a_anrghg_config['anrghg_source_start'] = $g_a_anrghg_config['anrghg_safe_source_start']; 977 $g_a_anrghg_config['anrghg_source_end'] = $g_a_anrghg_config['anrghg_safe_source_end']; 952 978 } 953 979 switch ( $g_a_anrghg_config['anrghg_name_delimiter_preset'] ) { 954 980 case '-1': 955 $g_a_anrghg_config['anrghg_complement_name_start'] = '[[';956 $g_a_anrghg_config['anrghg_complement_name_end'] = ']]';981 $g_a_anrghg_config['anrghg_complement_name_start'] = $g_a_anrghg_config['anrghg_easy_name_start']; 982 $g_a_anrghg_config['anrghg_complement_name_end'] = $g_a_anrghg_config['anrghg_easy_name_end']; 957 983 break; 958 984 case '0': … … 962 988 case '1': 963 989 default: 964 $g_a_anrghg_config['anrghg_complement_name_start'] = '[name]';965 $g_a_anrghg_config['anrghg_complement_name_end'] = '[/name]';990 $g_a_anrghg_config['anrghg_complement_name_start'] = $g_a_anrghg_config['anrghg_safe_name_start']; 991 $g_a_anrghg_config['anrghg_complement_name_end'] = $g_a_anrghg_config['anrghg_safe_name_end']; 966 992 } 967 993 switch ( $g_a_anrghg_config['anrghg_tooltip_delimiter_preset'] ) { 968 994 case '-1': 969 $g_a_anrghg_config['anrghg_anchor_tooltip_end'] = '||';995 $g_a_anrghg_config['anrghg_anchor_tooltip_end'] = $g_a_anrghg_config['anrghg_easy_tooltip_end']; 970 996 break; 971 997 case '0': … … 974 1000 case '1': 975 1001 default: 976 $g_a_anrghg_config['anrghg_anchor_tooltip_end'] = '[/view]';1002 $g_a_anrghg_config['anrghg_anchor_tooltip_end'] = $g_a_anrghg_config['anrghg_safe_tooltip_end']; 977 1003 } 978 1004 switch ( $g_a_anrghg_config['anrghg_list_link_delimiter_preset'] ) { 979 1005 case '-1': 980 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_start'] = '{{';981 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_end'] = '}}';1006 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_start'] = $g_a_anrghg_config['anrghg_easy_list_link_start']; 1007 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_end'] = $g_a_anrghg_config['anrghg_easy_list_link_end']; 982 1008 break; 983 1009 case '0': … … 987 1013 case '1': 988 1014 default: 989 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_start'] = '[link]';990 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_end'] = '[/link]';1015 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_start'] = $g_a_anrghg_config['anrghg_safe_list_link_start']; 1016 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_end'] = $g_a_anrghg_config['anrghg_safe_list_link_end']; 991 1017 } 992 1018 -
anrghg/tags/1.4.7/includes/styles.php
r2758223 r2758870 1063 1063 $l_s_referrer_padding_rule = ''; 1064 1064 } 1065 $l_s_referrer_color = 'inherit'; // Optionally not stand out. 1066 $l_s_referrer_color = '#008000'; // Optional contrast with other links. 1067 $l_s_referrer_color_rule = ''; // For link color, there must be no color rule. 1065 $l_s_concatenator_spacing = ''; // provisional @todo. 1066 $l_s_referrer_color = 'inherit'; // Optionally not stand out. 1067 $l_s_referrer_color = '#008000'; // Optional contrast with other links. 1068 $l_s_referrer_color_rule = ''; // For link color, there must be no color rule. 1068 1069 if ( ! true ) { 1069 1070 $l_s_referrer_color_rule = "color: $l_s_referrer_color;"; … … 1086 1087 1087 1088 .anrghg-referrer-source, 1088 .anrghg-referrer-note {1089 $l_s_referrer_color_rule1089 .anrghg-referrer-note, 1090 .anrghg-referrer-concatenator { 1090 1091 vertical-align: $l_s_vertical_align; 1091 1092 font-size: $l_s_referrer_font_size !important; … … 1093 1094 letter-spacing: $l_s_referrer_letter_spacing; 1094 1095 line-height: 0; 1096 } 1097 1098 .anrghg-referrer-source, 1099 .anrghg-referrer-note { 1100 $l_s_referrer_color_rule 1095 1101 text-decoration: $l_s_referrer_decoration; 1096 1102 border-bottom: $l_s_referrer_bottom_border; 1097 1103 } 1098 1104 1099 .anrghg-referrer-concatenator { 1100 vertical-align: $l_s_vertical_align; 1101 font-size: $l_s_referrer_font_size !important; 1102 font-weight: $l_s_referrer_font_weight; 1103 line-height: 0; 1105 .anrghg-referrer-concatenator:after { 1106 padding-inline-end: $l_s_concatenator_spacing; 1104 1107 } 1105 1108 -
anrghg/tags/1.4.7/package.json
r2758223 r2758870 1 1 { 2 2 "name": "anrghg", 3 "version": " 1.4. 6",3 "version": " 1.4.7", 4 4 "description": "A.N.R.GHG Publishing Helper", 5 5 "main": "index.js", -
anrghg/tags/1.4.7/readme.txt
r2758223 r2758870 8 8 Requires PHP: 5.6 9 9 Tested PHP up to: 8.0 10 Package Version: 1.4. 6.011 Version: 1.4. 610 Package Version: 1.4.7.0 11 Version: 1.4.7 12 12 CAUTION: The following field is parsed in `trunk/` for release configuration: 13 Stable Tag: 1.4. 613 Stable Tag: 1.4.7 14 14 License: GPLv2 or later 15 15 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 534 534 == Changelog == 535 535 536 = 1.4.7 (2022-07-19) = 537 538 * Notes and sources: Centralize delimiter preset configuration. 539 * Notes and sources: Get delimiter presets saved to the DB. 540 536 541 = 1.4.6 (2022-07-18) = 537 542 … … 539 544 * Backup: Fix uploads directory for multisite installations. 540 545 * Template editor: Remove backup preview and bulk upload advice. 541 * Import: Clarify label of ‘Import and Add’ button.542 * Settings: Correct display of backup paths of templates/settings.543 * Settings: Add hint about bulk-uploading templates.546 * Import: Templates: Clarify label of ‘Import and Add’ button. 547 * Settings: Backup: Correct display of backup paths of templates, settings. 548 * Settings: Backup: Add hint about bulk-uploading templates. 544 549 545 550 = 1.4.5 (2022-07-17) = -
anrghg/tags/1.4.7/svn-revs.txt
r2758223 r2758870 11 11 Previous revisions: 12 12 13 1.4.6.0 2758223 2022-07-18 22:48:19 +0000 (Mon, 18 Jul 2022) 13 14 1.4.5.0 2757477 2022-07-17 02:47:18 +0000 (Sun, 17 Jul 2022) 14 15 1.4.4.0 2757183 2022-07-15 22:52:35 +0000 (Fri, 15 Jul 2022) -
anrghg/tags/1.4.7/tpl-filter-config.php
r2758223 r2758870 2338 2338 2339 2339 // 'anrghg_note_delimiter_preset' 2340 // 'anrghg_easy_note_start' 2341 // 'anrghg_easy_note_end' 2342 // 'anrghg_safe_note_start' 2343 // 'anrghg_safe_note_end' 2340 2344 // 'anrghg_free_note_start' 2341 2345 // 'anrghg_free_note_end' 2342 2346 // 'anrghg_source_delimiter_preset' 2347 // 'anrghg_easy_source_start' 2348 // 'anrghg_easy_source_end' 2349 // 'anrghg_safe_source_start' 2350 // 'anrghg_safe_source_end' 2343 2351 // 'anrghg_free_source_start' 2344 2352 // 'anrghg_free_source_end' 2345 2353 // 'anrghg_name_delimiter_preset' 2354 // 'anrghg_easy_name_start' 2355 // 'anrghg_easy_name_end' 2356 // 'anrghg_safe_name_start' 2357 // 'anrghg_safe_name_end' 2346 2358 // 'anrghg_free_name_start' 2347 2359 // 'anrghg_free_name_end' 2348 2360 // 'anrghg_tooltip_delimiter_preset' 2361 // 'anrghg_easy_tooltip_end' 2362 // 'anrghg_safe_tooltip_end' 2349 2363 // 'anrghg_free_tooltip_end' 2350 2364 // 'anrghg_list_link_delimiter_preset' 2365 // 'anrghg_easy_list_link_start' 2366 // 'anrghg_easy_list_link_end' 2367 // 'anrghg_safe_list_link_start' 2368 // 'anrghg_safe_list_link_end' 2351 2369 // 'anrghg_free_list_link_start' 2352 2370 // 'anrghg_free_list_link_end' -
anrghg/trunk/admin/anrghg-admin.php
r2757183 r2758870 507 507 508 508 /** 509 * Generates a hidden prefill saver. 510 * 511 * @since 0.70.0 512 * The prefill is the input field’s default value, and it is also 513 * held in a separate, dedicated key, whose value is saved to the 514 * database so as to become immutable, to be used for reference. 515 * @param array $p_a_post_meta Data. 516 * @param string $p_s_key Settings key. 517 * @return string $l_s_output 518 */ 519 function anrghg_metabox_save_prefill( 520 $p_a_post_meta, 521 $p_s_key 522 ) { 523 $l_s_output = '<input type="hidden" name="' . $p_s_key . '" value="'; 524 $l_s_output .= esc_attr( $p_a_post_meta[ $p_s_key ] ) . '" />'; 525 return $l_s_output; 526 } 527 528 /** 509 529 * Generates a single radio button. 510 530 * … … 847 867 $l_s_output .= $p_s_information ? '<br />' . $p_s_information : ''; 848 868 $l_s_output .= $p_s_label ? '</label>' : ''; 849 return $l_s_output;850 }851 852 /**853 * Generates a hidden prefill saver.854 *855 * @since 0.70.0856 * The prefill is the input field’s default value, and it is also857 * held in a separate, dedicated key, whose value is saved to the858 * database so as to become immutable, to be used for reference.859 * @param array $p_a_post_meta Data.860 * @param string $p_s_key Settings key.861 * @return string $l_s_output862 */863 function anrghg_metabox_save_prefill(864 $p_a_post_meta,865 $p_s_key866 ) {867 $l_s_output = '<input type="hidden" name="' . $p_s_key . '" value="';868 $l_s_output .= esc_attr( $p_a_post_meta[ $p_s_key ] ) . '" />';869 869 return $l_s_output; 870 870 } -
anrghg/trunk/admin/includes/settings.php
r2758223 r2758870 2283 2283 $l_s_section, 2284 2284 'anrghg_note_delimiter_preset', 2285 'anrghg_easy_note_start', 2286 'anrghg_easy_note_end', 2287 'anrghg_safe_note_start', 2288 'anrghg_safe_note_end', 2285 2289 'anrghg_free_note_start', 2286 2290 'anrghg_free_note_end' … … 2293 2297 $l_s_section, 2294 2298 'anrghg_source_delimiter_preset', 2299 'anrghg_easy_source_start', 2300 'anrghg_easy_source_end', 2301 'anrghg_safe_source_start', 2302 'anrghg_safe_source_end', 2295 2303 'anrghg_free_source_start', 2296 2304 'anrghg_free_source_end' … … 2303 2311 $l_s_section, 2304 2312 'anrghg_name_delimiter_preset', 2313 'anrghg_easy_name_start', 2314 'anrghg_easy_name_end', 2315 'anrghg_safe_name_start', 2316 'anrghg_safe_name_end', 2305 2317 'anrghg_free_name_start', 2306 2318 'anrghg_free_name_end' … … 2451 2463 $l_s_section, 2452 2464 'anrghg_tooltip_delimiter_preset', 2465 'anrghg_easy_tooltip_end', 2466 'anrghg_safe_tooltip_end', 2453 2467 'anrghg_free_tooltip_end' 2454 2468 ); … … 2460 2474 $l_s_section, 2461 2475 'anrghg_list_link_delimiter_preset', 2476 'anrghg_easy_list_link_start', 2477 'anrghg_easy_list_link_end', 2478 'anrghg_safe_list_link_start', 2479 'anrghg_safe_list_link_end', 2462 2480 'anrghg_free_list_link_start', 2463 2481 'anrghg_free_list_link_end' … … 3249 3267 $l_s_output .= "\"></span></span>\r\n"; 3250 3268 echo wp_kses( $l_s_output, $p_a_params['ok'] ); 3269 } 3270 3271 /** 3272 * Generates a hidden preset saver. 3273 * 3274 * @since 0.70.0 For Post Meta box. 3275 * @see anrghg_metabox_save_prefill(). 3276 * @since 1.4.7 Port to settings page. 3277 * @since 1.4.7 Centralize delimiter preset configuration. 3278 * @since 1.4.7 Get delimiter presets saved to the DB. 3279 * The preset is the delimiter’s default value that must be saved 3280 * to the database so as to become immutable, to avoid disrupting 3281 * existing installations when the default needs to be changed. 3282 * In Gutenberg, square brackets are used as a shortcut, for page link insertion. 3283 * Thus, these must not be used any longer to delimit inline sources or endnotes. 3284 * @param array $p_a_params Settings keys and other parameters. 3285 * @param int $p_i_index If not first in field. 3286 * @return string $l_s_output 3287 */ 3288 function anrghg_save_preset( 3289 $p_a_params, 3290 $p_i_index = 0 3291 ) { 3292 $l_s_output = '<input type="hidden" name="anrghg[' . $p_a_params[ 'key_' . $p_i_index ] . ']"'; 3293 $l_s_output .= ' value="' . esc_attr( $p_a_params[ 'val_' . $p_i_index ] ) . '" />'; 3294 return $l_s_output; 3251 3295 } 3252 3296 … … 8394 8438 '-1', 8395 8439 // Translators: %s: Delimiter code. 8396 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code> {{{</code> … <code>}}}</code>' ),8440 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_1'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_2'] ) . '</code>' ), 8397 8441 $p_a_params 8398 8442 ), 8443 anrghg_save_preset( $p_a_params, 1 ), 8444 anrghg_save_preset( $p_a_params, 2 ), 8399 8445 anrghg_discrete_radio_button( 8400 8446 1, 8401 8447 '1', 8402 8448 // Translators: %s: Delimiter code. 8403 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code> [note]</code> … <code>[/note]</code>' ),8449 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_3'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_4'] ) . '</code>' ), 8404 8450 $p_a_params 8405 8451 ), 8452 anrghg_save_preset( $p_a_params, 3 ), 8453 anrghg_save_preset( $p_a_params, 4 ), 8406 8454 anrghg_discrete_radio_button( 8407 8455 2, … … 8418 8466 '', 8419 8467 $p_a_params, 8420 18468 5 8421 8469 ), 8422 8470 '<span class="field-ellipsis">…</span>', … … 8428 8476 '', 8429 8477 $p_a_params, 8430 28478 6 8431 8479 ) 8432 8480 ), … … 8460 8508 '-1', 8461 8509 // Translators: %s: Delimiter code. 8462 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code> [[[</code> … <code>]]]</code>' ),8510 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_1'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_2'] ) . '</code>' ), 8463 8511 $p_a_params 8464 8512 ), 8513 anrghg_save_preset( $p_a_params, 1 ), 8514 anrghg_save_preset( $p_a_params, 2 ), 8465 8515 anrghg_discrete_radio_button( 8466 8516 1, 8467 8517 '1', 8468 8518 // Translators: %s: Delimiter code. 8469 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code> [src]</code> … <code>[/src]</code>' ),8519 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_3'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_4'] ) . '</code>' ), 8470 8520 $p_a_params 8471 8521 ), 8522 anrghg_save_preset( $p_a_params, 3 ), 8523 anrghg_save_preset( $p_a_params, 4 ), 8472 8524 anrghg_discrete_radio_button( 8473 8525 2, … … 8484 8536 '', 8485 8537 $p_a_params, 8486 18538 5 8487 8539 ), 8488 8540 '<span class="field-ellipsis">…</span>', … … 8494 8546 '', 8495 8547 $p_a_params, 8496 28548 6 8497 8549 ) 8498 8550 ) … … 8527 8579 '-1', 8528 8580 // Translators: %s: Delimiter code. 8529 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code> [[</code> … <code>]]</code>' ),8581 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_1'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_2'] ) . '</code>' ), 8530 8582 $p_a_params 8531 8583 ), 8584 anrghg_save_preset( $p_a_params, 1 ), 8585 anrghg_save_preset( $p_a_params, 2 ), 8532 8586 anrghg_discrete_radio_button( 8533 8587 1, 8534 8588 '1', 8535 8589 // Translators: %s: Delimiter code. 8536 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code> [name]</code> … <code>[/name]</code>' ),8590 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_3'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_4'] ) . '</code>' ), 8537 8591 $p_a_params 8538 8592 ), 8593 anrghg_save_preset( $p_a_params, 3 ), 8594 anrghg_save_preset( $p_a_params, 4 ), 8539 8595 anrghg_discrete_radio_button( 8540 8596 2, … … 8551 8607 '', 8552 8608 $p_a_params, 8553 18609 5 8554 8610 ), 8555 8611 '<span class="field-ellipsis">…</span>', … … 8561 8617 '', 8562 8618 $p_a_params, 8563 28619 6 8564 8620 ) 8565 8621 ) … … 9011 9067 anrghg_settings_section_link( $p_a_params ); 9012 9068 anrghg_introduction( 9013 __( 'These tooltips work without JavaScript and are fully AMP compatible.', 'anrghg' ), 9014 __( 'On combined complements’ list numbers, the list of anchors is displayed in similar tooltips by default.', 'anrghg' ) 9069 __( 'These tooltips work without JavaScript and are fully AMP compatible.', 'anrghg' ) 9015 9070 ); 9016 9071 } … … 9077 9132 '-1', 9078 9133 // Translators: %s: Delimiter code. 9079 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code> ||</code>' ),9134 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_1'] ) . '</code>' ), 9080 9135 $p_a_params 9081 9136 ), 9137 anrghg_save_preset( $p_a_params, 1 ), 9082 9138 anrghg_discrete_radio_button( 9083 9139 1, 9084 9140 '1', 9085 9141 // Translators: %s: Delimiter code. 9086 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code> [/view]</code>' ),9142 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_2'] ) . '</code>' ), 9087 9143 $p_a_params 9088 9144 ), 9145 anrghg_save_preset( $p_a_params, 2 ), 9089 9146 anrghg_discrete_radio_button( 9090 9147 2, … … 9101 9158 '', 9102 9159 $p_a_params, 9103 19160 3 9104 9161 ) 9105 9162 ) … … 9135 9192 '-1', 9136 9193 // Translators: %s: Delimiter code. 9137 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code> {{</code> … <code>}}</code>' ),9194 sprintf( __( 'Easy input: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_1'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_2'] ) . '</code>' ), 9138 9195 $p_a_params 9139 9196 ), 9197 anrghg_save_preset( $p_a_params, 1 ), 9198 anrghg_save_preset( $p_a_params, 2 ), 9140 9199 anrghg_discrete_radio_button( 9141 9200 1, 9142 9201 '1', 9143 9202 // Translators: %s: Delimiter code. 9144 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code> [link]</code> … <code>[/link]</code>' ),9203 sprintf( __( 'Unambiguous: %s', 'anrghg' ), '<code>' . esc_attr( $p_a_params['val_3'] ) . '</code> … <code>' . esc_attr( $p_a_params['val_4'] ) . '</code>' ), 9145 9204 $p_a_params 9146 9205 ), 9206 anrghg_save_preset( $p_a_params, 3 ), 9207 anrghg_save_preset( $p_a_params, 4 ), 9147 9208 anrghg_discrete_radio_button( 9148 9209 2, … … 9159 9220 '', 9160 9221 $p_a_params, 9161 19222 5 9162 9223 ), 9163 9224 '<span class="field-ellipsis">…</span>', … … 9169 9230 '', 9170 9231 $p_a_params, 9171 29232 6 9172 9233 ) 9173 9234 ) -
anrghg/trunk/anrghg.php
r2758223 r2758870 14 14 * Tested PHP up to: 8.0 15 15 * CAUTION: The following field is parsed in the `stable tag` folder for upgrade configuration: 16 * Version: 1.4. 616 * Version: 1.4.7 17 17 * Author: ANRGHG 18 18 * Author URI: https://anrghg.sunsite.fr … … 39 39 * 40 40 * @todo Security: Display login dialog status in settings, in Admin area header. 41 * @todo Notes and sources: Replace square bracket based delimiter presets (saved to the DB). 41 42 * @todo Localization: Add option to simplify configured HTML anchors, default to no. 42 43 * @todo Thank You message: Make style names configurable, add settings for each one. … … 87 88 * @var string C_S_ANRGHG_VER Plugin version constant. 88 89 */ 89 define( 'C_S_ANRGHG_VER', '1.4. 6' );90 define( 'C_S_ANRGHG_VER', '1.4.7' ); 90 91 91 92 /** … … 422 423 * Keys must not be longer than 44 characters, because of alignment 423 424 * issues reported by PHPCS when these keys are longer than that. 425 * 426 * @since 1.4.7 Centralize delimiter preset configuration. 427 * The preset is the delimiter’s default value that must be saved 428 * to the database so as to become immutable, to avoid disrupting 429 * existing installations when the default needs to be changed. 430 * In Gutenberg, square brackets are used as a shortcut, for page link insertion. 431 * Thus, these must not be used any longer to delimit inline sources or endnotes. 424 432 * 425 433 * @return void … … 702 710 'anrghg_complements_excluded_posts' => '', // comma-separated post IDs. 703 711 'anrghg_note_delimiter_preset' => '1', // -1 easy, 0 free, 1 safe. 712 'anrghg_easy_note_start' => '{{{', 713 'anrghg_easy_note_end' => '}}}', 714 'anrghg_safe_note_start' => '[note]', 715 'anrghg_safe_note_end' => '[/note]', 704 716 'anrghg_free_note_start' => '[σημ]', 705 717 'anrghg_free_note_end' => '[/σημ]', … … 707 719 'anrghg_note_end' => '', // Determined below. 708 720 'anrghg_source_delimiter_preset' => '1', // -1 easy, 0 free, 1 safe. 721 'anrghg_easy_source_start' => '[[[', 722 'anrghg_easy_source_end' => ']]]', 723 'anrghg_safe_source_start' => '[src]', 724 'anrghg_safe_source_end' => '[/src]', 709 725 'anrghg_free_source_start' => '[упом]', 710 726 'anrghg_free_source_end' => '[/упом]', … … 712 728 'anrghg_source_end' => '', // Determined below. 713 729 'anrghg_name_delimiter_preset' => '1', // -1 easy, 0 free, 1 safe. 730 'anrghg_easy_name_start' => '[[', 731 'anrghg_easy_name_end' => ']]', 732 'anrghg_safe_name_start' => '[name]', 733 'anrghg_safe_name_end' => '[/name]', 714 734 'anrghg_free_name_start' => '[이름]', 715 735 'anrghg_free_name_end' => '[/이름]', … … 755 775 'anrghg_display_anchor_tooltips_on_tap' => '0', 756 776 'anrghg_tooltip_delimiter_preset' => '1', // -1 easy, 0 free, 1 safe. 777 'anrghg_easy_tooltip_end' => '||', 778 'anrghg_safe_tooltip_end' => '[/view]', 757 779 'anrghg_free_tooltip_end' => '[/ดู]', 758 780 'anrghg_anchor_tooltip_end' => '', // Determined below. 759 781 'anrghg_list_link_delimiter_preset' => '1', // -1 easy, 0 free, 1 safe. 782 'anrghg_easy_list_link_start' => '{{', 783 'anrghg_easy_list_link_end' => '}}', 784 'anrghg_safe_list_link_start' => '[link]', 785 'anrghg_safe_list_link_end' => '[/link]', 760 786 'anrghg_free_list_link_start' => '[リンク]', 761 787 'anrghg_free_list_link_end' => '[/リンク]', … … 925 951 switch ( $g_a_anrghg_config['anrghg_note_delimiter_preset'] ) { 926 952 case '-1': 927 $g_a_anrghg_config['anrghg_note_start'] = '{{{';928 $g_a_anrghg_config['anrghg_note_end'] = '}}}';953 $g_a_anrghg_config['anrghg_note_start'] = $g_a_anrghg_config['anrghg_easy_note_start']; 954 $g_a_anrghg_config['anrghg_note_end'] = $g_a_anrghg_config['anrghg_easy_note_end']; 929 955 break; 930 956 case '0': … … 934 960 case '1': 935 961 default: 936 $g_a_anrghg_config['anrghg_note_start'] = '[note]';937 $g_a_anrghg_config['anrghg_note_end'] = '[/note]';962 $g_a_anrghg_config['anrghg_note_start'] = $g_a_anrghg_config['anrghg_safe_note_start']; 963 $g_a_anrghg_config['anrghg_note_end'] = $g_a_anrghg_config['anrghg_safe_note_end']; 938 964 } 939 965 switch ( $g_a_anrghg_config['anrghg_source_delimiter_preset'] ) { 940 966 case '-1': 941 $g_a_anrghg_config['anrghg_source_start'] = '[[[';942 $g_a_anrghg_config['anrghg_source_end'] = ']]]';967 $g_a_anrghg_config['anrghg_source_start'] = $g_a_anrghg_config['anrghg_easy_source_start']; 968 $g_a_anrghg_config['anrghg_source_end'] = $g_a_anrghg_config['anrghg_easy_source_end']; 943 969 break; 944 970 case '0': … … 948 974 case '1': 949 975 default: 950 $g_a_anrghg_config['anrghg_source_start'] = '[src]';951 $g_a_anrghg_config['anrghg_source_end'] = '[/src]';976 $g_a_anrghg_config['anrghg_source_start'] = $g_a_anrghg_config['anrghg_safe_source_start']; 977 $g_a_anrghg_config['anrghg_source_end'] = $g_a_anrghg_config['anrghg_safe_source_end']; 952 978 } 953 979 switch ( $g_a_anrghg_config['anrghg_name_delimiter_preset'] ) { 954 980 case '-1': 955 $g_a_anrghg_config['anrghg_complement_name_start'] = '[[';956 $g_a_anrghg_config['anrghg_complement_name_end'] = ']]';981 $g_a_anrghg_config['anrghg_complement_name_start'] = $g_a_anrghg_config['anrghg_easy_name_start']; 982 $g_a_anrghg_config['anrghg_complement_name_end'] = $g_a_anrghg_config['anrghg_easy_name_end']; 957 983 break; 958 984 case '0': … … 962 988 case '1': 963 989 default: 964 $g_a_anrghg_config['anrghg_complement_name_start'] = '[name]';965 $g_a_anrghg_config['anrghg_complement_name_end'] = '[/name]';990 $g_a_anrghg_config['anrghg_complement_name_start'] = $g_a_anrghg_config['anrghg_safe_name_start']; 991 $g_a_anrghg_config['anrghg_complement_name_end'] = $g_a_anrghg_config['anrghg_safe_name_end']; 966 992 } 967 993 switch ( $g_a_anrghg_config['anrghg_tooltip_delimiter_preset'] ) { 968 994 case '-1': 969 $g_a_anrghg_config['anrghg_anchor_tooltip_end'] = '||';995 $g_a_anrghg_config['anrghg_anchor_tooltip_end'] = $g_a_anrghg_config['anrghg_easy_tooltip_end']; 970 996 break; 971 997 case '0': … … 974 1000 case '1': 975 1001 default: 976 $g_a_anrghg_config['anrghg_anchor_tooltip_end'] = '[/view]';1002 $g_a_anrghg_config['anrghg_anchor_tooltip_end'] = $g_a_anrghg_config['anrghg_safe_tooltip_end']; 977 1003 } 978 1004 switch ( $g_a_anrghg_config['anrghg_list_link_delimiter_preset'] ) { 979 1005 case '-1': 980 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_start'] = '{{';981 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_end'] = '}}';1006 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_start'] = $g_a_anrghg_config['anrghg_easy_list_link_start']; 1007 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_end'] = $g_a_anrghg_config['anrghg_easy_list_link_end']; 982 1008 break; 983 1009 case '0': … … 987 1013 case '1': 988 1014 default: 989 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_start'] = '[link]';990 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_end'] = '[/link]';1015 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_start'] = $g_a_anrghg_config['anrghg_safe_list_link_start']; 1016 $g_a_anrghg_config['anrghg_anchor_tooltip_list_link_end'] = $g_a_anrghg_config['anrghg_safe_list_link_end']; 991 1017 } 992 1018 -
anrghg/trunk/includes/styles.php
r2758223 r2758870 1063 1063 $l_s_referrer_padding_rule = ''; 1064 1064 } 1065 $l_s_referrer_color = 'inherit'; // Optionally not stand out. 1066 $l_s_referrer_color = '#008000'; // Optional contrast with other links. 1067 $l_s_referrer_color_rule = ''; // For link color, there must be no color rule. 1065 $l_s_concatenator_spacing = ''; // provisional @todo. 1066 $l_s_referrer_color = 'inherit'; // Optionally not stand out. 1067 $l_s_referrer_color = '#008000'; // Optional contrast with other links. 1068 $l_s_referrer_color_rule = ''; // For link color, there must be no color rule. 1068 1069 if ( ! true ) { 1069 1070 $l_s_referrer_color_rule = "color: $l_s_referrer_color;"; … … 1086 1087 1087 1088 .anrghg-referrer-source, 1088 .anrghg-referrer-note {1089 $l_s_referrer_color_rule1089 .anrghg-referrer-note, 1090 .anrghg-referrer-concatenator { 1090 1091 vertical-align: $l_s_vertical_align; 1091 1092 font-size: $l_s_referrer_font_size !important; … … 1093 1094 letter-spacing: $l_s_referrer_letter_spacing; 1094 1095 line-height: 0; 1096 } 1097 1098 .anrghg-referrer-source, 1099 .anrghg-referrer-note { 1100 $l_s_referrer_color_rule 1095 1101 text-decoration: $l_s_referrer_decoration; 1096 1102 border-bottom: $l_s_referrer_bottom_border; 1097 1103 } 1098 1104 1099 .anrghg-referrer-concatenator { 1100 vertical-align: $l_s_vertical_align; 1101 font-size: $l_s_referrer_font_size !important; 1102 font-weight: $l_s_referrer_font_weight; 1103 line-height: 0; 1105 .anrghg-referrer-concatenator:after { 1106 padding-inline-end: $l_s_concatenator_spacing; 1104 1107 } 1105 1108 -
anrghg/trunk/package.json
r2758223 r2758870 1 1 { 2 2 "name": "anrghg", 3 "version": " 1.4. 6",3 "version": " 1.4.7", 4 4 "description": "A.N.R.GHG Publishing Helper", 5 5 "main": "index.js", -
anrghg/trunk/readme.txt
r2758223 r2758870 8 8 Requires PHP: 5.6 9 9 Tested PHP up to: 8.0 10 Package Version: 1.4. 6.011 Version: 1.4. 610 Package Version: 1.4.7.0 11 Version: 1.4.7 12 12 CAUTION: The following field is parsed in `trunk/` for release configuration: 13 Stable Tag: 1.4. 613 Stable Tag: 1.4.7 14 14 License: GPLv2 or later 15 15 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 534 534 == Changelog == 535 535 536 = 1.4.7 (2022-07-19) = 537 538 * Notes and sources: Centralize delimiter preset configuration. 539 * Notes and sources: Get delimiter presets saved to the DB. 540 536 541 = 1.4.6 (2022-07-18) = 537 542 … … 539 544 * Backup: Fix uploads directory for multisite installations. 540 545 * Template editor: Remove backup preview and bulk upload advice. 541 * Import: Clarify label of ‘Import and Add’ button.542 * Settings: Correct display of backup paths of templates/settings.543 * Settings: Add hint about bulk-uploading templates.546 * Import: Templates: Clarify label of ‘Import and Add’ button. 547 * Settings: Backup: Correct display of backup paths of templates, settings. 548 * Settings: Backup: Add hint about bulk-uploading templates. 544 549 545 550 = 1.4.5 (2022-07-17) = -
anrghg/trunk/svn-revs.txt
r2758223 r2758870 11 11 Previous revisions: 12 12 13 1.4.6.0 2758223 2022-07-18 22:48:19 +0000 (Mon, 18 Jul 2022) 13 14 1.4.5.0 2757477 2022-07-17 02:47:18 +0000 (Sun, 17 Jul 2022) 14 15 1.4.4.0 2757183 2022-07-15 22:52:35 +0000 (Fri, 15 Jul 2022) -
anrghg/trunk/tpl-filter-config.php
r2758223 r2758870 2338 2338 2339 2339 // 'anrghg_note_delimiter_preset' 2340 // 'anrghg_easy_note_start' 2341 // 'anrghg_easy_note_end' 2342 // 'anrghg_safe_note_start' 2343 // 'anrghg_safe_note_end' 2340 2344 // 'anrghg_free_note_start' 2341 2345 // 'anrghg_free_note_end' 2342 2346 // 'anrghg_source_delimiter_preset' 2347 // 'anrghg_easy_source_start' 2348 // 'anrghg_easy_source_end' 2349 // 'anrghg_safe_source_start' 2350 // 'anrghg_safe_source_end' 2343 2351 // 'anrghg_free_source_start' 2344 2352 // 'anrghg_free_source_end' 2345 2353 // 'anrghg_name_delimiter_preset' 2354 // 'anrghg_easy_name_start' 2355 // 'anrghg_easy_name_end' 2356 // 'anrghg_safe_name_start' 2357 // 'anrghg_safe_name_end' 2346 2358 // 'anrghg_free_name_start' 2347 2359 // 'anrghg_free_name_end' 2348 2360 // 'anrghg_tooltip_delimiter_preset' 2361 // 'anrghg_easy_tooltip_end' 2362 // 'anrghg_safe_tooltip_end' 2349 2363 // 'anrghg_free_tooltip_end' 2350 2364 // 'anrghg_list_link_delimiter_preset' 2365 // 'anrghg_easy_list_link_start' 2366 // 'anrghg_easy_list_link_end' 2367 // 'anrghg_safe_list_link_start' 2368 // 'anrghg_safe_list_link_end' 2351 2369 // 'anrghg_free_list_link_start' 2352 2370 // 'anrghg_free_list_link_end'
Note: See TracChangeset
for help on using the changeset viewer.