diff --git a/assets/css/event-bridge-for-activitypub-admin.css b/assets/css/event-bridge-for-activitypub-admin.css index d619837..f76a067 100644 --- a/assets/css/event-bridge-for-activitypub-admin.css +++ b/assets/css/event-bridge-for-activitypub-admin.css @@ -178,6 +178,6 @@ code.event-bridge-for-activitypub-settings-example-url { word-break: break-all; } -#activitypub_summary_type_custom-details { +#event_bridge_for_activitypub_summary_type_custom-details { display: none; } diff --git a/assets/js/event-bridge-for-activitypub-admin.js b/assets/js/event-bridge-for-activitypub-admin.js index c270039..93c64e3 100644 --- a/assets/js/event-bridge-for-activitypub-admin.js +++ b/assets/js/event-bridge-for-activitypub-admin.js @@ -14,10 +14,10 @@ jQuery( function( $ ) { // Function to toggle visibility of custom details based on selected radio button. function toggleCustomDetailsForSummary() { - if ($("#event_bridge_activitypub_summary_type_custom").is(':checked')) { - $("#event_bridge_activitypub_summary_type_custom-details").show(); + if ($("#event_bridge_for_activitypub_summary_type_custom").is(':checked')) { + $("#event_bridge_for_activitypub_summary_type_custom-details").show(); } else { - $("#event_bridge_activitypub_summary_type_custom-details").hide(); + $("#event_bridge_for_activitypub_summary_type_custom-details").hide(); } } @@ -27,7 +27,7 @@ jQuery( function( $ ) { toggleCustomDetailsForSummary(); // Set the correct state on load. // Listen for changes on the radio buttons - $("input[name=event_bridge_activitypub_summary_type]").change(function() { + $("input[name=event_bridge_for_activitypub_summary_type]").change(function() { toggleCustomDetailsForSummary(); // Update visibility on change. }); }); diff --git a/includes/class-settings.php b/includes/class-settings.php index 61c9857..3b15a2c 100644 --- a/includes/class-settings.php +++ b/includes/class-settings.php @@ -74,7 +74,7 @@ class Settings { \register_setting( 'event-bridge-for-activitypub', - 'event_bridge_activitypub_summary_type', + 'event_bridge_for_activitypub_summary_type', array( 'type' => 'string', 'description' => \__( 'Summary type to use for ActivityStreams', 'event-bridge-for-activitypub' ), diff --git a/templates/settings.php b/templates/settings.php index 5e67676..2c9c077 100644 --- a/templates/settings.php +++ b/templates/settings.php @@ -46,8 +46,8 @@ $current_category_mapping = \get_option( 'event_bridge_for_activitypub_ev
-
-