config = $config;
$this->prepare_class();
/*admin menu*/
add_action( 'admin_menu', array( $this, 'kt_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_kt_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','business-gravity'). $this->theme_name;
$this->menu_title = isset( $this->config['menu_title'] ) ? $this->config['menu_title'] : esc_html__('Info','business-gravity') . $this->theme_name;
$this->tabs = isset( $this->config['tabs'] ) ? $this->config['tabs'] : array();
}
/**
* Return the valid array of recommended actions.
* @return array The valid array of recommended actions.
*/
/**
* Dismiss required actions
*/
public function update_recommended_action_callback() {
/*getting for provided array*/
$recommended_actions = isset( $this->config['recommended_actions'] ) ? $this->config['recommended_actions'] : array();
/*from js action*/
$action_id = esc_attr( ( isset( $_GET['id'] ) ) ? $_GET['id'] : 0 );
$todo = esc_attr( ( isset( $_GET['todo'] ) ) ? $_GET['todo'] : '' );
/*getting saved actions*/
$saved_actions = get_option( $this->theme_slug . '_recommended_actions' );
echo esc_html( wp_unslash( $action_id ) ); /* this is needed and it's the id of the dismissable required action */
if ( ! empty( $action_id ) ) {
if( 'reset' == $todo ){
$saved_actions_new = array();
if ( ! empty( $recommended_actions ) ) {
foreach ( $recommended_actions as $recommended_action ) {
$saved_actions[ $recommended_action['id'] ] = true;
}
update_option( $this->theme_slug . '_recommended_actions', $saved_actions_new );
}
}
/* if the option exists, update the record for the specified id */
elseif ( !empty( $saved_actions) and is_array( $saved_actions ) ) {
switch ( esc_html( $todo ) ) {
case 'add';
$saved_actions[ $action_id ] = true;
break;
case 'dismiss';
$saved_actions[ $action_id ] = false;
break;
}
update_option( $this->theme_slug . '_recommended_actions', $saved_actions );
/* create the new option,with false for the specified id */
}
else {
$saved_actions_new = array();
if ( ! empty( $recommended_actions ) ) {
foreach ( $recommended_actions as $recommended_action ) {
echo $recommended_action['id'];
echo " ".$todo;
if ( $recommended_action['id'] == $action_id ) {
switch ( esc_html( $todo ) ) {
case 'add';
$saved_actions_new[ $action_id ] = true;
break;
case 'dismiss';
$saved_actions_new[ $action_id ] = false;
break;
}
}
}
}
update_option( $this->theme_slug . '_recommended_actions', $saved_actions_new );
}
}
exit;
}
private function get_recommended_actions() {
$saved_actions = get_option( $this->theme_slug . '_recommended_actions' );
if ( ! is_array( $saved_actions ) ) {
$saved_actions = array();
}
$recommended_actions = isset( $this->config['recommended_actions'] ) ? $this->config['recommended_actions'] : array();
$valid = array();
if( isset( $recommended_actions ) && is_array( $recommended_actions ) ){
foreach ( $recommended_actions as $recommended_action ) {
if (
(
! isset( $recommended_action['check'] ) ||
( isset( $recommended_action['check'] ) && ( $recommended_action['check'] == false ) )
)
&&
( ! isset( $saved_actions[ $recommended_action['id'] ] ) ||
( isset( $saved_actions[ $recommended_action['id']] ) && ($saved_actions[ $recommended_action['id']] == true ) )
)
) {
$valid[] = $recommended_action;
}
}
}
return $valid;
}
private function count_recommended_actions() {
$count = 0;
$actions_count = $this->get_recommended_actions();
if ( ! empty( $actions_count ) ) {
$count = count( $actions_count );
}
return $count;
}
/**
* Adding Theme Info Menu under Appearance.
*/
function kt_admin_menu() {
if ( ! empty( $this->page_title ) && ! empty( $this->menu_title ) ) {
$count = $this->count_recommended_actions();
$menu_title = $count > 0 ? $this->menu_title . '' . esc_html( $count ) . '' : $this->menu_title;
/* Example
* add_theme_page('My Plugin Theme', 'My Plugin', 'edit_theme_options', 'my-unique-identifier', 'my_plugin_function');
* */
add_theme_page( $this->page_title, $menu_title, 'edit_theme_options', $this->theme_slug . '-info', array(
$this,
'kt_theme_info_screen',
) );
}
}
/**
* Render the info content screen.
*/
public function kt_theme_info_screen() {
if ( ! empty( $this->config['info_title'] ) ) {
$welcome_title = $this->config['info_title'];
}
if ( ! empty( $this->config['info_content'] ) ) {
$welcome_content = $this->config['info_content'];
}
if ( ! empty( $this->config['quick_links'] ) ) {
$quick_links = $this->config['quick_links'];
}
if (
! empty( $welcome_title ) ||
! empty( $welcome_content ) ||
! empty( $quick_links ) ||
! empty( $this->tabs )
) {
echo '
';
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', 'business-gravity' );
break;
case 'activate':
$class = 'activate-now button button-primary';
$label = esc_html__( 'Activate', 'business-gravity' );
break;
case 'deactivate':
$class = 'deactivate-now button';
$label = esc_html__( 'Deactivate', 'business-gravity' );
break;
}
?>
';
$hooray = false;
}
}
if ( $hooray ){
echo '
' . esc_html__( 'Hooray! There are no recommended actions for you right now.', 'business-gravity' ) . '';
echo '
'.esc_html__('Show All Recommended Actions','business-gravity').'';
}
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( 'kt_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( 'kt_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() . '/assets/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 '
| ' . 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', 'business-gravity' );
break;
case 'activate':
$class = 'activate-now button button-primary';
$label = esc_html__( 'Activate', 'business-gravity' );
break;
case 'deactivate':
$class = 'deactivate-now button';
$label = esc_html__( 'Deactivate', 'business-gravity' );
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 "
";/*.kt-about-row end-start*/
}
}
echo '
';/*.kt-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__( 'Business gravity','business-gravity' ) . ' | ';
echo '' . esc_html__( 'Business Gravity Pro','business-gravity' ) . ' | ';
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 'Business GravityPro | ';
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 '
';
}
/**
* Demos tab
*/
public function demos(){
if( ! empty( $this->config['demos'] ) ){
$demos= $this->config['demos'];
if( ! empty($demos) ){
/*defaults values for demos array */
$defaults = array(
'title' => '',
'desc' => '',
'recommended_actions'=> '',
'link_title' => '',
'link_url' => '',
'is_button' => false,
'is_new_tab' => false
);
echo '
';
foreach ( $demos as $demos_item ) {
/*allowed 6 value in array */
$instance = wp_parse_args( (array) $demos_item, $defaults );
/*default values*/
$title = esc_html( $instance[ 'title' ] );
$desc = wp_kses_post( $instance[ 'desc' ] );
$link_title = esc_html( $instance[ 'link_title' ] );
$link_url = esc_url( $instance[ 'link_url' ] );
$is_button = $instance[ 'is_button' ];
$is_new_tab = $instance[ 'is_new_tab' ];
echo '
';
if ( ! empty( $title ) ) {
echo '
' . $title . '
';
}
if ( ! empty( $desc ) ) {
echo '
' . $desc . '
';
}
if ( ! empty( $link_title ) && ! empty( $link_url ) ) {
echo '
';
$button_class = '';
if ( $is_button ) {
$button_class = 'button button-primary';
}
$count = $this->count_recommended_actions();
if ( $demos_item['recommended_actions'] && isset( $count ) ) {
if ( $count == 0 ) {
echo '';
} else {
echo '';
}
}
$button_new_tab = '_self';
if ( $is_new_tab ) {
$button_new_tab = '_blank';
}
echo '' . $demos_item['link_title'] . '';
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( 'kt-theme-info-css', get_template_directory_uri() . '/theme-info/assets/css/theme-info.css' );
if ( 'appearance_page_' . $this->theme_slug . '-info' == $hook_suffix ) {
wp_enqueue_script( 'kt-theme-info-js', get_template_directory_uri() . '/theme-info/assets/js/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( 'kt-theme-info-js', 'kt_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__( 'Business Gravity Info', 'business-gravity' ),
// Menu name under Appearance.
'menu_title' => esc_html__( 'Business Gravity Info', 'business-gravity' ),
// Main welcome title
'info_title' => sprintf( esc_html__( 'Welcome to %s - ', 'business-gravity' ), 'Business Gravity' ),
// 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! ', 'business-gravity' ), '
Business Gravity' ),
/**
* Quick links
*/
'quick_links' => array(
'theme_url' => array(
'text' => __('Theme Details','business-gravity'),
'url' => 'https://keonthemes.com/downloads/business-gravity/'
),
'demo_url' => array(
'text' => __('View Demo','business-gravity'),
'url' => 'https://keonthemes.com/theme-demo/?id=MjUyOXxidXNpbmVzcy1ncmF2aXR5fEJ1c2luZXNzIEdyYXZpdHk%3D'
),
'pro_url' => array(
'text' => __('View Pro Version','business-gravity'),
'url' => 'https://keonthemes.com/theme-demo/?id=MjU1MnxidXNpbmVzcy1ncmF2aXR5LXByb3xCdXNpbmVzcyBHcmF2aXR5IFBybw%3D%3D'
),
'rate_url' => array(
'text' => __('Rate This Theme','business-gravity'),
'url' => 'https://wordpress.org/support/theme/business-gravity/reviews/?filter=5'
),
),
'tabs' => array(
'getting_started' => __( 'Getting Started', 'business-gravity' ),
'recommended_actions' => __( 'Recommended Actions', 'business-gravity' ),
'recommended_plugins' => __( 'Useful Plugins','business-gravity' ),
'support' => __( 'Support', 'business-gravity' ),
'changelog' => __( 'Changelog', 'business-gravity' ),
'faq' => __( 'FAQ', 'business-gravity' ),
'free_pro' => __( 'Free VS PRO', 'business-gravity' ),
'demos' => __( 'Demos', 'business-gravity' ),
),
/*Getting started tab*/
'getting_started' => array(
'first' => array(
'title' => esc_html__( 'Step 1 : Read full documentation','business-gravity' ),
'desc' => esc_html__( 'Please check our full documentation for detailed information on how to Setup and Use Business Gravity.','business-gravity' ),
'link_title' => esc_html__( 'Documentation','business-gravity' ),
'link_url' => 'http://keonthemes.com/doc/business-gravity/',
'is_button' => false,
'recommended_actions' => false,
'is_new_tab' => true
),
'second' => array(
'title' => esc_html__( 'Step 2 : Go to Customizer','business-gravity' ),
'desc' => esc_html__( 'All Setting, Theme Options, Frontpage Options, Widgets and Menus are available via Customize screen.','business-gravity' ),
'link_title' => esc_html__( 'Go to Customizer','business-gravity' ),
'link_url' => esc_url( admin_url( 'customize.php' ) ),
'is_button' => true,
'recommended_actions' => false,
'is_new_tab' => true
),
),
// recommended actions array.
'recommended_actions' => array(
'creative-blocks' => array(
'title' => esc_html__( 'Install Creative Blocks','business-gravity' ),
'desc' => sprintf( esc_html__( 'The Creative Blocks, an elegant professional page building blocks for the WordPress Gutenberg block editor', 'business-gravity' ) ),
'id' => 'creative-blocks',
'plugin_slug' => 'creative-blocks',
),
),
// Plugins array.
'recommended_plugins' => array(
'creative-blocks' => array(
'slug' => 'creative-blocks'
),
'WooCommerce' => array(
'slug' => 'woocommerce'
),
'Contact Form 7' => array(
'slug' => 'contact-form-7'
),
'MailChimp for WordPress' => array(
'slug' => 'mailchimp-for-wp'
),
'AddToAny Share Buttons' => array(
'slug' => 'add-to-any'
),
'Instagram Feed' => array(
'slug' => 'instagram-feed'
),
'One Click Demo Import' => array(
'slug' => 'one-click-demo-import'
),
),
/*FAQ*/
'faq' => array(
'first' => array (
'title' => esc_html__( 'Does this theme support any plugins?','business-gravity' ),
'desc' => esc_html__( 'Business Gravity supports Creative Blocks, WooCommerce, Contact From 7 and MailChimp for WordPress.','business-gravity' ),
'is_new_tab' => true
),
),
// Support content tab.
'support_content' => array(
'first' => array (
'title' => esc_html__( 'Support Forum','business-gravity' ),
'desc' => esc_html__( 'Got theme support question or found bug? Best place to ask your query is our dedicated Support forum.','business-gravity' ),
'button_label' => esc_html__( 'Support Forum','business-gravity' ),
'button_link' => esc_url( 'https://keonthemes.com/forums/forum/business-gravity/' ),
'is_button' => true,
'is_new_tab' => true
),
'second' => array(
'title' => esc_html__( 'Documentation','business-gravity' ),
'desc' => esc_html__( 'Please check our full documentation for detailed information on how to Setup and Use Business Gravity.','business-gravity' ),
'button_label' => esc_html__( 'Read full documentation','business-gravity' ),
'button_link' => 'http://keonthemes.com/doc/business-gravity/',
'is_button' => false,
'is_new_tab' => true
),
'third' => array(
'title' => esc_html__( 'Need more features?','business-gravity' ),
'desc' => esc_html__( 'Upgrade to PRO version for more exciting features and Priority Support.','business-gravity' ),
'button_label' => esc_html__( 'View Pro Version','business-gravity' ),
'button_link' => 'https://keonthemes.com/downloads/business-gravity-pro',
'is_button' => true,
'is_new_tab' => true
),
'fourth' => array(
'title' => esc_html__( 'Got sales related question?','business-gravity' ),
'desc' => esc_html__( "Have any query before purchase, you are more than welcome to ask.",'business-gravity' ),
'button_label' => esc_html__( 'Pre-sale Question?','business-gravity' ),
'button_link' => 'mailto:keonthemes@gmail.com',
'is_button' => false,
'is_new_tab' => true
),
'fifth' => array(
'title' => esc_html__( 'Customization Request','business-gravity' ),
'desc' => esc_html__( 'Needed any customization for the theme, you can request from here.','business-gravity' ),
'button_label' => esc_html__( 'Customization Request','business-gravity' ),
'button_link' => 'https://keonthemes.com/hire-now/',
'is_button' => false,
'is_new_tab' => true
)
),
// Free vs pro array.
'free_pro' => array(
array(
'title'=> __( 'Build with Live Customizer API', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Demo content import', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Fixed Header', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Multiple Header Layout Options', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('5 Layouts','business-gravity'),
),
array(
'title'=> __( 'Multiple Footer Layout Options', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('6 Layouts','business-gravity'),
),
array(
'title'=> __( 'Pre-build Home Page Templates', 'business-gravity' ),
'free' => __('1 Template','business-gravity'),
'pro' => __('6 Template','business-gravity'),
),
array(
'title'=> __( 'Advanced Theme Options', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Post Layout Options', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Sidebar Position Options', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Unlimited Color Options', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Thin Kfi Font Icons', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Right Sidebar Page template', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Left Sidebar Page template', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Compact View Page template', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Fully Responsive Design', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Translation Ready', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Cross-Browser Compatibility', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'RTL Language Support', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Plugins Support', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Home page Slider Section', 'business-gravity' ),
'free' => __('Up to 3 items','business-gravity'),
'pro' => __('Unlimited Slider Items','business-gravity'),
),
array(
'title'=> __( 'Home page Service Section', 'business-gravity' ),
'free' => __('Up to 3 items','business-gravity'),
'pro' => __('Unlimited Service Items','business-gravity'),
),
array(
'title'=> __( 'Home page About Section', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('Video PopUp option','business-gravity'),
),
array(
'title'=> __( 'Home page Portfolio Section', 'business-gravity' ),
'free' => __('Up to 4 items','business-gravity'),
'pro' => __('Unlimited Portfolio Items, category nav and column option','business-gravity'),
),
array(
'title'=> __( 'Home page Testimonial Section', 'business-gravity' ),
'free' => __('Up to 3 items','business-gravity'),
'pro' => __('Unlimited Testimonial Items ','business-gravity'),
),
array(
'title'=> __( 'Home page Callback Section', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('2 Callback buttons','business-gravity'),
),
array(
'title'=> __( 'Home page Highlight Posts Slider Section', 'business-gravity' ),
'free' => __('Upto 3 items','business-gravity'),
'pro' => __('Unlimited Slider Items, Advance Features','business-gravity'),
),
array(
'title'=> __( 'Home page Contact Section', 'business-gravity' ),
'free' => __('Contact Form only','business-gravity'),
'pro' => __('Contact Form, Google Map and Contact detail lists','business-gravity'),
),
array(
'title'=> __( 'Home page Footer Callback Section', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Footer Widgets Section', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Home page Copyright Section', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('Option to Change text ','business-gravity'),
),
array(
'title'=> __( 'Disable/Enable option for each Section', 'business-gravity' ),
'free' => __('yes','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Drag and Drop Re-order/Delete options', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Build with Customizer, Theme Options & Easy Custom Post Types', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Advanced Font Family Options', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( '100+ Google Fonts Options', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Multiple Site Preloader options', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Custom Widgets', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'WPML Plugin Compatibility', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Woocommerce deep Intergration', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Woocommerce Sidebar Position', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('Right, Left and Hide','business-gravity'),
),
array(
'title'=> __( 'Instagram Slider Intergration', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Multiple Home Page Layouts', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Coming soon / Maintenance Mode Page', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Home page Process Section', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Home page Team Section', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Home page Achievement Section', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Home page Client Section', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Home page Pricing Table Section', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Home page Woocommerce Product Section', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'About Page template', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Contact Page template', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'FAQ Page template', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Portfolio / Case Study Page', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
array(
'title'=> __( 'Team Single Page', 'business-gravity' ),
'free' => __('no','business-gravity'),
'pro' => __('yes','business-gravity'),
),
),
'demos' => array (
'first' => array(
'title' => esc_html__( 'Business Gravity ','business-gravity' ),
'desc' => esc_html__ ( 'Free Theme Demo', 'business-gravity' ),
'link_title' => esc_html__( 'View Demo','business-gravity' ),
'link_url' => 'https://keonthemes.com/theme-demo/?id=MjUyOXxidXNpbmVzcy1ncmF2aXR5fEJ1c2luZXNzIEdyYXZpdHk%3D',
'is_button' => true,
'recommended_actions' => false,
'is_new_tab' => true
),
'second'=> array(
'title' => esc_html__( 'Business Gravity Pro','business-gravity' ),
'desc' => esc_html__ ( 'Pro Theme Demo', 'business-gravity' ),
'link_title' => esc_html__( 'View Demo','business-gravity' ),
'link_url' => 'https://keonthemes.com/theme-demo/?id=MjU1MnxidXNpbmVzcy1ncmF2aXR5LXByb3xCdXNpbmVzcyBHcmF2aXR5IFBybw%3D%3D',
'is_button' => true,
'recommended_actions' => false,
'is_new_tab' => true
),
)
);
return new business_gravity_Theme_Info( $config );