Name), sprintf(esc_html__('%s theme', 'boston'), $theme_data->Name), 'edit_theme_options', 'boston', 'boston_theme_info_page'); } } if ( ! function_exists( 'boston_admin_scripts' ) ) { /** * Enqueue scripts for admin page only: Theme info page */ function boston_admin_scripts( $hook ) { if ($hook === 'appearance_page_boston') { wp_enqueue_style('boston-admin-css', get_template_directory_uri() . '/assets/css/admin.css'); // Add recommend plugin css wp_enqueue_style( 'plugin-install' ); wp_enqueue_script( 'plugin-install' ); wp_enqueue_script( 'updates' ); add_thickbox(); } } } add_action('admin_enqueue_scripts', 'boston_admin_scripts'); if ( ! function_exists( 'boston_theme_info_page' ) ) { function boston_theme_info_page() { $theme_data = wp_get_theme(); // Check for current viewing tab $tab = null; if ( isset( $_GET['tab'] ) ) { $tab = $_GET['tab']; } else { $tab = null; } ?>

Name, $theme_data->Version); ?>

<?php esc_attr_e('Theme Screenshot', 'boston'); ?>
'install-plugin', 'plugin' => $plugin_name ), network_admin_url( 'update.php' ) ), 'install-plugin_'.$plugin_name ); } else { $install_url = add_query_arg(array( 'action' => 'activate', 'plugin' => rawurlencode( $plugin_name . '/' . $plugin_name . '.php' ), 'plugin_status' => 'all', 'paged' => '1', '_wpnonce' => wp_create_nonce('activate-plugin_' . $plugin_name . '/' . $plugin_name . '.php'), ), network_admin_url('plugins.php')); $button_class = 'activate-now button-primary'; $button_txt = esc_html__( 'Active Now', 'boston' ); } $detail_link = add_query_arg( array( 'tab' => 'plugin-information', 'plugin' => $plugin_name, 'TB_iframe' => 'true', 'width' => '772', 'height' => '349', ), network_admin_url( 'plugin-install.php' ) ); echo '

'; printf( esc_html__( 'Hey, you will need to install and activate the %1$s plugin first.', 'boston' ), ''.esc_html__( 'FameThemes Demo Importer', 'boston' ).'' ); echo '

'; echo '

'.$button_txt.'

'; ?>

How can I contribute?

WordPress.org' ); ?>

BostonBoston Pro

Responsive Design

Translation Ready

Upload Your Own Logo

Featured Content

Sidebar Layout

Featured Content Slider

4 Article Listing Layout

600+ Google fonts

600+ Google fonts

Social Media Icons

Instagram Feed Widget

Footer Widget Area

Footer Copyright Editor

24/7 Priority Support

Get Boston Pro now!