Skip to content

Commit 79299a6

Browse files
Merge pull request #20 from uriweb/release-2.3.0
Release 2.3.0
2 parents bd69825 + 0d7ba44 commit 79299a6

8 files changed

Lines changed: 199 additions & 84 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
This plugin makes a number of URI-specific modifications to the WordPress admin dashboard screen.
44

5-
## What's new in 2.2.2
5+
## What's new in 2.3.0
66

7-
* Updates the legacy theme deprecation notice
7+
* Updates the style of the dashboard.
88

99
## Plugin Details
1010

1111
__Contributors:__ John Pennypacker, Brandon Fuller, Alexandra Gauss
1212
__Tags:__ plugins, shortcodes
1313
__Requires at least:__ 5.0
14-
__Tested up to:__ 6.5.5
15-
__Stable tag:__ 2.2.2
14+
__Tested up to:__ 6.8.2
15+
__Stable tag:__ 2.3.0
1616
__License:__ GPL-3.0
1717
__Licence URI:__ https://www.gnu.org/licenses/gpl-3.0.html

img/autumn-leaves.jpg

110 KB
Loading

img/banner-winter.jpg

79.8 KB
Loading
46.6 KB
Loading

img/summer.jpg

121 KB
Loading

inc/uri-admin-welcome.php

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -48,61 +48,53 @@ function uri_admin_theme_deprecation_notice() {
4848

4949
?>
5050

51-
<div class="custom-welcome-panel postbox">
51+
<div class="custom-welcome-panel postbox <?php echo uri_admin_get_season()?>-background">
5252

53-
<div class="welcome-banner"></div>
53+
<div class="welcome-banner <?php echo uri_admin_get_season()?>-banner"></div>
5454

5555
<div class="welcome-content">
5656

57-
<h3 class="header"><?php _e( 'Don’t panic.', 'uri' ); ?> <span><?php _e( 'You’re using WordPress at URI.', 'uri' ); ?></span></h3>
57+
<h3 class="header"><?php _e( 'Welcome to Wordpress at URI', 'uri' ); ?> </h3>
5858

59-
<p class="about-description"><?php _e( 'WordPress makes it easy and efficient to build websites for all our institutional needs. We offer guides and documentation help to stay on-brand and deliver clear and useful content to our digital audience. And, we’re here to help when you need it.', 'uri' ); ?></p>
59+
<p class="about-description"><?php _e( 'We\'ve assembled some guides and documentation to help you stay on-brand and deliver clear and useful content to our digital audience. And, we’re here to help when you need it.', 'uri' ); ?></p>
6060

6161
<div class="welcome-cols">
6262

63-
<div class="column">
64-
<h4><?php _e( 'Lay the groundwork', 'uri' ); ?></h4>
63+
<div class="column-admin">
64+
<h4 class="column-head"><?php _e( 'Start Here', 'uri' ); ?></h4>
6565
<ul>
6666
<li><?php printf( '<a href="%s" class="welcome-icon welcome-wp-at-uri" target="_blank">' . __( 'About WordPress at URI', 'uri' ) . '</a>', 'https://www.uri.edu/wordpress/' ); ?></li>
6767
<li><?php printf( '<a href="%s" class="welcome-icon welcome-content-guide" target="_blank">' . __( 'URI Content Guide', 'uri' ) . '</a>', 'https://www.uri.edu/wordpress/content-guide/' ); ?></li>
68-
<li><?php printf( '<a href="%s" class="welcome-icon welcome-components" target="_blank">' . __( 'Component Library', 'uri' ) . '</a>', 'https://www.uri.edu/wordpress/components/' ); ?></li>
69-
<li><?php printf( __( '<a href="%s" target="_blank">' . __( 'Get help', 'uri' ) . '</a>' ), 'https://www.uri.edu/wordpress/request/support/?your_site_url=' . urlencode( home_url( '/' ) ) . '&your_email=' . urlencode( wp_get_current_user()->user_email ) ); ?></li>
70-
</ul>
68+
</ul>
7169
</div>
7270

73-
<div class="column">
74-
<h4><?php _e( 'Get started on your site', 'uri' ); ?></h4>
71+
<div class="column-admin">
72+
<h4 class="column-head"><?php _e( 'How To', 'uri' ); ?></h4>
7573
<ul>
76-
<?php if ( 'page' !== get_option( 'show_on_front' ) ) : ?>
77-
<li><?php printf( '<a href="%s" class="welcome-icon welcome-get-started" target="_blank">' . __( 'Set up your front page', 'uri' ) . '</a>', 'https://wordpress.com/support/pages/front-page/' ); ?></li>
78-
<?php else: ?>
79-
<li><?php printf( '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Edit your front page', 'uri' ) . '</a>', get_edit_post_link( get_option( 'page_on_front' ) ) ); ?></li>
80-
<?php endif; ?>
81-
<li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Add a new page', 'uri' ) . '</a>', admin_url( 'post-new.php?post_type=page' ) ); ?></li>
82-
<li><?php printf( '<a href="%s" class="welcome-icon welcome-view-site">' . __( 'View your site', 'uri' ) . '</a>', home_url( '/' ) ); ?></li>
83-
</div>
84-
85-
<div class="column">
86-
<h4><?php _e( 'Using the media library', 'uri' ); ?></h4>
74+
<li><?php printf( '<a href="%s" class="welcome-icon welcome-accessibility" target="_blank">' . __( 'Make Your Site Accessible', 'uri' ) . '</a>', 'https://www.uri.edu/wordpress/content-guide/accessibility/' ); ?></li>
75+
76+
<li><?php printf( '<a href="%s" class="welcome-icon welcome-components" target="_blank">' . __( 'Use URI Components', 'uri' ) . '</a>', 'https://www.uri.edu/wordpress/components/' ); ?></li>
77+
</ul>
78+
</div>
79+
80+
<div class="column-admin">
81+
<h4 class="column-head"><?php _e( 'Using the Media Library', 'uri' ); ?></h4>
8782
<ul>
8883
<li><?php printf( '<a href="%s" class="welcome-icon welcome-images">' . __( 'Images', 'uri' ) . '</a>', 'https://www.uri.edu/wordpress/content-guide/images/' ); ?></li>
8984
<li><?php printf( '<a href="%s" class="welcome-icon welcome-view-site">' . __( 'Documents', 'uri' ) . '</a>', 'https://www.uri.edu/wordpress/content-guide/documents/' ); ?></li>
9085
</ul>
9186
</div>
9287

93-
<?php if ( current_user_can( 'edit_theme_options' ) ): ?>
94-
95-
<div class="column">
96-
<h4><?php _e( 'Advanced tasks', 'uri' ); ?></h4>
97-
<ul>
98-
<li class="hide-if-no-customize"><?php printf( '<a href="%s" class="welcome-icon welcome-customize">' . __( 'Customize your site', 'uri' ) . '</a>', admin_url( 'customize.php' ) ); ?></li>
99-
<li class="hide-if-no-customize"><?php printf( '<div class="welcome-icon welcome-widgets-menus">' . __( '<a href="%s">Manage menus</a>' ) . '</div>', admin_url( 'nav-menus.php' ) ); ?></li>
100-
<!--li><?php printf( __( '<a href="%s" target="_blank">Learn about categories</a>' ), 'https://make.wordpress.org/support/user-manual/content/categories-and-tags/categories/' ); ?></li-->
101-
</ul>
88+
</div><!-- .welcome-cols -->
89+
90+
<div class="support-column">
91+
<h4 class="column-head"><?php _e( 'Get Help', 'uri' ); ?></h4>
92+
<ul>
93+
<li class="support-link"><?php printf( '<a href="%s" class="welcome-icon welcome-common-issues">' . __( 'Troubleshoot Common Issues', 'uri' ) . '</a>', 'https://www.uri.edu/wordpress/request/support/' ); ?></li>
94+
<li class="support-link"><?php printf( '<a href="%s" class="welcome-icon welcome-support">' . __( 'Request Support', 'uri' ) . '</a>', 'https://www.uri.edu/wordpress/request/' ); ?></li>
95+
</ul>
10296
</div>
103-
<?php endif; ?>
10497

105-
</div><!-- .welcome-cols -->
10698

10799
<hr>
108100

uri-admin.css

Lines changed: 96 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,128 @@
11
.custom-welcome-panel {
2-
background-color: #eef4f9;
2+
/*background-color: #eef4f9;*/
33
margin: 2rem 1rem 2rem 0;
44
border-color: #7cbeee;
55
}
6+
7+
.winter-background {
8+
background-color: #f4f9fb;
9+
}
10+
11+
.spring-background {
12+
background-color:#f1f1f6;
13+
}
14+
15+
.autumn-background {
16+
background-color:#f2ebe0;
17+
border-color: #eed77c;
18+
}
19+
20+
.summer-background {
21+
background-color: #e9f3fd;
22+
}
623
.welcome-banner {
724
height: 3rem;
825
width: 100%;
9-
background-image: url('img/banner.jpg');
1026
background-repeat: no-repeat;
1127
background-position: 0 0;
1228
background-size: 100% auto;
1329
}
30+
31+
.summer-banner {
32+
background-image: url('img/summer.jpg');
33+
}
34+
35+
.spring-banner {
36+
background-image: url('img/cropped-2019SPRING__dulcineia-dias-195000-unsplash.jpg');
37+
}
38+
.autumn-banner {
39+
background-image: url('img/autumn-leaves.jpg');
40+
}
41+
42+
.winter-banner {
43+
background-image: url('img/banner-winter.jpg');
44+
}
1445
.welcome-content {
1546
padding: .5rem 1.5rem 1rem;
1647
}
17-
.welcome-content h3.header span {
18-
opacity: .7;
48+
49+
.about-description, p {
50+
font-size: .9rem;
51+
}
52+
.welcome-content h3.header {
53+
font-size: 2rem;
1954
}
2055
.welcome-content .about-description {
2156
max-width: 800px;
2257
}
23-
.welcome-cols .column {
58+
.welcome-cols .column-admin {
2459
margin-bottom: 1rem;
2560
}
2661
.custom-welcome-panel li {
2762
list-style-type: disc;
2863
margin-left: 1rem;
2964
}
65+
66+
h4.column-head {
67+
font-size: 1.1rem;
68+
margin-left: .5rem;
69+
}
70+
71+
.column-admin li {
72+
list-style: none;
73+
}
74+
75+
.support-column {
76+
background-color: white;
77+
padding: 0 2rem 2rem 2rem;
78+
width: 30%;
79+
box-shadow: 1.1px 2.2px 2.2px hsl(0deg 0% 0% / 0.47);
80+
border: solid .3px darkblue;
81+
border-radius: .4rem;
82+
margin-top: 2rem;
83+
margin-bottom: 1rem;
84+
}
85+
.support-column h4 {
86+
color: black;
87+
}
88+
89+
.support-column li {
90+
margin: .9rem;
91+
}
92+
93+
.support-column a:link, .support-column a:visited {
94+
background-color: white;
95+
color: black;
96+
font-size: .9rem;
97+
}
98+
99+
.support-column a:hover {
100+
color: rgb(143, 142, 147);
101+
}
102+
103+
.column-admin a:link, .column-admin a:visited {
104+
background-color: #30557e;
105+
color: white;
106+
padding: 14px 25px;
107+
text-align: center;
108+
text-decoration: none;
109+
display: inline-block;
110+
margin-left: 0;
111+
margin-bottom: .2rem;
112+
border-color: white;
113+
border-radius: 5%;
114+
font-size: .8rem;
115+
box-shadow: 1.1px 2.2px 2.2px;
116+
}
117+
.column-admin a:hover, .column-admin a:active {
118+
background-color: #002147;
119+
}
30120
@media only screen and (min-width: 750px) {
31121
.welcome-cols {
32122
display: flex;
33123
flex-direction: row;
34124
}
35-
.welcome-cols .column {
125+
.welcome-cols .column-admin {
36126
flex: 1;
37127
margin-bottom: 0;
38128
margin-right: 1%;

0 commit comments

Comments
 (0)