array( 'recommended' => true ), 'modula-best-grid-gallery' => array( 'recommended' => true ), 'uber-nocaptcha-recaptcha' => array( 'recommended' => false ), 'cpo-shortcodes' => array( 'recommended' => false ), ); /* * id - unique id; required * title * description * check - check for plugins (if installed) * plugin_slug - the plugin's slug (used for installing the plugin) * */ $affluent_required_actions = array( array( "id" => 'affluent-req-ac-install-cpo-content-types', "title" => Affluent_Notify_System::create_plugin_requirement_title( __( 'Install: CPO Content Types', 'affluent' ), __( 'Activate: CPO Content Types', 'affluent' ), 'cpo-content-types' ), "description" => __( 'It is highly recommended that you install the CPO Content Types plugin. It will help you manage all the special content types that this theme supports.', 'affluent' ), "check" => Affluent_Notify_System::has_plugin( 'cpo-content-types' ), "plugin_slug" => 'cpo-content-types' ), array( "id" => 'affluent-req-ac-install-cpo-widgets', "title" => Affluent_Notify_System::create_plugin_requirement_title( __( 'Install: CPO Widgets', 'affluent' ), __( 'Activate: CPO Widgets', 'affluent' ), 'cpo-widgets' ), "description" => __( 'It is highly recommended that you install the CPO Widgets plugin. It will help you manage all the special widgets that this theme supports.', 'affluent' ), "check" => Affluent_Notify_System::has_plugin( 'cpo-widgets' ), "plugin_slug" => 'cpo-widgets' ), array( "id" => 'affluent-req-ac-install-wp-import-plugin', "title" => Affluent_Notify_System::wordpress_importer_title(), "description" => Affluent_Notify_System::wordpress_importer_description(), "check" => Affluent_Notify_System::has_import_plugin( 'wordpress-importer' ), "plugin_slug" => 'wordpress-importer' ), array( "id" => 'affluent-req-ac-install-wp-import-widget-plugin', "title" => Affluent_Notify_System::widget_importer_exporter_title(), 'description' => Affluent_Notify_System::widget_importer_exporter_description(), "check" => Affluent_Notify_System::has_import_plugin( 'widget-importer-exporter' ), "plugin_slug" => 'widget-importer-exporter' ), array( "id" => 'affluent-req-ac-download-data', "title" => esc_html__( 'Download theme sample data', 'affluent' ), "description" => esc_html__( 'Head over to our website and download the sample content data.', 'affluent' ), "help" => '' . __( 'Posts', 'affluent' ) . ', ' . __( 'Widgets', 'affluent' ) . '', "check" => Affluent_Notify_System::has_content(), ), array( "id" => 'affluent-req-ac-install-data', "title" => esc_html__( 'Import Sample Data', 'affluent' ), "help" => '' . __( 'Import Posts', 'affluent' ) . ' ' . __( 'Import Widgets', 'affluent' ) . '', "check" => Affluent_Notify_System::has_import_content(), ), ); require get_template_directory() . '/core/welcome-screen/welcome-screen.php'; } add_action( 'customize_register', 'affluent_customize_register' ); function affluent_customize_register( $wp_customize ){ global $affluent_required_actions, $affluent_recommended_plugins; $theme_slug = 'affluent'; $customizer_recommended_plugins = array(); if ( is_array( $affluent_recommended_plugins ) ) { foreach ( $affluent_recommended_plugins as $k => $s ) { if( $s['recommended'] ) { $customizer_recommended_plugins[$k] = $s; } } } $wp_customize->add_section( new Epsilon_Section_Recommended_Actions( $wp_customize, 'epsilon_recomended_section', array( 'title' => esc_html__( 'Recomended Actions', 'affluent' ), 'social_text' => esc_html__( 'We are social', 'affluent' ), 'plugin_text' => esc_html__( 'Recomended Plugins', 'affluent' ), 'actions' => $affluent_required_actions, 'plugins' => $customizer_recommended_plugins, 'theme_specific_option' => $theme_slug . '_show_required_actions', 'theme_specific_plugin_option' => $theme_slug . '_show_recommended_plugins', 'facebook' => 'https://www.facebook.com/cpothemes', 'twitter' => 'https://twitter.com/cpothemes', 'wp_review' => true, 'priority' => 0 ) ) ); }