Making WordPress.org


Ignore:
Timestamp:
10/01/2020 10:08:08 PM (6 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/compare/403f2323659621ae92721adb79ff23ea3bb7d618...348e99fc763e9bd460a6446b2484312e6e5e68db

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/post-type.php

    r10284 r10339  
    6969                'show_in_menu'        => true,
    7070                'menu_position'       => 5,
    71                 'menu_icon'           => 'dashicons-welcome-learn-more',
     71                'menu_icon'           => 'dashicons-clipboard',
    7272                'show_in_admin_bar'   => true,
    7373                'show_in_nav_menus'   => true,
     
    117117        );
    118118
    119         $video_template_part = array( 'core/group',
    120                 array( 'className' => 'workshop-page_video' ),
    121                 array( array( 'core-embed/wordpress-tv' ) ),
    122         );
    123 
    124         $outcome_template_part = array( 'core/group',
    125                 array( 'className' => 'workshop-page_list' ),
     119        $template = array(
    126120                array(
    127                         array( 'core/heading', array(
    128                                 'level'   => '2',
    129                                 'content' => __( 'Learning outcomes', 'wporg-learn' ),
     121                        'core-embed/wordpress-tv',
     122                        array( 'className' => 'workshop-page_video' ),
     123                ),
     124                array(
     125                        'core/columns',
     126                        array( 'className' => 'workshop-page_content' ),
     127                        array(
     128                                array(
     129                                        'core/column',
     130                                        array( 'width' => 66.66 ),
     131                                        array(
     132                                                array(
     133                                                        'core/paragraph',
     134                                                        array(
     135                                                                'placeholder' => __( 'Describe what the workshop is about.', 'wporg-learn' ),
     136                                                        ),
     137                                                ),
     138                                                array(
     139                                                        'core/heading',
     140                                                        array(
     141                                                                'level'   => '2',
     142                                                                'content' => __( 'Learning outcomes', 'wporg-learn' ),
     143                                                        ),
     144                                                ),
     145                                                array(
     146                                                        'core/list',
     147                                                        array(
     148                                                                'className' => 'workshop-page_list',
     149                                                                'ordered'   => true,
     150                                                        ),
     151                                                ),
     152                                                array(
     153                                                        'core/heading',
     154                                                        array(
     155                                                                'level'   => '2',
     156                                                                'content' => __( 'Comprehension questions', 'wporg-learn' ),
     157                                                        ),
     158                                                ),
     159                                                array(
     160                                                        'core/list',
     161                                                        array(
     162                                                                'className' => 'workshop-page_list',
     163                                                        ),
     164                                                ),
     165                                        ),
     166                                ), // End column block.
     167                                array(
     168                                        'core/column',
     169                                        array(
     170                                                'className' => 'workshop-page_sidebar',
     171                                                'width'     => 33.333,
     172                                        ),
     173                                        array(
     174                                                array( 'wporg-learn/workshop-details' ),
     175                                                array(
     176                                                        'core/button',
     177                                                        array(
     178                                                                'className'    => 'is-style-secondary-full-width',
     179                                                                'text'         => __( 'Join a Group Discussion', 'wporg-learn' ),
     180                                                                'url'          => 'https://www.meetup.com/learn-wordpress-discussions/events/',
     181                                                                'borderRadius' => 5,
     182                                                        ),
     183                                                ),
     184                                                array(
     185                                                        'core/paragraph',
     186                                                        array(
     187                                                                'className' => 'terms',
     188                                                                'content'   => sprintf(
     189                                                                        __( 'You must agree to our <a href="%s">Code of Conduct</a> in order to participate.', 'wporg-learn' ),
     190                                                                        'https://learn.wordpress.org/code-of-conduct/'
     191                                                                ),
     192                                                        ),
     193                                                ),
     194                                        ),
     195                                ), // End column block.
    130196                        ),
    131                 ),
    132                         array( 'core/list', array(
    133                                 'ordered' => true,
    134                          ),
    135                 ),
    136                 ),
    137         );
    138 
    139         $comprehension_template_part = array( 'core/group',
    140                 array( 'className' => 'workshop-page_list' ),
    141                 array(
    142                         array( 'core/heading', array(
    143                                 'level'   => '2',
    144                                 'content' => __( 'Comprehension questions', 'wporg-learn' ),
    145                         ),
    146                 ),
    147                         array( 'core/list', array(
    148                                 'ordered' => true,
    149                         ),
    150                 ),
    151                 ),
    152         );
    153 
    154         $sidebar_template_part = array( 'core/group',
    155                 array( 'className' => 'workshop-page_sidebar' ),
    156                 array(
    157                         array( 'wporg-learn/workshop-details' ),
    158                         array( 'core/button', array(
    159                                 'text'         => __( 'Join a Group Discussion', 'wporg-learn' ),
    160                                 'url'          => 'https://www.meetup.com/learn-wordpress-discussions/events/',
    161                                 'borderRadius' => 5,
    162                                 'className'    => 'is-style-secondary-full-width',
    163                         ),
    164                 ),
    165                         array( 'core/paragraph', array(
    166                                 'className' => 'terms',
    167                                 'content'   => sprintf(
    168                                         __( 'You must agree to our <a href="%s">Code of Conduct</a> in order to participate.', 'wporg-learn' ),
    169                                         'https://learn.wordpress.org/code-of-conduct/'
    170                                 ),
    171                         ),
    172                 ),
    173                 ),
     197                ), // End columns block.
     198                array( 'core/separator' ),
    174199        );
    175200
     
    186211                'has_archive'         => 'workshops',
    187212                'menu_position'       => 6,
    188                 'menu_icon'           => 'dashicons-category',
     213                'menu_icon'           => 'dashicons-desktop',
    189214                'show_in_admin_bar'   => true,
    190215                'show_in_nav_menus'   => true,
     
    196221                'template_lock'       => 'all',
    197222                'rewrite'             => array( 'slug' => 'workshop' ),
    198                 'template'            => array(
    199                         array( 'core/group',
    200                         array( 'className' => 'workshop-page_content' ),
    201                                 array(
    202                                         $video_template_part,
    203                                         array( 'core/columns', array(), array(
    204                                                 array( 'core/column', array( 'width' => 66.66 ), array(
    205                                                         array( 'core/paragraph', array(
    206                                                                 'placeholder' => __( 'Describe what the workshop is about', 'wporg-learn' ),
    207                                                         ),
    208                                                 ),
    209                                                         $outcome_template_part,
    210                                                         $comprehension_template_part,
    211                                                 ),
    212                                         ),
    213                                                 array( 'core/column', array( 'width' => 33.333 ), array(
    214                                                         $sidebar_template_part,
    215                                                 ),
    216                                         ),
    217                                         ),
    218                                 ),
    219                                 ),
    220                         ),
    221                         array( 'core/separator', array() ),
    222                 ),
     223                'template'            => $template,
    223224        );
    224225
Note: See TracChangeset for help on using the changeset viewer.