Skip to content

Commit f4f6a12

Browse files
feat: added helper notice for headers and proxy
1 parent 3b2a953 commit f4f6a12

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

css/settings.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,4 +2573,18 @@ li.draggable-item .components-panel__body-toggle.components-button{
25732573
.support-box-list > ul{
25742574
grid-template-columns: repeat(2, 1fr);
25752575
}
2576+
}
2577+
2578+
.feedzy_helper_notice {
2579+
margin: 15px 0;
2580+
padding: 16px;
2581+
background: #e8f4fd;
2582+
border-left: 4px solid #2271b1;
2583+
}
2584+
2585+
.feedzy_helper_notice_title {
2586+
color: #0073aa;
2587+
font-weight: 600;
2588+
font-size: 16px;
2589+
margin-bottom: 8px;
25762590
}

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+
<p class="feedzy_helper_notice_title">
266+
<?php esc_html_e( 'Headers Configuration', 'feedzy-rss-feeds' ); ?>
267+
</p>
268+
<p style="font-size: 14px">
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" style="text-decoration: underline; color: #2271b1;">
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+
<p class="feedzy_helper_notice_title">
300+
<?php esc_html_e( 'Proxy Configuration', 'feedzy-rss-feeds' ); ?>
301+
</p>
302+
<p style="font-size: 14px">
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" style="text-decoration: underline; color: #2271b1;">
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)