Skip to content

Commit c13dcdd

Browse files
chore: add quick links
1 parent 2615ff9 commit c13dcdd

File tree

3 files changed

+59
-3
lines changed

3 files changed

+59
-3
lines changed

css/settings.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2858,4 +2858,10 @@ button.feedzy-action-button {
28582858

28592859
.fz-hidden {
28602860
display: none;
2861-
}
2861+
}
2862+
2863+
.fz-quick-link-actions {
2864+
display: flex;
2865+
gap: 1rem;
2866+
margin-bottom: 20px;
2867+
}

includes/admin/feedzy-rss-feeds-log.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ public static function log( $level, $message, array $context = array() ) {
274274
$instance->add_log_record( $level, $message, $context );
275275
}
276276
} catch ( Throwable $e ) {
277+
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
278+
error_log( sprintf( 'Feedzy_Rss_Feeds_Log error: %s', $e->getMessage() ) );
279+
}
277280
}
278281
}
279282

includes/layouts/feedzy-tutorial.php

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@
66
-->
77
<?php
88
$is_pro = feedzy_is_pro();
9+
10+
$settings_link = add_query_arg(
11+
[
12+
'page' => 'feedzy-settings',
13+
],
14+
admin_url( 'admin.php' )
15+
);
16+
$feed_imports_link = add_query_arg(
17+
[
18+
'post_type' => 'feedzy_imports',
19+
],
20+
admin_url( 'edit.php' )
21+
);
22+
$logs_link = add_query_arg(
23+
[
24+
'tab' => 'logs',
25+
],
26+
$settings_link
27+
);
28+
929
?>
1030
<div class="support-box-list">
1131
<ul>
@@ -35,8 +55,35 @@
3555
</li>
3656
<li>
3757
<div class="support-box quick-links-box">
38-
<h3 class="h3"><?php esc_html_e( 'Quick Links', 'feedzy-rss-feeds' ); ?></h3>
39-
<p><?php esc_html_e( 'New here? Learn how to use Feedzy by following our tips and tricks:', 'feedzy-rss-feeds' ); ?></p>
58+
<h3 class="h3">
59+
<?php esc_html_e( 'Quick Links', 'feedzy-rss-feeds' ); ?>
60+
</h3>
61+
<div class="fz-quick-link-actions">
62+
<a
63+
href="<?php echo esc_url( $settings_link ); ?>"
64+
class="btn btn-primary"
65+
>
66+
<span class="dashicons dashicons-admin-generic"></span>
67+
<?php esc_html_e( 'Settings', 'feedzy-rss-feeds' ); ?>
68+
</a>
69+
<a
70+
href="<?php echo esc_url( $feed_imports_link ); ?>"
71+
class="btn btn-primary"
72+
>
73+
<span class="dashicons dashicons-rss"></span>
74+
<?php esc_html_e( 'Import Posts', 'feedzy-rss-feeds' ); ?>
75+
</a>
76+
<a
77+
href="<?php echo esc_url( $logs_link ); ?>"
78+
class="btn btn-primary"
79+
>
80+
<span class="dashicons dashicons-edit"></span>
81+
<?php esc_html_e( 'Logs', 'feedzy-rss-feeds' ); ?>
82+
</a>
83+
</div>
84+
<p>
85+
<?php esc_html_e( 'New here? Learn how to use Feedzy by following our tips and tricks:', 'feedzy-rss-feeds' ); ?>
86+
</p>
4087
<div class="quick-link-list">
4188
<ul>
4289
<li><a href="https://docs.themeisle.com/category/712-feedzy" target="_blank"><?php esc_html_e( 'General Guide', 'feedzy-rss-feeds' ); ?></a></li>

0 commit comments

Comments
 (0)