Skip to content

feat: added helper notice for headers and proxy #1128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -2612,3 +2612,22 @@ li.draggable-item .components-panel__body-toggle.components-button{
color: #ffffff;
background: linear-gradient(135deg, #4268CF 0%, #3458BC 100%);
}

.feedzy-helper-notice {
margin: 15px 0;
padding: 16px;
background: #e8f4fd;
border-left: 4px solid #2271b1;
font-size: 14px;
}

.feedzy-helper-notice p {
font-size: 14px;
}

.feedzy-helper-notice__title {
color: #0073aa;
font-weight: 600;
font-size: 16px;
margin-bottom: 8px;
}
35 changes: 32 additions & 3 deletions includes/layouts/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,22 @@ class="btn btn-outline-primary<?php echo 0 === $index ? ' disabled' : ''; ?>" <?
case 'headers':
?>
<div class="fz-form-wrap">
<div class="feedzy-helper-notice">
<h5 class="feedzy-helper-notice__title">
<?php esc_html_e( 'Headers Configuration', 'feedzy-rss-feeds' ); ?>
</h5>
<p>
<?php
esc_html_e(
'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.',
'feedzy-rss-feeds'
);
?>
<a href="<?php echo esc_url( $help_btn_url ); ?>" target="_blank">
<?php esc_html_e( 'Learn more about headers here.', 'feedzy-rss-feeds' ); ?>
</a>
</p>
</div>
<div class="form-block">
<div class="fz-form-group">
<label class="form-label"><?php esc_html_e( 'User Agent', 'feedzy-rss-feeds' ); ?></label>
Expand All @@ -279,6 +295,17 @@ class="form-control"
case 'proxy':
?>
<div class="fz-form-wrap">
<div class="feedzy-helper-notice">
<h5 class="feedzy-helper-notice__title">
<?php esc_html_e( 'Proxy Configuration', 'feedzy-rss-feeds' ); ?>
</h5>
<p>
<?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' ); ?>
<a href="<?php echo esc_url( $help_btn_url ); ?>" target="_blank" >
<?php esc_html_e( 'View proxy setup guide', 'feedzy-rss-feeds' ); ?>
</a>
</p>
</div>
<div class="form-block pb-0">
<div class="fz-form-row">
<div class="fz-form-col-6">
Expand Down Expand Up @@ -359,8 +386,10 @@ class="form-control"
</div>
</div>

<div class="cta pt-30">
<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>
</div>
<?php if ( 'proxy' !== $active_tab && 'headers' !== $active_tab ) : ?>
<div class="cta pt-30">
<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>
</div>
<?php endif; ?>
</div>
</div>
Loading