Skip to content

Commit

Permalink
Merge pull request #1662 from publishpress/feature/#1649_Tidy_up_the_…
Browse files Browse the repository at this point in the history
…Features_screen

feature/#1649_Tidy_up_the_Features_screen
  • Loading branch information
olatechpro authored May 23, 2024
2 parents c1cff67 + 0b0c59f commit 9441fa0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 34 deletions.
1 change: 1 addition & 0 deletions modules/async-notifications/async-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function __construct()
'enabled' => 'on',
],
'options_page' => false,
'autoload' => true,
];

// Apply a filter to the default options
Expand Down
1 change: 1 addition & 0 deletions modules/improved-notifications/improved-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function __construct()
'duplicated_notification_threshold' => Notification::DEFAULT_DUPLICATED_NOTIFICATION_THRESHOLD_IN_MINUTES,
],
'notification_options' => true,
'autoload' => true,
];

// Apply a filter to the default options
Expand Down
36 changes: 2 additions & 34 deletions modules/modules-settings/modules-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,44 +237,12 @@ public function print_configure_view()
echo ($mod_data->options->enabled == 'on') ? "checked=\"checked\"" : ""; ?>
type="checkbox">
&nbsp;&nbsp;&nbsp;<?php
if ($mod_data->slug === 'notifications') {
echo esc_html_e('Basic Notifications', 'publishpress');
} else {
echo esc_html($mod_data->title);
} ?>
echo esc_html($mod_data->title);
?>
</label>
<br>
<?php
endforeach; ?>

<?php if (!defined('PUBLISHPRESS_STATUSES_VERSION')) :?>
<br />
<div class="pp-notice">
<?php
$statuses_info = function_exists('publishpress_statuses_info') ? publishpress_statuses_info() : [];

$info_url = (!empty($statuses_info['info_url'])) ? $statuses_info['info_url'] : 'https://wordpress.org/plugins/publishpress-statuses';

if (!empty($statuses_info['statuses_installed'])) {
printf(
esc_html__('For custom post statuses, activate the %1$sPublishPress Statuses%2$s plugin. %3$sLearn more...%4$s', 'publishpress'),
'<a href="' . $info_url . '">',
'</a>',
'<a href="https://publishpress.com/blog/publishpress-statuses/statuses-available/" target="_blank">',
'</a>'
);
} else {
printf(
esc_html__('For custom post statuses, install the %1$sPublishPress Statuses%2$s plugin. %3$sLearn more...%4$s', 'publishpress'),
'<a href="' . $info_url . '" class="thickbox" target="_blank">',
'</a>',
'<a href="https://publishpress.com/blog/publishpress-statuses/statuses-available/" target="_blank">',
'</a>'
);
}
?>
</div>
<?php endif;?>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 9441fa0

Please sign in to comment.