| @@ -12,10 +12,13 @@ | ||
| 12 | 12 | 'dir_name' => 'activity', |
| 13 | 13 | 'title' => 'Activity', |
| 14 | 14 | 'description' => 'Displays recently published posts, scheduled posts, and recent comments.', |
| 15 | 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' ) ), | |
| 16 | 19 | 'has_render' => true, |
| 17 | - 'has_widget' => true, | |
| 20 | + 'has_widget' => false, | |
| 18 | 21 | 'presentation' => 'content-bleed', |
| 19 | 22 | 'category' => 'dashboard', |
| 20 | 23 | 'keywords' => null, |
| 21 | 24 | 'textdomain' => 'default', |
| @@ -25,10 +28,13 @@ | ||
| 25 | 28 | 'dir_name' => 'events', |
| 26 | 29 | 'title' => 'WordPress events', |
| 27 | 30 | 'description' => 'Displays upcoming WordPress community events.', |
| 28 | 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' ) ), | |
| 29 | 35 | 'has_render' => true, |
| 30 | - 'has_widget' => true, | |
| 36 | + 'has_widget' => false, | |
| 31 | 37 | 'presentation' => 'content-bleed', |
| 32 | 38 | 'category' => 'dashboard', |
| 33 | 39 | 'keywords' => null, |
| 34 | 40 | 'textdomain' => 'default', |
| @@ -38,10 +44,13 @@ | ||
| 38 | 44 | 'dir_name' => 'hello-dolly', |
| 39 | 45 | 'title' => 'Hello Dolly', |
| 40 | 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.', |
| 41 | 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, | |
| 42 | 51 | 'has_render' => true, |
| 43 | - 'has_widget' => true, | |
| 52 | + 'has_widget' => false, | |
| 44 | 53 | 'presentation' => 'full-bleed', |
| 45 | 54 | 'category' => 'dashboard', |
| 46 | 55 | 'keywords' => null, |
| 47 | 56 | 'textdomain' => 'default', |
| @@ -51,8 +60,11 @@ | ||
| 51 | 60 | 'dir_name' => 'hello-world', |
| 52 | 61 | 'title' => 'Hello World', |
| 53 | 62 | 'description' => 'A minimal example widget.', |
| 54 | 63 | 'help' => null, |
| 64 | + 'icon' => 'dashboard-widgets/wordpress', | |
| 65 | + 'actions' => null, | |
| 66 | + 'attributes' => array( array( 'id' => 'message', 'type' => 'text', 'label' => 'Message' ) ), | |
| 55 | 67 | 'has_render' => true, |
| 56 | 68 | 'has_widget' => true, |
| 57 | 69 | 'presentation' => 'full-bleed', |
| 58 | 70 | 'category' => 'demo', |
| @@ -64,10 +76,13 @@ | ||
| 64 | 76 | 'dir_name' => 'news', |
| 65 | 77 | 'title' => 'WordPress news', |
| 66 | 78 | 'description' => 'Displays the latest news from WordPress.org and Planet WordPress.', |
| 67 | 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, | |
| 68 | 83 | 'has_render' => true, |
| 69 | - 'has_widget' => true, | |
| 84 | + 'has_widget' => false, | |
| 70 | 85 | 'presentation' => 'content-bleed', |
| 71 | 86 | 'category' => 'dashboard', |
| 72 | 87 | 'keywords' => null, |
| 73 | 88 | 'textdomain' => 'default', |
| @@ -77,10 +92,13 @@ | ||
| 77 | 92 | 'dir_name' => 'quick-draft', |
| 78 | 93 | 'title' => 'Quick draft', |
| 79 | 94 | 'description' => 'Quickly draft a new post.', |
| 80 | 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, | |
| 81 | 99 | 'has_render' => true, |
| 82 | - 'has_widget' => true, | |
| 100 | + 'has_widget' => false, | |
| 83 | 101 | 'presentation' => 'content-bleed', |
| 84 | 102 | 'category' => 'dashboard', |
| 85 | 103 | 'keywords' => null, |
| 86 | 104 | 'textdomain' => 'default', |
| @@ -90,10 +108,13 @@ | ||
| 90 | 108 | 'dir_name' => 'site-health', |
| 91 | 109 | 'title' => 'Site Health Status', |
| 92 | 110 | 'description' => 'Shows an overview of your site health and any issues that need attention.', |
| 93 | 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, | |
| 94 | 115 | 'has_render' => true, |
| 95 | - 'has_widget' => true, | |
| 116 | + 'has_widget' => false, | |
| 96 | 117 | 'presentation' => 'framed', |
| 97 | 118 | 'category' => 'site', |
| 98 | 119 | 'keywords' => null, |
| 99 | 120 | 'textdomain' => 'default', |
| @@ -103,10 +124,13 @@ | ||
| 103 | 124 | 'dir_name' => 'site-preview', |
| 104 | 125 | 'title' => 'Site preview', |
| 105 | 126 | 'description' => 'Shows preview of the site homepage.', |
| 106 | 127 | 'help' => null, |
| 128 | + 'icon' => 'dashboard-widgets/site-logo', | |
| 129 | + 'actions' => null, | |
| 130 | + 'attributes' => null, | |
| 107 | 131 | 'has_render' => true, |
| 108 | - 'has_widget' => true, | |
| 132 | + 'has_widget' => false, | |
| 109 | 133 | 'presentation' => 'full-bleed', |
| 110 | 134 | 'category' => 'dashboard', |
| 111 | 135 | 'keywords' => null, |
| 112 | 136 | 'textdomain' => 'default', |
| @@ -116,10 +140,13 @@ | ||
| 116 | 140 | 'dir_name' => 'welcome', |
| 117 | 141 | 'title' => 'Welcome', |
| 118 | 142 | 'description' => 'Displays a welcome panel to introduce users to WordPress.', |
| 119 | 143 | 'help' => null, |
| 144 | + 'icon' => 'dashboard-widgets/wordpress', | |
| 145 | + 'actions' => null, | |
| 146 | + 'attributes' => null, | |
| 120 | 147 | 'has_render' => true, |
| 121 | - 'has_widget' => true, | |
| 148 | + 'has_widget' => false, | |
| 122 | 149 | 'presentation' => 'full-bleed', |
| 123 | 150 | 'category' => 'dashboard', |
| 124 | 151 | 'keywords' => null, |
| 125 | 152 | 'textdomain' => 'default', |