File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,18 @@ private static function getForm(
177
177
$ form .= self ::getCheckboxInput ($ inputEntry , $ idArg , $ id );
178
178
}
179
179
180
+ $ infoText = [];
181
+ $ infoTextScript = '' ;
180
182
if (isset ($ inputEntry ['title ' ])) {
181
- $ title_filtered = filter_var ($ inputEntry ['title ' ], FILTER_SANITIZE_FULL_SPECIAL_CHARS );
182
- $ form .= '<i class="info" title=" ' . $ title_filtered . '">i</i> ' ;
183
+ $ infoText [] = filter_var ($ inputEntry ['title ' ], FILTER_SANITIZE_FULL_SPECIAL_CHARS );
184
+ }
185
+ if ($ inputEntry ['exampleValue ' ] !== '' ) {
186
+ $ infoText [] = "Example (right click to use): \n" . filter_var ($ inputEntry ['exampleValue ' ], FILTER_SANITIZE_FULL_SPECIAL_CHARS );
187
+ $ infoTextScript = 'rssbridge_use_placeholder_value(this); ' ;
188
+ }
189
+
190
+ if (count ($ infoText ) > 0 ) {
191
+ $ form .= '<i class="info" data-for=" ' . $ idArg . '" title=" ' . implode ("\n\n" , $ infoText ) . '" oncontextmenu=" ' . $ infoTextScript . 'return false">i</i> ' ;
183
192
} else {
184
193
$ form .= '<i class="no-info"></i> ' ;
185
194
}
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ function rssbridge_toggle_bridge(){
48
48
}
49
49
}
50
50
51
+ function rssbridge_use_placeholder_value ( sender ) {
52
+ let inputId = sender . getAttribute ( 'data-for' ) ;
53
+ let inputElement = document . getElementById ( inputId ) ;
54
+ inputElement . value = inputElement . getAttribute ( "placeholder" ) ;
55
+ }
56
+
51
57
var rssbridge_feed_finder = ( function ( ) {
52
58
/*
53
59
* Code for "Find feed by URL" feature
You can’t perform that action at this time.
0 commit comments