| 1 |
<?php |
| 2 |
|
| 3 |
namespace WPAdminify\Inc\Classes\Notifications; |
| 4 |
|
| 5 |
use WPAdminify\Inc\Classes\Notifications\Model\Notice; |
| 6 |
|
| 7 |
if (!class_exists('Latest_Updates')) { |
| 8 |
/** |
| 9 |
* Latest Pugin Updates Notice Class |
| 10 |
* |
| 11 |
* Jewel Theme <support@jeweltheme.com> |
| 12 |
*/ |
| 13 |
class Latest_Updates extends Notice |
| 14 |
{ |
| 15 |
|
| 16 |
/** |
| 17 |
* Latest Updates Notice |
| 18 |
* |
| 19 |
* @return void |
| 20 |
*/ |
| 21 |
public function __construct() |
| 22 |
{ |
| 23 |
parent::__construct(); |
| 24 |
} |
| 25 |
|
| 26 |
|
| 27 |
/** |
| 28 |
* Notice Content |
| 29 |
* |
| 30 |
* @author Jewel Theme <support@jeweltheme.com> |
| 31 |
*/ |
| 32 |
public function notice_content() |
| 33 |
{ |
| 34 |
$jltwp_adminify_changelog_message = sprintf( |
| 35 |
__('%3$s %4$s %5$s %6$s %7$s %8$s <br> <strong>Check Changelogs for </strong> <a href="%1$s" target="__blank">%2$s</a>', 'adminify'), |
| 36 |
esc_url_raw('https://wpadminify.com/updates'), |
| 37 |
__('More Details', 'adminify'), |
| 38 |
/** Changelog Items |
| 39 |
* Starts from: %3$s |
| 40 |
*/ |
| 41 |
|
| 42 |
'<h3 class="adminify-update-head">' . WP_ADMINIFY . ' <span><small><em>v' . esc_html(WP_ADMINIFY_VER) . '</em></small>' . __(' has some updates..', 'adminify') . '</span></h3><br>', // %3$s |
| 43 |
__('<span class="dashicons dashicons-yes"></span> <span class="adminify-changes-list"> User Login and Logout Redirection based on Username, User Roles & User Capabilities </span><br>', 'adminify'), |
| 44 |
__('<span class="dashicons dashicons-yes"></span> <span class="adminify-changes-list"> WordPress Logo on Gutenberg Post/Page Editor change options added on "Logo Options > Gutenberg Logo". </span><br>', 'adminify'), |
| 45 |
__('<span class="dashicons dashicons-yes"></span> <span class="adminify-changes-list"> Plugin Details Thickbox style issue fixed </span><br>', 'adminify'), |
| 46 |
__('<span class="dashicons dashicons-yes"></span> <span class="adminify-changes-list"> Forminator plugin admin UI broken issue fixed </span><br>', 'adminify'), |
| 47 |
__('<span class="dashicons dashicons-yes"></span> <span class="adminify-changes-list"> Login Customizer - Register, Lost Password background color issue fixed </span><br>', 'adminify') |
| 48 |
); |
| 49 |
|
| 50 |
printf(wp_kses_post($jltwp_adminify_changelog_message)); |
| 51 |
} |
| 52 |
|
| 53 |
/** |
| 54 |
* Intervals |
| 55 |
* |
| 56 |
* @author Jewel Theme <support@jeweltheme.com> |
| 57 |
*/ |
| 58 |
public function intervals() |
| 59 |
{ |
| 60 |
return array(0); |
| 61 |
} |
| 62 |
} |
| 63 |
} |
| 64 |
|