| @@ -7,10 +7,148 @@ | ||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | return array( |
| 10 | 10 | array( |
| 11 | - 'name' => 'core/hello-world', | |
| 12 | - 'dir_name' => 'hello-world', | |
| 13 | - 'has_render' => true, | |
| 14 | - 'has_widget' => true, | |
| 11 | + 'name' => 'core/activity', | |
| 12 | + 'dir_name' => 'activity', | |
| 13 | + 'title' => 'Activity', | |
| 14 | + 'description' => 'Displays recently published posts, scheduled posts, and recent comments.', | |
| 15 | + 'help' => array( 'content' => 'Recent publishing and comment activity on this site.' ), | |
| 16 | + 'icon' => null, | |
| 17 | + 'actions' => null, | |
| 18 | + 'attributes' => array( array( 'id' => 'perPage', 'type' => 'integer', 'label' => 'Items per page' ) ), | |
| 19 | + 'has_render' => true, | |
| 20 | + 'has_widget' => false, | |
| 21 | + 'presentation' => 'content-bleed', | |
| 22 | + 'category' => 'dashboard', | |
| 23 | + 'keywords' => null, | |
| 24 | + 'textdomain' => 'default', | |
| 25 | + ), | |
| 26 | + array( | |
| 27 | + 'name' => 'core/events', | |
| 28 | + 'dir_name' => 'events', | |
| 29 | + 'title' => 'WordPress events', | |
| 30 | + 'description' => 'Displays upcoming WordPress community events.', | |
| 31 | + 'help' => null, | |
| 32 | + 'icon' => 'core/calendar', | |
| 33 | + 'actions' => array( array( 'id' => 'meetups', 'label' => 'Meetups', 'href' => 'https://make.wordpress.org/community/meetups-landing-page', 'openInNewTab' => true, 'relevance' => 'high' ), array( 'id' => 'wordcamps', 'label' => 'WordCamps', 'href' => 'https://central.wordcamp.org/schedule/', 'openInNewTab' => true, 'relevance' => 'high' ) ), | |
| 34 | + 'attributes' => array( array( 'id' => 'location', 'type' => 'location', 'label' => 'Event location', 'description' => 'City or region for nearby events.', 'relevance' => 'high' ) ), | |
| 35 | + 'has_render' => true, | |
| 36 | + 'has_widget' => false, | |
| 37 | + 'presentation' => 'content-bleed', | |
| 38 | + 'category' => 'dashboard', | |
| 39 | + 'keywords' => null, | |
| 40 | + 'textdomain' => 'default', | |
| 41 | + ), | |
| 42 | + array( | |
| 43 | + 'name' => 'core/hello-dolly', | |
| 44 | + 'dir_name' => 'hello-dolly', | |
| 45 | + 'title' => 'Hello Dolly', | |
| 46 | + 'description' => 'This is not just a widget, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the dashboard.', | |
| 47 | + 'help' => null, | |
| 48 | + 'icon' => 'core/audio', | |
| 49 | + 'actions' => array( array( 'id' => 'plugin-page', 'label' => 'WordPress.org plugin page', 'href' => 'https://wordpress.org/plugins/hello-dolly/', 'openInNewTab' => true, 'icon' => 'core/external', 'relevance' => 'low' ) ), | |
| 50 | + 'attributes' => null, | |
| 51 | + 'has_render' => true, | |
| 52 | + 'has_widget' => false, | |
| 53 | + 'presentation' => 'full-bleed', | |
| 54 | + 'category' => 'dashboard', | |
| 55 | + 'keywords' => null, | |
| 56 | + 'textdomain' => 'default', | |
| 57 | + ), | |
| 58 | + array( | |
| 59 | + 'name' => 'core/hello-world', | |
| 60 | + 'dir_name' => 'hello-world', | |
| 61 | + 'title' => 'Hello World', | |
| 62 | + 'description' => 'A minimal example widget.', | |
| 63 | + 'help' => null, | |
| 64 | + 'icon' => 'dashboard-widgets/wordpress', | |
| 65 | + 'actions' => null, | |
| 66 | + 'attributes' => array( array( 'id' => 'message', 'type' => 'text', 'label' => 'Message' ) ), | |
| 67 | + 'has_render' => true, | |
| 68 | + 'has_widget' => true, | |
| 69 | + 'presentation' => 'full-bleed', | |
| 70 | + 'category' => 'demo', | |
| 71 | + 'keywords' => null, | |
| 72 | + 'textdomain' => 'default', | |
| 73 | + ), | |
| 74 | + array( | |
| 75 | + 'name' => 'core/news', | |
| 76 | + 'dir_name' => 'news', | |
| 77 | + 'title' => 'WordPress news', | |
| 78 | + 'description' => 'Displays the latest news from WordPress.org and Planet WordPress.', | |
| 79 | + 'help' => null, | |
| 80 | + 'icon' => null, | |
| 81 | + 'actions' => array( array( 'id' => 'news-visit', 'label' => 'Visit WordPress News', 'href' => 'https://wordpress.org/news/', 'openInNewTab' => true, 'icon' => 'core/external', 'relevance' => 'high' ) ), | |
| 82 | + 'attributes' => null, | |
| 83 | + 'has_render' => true, | |
| 84 | + 'has_widget' => false, | |
| 85 | + 'presentation' => 'content-bleed', | |
| 86 | + 'category' => 'dashboard', | |
| 87 | + 'keywords' => null, | |
| 88 | + 'textdomain' => 'default', | |
| 89 | + ), | |
| 90 | + array( | |
| 91 | + 'name' => 'core/quick-draft', | |
| 92 | + 'dir_name' => 'quick-draft', | |
| 93 | + 'title' => 'Quick draft', | |
| 94 | + 'description' => 'Quickly draft a new post.', | |
| 95 | + 'help' => array( 'content' => 'Drafts saved here are <em>private</em> until you publish them.' ), | |
| 96 | + 'icon' => 'dashboard-widgets/drafts', | |
| 97 | + 'actions' => array( array( 'id' => 'view-drafts', 'label' => 'View all drafts', 'href' => 'edit.php?post_status=draft', 'relevance' => 'high' ) ), | |
| 98 | + 'attributes' => null, | |
| 99 | + 'has_render' => true, | |
| 100 | + 'has_widget' => false, | |
| 101 | + 'presentation' => 'content-bleed', | |
| 102 | + 'category' => 'dashboard', | |
| 103 | + 'keywords' => null, | |
| 104 | + 'textdomain' => 'default', | |
| 105 | + ), | |
| 106 | + array( | |
| 107 | + 'name' => 'core/site-health', | |
| 108 | + 'dir_name' => 'site-health', | |
| 109 | + 'title' => 'Site Health Status', | |
| 110 | + 'description' => 'Shows an overview of your site health and any issues that need attention.', | |
| 111 | + 'help' => array( 'content' => 'Results come from your site\'s latest health checks.', 'links' => array( array( 'label' => 'Visit Site Health', 'href' => 'site-health.php' ) ) ), | |
| 112 | + 'icon' => 'core/shield', | |
| 113 | + 'actions' => array( array( 'id' => 'site-health-details', 'label' => 'Details', 'href' => 'admin.php?page=dashboard-wp-admin&p=/site-health', 'icon' => 'core/chart-bar', 'relevance' => 'high' ), array( 'id' => 'site-health-status', 'label' => 'Status', 'href' => 'site-health.php', 'icon' => 'dashboard-widgets/seen', 'relevance' => 'low' ), array( 'id' => 'site-health-info', 'label' => 'Info', 'href' => 'site-health.php?tab=debug', 'icon' => 'core/info', 'relevance' => 'low' ) ), | |
| 114 | + 'attributes' => null, | |
| 115 | + 'has_render' => true, | |
| 116 | + 'has_widget' => false, | |
| 117 | + 'presentation' => 'framed', | |
| 118 | + 'category' => 'site', | |
| 119 | + 'keywords' => null, | |
| 120 | + 'textdomain' => 'default', | |
| 121 | + ), | |
| 122 | + array( | |
| 123 | + 'name' => 'core/site-preview', | |
| 124 | + 'dir_name' => 'site-preview', | |
| 125 | + 'title' => 'Site preview', | |
| 126 | + 'description' => 'Shows preview of the site homepage.', | |
| 127 | + 'help' => null, | |
| 128 | + 'icon' => 'dashboard-widgets/site-logo', | |
| 129 | + 'actions' => null, | |
| 130 | + 'attributes' => null, | |
| 131 | + 'has_render' => true, | |
| 132 | + 'has_widget' => false, | |
| 133 | + 'presentation' => 'full-bleed', | |
| 134 | + 'category' => 'dashboard', | |
| 135 | + 'keywords' => null, | |
| 136 | + 'textdomain' => 'default', | |
| 137 | + ), | |
| 138 | + array( | |
| 139 | + 'name' => 'core/welcome', | |
| 140 | + 'dir_name' => 'welcome', | |
| 141 | + 'title' => 'Welcome', | |
| 142 | + 'description' => 'Displays a welcome panel to introduce users to WordPress.', | |
| 143 | + 'help' => null, | |
| 144 | + 'icon' => 'dashboard-widgets/wordpress', | |
| 145 | + 'actions' => null, | |
| 146 | + 'attributes' => null, | |
| 147 | + 'has_render' => true, | |
| 148 | + 'has_widget' => false, | |
| 149 | + 'presentation' => 'full-bleed', | |
| 150 | + 'category' => 'dashboard', | |
| 151 | + 'keywords' => null, | |
| 152 | + 'textdomain' => 'default', | |
| 15 | 153 | ) |
| 16 | 154 | ); |