| @@ -14,10 +14,11 @@ | ||
| 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 | 16 | 'icon' => null, |
| 17 | 17 | 'actions' => null, |
| 18 | + 'attributes' => array( array( 'id' => 'perPage', 'type' => 'integer', 'label' => 'Items per page' ) ), | |
| 18 | 19 | 'has_render' => true, |
| 19 | - 'has_widget' => true, | |
| 20 | + 'has_widget' => false, | |
| 20 | 21 | 'presentation' => 'content-bleed', |
| 21 | 22 | 'category' => 'dashboard', |
| 22 | 23 | 'keywords' => null, |
| 23 | 24 | 'textdomain' => 'default', |
| @@ -29,10 +30,11 @@ | ||
| 29 | 30 | 'description' => 'Displays upcoming WordPress community events.', |
| 30 | 31 | 'help' => null, |
| 31 | 32 | 'icon' => 'core/calendar', |
| 32 | 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' ) ), | |
| 33 | 35 | 'has_render' => true, |
| 34 | - 'has_widget' => true, | |
| 36 | + 'has_widget' => false, | |
| 35 | 37 | 'presentation' => 'content-bleed', |
| 36 | 38 | 'category' => 'dashboard', |
| 37 | 39 | 'keywords' => null, |
| 38 | 40 | 'textdomain' => 'default', |
| @@ -44,8 +46,9 @@ | ||
| 44 | 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.', |
| 45 | 47 | 'help' => null, |
| 46 | 48 | 'icon' => 'core/audio', |
| 47 | 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, | |
| 48 | 51 | 'has_render' => true, |
| 49 | 52 | 'has_widget' => false, |
| 50 | 53 | 'presentation' => 'full-bleed', |
| 51 | 54 | 'category' => 'dashboard', |
| @@ -59,8 +62,9 @@ | ||
| 59 | 62 | 'description' => 'A minimal example widget.', |
| 60 | 63 | 'help' => null, |
| 61 | 64 | 'icon' => 'dashboard-widgets/wordpress', |
| 62 | 65 | 'actions' => null, |
| 66 | + 'attributes' => array( array( 'id' => 'message', 'type' => 'text', 'label' => 'Message' ) ), | |
| 63 | 67 | 'has_render' => true, |
| 64 | 68 | 'has_widget' => true, |
| 65 | 69 | 'presentation' => 'full-bleed', |
| 66 | 70 | 'category' => 'demo', |
| @@ -74,8 +78,9 @@ | ||
| 74 | 78 | 'description' => 'Displays the latest news from WordPress.org and Planet WordPress.', |
| 75 | 79 | 'help' => null, |
| 76 | 80 | 'icon' => null, |
| 77 | 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, | |
| 78 | 83 | 'has_render' => true, |
| 79 | 84 | 'has_widget' => false, |
| 80 | 85 | 'presentation' => 'content-bleed', |
| 81 | 86 | 'category' => 'dashboard', |
| @@ -89,8 +94,9 @@ | ||
| 89 | 94 | 'description' => 'Quickly draft a new post.', |
| 90 | 95 | 'help' => array( 'content' => 'Drafts saved here are <em>private</em> until you publish them.' ), |
| 91 | 96 | 'icon' => 'dashboard-widgets/drafts', |
| 92 | 97 | 'actions' => array( array( 'id' => 'view-drafts', 'label' => 'View all drafts', 'href' => 'edit.php?post_status=draft', 'relevance' => 'high' ) ), |
| 98 | + 'attributes' => null, | |
| 93 | 99 | 'has_render' => true, |
| 94 | 100 | 'has_widget' => false, |
| 95 | 101 | 'presentation' => 'content-bleed', |
| 96 | 102 | 'category' => 'dashboard', |
| @@ -104,8 +110,9 @@ | ||
| 104 | 110 | 'description' => 'Shows an overview of your site health and any issues that need attention.', |
| 105 | 111 | 'help' => array( 'content' => 'Results come from your site\'s latest health checks.', 'links' => array( array( 'label' => 'Visit Site Health', 'href' => 'site-health.php' ) ) ), |
| 106 | 112 | 'icon' => 'core/shield', |
| 107 | 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, | |
| 108 | 115 | 'has_render' => true, |
| 109 | 116 | 'has_widget' => false, |
| 110 | 117 | 'presentation' => 'framed', |
| 111 | 118 | 'category' => 'site', |
| @@ -119,8 +126,9 @@ | ||
| 119 | 126 | 'description' => 'Shows preview of the site homepage.', |
| 120 | 127 | 'help' => null, |
| 121 | 128 | 'icon' => 'dashboard-widgets/site-logo', |
| 122 | 129 | 'actions' => null, |
| 130 | + 'attributes' => null, | |
| 123 | 131 | 'has_render' => true, |
| 124 | 132 | 'has_widget' => false, |
| 125 | 133 | 'presentation' => 'full-bleed', |
| 126 | 134 | 'category' => 'dashboard', |
| @@ -134,8 +142,9 @@ | ||
| 134 | 142 | 'description' => 'Displays a welcome panel to introduce users to WordPress.', |
| 135 | 143 | 'help' => null, |
| 136 | 144 | 'icon' => 'dashboard-widgets/wordpress', |
| 137 | 145 | 'actions' => null, |
| 146 | + 'attributes' => null, | |
| 138 | 147 | 'has_render' => true, |
| 139 | 148 | 'has_widget' => false, |
| 140 | 149 | 'presentation' => 'full-bleed', |
| 141 | 150 | 'category' => 'dashboard', |