display( 'Name' ), $books_library_theme->display( 'Name' ), 'manage_options', 'books-library', 'books_library_do_admin_page' ); } add_action( 'admin_menu', 'books_library_admin_menu_page' ); function books_library_admin_theme_style() { wp_enqueue_style('books-library-custom-admin-style', esc_url(get_template_directory_uri()) . '/get-started/getstart.css'); wp_enqueue_script( 'admin-notice-script', get_template_directory_uri() . '/get-started/js/admin-notice-script.js', array( 'jquery' ) ); wp_localize_script('admin-notice-script', 'example_ajax_obj', array('ajaxurl' => admin_url('admin-ajax.php'))); } add_action('admin_enqueue_scripts', 'books_library_admin_theme_style'); /** * Render admin page. * * @since 1.0.0 */ function books_library_do_admin_page() { $books_library_theme = wp_get_theme( get_template() ); ?>
';
foreach ( $changelog_array as $value ) {
// Add opening and closing div and span, only the first span element will have the heading class.
$value = '- ' . esc_html( $value ) . '';
// Append the value to the changelog.
$changelog .= $value;
}
$changelog .= '';
return wp_kses_post( $changelog );
}
/**
* Import Demo data for theme using catch themes demo import plugin
*/
function books_library_free_vs_pro() {
if ( isset( $_GET['tab'] ) && 'free_vs_pro' === $_GET['tab'] ) {
?>