'page', 'posts_per_page' => 1, 'title' => $beauty_spa_elementor_pagename ); $beauty_spa_elementor_query = new WP_Query( $beauty_spa_elementor_args ); $beauty_spa_elementor_page_id = '1'; if (isset($beauty_spa_elementor_query->post->ID)) { $beauty_spa_elementor_page_id = $beauty_spa_elementor_query->post->ID; } return $beauty_spa_elementor_page_id; } //about theme info add_action( 'admin_menu', 'beauty_spa_elementor_gettingstarted' ); function beauty_spa_elementor_gettingstarted() { add_theme_page( esc_html__('Beauty Spa Elementor', 'beauty-spa-elementor'), esc_html__('Beauty Spa Elementor', 'beauty-spa-elementor'), 'edit_theme_options', 'beauty_spa_elementor_about', 'beauty_spa_elementor_mostrar_guide'); } // Add a Custom CSS file to WP Admin Area function beauty_spa_elementor_admin_theme_style() { wp_enqueue_style('beauty-spa-elementor-custom-admin-style', esc_url(get_template_directory_uri()) . '/includes/getstart/getstart.css'); wp_enqueue_script('beauty-spa-elementor-tabs', esc_url(get_template_directory_uri()) . '/includes/getstart/js/tab.js'); wp_enqueue_style( 'font-awesome-css', get_template_directory_uri().'/assets/css/fontawesome-all.css' ); // Admin notice code START wp_register_script('beauty-spa-elementor-notice', esc_url(get_template_directory_uri()) . '/includes/getstart/js/notice.js', array('jquery'), time(), true); wp_enqueue_script('beauty-spa-elementor-notice'); // Admin notice code END } add_action('admin_enqueue_scripts', 'beauty_spa_elementor_admin_theme_style'); // Changelog if ( ! defined( 'BEAUTY_SPA_ELEMENTOR_CHANGELOG_URL' ) ) { define( 'BEAUTY_SPA_ELEMENTOR_CHANGELOG_URL', get_template_directory() . '/readme.txt' ); } function beauty_spa_elementor_changelog_screen() { global $wp_filesystem; $beauty_spa_elementor_changelog_file = apply_filters( 'beauty_spa_elementor_changelog_file', BEAUTY_SPA_ELEMENTOR_CHANGELOG_URL ); if ( $beauty_spa_elementor_changelog_file && is_readable( $beauty_spa_elementor_changelog_file ) ) { WP_Filesystem(); $beauty_spa_elementor_changelog = $wp_filesystem->get_contents( $beauty_spa_elementor_changelog_file ); $beauty_spa_elementor_changelog_list = beauty_spa_elementor_parse_changelog( $beauty_spa_elementor_changelog ); echo '
'; echo wp_kses_post( $beauty_spa_elementor_changelog_list ); echo '
'; echo ''; } } function beauty_spa_elementor_parse_changelog( $beauty_spa_elementor_content ) { $beauty_spa_elementor_content = explode ( '== ', $beauty_spa_elementor_content ); $beauty_spa_elementor_changelog_isolated = ''; foreach ( $beauty_spa_elementor_content as $key => $beauty_spa_elementor_value ) { if ( strpos( $beauty_spa_elementor_value, 'Changelog ==' ) === 0 ) { $beauty_spa_elementor_changelog_isolated = str_replace( 'Changelog ==', '', $beauty_spa_elementor_value ); } } $beauty_spa_elementor_changelog_array = explode( '= ', $beauty_spa_elementor_changelog_isolated ); unset( $beauty_spa_elementor_changelog_array[0] ); $beauty_spa_elementor_changelog = '
'; foreach ( $beauty_spa_elementor_changelog_array as $beauty_spa_elementor_value ) { $beauty_spa_elementor_value = preg_replace( '/\n+/', '', $beauty_spa_elementor_value ); $beauty_spa_elementor_value = '
= ' . $beauty_spa_elementor_value . '
'; $beauty_spa_elementor_changelog .= str_replace( '', '', $beauty_spa_elementor_value ); } $beauty_spa_elementor_changelog .= '
'; return wp_kses_post( $beauty_spa_elementor_changelog ); } //guidline for about theme function beauty_spa_elementor_mostrar_guide() { //custom function about theme customizer $beauty_spa_elementor_return = add_query_arg( array()) ; $beauty_spa_elementor_theme = wp_get_theme( 'beauty-spa-elementor' ); ?>

beauty_spa_elementor_recommended_actions; ?>
: