config = $config;
$this->architect_engineer_architect_engineer_prepare_class();
/*admin menu*/
add_action( 'admin_menu', array( $this, 'architect_engineer_tm_admin_menu' ) );
/* enqueue script and style for about page */
add_action( 'admin_enqueue_scripts', array( $this, 'architect_engineer_style_and_scripts' ) );
/* ajax callback for dismissable required actions */
add_action( 'wp_ajax_tm_theme_info_update_recommend_action', array( $this, 'architect_engineer_update_recommended_action_callback' ) );
}
/**
* Prepare and setup class properties.
*/
public function architect_engineer_architect_engineer_prepare_class() {
$theme = wp_get_theme();
$this->theme_name = esc_html( $theme->get( 'Name' ) );
$this->theme_slug = $theme->get_template();
$this->theme_version = $theme->get( 'Version' );
$this->page_title = $this->theme_name . esc_html__( ' Info', 'architect-engineer' );
$this->menu_title = $this->theme_name . esc_html__( ' Theme', 'architect-engineer' );
$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 architect_engineer_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 esc_html($recommended_action['id']);
echo " ". esc_html($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 architect_engineer_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 architect_engineer_count_recommended_actions() {
$count = 0;
$actions_count = $this->architect_engineer_get_recommended_actions();
if ( ! empty( $actions_count ) ) {
$count = count( $actions_count );
}
return $count;
}
/**
* Adding Theme Info Menu under Appearance.
*/
function architect_engineer_tm_admin_menu() {
if ( ! empty( $this->page_title ) && ! empty( $this->menu_title ) ) {
$count = $this->architect_engineer_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,
'architect_engineer_tm_theme_info_screen_main',
) );
}
}
/**
* Render the info content screen.
*/
public function architect_engineer_tm_theme_info_screen_main() {
$theme_name_config = esc_attr ( wp_get_theme()->get('Name') );
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 architect_engineer_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 ) {
echo '';
}
$done = '';
if ( $check ) {
$done = 'done';
}
echo "
"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
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->architect_engineer_check_plugin_status( $action_value['plugin_slug'] );
$url = $this->architect_engineer_create_action_link( $active['needs'], $action_value['plugin_slug'] );
$label = '';
$class = '';
switch ( $active['needs'] ) {
case 'install':
$class = 'install-now button';
$label = esc_html__( 'Install', 'architect-engineer' );
break;
case 'activate':
$class = 'activate-now button button-primary';
$label = esc_html__( 'Activate', 'architect-engineer' );
break;
case 'deactivate':
$class = 'deactivate-now button';
$label = esc_html__( 'Deactivate', 'architect-engineer' );
break;
}
?>
';
$hooray = false;
}
}
if ( $hooray ){
echo '
' . esc_html__( 'Hooray! There are no recommended actions for you right now.', 'architect-engineer' ) . '';
echo '
'.esc_html__('Show All Recommended Actions', 'architect-engineer').'';
}
echo '
';
}
}
/**
* Free vs Pro tab
*/
public function architect_engineer_free_pro() {
$theme_name_config = esc_attr ( wp_get_theme()->get('Name') );
$architect_engineer_free_pro = isset( $this->config['architect_engineer_free_pro'] ) ? $this->config['architect_engineer_free_pro'] : array();
if ( ! empty( $architect_engineer_free_pro ) ) {
/*defaults values for child theme array */
$defaults = array(
'title'=> '',
'desc' => '',
'free' => '',
'pro' => '',
);
if ( ! empty( $architect_engineer_free_pro ) && is_array( $architect_engineer_free_pro ) ) {
echo '
';
echo '
';
echo '
';
echo '';
echo '';
echo '| ' . esc_html__( 'Theme Feature','architect-engineer' ) . ' | ';
echo '' . esc_html__( 'Basic Version','architect-engineer' ) . ' | ';
echo '' . esc_html__( 'Premium Version','architect-engineer' ) . ' | ';
echo '
';
echo '';
echo '';
foreach ( $architect_engineer_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 ' | ';
echo 'Buy Pro | ';
echo '
';
echo '';
echo '
';
echo '
';
echo '
';
}
}
}
/**
* Recommended plugins tab
*/
/*
* Call plugin api
*/
public function call_plugin_api( $slug ) {
include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
if ( false === ( $call_api = get_transient( 'tm_theme_info_plugin_information_' . $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( 'tm_theme_info_plugin_information_' . $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/img/placeholder_plugin.png';
}
return $plugin_icon_url;
}
public function architect_engineer_recommended_plugins() {
$architect_engineer_recommended_plugins = $this->config['architect_engineer_recommended_plugins'];
if ( ! empty( $architect_engineer_recommended_plugins ) ) {
if ( ! empty( $architect_engineer_recommended_plugins ) && is_array( $architect_engineer_recommended_plugins ) ) {
echo '
';
foreach ( $architect_engineer_recommended_plugins as $architect_engineer_recommended_plugins_item ) {
if ( ! empty( $architect_engineer_recommended_plugins_item['slug'] ) ) {
$info = $this->call_plugin_api( $architect_engineer_recommended_plugins_item['slug'] );
if ( ! empty( $info->icons ) ) {
$icon = $this->get_plugin_icon( $info->icons );
}
$active = $this->architect_engineer_check_plugin_status( $architect_engineer_recommended_plugins_item['slug'] );
if ( ! empty( $active['needs'] ) ) {
$url = $this->architect_engineer_create_action_link( $active['needs'], $architect_engineer_recommended_plugins_item['slug'] );
}
echo '
';
if ( ! empty( $icon ) ) {
echo '
.')
';
}
if ( ! empty( $info->version ) ) {
echo '
'. ( ! empty( $this->config['architect_engineer_recommended_plugins']['version_label'] ) ? esc_html( $this->config['architect_engineer_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', 'architect-engineer' );
break;
case 'activate':
$class = 'activate-now button button-primary';
$label = esc_html__( 'Activate', 'architect-engineer' );
break;
case 'deactivate':
$class = 'deactivate-now button';
$label = esc_html__( 'Deactivate', 'architect-engineer' );
break;
}
echo '
';
echo '' . esc_html( $label ) . '';
echo '';
}
echo '
';
}
}
echo '
';
}
}
}
/**
* Support tab
*/
public function architect_engineer_support() {
echo '
';
if ( ! empty( $this->config['architect_engineer_support_content'] ) ) {
$supports = $this->config['architect_engineer_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 esc_html($title);
echo '
';
}
if ( ! empty( $desc ) ) {
echo '
' . esc_html( $desc ) . '
';
}
if ( ! empty( $button_link ) && ! empty( $button_label ) ) {
echo '
';
$button_class = '';
if ( $is_button ) {
$button_class = 'button button-primary button-hero';
}
$button_new_tab = '_self';
if ( isset( $is_new_tab ) ) {
if ( $is_new_tab ) {
$button_new_tab = '_blank';
}
}
echo '' . esc_html( $button_label ) . '';
echo '
';
}
echo '
';
}
}
}
echo '
';
}
/**
* Changelog tab
*/
private function architect_engineer_parse_changelog() {
WP_Filesystem();
global $wp_filesystem;
$readme_content = $wp_filesystem->get_contents( get_template_directory() . '/readme.txt' );
if ( is_wp_error( $readme_content ) || empty( $readme_content ) ) {
return '';
}
// Extract only the "Changelog" section
$changelog = '';
if ( preg_match( '/==\s*Changelog\s*==(.+?)(==\s*[A-Z][^=]+==|$)/is', $readme_content, $matches ) ) {
$changelog = trim( $matches[1] );
}
return $changelog;
}
public function architect_engineer_changelog() {
$architect_engineer_changelog = $this->architect_engineer_parse_changelog();
if ( ! empty( $architect_engineer_changelog ) ) {
echo '
';
echo "
";
echo esc_html($architect_engineer_changelog);
echo "";
echo '
';
}
}
/**
* Load css and scripts for the about page
*/
public function architect_engineer_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( 'architect-engineer-theme-installation-css', get_template_directory_uri() . '/inc/theme-installation/assets/css/theme-installation.css' );
if ( 'appearance_page_' . $this->theme_slug . '-info' == $hook_suffix ) {
wp_enqueue_script( 'architect-engineer-theme-installation-js', get_template_directory_uri() . '/inc/theme-installation/assets/js/theme-installation.js', array( 'jquery' ) );
wp_enqueue_style( 'plugin-install' );
wp_enqueue_script( 'plugin-install' );
wp_enqueue_script( 'updates' );
$count = $this->architect_engineer_count_recommended_actions();
wp_localize_script( 'architect-engineer-theme-installation-js', 'tm_theme_info_box_object', array(
'nr_actions_recommended' => $count,
'ajaxurl' => admin_url( 'admin-ajax.php' ),
'template_directory' => get_template_directory_uri()
) );
}
}
}
}
$theme_name_config = esc_attr ( wp_get_theme()->get('Name') );
$config = array(
// Main welcome title
/* translators: %s - Theme Name*/
'info_title' => sprintf( esc_html__( 'Welcome to %s - ', 'architect-engineer' ), $theme_name_config ),
// Main welcome content
/* translators: %s - Theme Name*/
'info_content' => sprintf( esc_html__( '%s is now installed and ready to use. We hope the following information will help and you enjoy using it!', 'architect-engineer' ), '
'.$theme_name_config.'' ),
/**
* Quick links
*/
'quick_links' => array(
'theme_url' => array(
'text' => __( 'Try the Demo', 'architect-engineer' ),
'url' => esc_url( ARCHITECT_ENGINEER_LIVE_DEMO )
),
'pro_url' => array(
'text' => __( 'Buy Pro', 'architect-engineer' ),
'url' => esc_url( ARCHITECT_ENGINEER_GET_PREMIUM_PRO )
),
'bundle_url' => array(
'text' => __( 'Buy All Themes - 120+ Templates', 'architect-engineer' ),
'url' => esc_url( ARCHITECT_ENGINEER_BUNDLE_LINK )
),
),
'tabs' => array(
//'architect_engineer_demo_impoter' => esc_html__( 'Demo Impoter', 'architect-engineer' ),
'architect_engineer_getting_started' => esc_html__( 'Getting Started', 'architect-engineer' ),
'architect_engineer_free_pro' => esc_html__( 'Compare Free Vs Pro', 'architect-engineer' ),
'architect_engineer_recommended_plugins' => esc_html__( 'Recommended Plugins', 'architect-engineer' ),
'architect_engineer_support' => esc_html__( 'Support', 'architect-engineer' ),
'architect_engineer_changelog' => esc_html__( 'Changelog', 'architect-engineer' ),
),
/*Getting started tab*/
'architect_engineer_gs_steps' => array(
'first' => array(
'title' => esc_html__( 'Checkout Premium', 'architect-engineer' ),
'desc' => esc_html__( 'Our premium theme comes with extended features like demo content import , responsive layouts etc.', 'architect-engineer' ),
'button_label' => esc_html__( 'Get Premium', 'architect-engineer' ),
'button_link' => esc_url( ARCHITECT_ENGINEER_GET_PREMIUM_PRO ),
'is_button' => true,
'is_new_tab' => true
),
'second' => array (
'title' => esc_html__( 'Contact Support', 'architect-engineer' ),
'desc' => esc_html__( 'Thank you for trying Architect Engineer , feel free to contact us for any support regarding our theme.', 'architect-engineer' ),
'button_label' => esc_html__( 'Contact Support', 'architect-engineer' ),
'button_link' => esc_url( ARCHITECT_ENGINEER_CONTACT_SUPPORT ),
'is_button' => true,
'is_new_tab' => true
),
'third' => array (
'title' => esc_html__( 'Review', 'architect-engineer' ),
'desc' => esc_html__( 'If You love Architect Engineer theme then we would appreciate your review about our theme.', 'architect-engineer' ),
'button_label' => esc_html__( 'Review', 'architect-engineer' ),
'button_link' => esc_url( ARCHITECT_ENGINEER_REVIEW ),
'is_button' => true,
'is_new_tab' => true
),
'fourth' => array (
'title' => esc_html__( 'Go to Customizer', 'architect-engineer' ),
'desc' => esc_html__( 'All Settings, Header & Footer Options and Theme Options are available via Customize screen.', 'architect-engineer' ),
'button_label' => esc_html__( 'Go to Customizer', 'architect-engineer' ),
'button_link' => esc_url( admin_url( 'customize.php' ) ),
'is_button' => true,
'is_new_tab' => true
),
'fifth' => array(
'title' => esc_html__( 'Free Documentation', 'architect-engineer' ),
'desc' => esc_html__( 'Our guide is available if you require any help configuring and setting up the theme. Easy and quick way to setup the theme.', 'architect-engineer' ),
'button_label' => esc_html__( 'Free Documentation', 'architect-engineer' ),
'button_link' => esc_url( ARCHITECT_ENGINEER_FREE_DOC ),
'is_button' => true,
'is_new_tab' => true
),
'sixth' => array(
'title' => esc_html__( 'View Theme Demo', 'architect-engineer' ),
'desc' => esc_html__( 'Explore the demo to see how easily you can set up and customize the theme.', 'architect-engineer' ),
'button_label' => esc_html__( 'View Demo', 'architect-engineer' ),
'button_link' => esc_url( ARCHITECT_ENGINEER_LIVE_DEMO ),
'is_button' => true,
'is_new_tab' => true
),
),
/*Getting started tab*/
'architect_engineer_demo_impoter_steps' => array(
'first' => array(
'title' => esc_html__( 'Instant Demo Setup', 'architect-engineer' ),
'desc' => esc_html__( 'Import your entire demo content in just one click, including pages, posts, and design elements for a quick setup.', 'architect-engineer' ),
'button_label' => esc_html__( 'Start Demo Import', 'architect-engineer' ),
'button_link' => esc_url( admin_url( 'admin.php?page=theme-importer' ) ),
'is_button' => true,
'is_new_tab' => true
)
),
// recommended actions array.
'architect_engineer_recommended_actions' => array(
),
// Free vs pro array.
'architect_engineer_free_pro' => array(
array(
'desc'=> __( 'Header Background Color', 'architect-engineer' ),
'free' => __( 'yes','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Custom Navigation Logo Or Text', 'architect-engineer' ),
'free' => __( 'yes','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Hide Logo Text', 'architect-engineer' ),
'free' => __( 'yes','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Premium Support', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Fully SEO Optimized', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Recent Posts Widget', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Easy Google Fonts', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Pagespeed Plugin', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Only Show Header Image On Front Page', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Show Header Everywhere', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Custom Text On Header Image', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Full Width (Hide Sidebar)', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Only Show Upper Widgets On Front Page', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Replace Copyright Text', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Customize Upper Widgets Colors', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Customize Navigation Color', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Customize Post/Page Color', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Customize Blog Feed Color', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Customize Footer Color', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Customize Sidebar Color', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Customize Background Color', 'architect-engineer' ),
'free' => __( 'no','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
array(
'desc'=> __( 'Importable Demo Content', 'architect-engineer' ),
'free' => __( 'yes','architect-engineer' ),
'pro' => __( 'yes','architect-engineer' ),
),
),
// Generic Plugins array.
'architect_engineer_recommended_plugins' => array(
'Magnify – Suggestive Search' => array(
'slug' => 'magnify-suggestive-search'
),
'Classic Widgets' => array(
'slug' => 'classic-widgets'
),
),
// Support content tab.
'architect_engineer_support_content' => array(
'first' => array(
'title' => esc_html__( 'Have a question? We’re here to help—ask now!', 'architect-engineer' ),
'desc' => esc_html__( 'We are dedicated to addressing any issues that may occur, ensuring your experience with Shippable is seamless and uninterrupted.', 'architect-engineer' ),
'button_label' => esc_html__( 'Contact Support', 'architect-engineer' ),
'button_link' => esc_url( ARCHITECT_ENGINEER_CONTACT_SUPPORT ),
'is_button' => true,
'is_new_tab' => true
)
),
);
return new Architect_Engineer_Theme_Info( $config );