Making WordPress.org


Ignore:
Timestamp:
05/31/2024 02:54:36 AM (2 years ago)
Author:
adamwood
Message:

Learn: Sync with git WordPress/learn@75a5b6e

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/functions.php

    r13754 r13761  
    22
    33namespace WordPressdotorg\Theme\Learn_2024;
     4
     5use function WPOrg_Learn\Sensei\{get_my_courses_page_url};
    46
    57// Block files
     
    107109                        'url'   => '/online-workshops/',
    108110                ),
     111                array(
     112                        'label' => __( 'My courses', 'wporg-learn' ),
     113                        'url'   => get_my_courses_page_url(),
     114                ),
    109115        );
    110116
     
    138144        return $menus;
    139145}
     146
     147/**
     148 * Get the titles and descriptions for the learning pathway levels.
     149 *
     150 * @param string $learning_pathway The learning pathway name.
     151 * @return array The content for the learning pathway levels.
     152 */
     153function get_learning_pathway_level_content( $learning_pathway ) {
     154        $content = array(
     155                'developer' => array(
     156                        'beginner' => array(
     157                                'title' => __( '[TBD Beginner developer title]', 'wporg-learn' ),
     158                                'description' => __( '[TBD Beginner developer description]', 'wporg-learn' ),
     159                        ),
     160                        'intermediate' => array(
     161                                'title' => __( '[TBD Intermediate developer title]', 'wporg-learn' ),
     162                                'description' => __( '[TBD Intermediate developer description]', 'wporg-learn' ),
     163                        ),
     164                        'advanced' => array(
     165                                'title' => __( '[TBD Advanced developer title]', 'wporg-learn' ),
     166                                'description' => __( '[TBD Advanced developer description]', 'wporg-learn' ),
     167                        ),
     168                ),
     169                'designer' => array(
     170                        'beginner' => array(
     171                                'title' => __( 'Begin exploring WordPress', 'wporg-learn' ),
     172                                'description' => __( 'Discover the design potential of WordPress.', 'wporg-learn' ),
     173                        ),
     174                        'intermediate' => array(
     175                                'title' => __( 'Customize your site', 'wporg-learn' ),
     176                                'description' => __( 'Personalize and own all the details of your WordPress site.', 'wporg-learn' ),
     177                        ),
     178                        'advanced' => array(
     179                                'title' => __( 'Elevate your site to stunning levels', 'wporg-learn' ),
     180                                'description' => __( 'For advanced users that are familiar with code.', 'wporg-learn' ),
     181                        ),
     182                ),
     183                'user' => array(
     184                        'beginner' => array(
     185                                'title' => __( '[TBD Beginner user title]', 'wporg-learn' ),
     186                                'description' => __( '[TBD Beginner user description]', 'wporg-learn' ),
     187                        ),
     188                        'intermediate' => array(
     189                                'title' => __( '[TBD Intermediate user title]', 'wporg-learn' ),
     190                                'description' => __( '[TBD Intermediate user description]', 'wporg-learn' ),
     191                        ),
     192                        'advanced' => array(
     193                                'title' => __( '[TBD Advanced user title]', 'wporg-learn' ),
     194                                'description' => __( '[TBD Advanced user description]', 'wporg-learn' ),
     195                        ),
     196                ),
     197                'contributor' => array(
     198                        'beginner' => array(
     199                                'title' => __( '[TBD Beginner contributor title]', 'wporg-learn' ),
     200                                'description' => __( '[TBD Beginner contributor description]', 'wporg-learn' ),
     201                        ),
     202                        'intermediate' => array(
     203                                'title' => __( '[TBD Intermediate contributor title]', 'wporg-learn' ),
     204                                'description' => __( '[TBD Intermediate contributor description]', 'wporg-learn' ),
     205                        ),
     206                        'advanced' => array(
     207                                'title' => __( '[TBD Advanced contributor title]', 'wporg-learn' ),
     208                                'description' => __( '[TBD Advanced contributor description]', 'wporg-learn' ),
     209                        ),
     210                ),
     211        );
     212
     213        return $content[ $learning_pathway ];
     214}
Note: See TracChangeset for help on using the changeset viewer.