Skip to content

Commit 747c2a0

Browse files
feat: added helper notice for headers and proxy (#1128)
1 parent 8c85e49 commit 747c2a0

File tree

2 files changed

+51
-3
lines changed

2 files changed

+51
-3
lines changed

css/settings.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,3 +2612,22 @@ li.draggable-item .components-panel__body-toggle.components-button{
26122612
color: #ffffff;
26132613
background: linear-gradient(135deg, #4268CF 0%, #3458BC 100%);
26142614
}
2615+
2616+
.feedzy-helper-notice {
2617+
margin: 15px 0;
2618+
padding: 16px;
2619+
background: #e8f4fd;
2620+
border-left: 4px solid #2271b1;
2621+
font-size: 14px;
2622+
}
2623+
2624+
.feedzy-helper-notice p {
2625+
font-size: 14px;
2626+
}
2627+
2628+
.feedzy-helper-notice__title {
2629+
color: #0073aa;
2630+
font-weight: 600;
2631+
font-size: 16px;
2632+
margin-bottom: 8px;
2633+
}

includes/layouts/settings.php

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,22 @@ class="btn btn-outline-primary<?php echo 0 === $index ? ' disabled' : ''; ?>" <?
261261
case 'headers':
262262
?>
263263
<div class="fz-form-wrap">
264+
<div class="feedzy-helper-notice">
265+
<h5 class="feedzy-helper-notice__title">
266+
<?php esc_html_e( 'Headers Configuration', 'feedzy-rss-feeds' ); ?>
267+
</h5>
268+
<p>
269+
<?php
270+
esc_html_e(
271+
'Use this section to add custom HTTP headers (e.g., User-Agent). This can help bypass feed access restrictions, simulate browser requests, or resolve issues where feeds return incomplete or blocked content.',
272+
'feedzy-rss-feeds'
273+
);
274+
?>
275+
<a href="<?php echo esc_url( $help_btn_url ); ?>" target="_blank">
276+
<?php esc_html_e( 'Learn more about headers here.', 'feedzy-rss-feeds' ); ?>
277+
</a>
278+
</p>
279+
</div>
264280
<div class="form-block">
265281
<div class="fz-form-group">
266282
<label class="form-label"><?php esc_html_e( 'User Agent', 'feedzy-rss-feeds' ); ?></label>
@@ -279,6 +295,17 @@ class="form-control"
279295
case 'proxy':
280296
?>
281297
<div class="fz-form-wrap">
298+
<div class="feedzy-helper-notice">
299+
<h5 class="feedzy-helper-notice__title">
300+
<?php esc_html_e( 'Proxy Configuration', 'feedzy-rss-feeds' ); ?>
301+
</h5>
302+
<p>
303+
<?php esc_html_e( 'Use a proxy to bypass firewalls, geographic restrictions, or IP blocks from feed sources. This ensures you can reliably access restricted RSS feeds.', 'feedzy-rss-feeds' ); ?>
304+
<a href="<?php echo esc_url( $help_btn_url ); ?>" target="_blank" >
305+
<?php esc_html_e( 'View proxy setup guide', 'feedzy-rss-feeds' ); ?>
306+
</a>
307+
</p>
308+
</div>
282309
<div class="form-block pb-0">
283310
<div class="fz-form-row">
284311
<div class="fz-form-col-6">
@@ -359,8 +386,10 @@ class="form-control"
359386
</div>
360387
</div>
361388

362-
<div class="cta pt-30">
363-
<a href="<?php echo esc_url( $help_btn_url ); ?>" class="btn btn-ghost" target="_blank"><?php esc_html_e( 'Need help?', 'feedzy-rss-feeds' ); ?></a>
364-
</div>
389+
<?php if ( 'proxy' !== $active_tab && 'headers' !== $active_tab ) : ?>
390+
<div class="cta pt-30">
391+
<a href="<?php echo esc_url( $help_btn_url ); ?>" class="btn btn-ghost" target="_blank"><?php esc_html_e( 'Need help?', 'feedzy-rss-feeds' ); ?></a>
392+
</div>
393+
<?php endif; ?>
365394
</div>
366395
</div>

0 commit comments

Comments
 (0)