*/ class BoldWP_Customize_Recommended_Plugins extends WP_Customize_Control { public $type = 'themesdna-recommended-wpplugins'; public function render_content() { $plugins = array( 'widget-display-conditions' => array( 'link' => esc_url( admin_url('plugin-install.php?tab=plugin-information&plugin=widget-display-conditions' ) ), 'text' => esc_html__( 'Widget Display Conditions', 'boldwp' ), 'desc' => esc_html__( 'Widget Display Conditions plugin helps you to control on which website page you want a particular widget to be displayed.', 'boldwp' ), ), 'wordpress-seo' => array( 'link' => esc_url( admin_url('plugin-install.php?tab=plugin-information&plugin=wordpress-seo' ) ), 'text' => esc_html__( 'Yoast SEO', 'boldwp' ), 'desc' => esc_html__( 'Yoast SEO plugin helps you with your search engine optimization. Yoast SEO is the favorite WordPress SEO plugin of millions of users worldwide.', 'boldwp' ), ), 'wp-pagenavi' => array( 'link' => esc_url( admin_url('plugin-install.php?tab=plugin-information&plugin=wp-pagenavi' ) ), 'text' => esc_html__( 'WP-PageNavi', 'boldwp' ), 'desc' => esc_html__( 'WP-PageNavi plugin helps to display numbered page navigation of this theme. Just install and activate the plugin.', 'boldwp' ), ), 'regenerate-thumbnails' => array( 'link' => esc_url( admin_url('plugin-install.php?tab=plugin-information&plugin=regenerate-thumbnails' ) ), 'text' => esc_html__( 'Regenerate Thumbnails', 'boldwp' ), 'desc' => esc_html__( 'Regenerate Thumbnails plugin helps you to regenerate your thumbnails to match with this theme. Install and activate the plugin. From the left hand navigation menu, click Tools > Regen. Thumbnails. On the next screen, click Regenerate All Thumbnails.', 'boldwp' ), ), 'widget-context' => array( 'link' => esc_url( admin_url('plugin-install.php?tab=plugin-information&plugin=widget-context' ) ), 'text' => esc_html__( 'Widget Context', 'boldwp' ), 'desc' => esc_html__( 'This is an alternative to Widget Display Conditions plugin. Widget Context plugin helps you to show or hide widgets on certain sections of your site - front page, posts, pages, archives, search, etc.', 'boldwp' ), ), 'loco-translate' => array( 'link' => esc_url( admin_url('plugin-install.php?tab=plugin-information&plugin=loco-translate' ) ), 'text' => esc_html__( 'Loco Translate', 'boldwp' ), 'desc' => esc_html__( 'Loco Translate plugin provides in-browser editing of WordPress translation files.', 'boldwp' ), ), ); foreach ( $plugins as $plugin) { echo wp_kses_post( force_balance_tags( '
' . esc_attr($plugin['text']) .'
' ) ); echo wp_kses_post( force_balance_tags( ''.$plugin['desc'].'
' ) ); } } }