Changeset 10169 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/post-type.php
- Timestamp:
- 08/13/2020 11:43:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/post-type.php
r10147 r10169 46 46 ); 47 47 48 $video_template_part = array( 'core/group',48 $video_template_part = array( 'core/group', 49 49 array( 'className' => 'workshop-page_video' ), 50 array( array( 'core-embed/wordpress-tv' ) ) 50 array( array( 'core-embed/wordpress-tv' ) ), 51 51 ); 52 52 … … 55 55 array( 56 56 array( 'core/heading', array( 57 'level' => '2',57 'level' => '2', 58 58 'content' => __( 'Learning outcomes', 'wporg-learn' ), 59 ) ), 59 ), 60 ), 60 61 array( 'core/list', array( 61 'ordered' => true 62 ) ), 63 ) 62 'ordered' => true, 63 ), 64 ), 65 ), 64 66 ); 65 67 … … 68 70 array( 69 71 array( 'core/heading', array( 70 'level' => '2',72 'level' => '2', 71 73 'content' => __( 'Comprehension questions', 'wporg-learn' ), 72 ) ), 74 ), 75 ), 73 76 array( 'core/list', array( 74 'ordered' => true 75 ) ), 76 ) 77 'ordered' => true, 78 ), 79 ), 80 ), 77 81 ); 78 82 … … 86 90 'borderRadius' => 5, 87 91 'className' => 'is-style-secondary-full-width', 88 ) ), 92 ), 93 ), 89 94 array( 'core/paragraph', array( 90 95 'className' => 'terms', 91 'content' => sprintf(96 'content' => sprintf( 92 97 __( 'You must agree to our <a href="%s">Code of Conduct</a> in order to participate.', 'wporg-learn' ), 93 98 'https://learn.wordpress.org/code-of-conduct/' 94 ) 95 ) ) 96 ) 99 ), 100 ), 101 ), 102 ), 97 103 ); 98 104 99 105 $args = array( 100 'label' => __( 'Workshop', 'wporg_learn' ),101 'description' => __( 'WordPress.org Training Workshop', 'wporg_learn' ),102 'labels' => $labels,103 'supports' => array( 'title', 'editor', 'comments', 'revisions', 'custom-fields', 'thumbnail', 'excerpt' ),104 'taxonomies' => array( 'level', 'topic' ),105 'hierarchical' => true,106 'public' => true,107 'show_ui' => true,108 'show_in_menu' => true,109 'has_archive' => 'workshops',110 'menu_position' => 6,111 'menu_icon' => 'dashicons-category',112 'show_in_admin_bar' => true,113 'show_in_nav_menus' => true,114 'can_export' => true,115 'exclude_from_search' => false,116 'publicly_queryable' => true,117 'capability_type' => 'page',118 'show_in_rest' => true,119 'template_lock' => 'all',120 'rewrite' => array( 'slug' => 'workshop' ),121 'template' => array(106 'label' => __( 'Workshop', 'wporg_learn' ), 107 'description' => __( 'WordPress.org Training Workshop', 'wporg_learn' ), 108 'labels' => $labels, 109 'supports' => array( 'title', 'editor', 'comments', 'revisions', 'custom-fields', 'thumbnail', 'excerpt' ), 110 'taxonomies' => array( 'level', 'topic' ), 111 'hierarchical' => true, 112 'public' => true, 113 'show_ui' => true, 114 'show_in_menu' => true, 115 'has_archive' => 'workshops', 116 'menu_position' => 6, 117 'menu_icon' => 'dashicons-category', 118 'show_in_admin_bar' => true, 119 'show_in_nav_menus' => true, 120 'can_export' => true, 121 'exclude_from_search' => false, 122 'publicly_queryable' => true, 123 'capability_type' => 'page', 124 'show_in_rest' => true, 125 'template_lock' => 'all', 126 'rewrite' => array( 'slug' => 'workshop' ), 127 'template' => array( 122 128 array( 'core/group', 123 129 array( 'className' => 'workshop-page_content' ), 124 130 array( 125 131 $video_template_part, 126 array( 'core/columns', array( ), array(132 array( 'core/columns', array(), array( 127 133 array( 'core/column', array( 'width' => 66.66 ), array( 128 134 array( 'core/paragraph', array( 129 135 'placeholder' => __( 'Describe what the workshop is about', 'wporg-learn' ), 130 ) ), 136 ), 137 ), 131 138 $outcome_template_part, 132 139 $comprehension_template_part, 133 ) ), 140 ), 141 ), 134 142 array( 'core/column', array( 'width' => 33.333 ), array( 135 143 $sidebar_template_part, 136 ) ) 137 ) ), 138 ) ), 139 array( 'core/separator', array( ) ), 144 ), 145 ), 146 ), 147 ), 148 ), 149 ), 150 array( 'core/separator', array() ), 140 151 ), 141 152 );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)