PATH:
home
/
centosnipponia
/
public_html
/
lifannl
/
wp-content
/
themes
/
sydney-pro-ii
/
inc
/
onboarding
<?php /** * Theme info page * * @package Sydney */ /** * Recommended plugins */ require get_template_directory() . '/inc/onboarding/plugins/class-sydney-recommended-plugins.php'; //Add the theme page add_action('admin_menu', 'sydney_add_theme_info'); function sydney_add_theme_info(){ if ( !current_user_can('install_plugins') ) { return; } $theme_info = add_theme_page( __('Sydney Pro Info','sydney'), __('Sydney Pro Info','sydney'), 'manage_options', 'sydney-info.php', 'sydney_info_page' ); add_action( 'load-' . $theme_info, 'sydney_info_hook_styles' ); } //Callback function sydney_info_page() { $user = wp_get_current_user(); ?> <div class="info-container"> <p class="hello-user"><?php echo sprintf( __( 'Hello, %s,', 'sydney' ), '<span>' . esc_html( ucfirst( $user->display_name ) ) . '</span>' ); ?></p> <h1 class="info-title"><?php echo __( 'Welcome to Sydney Pro', 'sydney' ); ?><span class="info-version"><?php echo 'v' . esc_html( wp_get_theme()->version ); ?></span></h1> <p class="welcome-desc"><?php _e( 'Sydney Pro is now installed and ready to go. To help you with the next step, we’ve gathered together on this page all the resources you might need. We hope you enjoy using Sydney. You can always come back to this page by going to <strong>Appearance > Sydney Pro Info</strong>.', 'sydney' ); ?> <div class="sydney-theme-tabs"> <div class="sydney-tab-nav nav-tab-wrapper"> <a href="#begin" data-target="begin" class="nav-button nav-tab begin active"><?php esc_html_e( 'Getting started', 'sydney' ); ?></a> <a href="#support" data-target="support" class="nav-button support nav-tab"><?php esc_html_e( 'Support', 'sydney' ); ?></a> </div> <div class="sydney-tab-wrapper"> <div id="#begin" class="sydney-tab begin show"> <div class="plugins-row"> <h2><span class="step-number">1</span><?php esc_html_e( 'Install recommended plugins', 'sydney' ); ?></h2> <p><?php _e( 'Install one plugin at a time. Wait for each plugin to activate.', 'sydney' ); ?></p> <div style="margin: 0 -15px;overflow:hidden;display:flex;"> <div class="plugin-block"> <?php $plugin = 'sydney-toolbox'; ?> <h3>Sydney Toolbox</h3> <p><?php esc_html_e( 'Sydney Toolbox is a free addon for the Sydney WordPress theme. It helps with things like demo import and additional Elementor widgets.', 'sydney' ); ?></p> <?php echo Sydney_Recommended_Plugins::instance()->get_button_html( $plugin ); ?> </div> <div class="plugin-block"> <?php $plugin = 'elementor'; ?> <h3>Elementor</h3> <p><?php esc_html_e( 'Elementor will enable you to create pages by adding widgets to them using drag and drop.', 'sydney' ); ?> <?php //If Elementor is active, show a link to Elementor's getting started video $is_elementor_active = Sydney_Recommended_Plugins::instance()->check_plugin_state( $plugin ); if ( $is_elementor_active == 'deactivate' ) { echo '<a target="_blank" href="https://www.youtube.com/watch?v=nZlgNmbC-Cw&feature=emb_title">' . __( 'First time Elementor user?', 'sydney') . '</a>'; }; ?> </p> <?php echo Sydney_Recommended_Plugins::instance()->get_button_html( $plugin ); ?> </div> <div class="plugin-block"> <?php $plugin = 'one-click-demo-import'; ?> <h3>One Click Demo Import</h3> <p><?php esc_html_e( 'This plugin is useful for importing our demos. You can uninstall it after you\'re done with it.', 'sydney' ); ?></p> <?php echo Sydney_Recommended_Plugins::instance()->get_button_html( $plugin ); ?> </div> </div> </div> <hr style="margin-top:25px;margin-bottom:25px;"> <div class="import-row"> <h2><span class="step-number">2</span><?php esc_html_e( 'Import demo content (optional)', 'sydney' ); ?></h2> <p><?php esc_html_e( 'Importing the demo will make your website look like our website.', 'sydney' ); ?></p> <?php $plugin = 'sydney-toolbox'; $is_sydney_toolbox_active = Sydney_Recommended_Plugins::instance()->check_plugin_state( $plugin ); $plugin = 'elementor'; $is_elementor_active = Sydney_Recommended_Plugins::instance()->check_plugin_state( $plugin ); $plugin = 'one-click-demo-import'; $is_ocdi_active = Sydney_Recommended_Plugins::instance()->check_plugin_state( $plugin ); ?> <?php if ( $is_sydney_toolbox_active == 'deactivate' && $is_elementor_active == 'deactivate' && $is_ocdi_active == 'deactivate' ) : ?> <a class="button button-primary button-large" href="<?php echo admin_url( 'themes.php?page=pt-one-click-demo-import.php' ); ?>"><?php esc_html_e( 'Go to the automatic importer', 'sydney' ); ?></a> <?php else : ?> <p class="sydney-notice"><?php esc_html_e( 'All recommended plugins need to be installed and activated for this step.', 'sydney' ); ?></p> <?php endif; ?> </div> <hr style="margin-top:25px;margin-bottom:25px;"> <div class="customizer-row"> <h2><span class="step-number">3</span><?php esc_html_e( 'Styling with the Customizer', 'sydney' ); ?></h2> <p><?php esc_html_e( 'Theme elements can be styled from the Customizer. Use the links below to go straight to the section you want.', 'sydney' ); ?></p> <p><a target="_blank" href="<?php echo esc_url( admin_url( '/customize.php?autofocus[section]=title_tagline' ) ); ?>"><?php esc_html_e( 'Change your site title or add a logo', 'sydney' ); ?></a></p> <p><a target="_blank" href="<?php echo esc_url( admin_url( '/customize.php?autofocus[panel]=sydney_header_panel' ) ); ?>"><?php esc_html_e( 'Header options', 'sydney' ); ?></a></p> <p><a target="_blank" href="<?php echo esc_url( admin_url( '/customize.php?autofocus[panel]=sydney_colors_panel' ) ); ?>"><?php esc_html_e( 'Color options', 'sydney' ); ?></a></p> <p><a target="_blank" href="<?php echo esc_url( admin_url( '/customize.php?autofocus[section]=sydney_fonts' ) ); ?>"><?php esc_html_e( 'Font options', 'sydney' ); ?></a></p> <p><a target="_blank" href="<?php echo esc_url( admin_url( '/customize.php?autofocus[section]=blog_options' ) ); ?>"><?php esc_html_e( 'Blog options', 'sydney' ); ?></a></p> </div> </div> <div id="#support" class="sydney-tab support"> <div class="column-wrapper"> <div class="tab-column"> <span class="dashicons dashicons-sos"></span> <h3><?php esc_html_e( 'Visit our forums', 'sydney' ); ?></h3> <p><?php esc_html_e( 'Need help? Go ahead and visit our support forums and we\'ll be happy to assist you with any theme related questions you might have', 'sydney' ); ?></p> <a href="https://forums.athemes.com/c/sydney-pro-2" target="_blank"><?php esc_html_e( 'Visit the forums', 'sydney' ); ?></a> </div> <div class="tab-column"> <span class="dashicons dashicons-book-alt"></span> <h3><?php esc_html_e( 'Documentation', 'sydney' ); ?></h3> <p><?php esc_html_e( 'Our documentation can help you learn how to use the theme and also provides you with premade code snippets and answers to FAQs.', 'sydney' ); ?></p> <a href="https://docs.athemes.com/category/14-sydney-pro" target="_blank"><?php esc_html_e( 'See the Documentation', 'sydney' ); ?></a> </div> </div> </div> </div> </div> <div class="sydney-theme-sidebar"> <div class="sydney-sidebar-widget"> <h3>Review Sydney</h3> <p><?php echo esc_html__( 'It makes us happy to hear from our users. We would appreciate a review.', 'sydney' ); ?> </p> <p><a target="_blank" href="https://wordpress.org/support/theme/sydney/reviews/"><?php echo esc_html__( 'Submit a review here', 'sydney' ); ?></a></p> </div> <hr style="margin-top:25px;margin-bottom:25px;"> <div class="sydney-sidebar-widget"> <h3>Changelog</h3> <p><?php echo esc_html__( 'Keep informed about each theme update.', 'sydney' ); ?> </p> <p><a target="_blank" href="https://athemes.com/changelog/sydney-pro"><?php echo esc_html__( 'See the changelog', 'sydney' ); ?></a></p> </div> </div> </div> <?php } //Styles function sydney_info_hook_styles(){ add_action( 'admin_enqueue_scripts', 'sydney_info_page_styles' ); } function sydney_info_page_styles() { wp_enqueue_style( 'sydney-info-style', get_template_directory_uri() . '/inc/onboarding/assets/info-page.css', array(), true ); wp_enqueue_script( 'sydney-info-script', get_template_directory_uri() . '/inc/onboarding/assets/info-page.js', array('jquery'),'', true ); wp_enqueue_script( 'plugin-install' ); wp_enqueue_script( 'updates' ); }
[+]
..
[+]
assets
[+]
plugins
[-] theme-info.php
[edit]
[-] .htaccess.disabled
[edit]