display( 'Name' ), esc_html__( 'About', 'croccante' ) . ' ' . $theme->display( 'Name' ), 'activate_plugins', 'croccante-welcome', array( $this, 'welcome_screen' ) ); } /** * Enqueue styles. */ public function enqueue_admin_scripts() { global $croccante_adminpage; $screen = get_current_screen(); if ( $screen->id != $croccante_adminpage ) { return; } wp_enqueue_style( 'croccante-welcome', get_template_directory_uri() . '/inc/admin/welcome.css', array(), '1.0' ); wp_enqueue_script( 'croccante-admin-panel', get_template_directory_uri() . '/inc/admin/admin-panel.js', array('jquery', 'jquery'), '1.0', true ); } /** * Add admin notice. */ public function admin_notice() { global $pagenow; wp_enqueue_style( 'croccante-message', get_template_directory_uri() . '/inc/admin/message.css', array(), '1.0' ); // Let's bail on theme activation. if ( 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) { add_action( 'admin_notices', array( $this, 'welcome_notice' ) ); update_option( 'croccante_admin_notice_welcome', 1 ); // No option? Let run the notice wizard again.. } elseif( ! get_option( 'croccante_admin_notice_welcome' ) ) { add_action( 'admin_notices', array( $this, 'welcome_notice' ) ); } } /** * Hide a notice if the GET variable is set. */ public static function hide_notices() { if ( isset( $_GET['croccante-hide-notice'] ) && isset( $_GET['_croccante_notice_nonce'] ) ) { if ( ! wp_verify_nonce( sanitize_key($_GET['_croccante_notice_nonce'] ), 'croccante_hide_notices_nonce' ) ) { wp_die( esc_html__( 'Action failed. Please refresh the page and retry.', 'croccante' ) ); } if ( ! current_user_can( 'manage_options' ) ) { wp_die( esc_html__( 'Cheatin’ huh?', 'croccante' ) ); } $hide_notice = sanitize_text_field( wp_unslash($_GET['croccante-hide-notice'] )); update_option( 'croccante_admin_notice_' . $hide_notice, 1 ); } } /** * Show welcome notice. */ public function welcome_notice() { ?>

', '' ); ?>

get( 'Name' )) ." ". esc_html($theme->get( 'Version' )); ?>

display( 'Description' )); ?>

{ $current_tab . '_screen' }(); } // Fallback to about screen. return $this->about_screen(); } /** * Output the about screen. */ public function about_screen() { $theme = wp_get_theme( get_template() ); ?>
intro(); ?>

display( 'Name' )); ?>

display( 'Name' )); ?>

|
intro(); ?>

get_contents( $changelog_file ); $changelog_list = $this->parse_changelog( $changelog ); echo wp_kses_post( $changelog_list ); } ?>
'; foreach ( $changes as $index => $line ) { $changelog .= wp_kses_post( preg_replace( '~(=\s*Version\s*(\d+(?:\.\d+)+)\s*=|$)~Uis', '${1}', $line ) ); } $changelog .= ''; } return wp_kses_post( $changelog ); } /** * Output the documentation screen. */ public function documentation_screen() { ?>
intro(); ?>

  • Reading". Set the "Front page displays" on "Static Page" and choose the page you previously created as Front page (eg. My Home Page).', 'croccante' ); ?>
  • Customize" and you\'ll see the section called "Croccante Onepage" in which you can customize the home page.', 'croccante' ); ?>
  • Customize-> Croccante Onepage" and choose one section (eg. Features) and add a section ID (eg. features) for this section. Save the options.', 'croccante' ); ?>
  • Menus" and create a new custom link with the URL of your home page followed the ID created for the section (eg. yoursite.com/#features). Add this custom link to your menu and save the options.', 'croccante' ); ?>
  • Customize-> Croccante Onepage" and choose the section you want to edit (About Us, Features or Services). Find the option called "Choose the page to display" and search the page you just created.', 'croccante' ); ?>

  • Customize-> Croccante Theme Options-> Social Network". Here you can choose which social network to show, social icons will be displayed in the footer.', 'croccante' ); ?>
  • Customize-> Site Identity". Here you can upload your custom logo (size 250x55px).', 'croccante' ); ?>
  • Customize-> Croccante Theme Options-> Theme Colors". Here you can change the theme colors according to sections of the site (borders, content, push sidebar and footer).', 'croccante' ); ?>
  • Customize-> Croccante Theme Options-> General Settings", find the option called "Display page loader" and check it. The background will be the same of "Content background color" and the loader icon the same color of "Link color".', 'croccante' ); ?>
intro(); ?>