menu_slug, array( $this, 'render_page' ), 1 ); } /** * Settings * * @param array $settings The settings. */ public function set_settings( $settings ) { $theme = wp_get_theme( get_template() ); // Hero. /* translators: Theme Name */ $this->settings['hero_title'] = sprintf( esc_html__( 'Welcome to %1$s', 'revision' ), $theme->get('Name') ); /* translators: Theme Name */ $this->settings['hero_desc'] = sprintf( esc_html__( '%1$s is now installed and activated. 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 this theme.', 'revision' ), $theme->get('Name') ); $this->settings['hero_image'] = __return_false(); // Documentation. $this->settings['documentation_link'] = sprintf( 'https://codesupply.co/documentation/%s/', $theme->get('TextDomain') ); // Changelog. $this->settings['changelog_link'] = sprintf( 'https://codesupply.co/documentation/%s/changelog/', $theme->get('TextDomain') ); // Support. $this->settings['support_link'] = 'https://codesupply.co/support/'; // Community. $this->settings['community_link'] = 'https://www.facebook.com/codesupplyco/'; } /** * Render Hero * * @param string $location The location. */ public function render_hero( $location = null ) { global $pagenow; $theme = wp_get_theme( get_template() ); $screen = get_current_screen(); ?>