config = $config;
$this->prepare_class();
/* activation notice */
add_action( 'load-themes.php', array( $this, 'activation_admin_notice' ) );
/*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' ) );
/*ajax callback for demo content installation*/
add_action( 'wp_ajax_at_theme_info_ajax_demo_setup', array( $this, 'at_theme_info_ajax_demo_setup_callback' ) );
}
public function at_theme_info_ajax_demo_setup_callback() {
$required_files['xml'] = get_template_directory().'/acmethemes/dummy-data/beauty-studio-pro.xml';
$required_files['wie'] = get_template_directory().'/acmethemes/dummy-data/beauty-studio-pro.wie';
$required_files['dat'] = get_template_directory().'/acmethemes/dummy-data/beauty-studio-pro.dat';
if( class_exists('Acme_Demo_Setup') ) {
$Acme_Demo_Setup = new Acme_Demo_Setup();
$Acme_Demo_Setup->import($required_files);
}
else{
esc_html_e('First Install and Activate the plugin','beauty-studio');
exit;
}
}
/**
* Adds an admin notice upon successful activation.
*/
public function activation_admin_notice() {
global $pagenow;
if ( is_admin() && ( 'themes.php' == $pagenow ) && isset( $_GET['activated'] ) ) {
add_action( 'admin_notices', array( $this, 'at_theme_info_welcome_admin_notice' ), 99 );
}
}
/**
* Display an admin notice linking to the about page
*/
public function at_theme_info_welcome_admin_notice() {
echo '
' . sprintf( esc_html__('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.','beauty-studio'), $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', 'beauty-studio' );
break;
case 'activate':
$class = 'activate-now button button-primary';
$label = esc_html__( 'Activate', 'beauty-studio' );
break;
case 'deactivate':
$class = 'deactivate-now button';
$label = esc_html__( 'Deactivate', 'beauty-studio' );
break;
}
?>
';
$hooray = false;
}
}
if ( $hooray ){
echo '
' . esc_html__( 'Hooray! There are no recommended actions for you right now.', 'beauty-studio' ) . '';
echo '
'.esc_html__('Show All Recommended Actions','beauty-studio').'';
}
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 '
.')
';
}
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 '
'.esc_html__('|','beauty-studio') .'' . wp_kses_post( $info->author );
}
if ( ! empty( $info->name ) && ! empty( $active ) ) {
echo '
';
echo '' . ( ( $active['needs'] !== 'install' && $active['status'] ) ? esc_html__('Active:','beauty-studio') : '' ) . esc_html( $info->name ) . '';
echo '
';
$label = '';
switch ( $active['needs'] ) {
case 'install':
$class = 'install-now button';
$label = esc_html__( 'Install', 'beauty-studio' );
break;
case 'activate':
$class = 'activate-now button button-primary';
$label = esc_html__( 'Activate', 'beauty-studio' );
break;
case 'deactivate':
$class = 'deactivate-now button';
$label = esc_html__( 'Deactivate', 'beauty-studio' );
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 '
 . ')
';
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 */
/*default values*/
$title = esc_html( $instance[ 'title' ] );
$icon = esc_attr( $instance[ 'icon']);
$desc = wp_kses_post( $instance[ 'desc' ] );
$button_label = esc_html( $instance[ 'button_label'] );
$button_link = esc_url( $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 wp_kses_post( $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__( 'Beauty Studio','beauty-studio' ) . ' | ';
echo '' . esc_html__( 'Beauty Studio Pro','beauty-studio' ) . ' | ';
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 ' Beauty Studio Pro | ';
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 = esc_html( $instance[ 'title' ] );
$icon = esc_attr( $instance[ 'icon']);
$desc = wp_kses_post( $instance[ 'desc' ] );
$button_label = esc_html( $instance[ 'button_label'] );
$button_link = esc_url( $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(),
'confirm_msg' => esc_html__('Importing demo content is recommended in new WordPress setup, Importing demo content will add dummy page, post, widgets, customier options and other demo content. Are you sure you want to import demo?','beauty-studio'),
'importing' => esc_html__('Importing...Please wait some time','beauty-studio'),
'imported' => esc_html__('Task Completed, view the log below','beauty-studio')
) );
}
}
}
}
$config = array(
// Page title.
'page_title' => esc_html__( 'Beauty Studio Pro Info', 'beauty-studio' ),
// Menu name under Appearance.
'menu_title' => esc_html__( 'Beauty Studio Pro Info', 'beauty-studio' ),
// Main welcome title
'info_title' => sprintf( esc_html__( 'Welcome to %s - ', 'beauty-studio' ), 'Beauty Studio Pro' ),
// 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! ', 'beauty-studio' ), '
Beauty Studio Pro' ),
/**
* Quick links
*/
'quick_links' => array(
'theme_url' => array(
'text' => esc_html__('Theme Details','beauty-studio'),
'url' => 'https://www.acmethemes.com/themes/beauty-studio-pro/'
),
'demo_url' => array(
'text' => esc_html__('View Demo','beauty-studio'),
'url' => 'http://www.demo.acmethemes.com/beauty-studio-pro/'
),
'rate_url' => array(
'text' => esc_html__('Rate This Theme','beauty-studio'),
'url' => 'https://wordpress.org/support/theme/beauty-studio/reviews/?filter=5'
),
),
/**
* Tabs array.
*'tabs' => array(
'getting_started' => __( 'Getting Started', 'beauty-studio' ),
'recommended_actions' => __( 'Recommended Actions', 'beauty-studio' ),
'recommended_plugins' => __( 'Useful Plugins','beauty-studio' ),
'support' => __( 'Support', 'beauty-studio' ),
'changelog' => __( 'Changelog', 'beauty-studio' ),
'faq' => __( 'FAQ', 'beauty-studio' ),
'free_pro' => __( 'Free VS PRO', 'beauty-studio' ),
),
* The key needs to be ONLY consisted from letters and underscores. If we want to define outside the class a function to render the tab,
* the will be the name of the function which will be used to render the tab content.
*/
'tabs' => array(
'getting_started' => esc_html__( 'Getting Started', 'beauty-studio' ),
'recommended_actions' => esc_html__( 'Recommended Actions', 'beauty-studio' ),
'recommended_plugins' => esc_html__( 'Useful Plugins','beauty-studio' ),
'support' => esc_html__( 'Support', 'beauty-studio' ),
'changelog' => esc_html__( 'Changelog', 'beauty-studio' ),
'faq' => esc_html__( 'FAQ', 'beauty-studio' )
),
/*Getting started tab*/
'getting_started' => array(
'first' => array(
'title' => esc_html__( 'Step 1 : Read full documentation','beauty-studio' ),
'desc' => esc_html__( 'Please check our full documentation for detailed information on how to Setup and Use Beauty Studio.','beauty-studio' ),
'link_title' => esc_html__( 'Documentation','beauty-studio' ),
'link_url' => 'http://www.doc.acmethemes.com/beauty-studio-pro/',
'is_button' => false,
'recommended_actions' => false,
'is_new_tab' => true
),
'second' => array(
'title' => esc_html__( 'Step 2 : Go to Customizer','beauty-studio' ),
'desc' => esc_html__( 'All Setting, Theme Options, Widgets and Menus are available via Customize screen. Have a quick look or start customization!','beauty-studio' ),
'link_title' => esc_html__( 'Go to Customizer','beauty-studio' ),
'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 Static Front Page','beauty-studio' ),
'desc' => esc_html__( 'Select A static page than Front page and Posts page to enable Slider and Home Main Content Area','beauty-studio' ),
'link_title' => esc_html__( 'Static Front Page','beauty-studio' ),
'link_url' => esc_url( admin_url( 'customize.php' ) ).'?autofocus[section]=static_front_page',
'is_button' => true,
'recommended_actions' => false,
'is_new_tab' => true
),
'forth' => array(
'title' => esc_html__( 'Step 4 : Setting Featured Section ','beauty-studio' ),
'desc' => esc_html__( 'Advanced Feature Section is available in this theme. You can add Feature Main Slider and Feature Right Vertical Slider, also you can add widgets before feature. Please do the Step 3 before this.','beauty-studio' ),
'link_title' => esc_html__( 'Featured Section','beauty-studio' ),
'link_url' => esc_url( admin_url( 'customize.php' ) ).'?autofocus[panel]=beauty-studio-feature-panel',
'is_button' => true,
'recommended_actions' => false,
'is_new_tab' => true
),
'fifth' => array(
'title' => esc_html__( 'Step 5 : Setting Home Main Content Area ','beauty-studio' ),
'desc' => esc_html__( 'You can Add, Edit, Remove or Drag, Drop, Reorder widgets on Home Main Content Area. Please do the Step 3 before this.','beauty-studio' ),
'link_title' => esc_html__( 'Home Main Content Area','beauty-studio' ),
'link_url' => esc_url( admin_url( 'customize.php' ) ).'?autofocus[section]=sidebar-widgets-beauty-studio-home',
'is_button' => true,
'recommended_actions' => false,
'is_new_tab' => true
),
'sixth' => array (
'title' => esc_html__( 'Do not forget to install WooCommerce','beauty-studio' ),
'desc' => esc_html__( 'If you are using this theme for your online store or shop, dont forget to install WooCommerce Plugin','beauty-studio' ),
'link_title' => esc_html__( 'Install Recommended Plugins','beauty-studio' ),
'link_url' => '?page=beauty-studio-pro-info&tab=recommended_plugins',
'is_button' => true,
'recommended_actions' => false,
'is_new_tab' => false
),
),
// recommended actions array.
'recommended_actions' => array(
'demo-content' => array(
'title' => esc_html__( 'Install Demo Setup','beauty-studio' ),
'desc' => sprintf( esc_html__( 'For the demo content installation, install the Acme Demo Setup plugin and other recommended plugin and click %1$s here %2$s', 'beauty-studio' ), '
',' ' ),
'id' => 'acme-demo-setup',
'check' => ( ( function_exists('acme_demo_setup_load_textdomain') )? true : false ),
'plugin_slug' => 'acme-demo-setup',
),
'front-page' => array(
'title' => esc_html__( 'Setting Static Front Page','beauty-studio' ),
'desc' => sprintf( esc_html__( 'Select A static page than Front page and Posts page to enable Slider and Home Main Content Area %1$s Static Front Page %2$s ', 'beauty-studio' ), '
','
' ),
'id' => 'front-page',
'check' => ( ( 'page' == get_option('show_on_front') )? true : false )
)
),
// Plugins array.
'recommended_plugins' => array(
'acme-demo-setup' => array(
'slug' => 'acme-demo-setup'
),
'woocommerce' => array(
'slug' => 'woocommerce'
),
'siteorigin-panels' => array(
'slug' => 'siteorigin-panels'
)
),
/*FAQ*/
'faq' => array(
'first' => array (
'title' => esc_html__( 'How to Setup Site like Demo','beauty-studio' ),
'icon' => 'dashicons dashicons-sos',
'desc' => sprintf( esc_html__( 'For the demo content installation, install the Acme Demo Setup plugin and other Recommended plugins, and Go to %1$s Recommended Actions %2$s. And follow instruction on Install Demo Setup. ', 'beauty-studio' ), '
','' ),
'button_label' => esc_html__( 'Install Demo Content','beauty-studio' ),
'button_link' => '?page=beauty-studio-pro-info&tab=recommended_actions',
'is_button' => true,
'is_new_tab' => false
),
'second' => array (
'title' => esc_html__( 'Feature Section is now Showing','beauty-studio' ),
'icon' => 'dashicons dashicons-sos',
'desc' => esc_html__( 'Please go to Setting => Reading,then Select A static page than Front page and Posts page to enable Slider and Home Main Content Area','beauty-studio' ),
'button_label' => esc_html__( 'Set Static Page','beauty-studio' ),
'button_link' => esc_url( admin_url( 'options-reading.php' ) ),
'is_button' => true,
'is_new_tab' => true
),
'third' => array (
'title' => esc_html__( 'Hide Beauty Studio by Acme Themes from footer ? ','beauty-studio' ),
'icon' => 'dashicons dashicons-sos',
'desc' => esc_html__( 'You can hide from the Customizer options.','beauty-studio' ),
'button_label' => esc_html__( 'Hide credit text on Footer','beauty-studio' ),
'button_link' => esc_url( admin_url( 'customize.php' ) ).'?autofocus[section]=beauty-studio-front-page-options',
'is_button' => true,
'is_new_tab' => true
),
'forth' => array (
'title' => esc_html__( 'Recent Updates of your Site ? ','beauty-studio' ),
'icon' => 'dashicons dashicons-sos',
'desc' => esc_html__( 'Where i can get the recent updates of theme related updates ? ','beauty-studio' ),
'button_label' => esc_html__( 'Visit our site blog page','beauty-studio' ),
'button_link' => esc_url( 'https://www.acmethemes.com/blog/' ),
'is_button' => true,
'is_new_tab' => true
),
),
// Support content tab.
'support_content' => array(
'first' => array (
'title' => esc_html__( 'Contact Support','beauty-studio' ),
'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.','beauty-studio' ),
'button_label' => esc_html__( 'Contact Support','beauty-studio' ),
'button_link' => esc_url( 'https://www.acmethemes.com/supports/forum/beauty-studio-pro/' ),
'is_button' => true,
'is_new_tab' => true
),
'second' => array(
'title' => esc_html__( 'Documentation','beauty-studio' ),
'icon' => 'dashicons dashicons-book-alt',
'desc' => esc_html__( 'Please check our full documentation for detailed information on how to Setup and Use Beauty Studio.','beauty-studio' ),
'button_label' => esc_html__( 'Read full documentation','beauty-studio' ),
'button_link' => 'http://www.doc.acmethemes.com/beauty-studio-pro/',
'is_button' => false,
'is_new_tab' => true
),
'third' => array(
'title' => esc_html__( 'Theme Details','beauty-studio' ),
'icon' => 'dashicons dashicons-screenoptions',
'desc' => esc_html__( 'View the theme details page or contact support ','beauty-studio' ),
'button_label' => esc_html__( 'View Details','beauty-studio' ),
'button_link' => 'https://www.acmethemes.com/themes/beauty-studio-pro/',
'is_button' => true,
'is_new_tab' => true
),
'forth' => array(
'title' => esc_html__( 'Customization Request','beauty-studio' ),
'icon' => 'dashicons dashicons-hammer',
'desc' => esc_html__( 'Needed any customization for the theme, you can request from here.','beauty-studio' ),
'button_label' => esc_html__( 'Customization Request','beauty-studio' ),
'button_link' => 'https://www.acmethemes.com/customization-request/',
'is_button' => false,
'is_new_tab' => true
),
'fifth' => array(
'title' => esc_html__( 'Build a page with a drag-and-drop content builder','beauty-studio' ),
'icon' => 'dashicons dashicons-tagcloud',
'desc' => esc_html__( 'Install the plugin Page Builder by SiteOrigin from Useful Plugins and start to create creative content on page and post.','beauty-studio' ),
'button_label' => esc_html__( 'Install Plugin','beauty-studio' ),
'button_link' => '?page=beauty-studio-pro-info&tab=recommended_plugins',
'is_button' => false,
'is_new_tab' => false
)
)
);
return new Beauty_Studio_Theme_Info( $config );