%s', __( 'Featured', 'feather-magazine' ) );
} ?>
...
1' : '';
$theme_info = add_theme_page(__('Theme Settings', 'feather-magazine'), __('Theme Settings', 'feather-magazine').$awaiting, 'manage_options', 'feather-magazine-info.php', 'feather_magazine_info_page', 1);
}
function feather_magazine_info_page()
{
$user = wp_get_current_user();
$theme = wp_get_theme();
$parent_name = is_child_theme() ? wp_get_theme($theme->Template) : '';
$theme_name = is_child_theme() ? $theme." ".__("and", "feather-magazine")." ".$parent_name : $theme;
$demo_text = is_child_theme() ? sprintf(__("Need inspiration? Take a moment to view our theme demo for the %s parent theme %s!", "feather-magazine"), $theme, $parent_name) : __("Need inspiration? Take a moment to view our theme demo!", "feather-magazine");
$premium_text = is_child_theme() ? sprintf(__("Unlock all features by upgrading to the premium edition of %s and its parent theme %s.", "feather-magazine"), $theme, $parent_name) : sprintf(__("Unlock all features by upgrading to the premium edition of %s.", "feather-magazine"),$theme);
$option_name = 'feather_magazine_themepage_seen';
$option = get_option($option_name, null);
if (is_null($option)) {
add_option($option_name, true);
} elseif (!$option) {
update_option($option_name, true);
} ?>
'Superb Helper',
'slug' => 'superb-helper',
'required' => false,
),
array(
'name' => 'Superb Addons - WordPress Editor And Elementor Blocks, Sections & Patterns',
'slug' => 'superb-blocks',
'required' => false,
),
);
/*
* Array of configuration settings. Amend each line as needed.
*
* TGMPA will start providing localized text strings soon. If you already have translations of our standard
* strings available, please help us make TGMPA even better by giving us access to these translations or by
* sending in a pull-request with .po file(s) with the translations.
*
* Only uncomment the strings in the config array if you want to customize the strings.
*/
$config = array(
'id' => 'feather-magazine', // Unique ID for hashing notices for multiple instances of TGMPA.
'default_path' => '', // Default absolute path to bundled plugins.
'menu' => 'tgmpa-install-plugins', // Menu slug.
'has_notices' => true, // Show admin notices or not.
'dismissable' => true, // If false, a user cannot dismiss the nag message.
'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.
'is_automatic' => false, // Automatically activate plugins after installation or not.
'message' => '', // Message to output right before the plugins table.
);
tgmpa( $plugins, $config );
}
add_action('admin_init', 'feather_magazine_spbThemesNotification', 8);
function feather_magazine_spbThemesNotification(){
$notifications = include('inc/admin_notification/Autoload.php');
$notifications->Add("feather_magazine_notification", "Unlock All Features with Feather Magazine Premium – Limited Time Offer", "
Take advantage of the up to
40% discount and unlock all features with Feather Magazine Premium.
The discount is only available for a limited time.
", "info");
$options_notification_start = array("delay"=> "-1 seconds", "wpautop" => false);
$notifications->Add("feathermag_notification_start", "Let's get you started with Feather Mag!", '
Why Feather Mag
- Easy to Use & Customize
- Search Engine Optimized
- Lightweight and Fast
- Top-notch Customer Support
View Feather Mag Demo
Customize Feather Mag
', "info", $options_notification_start);
$notifications->Boot();
}