Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WooCommerce icon #63

Merged
merged 5 commits into from Jul 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion codepoints.json
Expand Up @@ -45,5 +45,6 @@
"youtube": 61971,
"behance": 61697,
"google-alt": 61698,
"google": 61699
"google": 61699,
"woocommerce": 61700
}
6 changes: 6 additions & 0 deletions docs/index.html
Expand Up @@ -493,6 +493,12 @@ <h4>Icon names</h4>
</svg>
<p>whatsapp</p>
</div>
<div>
<svg width="24" height="24" class="social-logo woocommerce">
<use xlink:href="social-logos.svg#woocommerce" />
</svg>
<p>woocommerce</p>
</div>
<div>
<svg width="24" height="24" class="social-logo wordpress">
<use xlink:href="social-logos.svg#wordpress" />
Expand Down
2 changes: 1 addition & 1 deletion docs/social-logos.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions icon-font/social-logos.css

Large diffs are not rendered by default.

Binary file modified icon-font/social-logos.eot
Binary file not shown.
15 changes: 11 additions & 4 deletions icon-font/social-logos.html

Large diffs are not rendered by default.

Binary file modified icon-font/social-logos.ttf
Binary file not shown.
Binary file modified icon-font/social-logos.woff2
Binary file not shown.
Binary file added pdf/woocommerce.pdf
Binary file not shown.
3 changes: 3 additions & 0 deletions php/social-logos.php
Expand Up @@ -154,6 +154,9 @@ function get_social_logo( $social_logo ) {
case 'whatsapp':
$svg = '<svg class="social-logo social-logo-whatsapp" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M2.048 22l1.406-5.136C2.587 15.36 2.13 13.656 2.13 11.91 2.134 6.445 6.58 2 12.043 2c2.65 0 5.14 1.033 7.01 2.906 1.872 1.873 2.902 4.363 2.9 7.01 0 5.465-4.447 9.91-9.91 9.91h-.003c-1.66 0-3.29-.416-4.737-1.205L2.048 22zm5.497-3.172l.3.18c1.266.75 2.715 1.147 4.194 1.147h.002c4.54 0 8.235-3.695 8.237-8.237 0-2.2-.856-4.27-2.41-5.828-1.556-1.557-3.624-2.415-5.825-2.416-4.544 0-8.24 3.695-8.24 8.237-.002 1.557.434 3.073 1.258 4.385l.196.312-.833 3.04 3.118-.82zm9.49-4.554c-.062-.103-.227-.165-.475-.29-.248-.123-1.465-.722-1.692-.805-.227-.084-.392-.125-.557.123-.164.248-.64.806-.783.97-.144.166-.29.187-.536.063-.247-.124-1.045-.385-1.99-1.23-.736-.656-1.233-1.467-1.378-1.714-.144-.248-.015-.382.11-.505.11-.11.247-.29.37-.434.124-.145.165-.248.248-.413.083-.165.04-.31-.02-.434-.063-.124-.558-1.343-.764-1.84-.202-.482-.407-.416-.56-.424-.143-.007-.31-.01-.474-.01-.165 0-.433.063-.66.31-.226.25-.866.848-.866 2.067 0 1.218.887 2.395 1.01 2.56.125.166 1.747 2.667 4.23 3.74.592.255 1.053.408 1.413.522.592.19 1.132.162 1.56.098.475-.07 1.464-.6 1.67-1.177.206-.58.206-1.075.145-1.18z"/></g></svg>';
break;
case 'woocommerce':
$svg = '<svg class="social-logo social-logo-woocommerce" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M19 2H5C3.3 2 2 3.3 2 5v11c0 1.7 1.3 3 3 3h4l6 3-1-3h5c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3zm-1.6 4.5c-.4.8-.8 2.1-1 3.9-.3 1.8-.4 3.1-.3 4.1 0 .3 0 .5-.1.7s-.3.4-.6.4-.6-.1-.9-.4c-1-1-1.8-2.6-2.4-4.6-.7 1.4-1.2 2.4-1.6 3.1-.6 1.2-1.2 1.8-1.6 1.9-.3 0-.5-.2-.8-.7-.5-1.4-1.1-4.2-1.7-8.2 0-.3 0-.5.2-.7.1-.2.4-.3.7-.4.5 0 .9.2.9.8.3 2.3.7 4.2 1.1 5.7l2.4-4.5c.2-.4.4-.6.8-.6.5 0 .8.3.9.9.3 1.4.6 2.6 1 3.7.3-2.7.8-4.7 1.4-5.9.2-.3.4-.5.7-.5.2 0 .5.1.7.2.2.2.3.4.3.6s0 .4-.1.5z"/></g></svg>';
break;
case 'wordpress':
$svg = '<svg class="social-logo social-logo-wordpress" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"/></g></svg>';
break;
Expand Down
11 changes: 11 additions & 0 deletions sources/svg/woocommerce.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions svg-min-react/woocommerce.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions svg-min/woocommerce.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions svg-sprite/index.html
Expand Up @@ -493,6 +493,12 @@ <h4>Icon names</h4>
</svg>
<p>whatsapp</p>
</div>
<div>
<svg width="24" height="24" class="social-logo woocommerce">
<use xlink:href="social-logos.svg#woocommerce" />
</svg>
<p>woocommerce</p>
</div>
<div>
<svg width="24" height="24" class="social-logo wordpress">
<use xlink:href="social-logos.svg#wordpress" />
Expand Down
2 changes: 1 addition & 1 deletion svg-sprite/social-logos.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.