Skip to content

Commit aa5ade6

Browse files
committed
Whole lotta updates. Some changes to the home page and readme text. Otherwise mostly styling to match the EDD site branding in the header and footer.
1 parent bfa0b19 commit aa5ade6

File tree

7 files changed

+57
-46
lines changed

7 files changed

+57
-46
lines changed

README.md

+2-23
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,6 @@ Snippets are organized into categories (folders) and each snippet is placed in i
77

88
[View the full site here](http://library.easydigitaldownloads.com)
99

10-
## Using Snippets
10+
Using the full site (link above) instead of browsing this repository is recommended.
1111

12-
Most files in this library are set up to be WordPress plugins:
13-
14-
1. Navigate to the [EDD Library site](http://library.easydigitaldownloads.com).
15-
2. Browse and locate the snippet you'd like to use. Each file is set up to be a WordPress plugin.
16-
3. Copy the code snippet from the page and paste it into a new, empty WordPress plugin.
17-
4. Activate the plugin from the WordPress plugins page.
18-
19-
If you need help customising any of the snippets or do not understand how to use them, we recommend [hiring an EDD consultant](https://easydigitaldownloads.com/consultants/).
20-
21-
## Submitting Your Snippet
22-
23-
We welcome and encourage everyone to submit their code snippets. If you would like to submit your snippet, please [fork](https://github.com/easydigitaldownloads/library/fork) the repository and then create a [pull request](https://github.com/easydigitaldownloads/library/compare/).
24-
25-
Please refer to the [Contributing guidelines](https://github.com/easydigitaldownloads/library/blob/master/CONTRIBUTING.md) before submitting your pull request.
26-
27-
## Proposing a Snippet
28-
29-
If there is a snippet you are unable to find and would like to propose get written, please open an [issue](https://github.com/easydigitaldownloads/library/issues) and describe your need. Please note that there is no guarantee that snippet requests will be honored.
30-
31-
## Notes
32-
33-
These snippets come with no guarantees. Due to the constant evolution of the EDD codebase, it is possible that the behavior of these snippets may change overtime. Find something broken? [Let us know](https://github.com/easydigitaldownloads/library/issues)!
12+
**Important:** Snippets are not actively maintained or supported. Use at your own risk.

_includes/footer.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
<div class="edd"></div>
12
<footer class="site-footer h-card">
23
<data class="u-url" href="{{ "/" | relative_url }}"></data>
34

45
<div class="wrapper">
56

6-
<h2 class="footer-heading"><a href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></h2>
7-
87
<div class="footer-col-wrapper">
98
<div class="footer-col footer-col-1">
109
<ul class="contact-list">
10+
<li><a href="{{ "/" | relative_url }}">Library Home</a></li>
1111
<li class="p-name">
1212
<a href="https://easydigitaldownloads.com">Easy Digital Downloads site</a>
1313
</li>

_includes/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="wrapper">
44
{% assign default_paths = site.pages | map: "path" %}
55
{% assign page_paths = site.header_pages | default: default_paths %}
6-
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
6+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}"><img src="{{ "/" | relative_url }}assets/logo-edd-light.png" height="50"/></a>
77

88
{% if page_paths %}
99
<nav class="site-nav">

assets/ed-3.png

44.4 KB
Loading

assets/logo-edd-light.png

19 KB
Loading

assets/main.scss

+41-7
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,60 @@
33

44
@import "minima";
55

6+
// Header styles
67
.site-nav .page-link {
78
padding: 14px 10px;
89
margin: 0;
910
font-size: 0.8em;
11+
color: #c4d0d6;
1012
}
1113
.site-nav .page-link:hover {
1214
text-decoration: none;
13-
background-color: #ebebeb;
15+
color: #fff;
1416
}
1517
.site-nav .page-link:not(:last-child) {
1618
margin-right: 0;
1719
}
20+
.site-header {
21+
background: #1d2428;
22+
color: #c4d0d6;
23+
}
24+
.site-title img {
25+
padding-top: 10px;
26+
}
1827

1928
// Override widths for footer columns
20-
.footer-col-2 {
21-
width: -webkit-calc(25% - (30px / 2));
22-
width: calc(25% - (30px / 2));
29+
@media screen and (min-width: 801px) {
30+
.footer-col-2 {
31+
width: -webkit-calc(25% - (30px / 2));
32+
width: calc(25% - (30px / 2));
33+
}
34+
35+
.footer-col-3 {
36+
width: -webkit-calc(40% - (30px / 2));
37+
width: calc(40% - (30px / 2));
38+
}
2339
}
2440

25-
.footer-col-3 {
26-
width: -webkit-calc(40% - (30px / 2));
27-
width: calc(40% - (30px / 2));
41+
// Footer styling
42+
.edd {
43+
background: url("ed-3.png") no-repeat scroll center bottom;
44+
height: 193px;
45+
}
46+
footer {
47+
background: #1d2428;
48+
color: #c4d0d6;
49+
a {
50+
color: #c4d0d6;
51+
&:visited {
52+
color: #c4d0d6;
53+
}
54+
&:hover {
55+
color: #fff;
56+
text-decoration: none;
57+
}
58+
}
59+
.social-media-list a:hover {
60+
text-decoration: none;
61+
}
2862
}

index.html

+11-13
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,23 @@
44

55
<div class="home">
66

7-
This is a community-maintained repository of code snippets that help modify the default behavior of [Easy Digital Downloads](https://easydigitaldownloads.com).
7+
<p>This is a community-maintained repository of code snippets that help modify the default behavior of <a href="https://easydigitaldownloads.com">Easy Digital Downloads</a>.</p>
88

9-
Snippets are organized into categories (folders) and each snippet is placed in its own file with a name that describes what it does.
9+
<p>Snippets are organized into categories (folders) and each snippet is placed in its own file with a name that describes what it does.</p>
1010

11-
[View the full site here](http://library.easydigitaldownloads.com)
12-
13-
## Using Snippets
11+
<h2>Using Snippets</h2>
1412

1513
Most files in this library are set up to be WordPress plugins:
1614

17-
1. Navigate to the [EDD Library site](http://library.easydigitaldownloads.com).
18-
2. Browse and locate the snippet you'd like to use. Each file is set up to be a WordPress plugin.
19-
3. Copy the code snippet from the page and paste it into a new, empty WordPress plugin.
20-
4. Activate the plugin from the WordPress plugins page.
21-
22-
If you need help customising any of the snippets or do not understand how to use them, we recommend [hiring an EDD consultant](https://easydigitaldownloads.com/consultants/).
15+
<ol>
16+
<li>Browse the categories in the main menu above to find the snippet you need.</li>
17+
<li>Copy the code snippet from the page and paste it into a new, empty WordPress plugin.</li>
18+
<li>Activate the plugin from the WordPress plugins page.</li>
19+
</ol>
20+
If you need help customising any of the snippets or do not understand how to use them, we recommend <a href="https://easydigitaldownloads.com/consultants/">hiring an Easy Digital Downloads consultant</a>.
2321

24-
## Notes
22+
<h2>Notes</h2>
2523

26-
These snippets come with no guarantees. Due to the constant evolution of the EDD codebase, it is possible that the behavior of these snippets may change overtime. Find something broken? [Let us know](https://github.com/easydigitaldownloads/library/issues)!
24+
<strong>These snippets come with no guarantees.</strong> Due to the constant evolution of the EDD codebase, it is possible that the behavior of these snippets may change overtime. Find something broken? <a href="https://github.com/easydigitaldownloads/library/issues">Let us know</a>!
2725

2826
</div>

0 commit comments

Comments
 (0)