config = $config;
$this->prepare_class();
/*admin menu*/
add_action( 'admin_menu', array( $this, 'at_admin_menu' ) );
/* enqueue script and style for about page */
add_action( 'admin_enqueue_scripts', array( $this, 'style_and_scripts' ) );
/* ajax callback for dismissable required actions */
add_action( 'wp_ajax_at_theme_info_update_recommended_action', array( $this, 'update_recommended_action_callback' ) );
}
/**
* Prepare and setup class properties.
*/
public function prepare_class() {
$theme = wp_get_theme();
if ( is_child_theme() ) {
$this->theme_name = $theme->parent()->get( 'Name' );
} else {
$this->theme_name = $theme->get( 'Name' );
}
$this->theme_slug = $theme->get_template();
$this->theme_version = $theme->get( 'Version' );
$this->page_title = isset( $this->config['page_title'] ) ? $this->config['page_title'] : esc_html__('Info','supermag'). $this->theme_name;
$this->menu_title = isset( $this->config['menu_title'] ) ? $this->config['menu_title'] : esc_html__('Info','supermag') . $this->theme_name;
$this->notification = isset( $this->config['notification'] ) ? $this->config['notification'] : ( '
' . sprintf( __('Welcome! Thank you for choosing %1$s! To fully take advantage of the best our theme can offer please make sure you visit our %2$swelcome page%3$s.','supermag'), $this->theme_name, '', '' ) . '
';
if ( ! empty( $recommended_actions ) && is_array( $recommended_actions ) ) {
/*get saved recommend actions*/
$saved_recommended_actions = get_option( $this->theme_slug . '_recommended_actions' );
/*defaults values for getting_started array */
$defaults = array(
'title' => '',
'desc' => '',
'check' => false,
'plugin_slug' => '',
'id' => ''
);
foreach ( $recommended_actions as $action_key => $action_value ) {
$instance = wp_parse_args( (array) $action_value, $defaults );
/*allowed 5 value in array */
$title = $instance[ 'title' ];
$desc = $instance[ 'desc' ];
$check = $instance[ 'check' ];
$plugin_slug = $instance[ 'plugin_slug' ];
$id = $instance[ 'id' ];
$hidden = false;
/*magic check for recommended actions*/
if (
isset( $saved_recommended_actions[ $id ] ) &&
$saved_recommended_actions[ $id ] == false ) {
$hidden = true;
}
if ( $hidden ) {
//continue;
}
$done = '';
if ( $check ) {
$done = 'done';
}
echo "
";
if ( ! $hidden ) {
echo '
';
} else {
echo '
';
}
if ( ! empty( $title) ) {
echo '
' . wp_kses_post( $title ) . '
';
}
if ( ! empty( $desc ) ) {
echo '
' . wp_kses_post( $desc ) . '
';
}
if ( ! empty( $plugin_slug ) ) {
$active = $this->check_plugin_status( $action_value['plugin_slug'] );
$url = $this->create_action_link( $active['needs'], $action_value['plugin_slug'] );
$label = '';
$class = '';
switch ( $active['needs'] ) {
case 'install':
$class = 'install-now button';
$label = esc_html__( 'Install', 'supermag' );
break;
case 'activate':
$class = 'activate-now button button-primary';
$label = esc_html__( 'Activate', 'supermag' );
break;
case 'deactivate':
$class = 'deactivate-now button';
$label = esc_html__( 'Deactivate', 'supermag' );
break;
}
?>
';
$hooray = false;
}
}
if ( $hooray ){
echo '
' . esc_html__( 'Hooray! There are no recommended actions for you right now.', 'supermag' ) . '';
echo '
'.esc_html__('Show All Recommended Actions','supermag').'';
}
echo '
';
}
}
/**
* Recommended plugins tab
*/
/*
* Call plugin api
*/
public function call_plugin_api( $slug ) {
include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
if ( false === ( $call_api = get_transient( 'at_theme_info_plugin_information_transient_' . $slug ) ) ) {
$call_api = plugins_api( 'plugin_information', array(
'slug' => $slug,
'fields' => array(
'downloaded' => false,
'rating' => false,
'description' => false,
'short_description' => true,
'donate_link' => false,
'tags' => false,
'sections' => true,
'homepage' => true,
'added' => false,
'last_updated' => false,
'compatibility' => false,
'tested' => false,
'requires' => false,
'downloadlink' => false,
'icons' => true
)
) );
set_transient( 'at_theme_info_plugin_information_transient_' . $slug, $call_api, 30 * MINUTE_IN_SECONDS );
}
return $call_api;
}
public function get_plugin_icon( $arr ) {
if ( ! empty( $arr['svg'] ) ) {
$plugin_icon_url = $arr['svg'];
} elseif ( ! empty( $arr['2x'] ) ) {
$plugin_icon_url = $arr['2x'];
} elseif ( ! empty( $arr['1x'] ) ) {
$plugin_icon_url = $arr['1x'];
} else {
$plugin_icon_url = get_template_directory_uri() . '/acmethemes/at-theme-info/images/placeholder_plugin.png';
}
return $plugin_icon_url;
}
public function recommended_plugins() {
$recommended_plugins = $this->config['recommended_plugins'];
if ( ! empty( $recommended_plugins ) ) {
if ( ! empty( $recommended_plugins ) && is_array( $recommended_plugins ) ) {
echo '
';
foreach ( $recommended_plugins as $recommended_plugins_item ) {
if ( ! empty( $recommended_plugins_item['slug'] ) ) {
$info = $this->call_plugin_api( $recommended_plugins_item['slug'] );
if ( ! empty( $info->icons ) ) {
$icon = $this->get_plugin_icon( $info->icons );
}
$active = $this->check_plugin_status( $recommended_plugins_item['slug'] );
if ( ! empty( $active['needs'] ) ) {
$url = $this->create_action_link( $active['needs'], $recommended_plugins_item['slug'] );
}
echo '
';
if ( ! empty( $icon ) ) {
echo '
![plugin box image]('.esc_url( $icon ).')
';
}
if ( ! empty( $info->version ) ) {
echo '
'. ( ! empty( $this->config['recommended_plugins']['version_label'] ) ? esc_html( $this->config['recommended_plugins']['version_label'] ) : '' ) . esc_html( $info->version ).'';
}
if ( ! empty( $info->author ) ) {
echo '
| ' . wp_kses_post( $info->author );
}
if ( ! empty( $info->name ) && ! empty( $active ) ) {
echo '
';
echo '' . ( ( $active['needs'] !== 'install' && $active['status'] ) ? 'Active: ' : '' ) . esc_html( $info->name ) . '';
echo '
';
$label = '';
switch ( $active['needs'] ) {
case 'install':
$class = 'install-now button';
$label = esc_html__( 'Install', 'supermag' );
break;
case 'activate':
$class = 'activate-now button button-primary';
$label = esc_html__( 'Activate', 'supermag' );
break;
case 'deactivate':
$class = 'deactivate-now button';
$label = esc_html__( 'Deactivate', 'supermag' );
break;
}
echo '
';
echo '' . esc_html( $label ) . '';
echo '';
}
echo '
';
}
}
echo '
';
}
}
}
/**
* Child themes
*/
public function child_themes() {
echo '
';
$child_themes = isset( $this->config['child_themes'] ) ? $this->config['child_themes'] : array();
if ( ! empty( $child_themes ) ) {
/*defaults values for child theme array */
$defaults = array(
'title' => '',
'screenshot' => '',
'download_link'=> '',
'preview_link' => ''
);
if ( ! empty( $child_themes ) && is_array( $child_themes ) ) {
echo '
';
$i = 0;
foreach ( $child_themes as $child_theme ){
$instance = wp_parse_args( (array) $child_theme, $defaults );
/*allowed 5 value in array */
$title = $instance[ 'title' ];
$screenshot = $instance[ 'screenshot'];
$download_link = $instance[ 'download_link'];
$preview_link = $instance[ 'preview_link'];
if( !empty( $screenshot) ){
echo '
';
echo '
';
echo '
![' . ( ! empty( $title ) ? esc_attr( $title ) : '' ) . '](' . esc_url( $screenshot ) . ')
';
if ( ! empty( $title ) ) {
echo '
';
}
echo "
";
echo "
";
$i++;
}
if( 0 == $i % 3 ){
echo "
";/*.at-about-row end-start*/
}
}
echo '
';/*.at-about-row end*/
}// End if().
}// End if().
echo '
';
}
/**
* Support tab
*/
public function support() {
echo '
';
if ( ! empty( $this->config['support_content'] ) ) {
$supports = $this->config['support_content'];
if ( ! empty( $supports ) ) {
/*defaults values for child theme array */
$defaults = array(
'title' => '',
'icon' => '',
'desc' => '',
'button_label' => '',
'button_link' => '',
'is_button' => true,
'is_new_tab' => true
);
foreach ( $supports as $support ) {
$instance = wp_parse_args( (array) $support, $defaults );
/*allowed 7 value in array */
$title = $instance[ 'title' ];
$icon = $instance[ 'icon'];
$desc = $instance[ 'desc'];
$button_label = $instance[ 'button_label'];
$button_link = $instance[ 'button_link'];
$is_button = $instance[ 'is_button'];
$is_new_tab = $instance[ 'is_new_tab'];
echo '
';
if ( ! empty( $title ) ) {
echo '
';
if ( ! empty( $icon ) ) {
echo '';
}
echo $title;
echo '
';
}
if ( ! empty( $desc ) ) {
echo '
' . $desc . '
';
}
if ( ! empty( $button_link ) && ! empty( $button_label ) ) {
echo '
';
$button_class = '';
if ( $is_button ) {
$button_class = 'button button-primary';
}
$button_new_tab = '_self';
if ( isset( $is_new_tab ) ) {
if ( $is_new_tab ) {
$button_new_tab = '_blank';
}
}
echo '' . $button_label . '';
echo '
';
}
echo '
';
}
}
}
echo '
';
}
/**
* Changelog tab
*/
private function parse_changelog() {
WP_Filesystem();
global $wp_filesystem;
$changelog = $wp_filesystem->get_contents( get_template_directory() . '/changelog.txt' );
if ( is_wp_error( $changelog ) ) {
$changelog = '';
}
return $changelog;
}
public function changelog() {
$changelog = $this->parse_changelog();
if ( ! empty( $changelog ) ) {
echo '
';
echo "
";
echo $changelog;
echo "
";
echo '
';
}
}
/**
* Free vs PRO tab
*/
public function free_pro() {
$free_pro = isset( $this->config['free_pro'] ) ? $this->config['free_pro'] : array();
if ( ! empty( $free_pro ) ) {
/*defaults values for child theme array */
$defaults = array(
'title'=> '',
'desc' => '',
'free' => '',
'pro' => '',
);
if ( ! empty( $free_pro ) && is_array( $free_pro ) ) {
echo '
';
echo '
';
echo '
';
echo '';
echo '';
echo ' | ';
echo '' . esc_html__( 'SuperMag','supermag' ) . ' | ';
echo '' . esc_html__( 'SuperMagPro','supermag' ) . ' | ';
echo '
';
echo '';
echo '';
foreach ( $free_pro as $feature ) {
$instance = wp_parse_args( (array) $feature, $defaults );
/*allowed 7 value in array */
$title = $instance[ 'title' ];
$desc = $instance[ 'desc'];
$free = $instance[ 'free'];
$pro = $instance[ 'pro'];
echo '';
if ( ! empty( $title ) || ! empty( $desc ) ) {
echo '';
if ( ! empty( $title ) ) {
echo '' . wp_kses_post( $title ) . '';
}
if ( ! empty( $desc ) ) {
echo '' . wp_kses_post( $desc ) . ' ';
}
echo ' | ';
}
if ( ! empty( $free )) {
if( 'yes' === $free ){
echo ' | ';
}
elseif ( 'no' === $free ){
echo ' | ';
}
else{
echo ''.esc_html($free ).' | ';
}
}
if ( ! empty( $pro )) {
if( 'yes' === $pro ){
echo ' | ';
}
elseif ( 'no' === $pro ){
echo ' | ';
}
else{
echo ''.esc_html($pro ).' | ';
}
}
echo '
';
}
echo '';
echo ' | ';
echo ' SuperMagPro | ';
echo '
';
echo '';
echo '
';
echo '
';
echo '
';
}
}
}
/**
* Support tab
*/
public function faq() {
echo '
';
if ( ! empty( $this->config['faq'] ) ) {
$supports = $this->config['faq'];
if ( ! empty( $supports ) ) {
/*defaults values for child theme array */
$defaults = array(
'title' => '',
'icon' => '',
'desc' => '',
'button_label' => '',
'button_link' => '',
'is_button' => true,
'is_new_tab' => true
);
foreach ( $supports as $support ) {
$instance = wp_parse_args( (array) $support, $defaults );
/*allowed 7 value in array */
$title = $instance[ 'title' ];
$icon = $instance[ 'icon'];
$desc = $instance[ 'desc'];
$button_label = $instance[ 'button_label'];
$button_link = $instance[ 'button_link'];
$is_button = $instance[ 'is_button'];
$is_new_tab = $instance[ 'is_new_tab'];
echo '
';
if ( ! empty( $title ) ) {
echo '
';
if ( ! empty( $icon ) ) {
echo '';
}
echo $title;
echo '
';
}
echo "
";
if ( ! empty( $desc ) ) {
echo '
' . $desc . '
';
}
if ( ! empty( $button_link ) && ! empty( $button_label ) ) {
echo '
';
$button_class = '';
if ( $is_button ) {
$button_class = 'button button-primary';
}
$button_new_tab = '_self';
if ( isset( $is_new_tab ) ) {
if ( $is_new_tab ) {
$button_new_tab = '_blank';
}
}
echo '' . $button_label . '';
echo '
';
}
echo "
";
echo '
';
}
}
}
echo '
';
}
/**
* Load css and scripts for the about page
*/
public function style_and_scripts( $hook_suffix ) {
// this is needed on all admin pages, not just the about page, for the badge action count in the wordpress main sidebar
wp_enqueue_style( 'at-theme-info-css', get_template_directory_uri() . '/acmethemes/at-theme-info/css/at-theme-info.css' );
if ( 'appearance_page_' . $this->theme_slug . '-info' == $hook_suffix ) {
wp_enqueue_script( 'at-theme-info-js', get_template_directory_uri() . '/acmethemes/at-theme-info/js/at-theme-info.js', array( 'jquery' ) );
wp_enqueue_style( 'plugin-install' );
wp_enqueue_script( 'plugin-install' );
wp_enqueue_script( 'updates' );
$count = $this->count_recommended_actions();
wp_localize_script( 'at-theme-info-js', 'at_theme_info_object', array(
'nr_actions_recommended' => $count,
'ajaxurl' => admin_url( 'admin-ajax.php' ),
'template_directory' => get_template_directory_uri()
) );
}
}
}
}
$config = array(
// Page title.
'page_title' => esc_html__( 'SuperMag Info', 'supermag' ),
// Menu name under Appearance.
'menu_title' => esc_html__( 'SuperMag Info', 'supermag' ),
// Main welcome title
'info_title' => sprintf( esc_html__( 'Welcome to %s - ', 'supermag' ), 'SuperMag' ),
// Main welcome content
'info_content' => sprintf( esc_html__( '%s is now installed and ready to use. We hope the following information will help you. If you want to ask any query or just want to say hello, you can always contact us. We hope you enjoy it! ', 'supermag' ), '
SuperMag' ),
/**
* Quick links
*/
'quick_links' => array(
'theme_url' => array(
'text' => __('Theme Details','supermag'),
'url' => 'https://www.acmethemes.com/themes/supermag/'
),
'demo_url' => array(
'text' => __('View Demo','supermag'),
'url' => 'http://www.demo.acmethemes.com/supermag/'
),
'pro_url' => array(
'text' => __('View Pro Version','supermag'),
'url' => 'https://www.acmethemes.com/themes/supermagpro/'
),
'rate_url' => array(
'text' => __('Rate This Theme','supermag'),
'url' => 'https://wordpress.org/support/theme/supermag/reviews/?filter=5'
),
),
'tabs' => array(
'getting_started' => __( 'Getting Started', 'supermag' ),
'recommended_actions' => __( 'Recommended Actions', 'supermag' ),
'recommended_plugins' => __( 'Useful Plugins','supermag' ),
'support' => __( 'Support', 'supermag' ),
'changelog' => __( 'Changelog', 'supermag' ),
'faq' => __( 'FAQ', 'supermag' ),
'free_pro' => __( 'Free VS PRO', 'supermag' ),
),
/*Getting started tab*/
'getting_started' => array(
'first' => array(
'title' => esc_html__( 'Step 1 : Read full documentation','supermag' ),
'desc' => esc_html__( 'Please check our full documentation for detailed information on how to Setup and Use SuperMag.','supermag' ),
'link_title' => esc_html__( 'Documentation','supermag' ),
'link_url' => 'http://www.doc.acmethemes.com/supermag/',
'is_button' => false,
'recommended_actions' => false,
'is_new_tab' => true
),
'second' => array(
'title' => esc_html__( 'Step 2 : Go to Customizer','supermag' ),
'desc' => esc_html__( 'All Setting, Theme Options, Widgets and Menus are available via Customize screen. Have a quick look or start customization!','supermag' ),
'link_title' => esc_html__( 'Go to Customizer','supermag' ),
'link_url' => esc_url( admin_url( 'customize.php' ) ),
'is_button' => true,
'recommended_actions' => false,
'is_new_tab' => true
),
'third' => array(
'title' => esc_html__( 'Step 3 : Setting Featured Section ','supermag' ),
'desc' => esc_html__( 'Add Feature Image or Unlimited Slides on Feature Section. Please do the Step 3 before this.','supermag' ),
'link_title' => esc_html__( 'Featured Section','supermag' ),
'link_url' => esc_url( admin_url( 'customize.php' ) ).'?autofocus[panel]=supermag-feature-panel',
'is_button' => true,
'recommended_actions' => false,
'is_new_tab' => true
),
'forth' => array(
'title' => esc_html__( 'Step 4 : Setting Home Main Content Area ','supermag' ),
'desc' => esc_html__( 'Add different section on Home Main Content Area using Widgets','supermag' ),
'link_title' => esc_html__( 'Add different section on Home Page','supermag' ),
'link_url' => esc_url( admin_url( 'customize.php' ) ).'?autofocus[section]=sidebar-widgets-supermag-home',
'is_button' => true,
'recommended_actions' => false,
'is_new_tab' => true
)
),
// recommended actions array.
'recommended_actions' => array(
'setting-image' => array(
'title' => esc_html__( 'Setting Image Size','supermag' ),
'desc' => sprintf( esc_html__( 'IMPORTANT!!! Set thumbnail size : 500 * 280, Set Medium size : 660 * 365, Set Large size : 840 * 480 %1$s Set Image Size %2$s ', 'supermag' ), '
','
' ),
'id' => 'setting-image'
),
'demo-content' => array(
'title' => esc_html__( 'Install Gutentor','supermag' ),
'desc' => sprintf( esc_html__( 'Customize everything within default WordPress editor %1$s Gutentor : WordPress Page Builder with Unlimited Possibilities to Design %2$s.', 'supermag' ), '
','' ),
'id' => 'gutentor',
'check' => ( ( function_exists('acme_demo_setup_load_textdomain') )? true : false ),
'plugin_slug' => 'gutentor',
)
),
// Plugins array.
'recommended_plugins' => array(
'gutentor' => array(
'slug' => 'gutentor'
)
),
/*FAQ*/
'faq' => array(
'first' => array (
'title' => esc_html__( 'Where to get a dedicated support ? ','supermag' ),
'icon' => 'dashicons dashicons-sos',
'desc' => esc_html__( 'Follow the theme dedicated support forum.','supermag' ),
'button_label' => esc_html__( 'Click here to get the support','supermag' ),
'button_link' => esc_url( 'https://www.acmethemes.com/supports' ),
'is_button' => true,
'is_new_tab' => true
),
'second' => array (
'title' => esc_html__( 'Recent Updates of your Site ? ','supermag' ),
'icon' => 'dashicons dashicons-sos',
'desc' => esc_html__( 'Where i can get the recent updates of theme related updates ? ','supermag' ),
'button_label' => esc_html__( 'Visit our site blog page','supermag' ),
'button_link' => esc_url( 'https://www.acmethemes.com/blog/' ),
'is_button' => true,
'is_new_tab' => true
),
'third' => array (
'title' => esc_html__( 'How to make image size suitable for the theme ? ','supermag' ),
'icon' => 'dashicons dashicons-sos',
'desc' => esc_html__( 'In this recent update, you can check Appearance > SuperMag Info > Recommended Action > Setting Image Size and click on Set Image size. Now your theme image size will be automatically updates on Settings > Media.','supermag' )
),
'forth' => array (
'title' => esc_html__( 'How to hide/change footer text Proudly powered by WordPress | Theme: SuperMag by Acme Themes. ? ','supermag' ),
'icon' => 'dashicons dashicons-sos',
'button_label' => esc_html__( 'Visit this blog post to know how to change or remove powered by text.','supermag' ),
'button_link' => esc_url( 'https://www.acmethemes.com/blog/2017/01/remove-powered-by-text-on-footer/' ),
'is_button' => true,
'is_new_tab' => true
)
),
// Support content tab.
'support_content' => array(
'first' => array (
'title' => esc_html__( 'Contact Support','supermag' ),
'icon' => 'dashicons dashicons-sos',
'desc' => esc_html__( 'Got theme support question or found bug? Best place to ask your query is our dedicated Support forum.','supermag' ),
'button_label' => esc_html__( 'Contact Support','supermag' ),
'button_link' => esc_url( 'https://www.acmethemes.com/supports/forum/supermag/' ),
'is_button' => true,
'is_new_tab' => true
),
'second' => array(
'title' => esc_html__( 'Documentation','supermag' ),
'icon' => 'dashicons dashicons-book-alt',
'desc' => esc_html__( 'Please check our full documentation for detailed information on how to Setup and Use SuperMag.','supermag' ),
'button_label' => esc_html__( 'Read full documentation','supermag' ),
'button_link' => 'http://www.doc.acmethemes.com/supermag/',
'is_button' => false,
'is_new_tab' => true
),
'third' => array(
'title' => esc_html__( 'Need more features?','supermag' ),
'icon' => 'dashicons dashicons-screenoptions',
'desc' => esc_html__( 'Upgrade to PRO version for more exciting features and Priority Support.','supermag' ),
'button_label' => esc_html__( 'View Pro Version','supermag' ),
'button_link' => 'https://www.acmethemes.com/themes/supermagpro/',
'is_button' => true,
'is_new_tab' => true
),
'fourth' => array(
'title' => esc_html__( 'Got sales related question?','supermag' ),
'icon' => 'dashicons dashicons-cart',
'desc' => esc_html__( "Have any query before purchase, you are more than welcome to ask.",'supermag' ),
'button_label' => esc_html__( 'Pre-sale Question?','supermag' ),
'button_link' => 'https://www.acmethemes.com/pre-sale-question/',
'is_button' => true,
'is_new_tab' => true
),
'fifth' => array(
'title' => esc_html__( 'Customization Request','supermag' ),
'icon' => 'dashicons dashicons-hammer',
'desc' => esc_html__( 'Needed any customization for the theme, you can request from here.','supermag' ),
'button_label' => esc_html__( 'Customization Request','supermag' ),
'button_link' => 'https://www.acmethemes.com/customization-request/',
'is_button' => false,
'is_new_tab' => true
)
),
// Free vs pro array.
'free_pro' => array(
array(
'title'=> __( 'Custom Widgets', 'supermag' ),
'desc' => __( 'All added custom widgets are ready for page builder plugin', 'supermag' ),
'free' => __('2+ Available','supermag'),
'pro' => __('12+ Available','supermag'),
),
array(
'title' => __( 'Widget Options', 'supermag' ),
'desc' => __( 'Every widgets have multiple options to customize section', 'supermag' ),
'free' => __('Limited','supermag'),
'pro' => __('Multiple Options','supermag'),
),
array(
'title' => __( 'Google Fonts', 'supermag' ),
'desc' => __( 'Google fonts options for changing the overall site fonts ', 'supermag' ),
'free' => 'yes',
'pro' => __('100 +','supermag'),
),
array(
'title' => __( 'Color Options', 'supermag' ),
'desc' => __( 'Color options for changing overall site colors, Contat us', 'supermag' ),
'free' => __('2','supermag'),
'pro' => __('Unlimited','supermag'),
),
array(
'title' => __( 'Header Options', 'supermag' ),
'desc' => __( 'Customze the header section as your need.', 'supermag' ),
'free' => __('Limited','supermag'),
'pro' => __('Multiple Options','supermag'),
),
array(
'title' => __( 'Breaking News Options', 'supermag' ),
'desc' => __( 'Manage your breaking news section on header', 'supermag' ),
'free' => __('Limited','supermag'),
'pro' => __('Multiple Options','supermag'),
),
array(
'title' => __( 'Menu Options', 'supermag' ),
'desc' => __( 'Lots of menu options are available to manage the menu section. Appearance > Menus', 'supermag' ),
'free' => __('Limited','supermag'),
'pro' => __('Multiple Options','supermag'),
),
array(
'title' => __( 'Featured Selection', 'supermag' ),
'desc' => __( 'This is slider section. Check every options there','supermag' ),
'free' => __('Parent/Child Page','supermag'),
'pro' => __('Page, Post, Category, And Custom','supermag'),
),
array(
'title' => __( 'Featured Section Options', 'supermag' ),
'desc' => __( 'Options to manage the sliders', 'supermag' ),
'free' => __('Limited','supermag'),
'pro' => __('Multiple Options','supermag'),
),
array(
'title' => __( 'Sticky Sidebar', 'supermag' ),
'desc' => __( 'Enable/Disable sticky sidebars', 'supermag' ),
'free' => 'no',
'pro' => 'yes',
),
array(
'title' => __( 'Blog/Archive Options', 'supermag' ),
'desc' => __( 'Various Options are available for the blog and archive page management. Check on Appearance > Customize > Layout/Design Options.', 'supermag' ),
'free' => __('Limited','supermag'),
'pro' => __('Manage Every Entity','supermag'),
),
array(
'title' => __( 'Footer Options', 'supermag' ),
'desc' => __( 'Manage the every entity related to footer section.', 'supermag' ),
'free' => __('Limited','supermag'),
'pro' => __('Multiple Options','supermag'),
),
array(
'title' => __( 'Social Options', 'supermag' ),
'desc' => __( 'Options to manage the social icons like facebook, instagram, linkedin etc.', 'supermag' ),
'free' => __('Limited','supermag'),
'pro' => __('Multiple Options','supermag'),
),
array(
'title' => __( 'Theme Credit Link', 'supermag' ),
'desc' => __( 'Options to disable to Powered by text on footer.', 'supermag' ),
'free' => __('No Options To Disable','supermag'),
'pro' => __('Enable/Disable','supermag'),
),
array(
'title' => __( 'Own Credit Link', 'supermag' ),
'desc' => __( 'Write your own credit text.', 'supermag' ),
'free' => 'no',
'pro' => __('Enable/Disable','supermag'),
),
array(
'title' => __( 'Social Icons', 'supermag' ),
'desc' => __( 'Enter the URL for social icons. ', 'supermag' ),
'free' => __('5 +','supermag'),
'pro' => __('Available Mostly Used','supermag'),
),
array(
'title' => __( 'Intro Loader Options', 'supermag' ),
'desc' => __( 'It will load before the site loaded completely.', 'supermag' ),
'free' => 'no',
'pro' => __('Multiple Options','supermag'),
),
array(
'title' => __( 'Related Post Options', 'supermag' ),
'desc' => __( 'Related post will appear on single post of each blog article', 'supermag' ),
'free' => __('Enable/Disable','supermag'),
'pro' => __('Multiple Options','supermag'),
),
array(
'title' => __( 'Author Info Options', 'supermag' ),
'desc' => __( 'This will appear on single page and archive page of that author.', 'supermag' ),
'free' => __('Default','supermag'),
'pro' => __('Multiple Options','supermag'),
),
array(
'title' => __( 'Feature Image Options', 'supermag' ),
'desc' => __( 'Featured image options for the single page and post.', 'supermag' ),
'free' => 'no',
'pro' => __('Manage As Your Need','supermag'),
),
array(
'title' => __( 'Navigation Options', 'supermag' ),
'desc' => __( 'Post Navigation means, previous post and next post. Check on single post.', 'supermag' ),
'free' => __('Default','supermag'),
'pro' => __('Advanced','supermag'),
),
array(
'title' => __( 'Post Comment Options', 'supermag' ),
'desc' => __( 'Manage the comment section on single post.', 'supermag' ),
'free' => 'no',
'pro' => __('Options Available','supermag'),
),
array(
'title' => __( 'Show/Hide Comment', 'supermag' ),
'desc' => __( 'Options to show hide comments on page and post.', 'supermag' ),
'free' => 'no',
'pro' => 'yes',
),
array(
'title' => __( 'Breadcrumb', 'supermag' ),
'desc' => __( 'Advanced options for manage the Breadcrumb.', 'supermag' ),
'free' => 'yes',
'pro' => __('Advanced','supermag'),
),
array(
'title' => __( 'Video Post On Featured', 'supermag' ),
'desc' => __( 'Create your video post easily from Youtube and Vimeo video.', 'supermag' ),
'free' => 'no',
'pro' => __('Add Own Video On Featured','supermag'),
),
array(
'title'=> __( 'Single Post Options', 'supermag' ),
'desc' => __( 'Manage every entity of single post.', 'supermag' ),
'free' => __('Limited','supermag'),
'pro' => __('Multiple Options','supermag'),
),
array(
'title'=> __( 'Featured Image Size', 'supermag' ),
'desc' => __( 'Select the size of the featured image on the single post.', 'supermag' ),
'free' => 'no',
'pro' => 'yes',
),
array(
'title'=> __( 'Sidebars', 'supermag' ),
'desc' => __( 'Global and Individual sidebars are available. You can easily orveride it from single page/post.', 'supermag' ),
'free' => 'Yes',
'pro' => __('Global And Individuals', 'supermag'),
),
array(
'title'=> __( 'WooCommerce', 'supermag' ),
'desc' => __( 'Create WooCommerce shop easily with the help of WooCommerce plugin.', 'supermag' ),
'free' => 'Yes',
'pro' => 'yes',
),
array(
'title' => __( 'Translation', 'supermag' ),
'desc' => __( 'Both theme are translation ready.', 'supermag' ),
'free' => 'yes',
'pro' => 'yes',
),
array(
'title' => __( 'SEO', 'supermag' ),
'desc' => __( 'Developed with high skilled SEO tools.', 'supermag' ),
'free' => 'yes',
'pro' => 'yes',
),
array(
'title' => __( 'Widget Area On Footer', 'supermag' ),
'desc' => __( 'Change the number of footers on footer area as you need.', 'supermag' ),
'free' => __('3 ', 'supermag'),
'pro' => __('Choose On Need', 'supermag'),
),
array(
'title' => __( 'Support Forum', 'supermag' ),
'desc' => __( 'Highly dedicated support team are assigned for your help. Try this today.', 'supermag' ),
'free' => __('Second', 'supermag'),
'pro' => __('Dedicated With High Priority', 'supermag'),
)
),
);
return new Supermag_Theme_Info( $config );