Skip to content

Commit 10b36f0

Browse files
committed
new icon
1 parent 8a34797 commit 10b36f0

File tree

7 files changed

+2643
-50
lines changed

7 files changed

+2643
-50
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ LifterLMS Blocks Changelog
44
v1.3.6 - 2019-02-22
55
-------------------
66

7+
+ Updated the editor icons to use the new LifterLMS Icon
78
+ Change method for Pricing Table block re-rendering to prevent an issue resulting it always appearing that the post has unsaved data.
89

910

dist/blocks.build.js

+1,783-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/blocks.editor.build.css

+734-8
Large diffs are not rendered by default.

dist/blocks.style.build.css

+102-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,102 @@
1-
.llms-cols:before,.llms-cols:after{content:" ";display:table}.llms-cols:after{clear:both}.llms-cols .llms-col{width:100%}@media all and (min-width: 600px){.llms-cols [class*="llms-col-"]{float:left}.llms-cols .llms-col-1{width:100%}.llms-cols .llms-col-2{width:50%}.llms-cols .llms-col-3{width:33.33333%}.llms-cols .llms-col-4{width:25%}.llms-cols .llms-col-5{width:20%}.llms-cols .llms-col-6{width:16.66667%}.llms-cols .llms-col-7{width:14.28571%}.llms-cols .llms-col-8{width:12.5%}.llms-cols .llms-col-9{width:11.11111%}.llms-cols .llms-col-10{width:10%}.llms-cols .llms-col-11{width:9.09091%}.llms-cols .llms-col-12{width:8.33333%}}
2-
.llms-cols:before,.llms-cols:after{content:" ";display:table}.llms-cols:after{clear:both}.llms-cols .llms-col{width:100%}@media all and (min-width: 600px){.llms-cols [class*="llms-col-"]{float:left}.llms-cols .llms-col-1{width:100%}.llms-cols .llms-col-2{width:50%}.llms-cols .llms-col-3{width:33.33333%}.llms-cols .llms-col-4{width:25%}.llms-cols .llms-col-5{width:20%}.llms-cols .llms-col-6{width:16.66667%}.llms-cols .llms-col-7{width:14.28571%}.llms-cols .llms-col-8{width:12.5%}.llms-cols .llms-col-9{width:11.11111%}.llms-cols .llms-col-10{width:10%}.llms-cols .llms-col-11{width:9.09091%}.llms-cols .llms-col-12{width:8.33333%}}
1+
/**
2+
* Common SCSS
3+
*
4+
* Include variables and mixins that are used across the project.
5+
*
6+
* @since [version]
7+
* @version [version]
8+
*/
9+
.llms-cols:before, .llms-cols:after {
10+
content: " ";
11+
display: table; }
12+
13+
.llms-cols:after {
14+
clear: both; }
15+
16+
.llms-cols .llms-col {
17+
width: 100%; }
18+
19+
@media all and (min-width: 600px) {
20+
.llms-cols [class*="llms-col-"] {
21+
float: left; }
22+
.llms-cols .llms-col-1 {
23+
width: 100%; }
24+
.llms-cols .llms-col-2 {
25+
width: 50%; }
26+
.llms-cols .llms-col-3 {
27+
width: 33.33333%; }
28+
.llms-cols .llms-col-4 {
29+
width: 25%; }
30+
.llms-cols .llms-col-5 {
31+
width: 20%; }
32+
.llms-cols .llms-col-6 {
33+
width: 16.66667%; }
34+
.llms-cols .llms-col-7 {
35+
width: 14.28571%; }
36+
.llms-cols .llms-col-8 {
37+
width: 12.5%; }
38+
.llms-cols .llms-col-9 {
39+
width: 11.11111%; }
40+
.llms-cols .llms-col-10 {
41+
width: 10%; }
42+
.llms-cols .llms-col-11 {
43+
width: 9.09091%; }
44+
.llms-cols .llms-col-12 {
45+
width: 8.33333%; } }
46+
47+
/**
48+
* Styles
49+
*
50+
* CSS for both Frontend+Backend.
51+
*/
52+
/**
53+
* Common SCSS
54+
*
55+
* Include variables and mixins that are used across the project.
56+
*
57+
* @since [version]
58+
* @version [version]
59+
*/
60+
.llms-cols:before, .llms-cols:after {
61+
content: " ";
62+
display: table; }
63+
64+
.llms-cols:after {
65+
clear: both; }
66+
67+
.llms-cols .llms-col {
68+
width: 100%; }
69+
70+
@media all and (min-width: 600px) {
71+
.llms-cols [class*="llms-col-"] {
72+
float: left; }
73+
.llms-cols .llms-col-1 {
74+
width: 100%; }
75+
.llms-cols .llms-col-2 {
76+
width: 50%; }
77+
.llms-cols .llms-col-3 {
78+
width: 33.33333%; }
79+
.llms-cols .llms-col-4 {
80+
width: 25%; }
81+
.llms-cols .llms-col-5 {
82+
width: 20%; }
83+
.llms-cols .llms-col-6 {
84+
width: 16.66667%; }
85+
.llms-cols .llms-col-7 {
86+
width: 14.28571%; }
87+
.llms-cols .llms-col-8 {
88+
width: 12.5%; }
89+
.llms-cols .llms-col-9 {
90+
width: 11.11111%; }
91+
.llms-cols .llms-col-10 {
92+
width: 10%; }
93+
.llms-cols .llms-col-11 {
94+
width: 9.09091%; }
95+
.llms-cols .llms-col-12 {
96+
width: 8.33333%; } }
97+
98+
/**
99+
* Styles
100+
*
101+
* CSS for both Frontend+Backend.
102+
*/

src/icons/lifterlms-icon.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const { Fragment } = wp.element
2+
3+
const style = {
4+
'fill-rule': 'evenodd',
5+
'clip-rule': 'evenodd',
6+
'stroke-linejoin': 'round',
7+
'stroke-miterlimit': 1.41421,
8+
};
9+
10+
export default () => (
11+
<Fragment>
12+
<svg width="20px" height="20px" viewBox="0 0 85 85" version="1.1" style={ style }>
13+
<g id="lifterlms-icon">
14+
<path d="M29.061,50.631l-2.258,-1.29l-6.066,10.452c-5.483,-7.613 -6.58,-17.873 -2.322,-26.712l0.064,-0.065c0.258,-0.581 0.581,-1.097 0.839,-1.613c4.323,-7.485 11.873,-12.067 19.873,-12.905c1.42,-1.935 2.969,-3.614 4.711,-5.226c-11.421,-0.645 -22.843,5.032 -28.972,15.615c-7.872,13.679 -4.258,30.841 7.872,40.263l6.065,-18.003c0.065,-0.128 0.13,-0.323 0.194,-0.516m36.908,-16.712c3.227,7.421 3.033,16.195 -1.291,23.681c-0.257,0.516 -0.58,1.031 -0.903,1.548l-0.064,0.066c-5.549,8.129 -14.97,12.323 -24.326,11.355l6.066,-10.453l-2.259,-1.291c-0.129,0.13 -0.258,0.259 -0.387,0.389l-12.518,14.259c14.196,5.808 30.907,0.323 38.779,-13.357c6.13,-10.581 5.356,-23.293 -0.967,-32.842c-0.517,2.257 -1.162,4.516 -2.13,6.645"/>
15+
<path d="M44.999,50.243c-1.614,2.13 -4.194,3.228 -6.968,3.485c-0.839,0.065 -1.614,-0.387 -2.001,-1.161c-1.162,-2.517 -1.548,-5.291 -0.451,-7.743l-12.648,-7.291c-0.838,-0.516 -1.225,-1.356 -0.967,-2.258c0.193,-0.904 0.967,-1.55 1.871,-1.55l12.84,-0.451c0.968,-3.936 2.581,-7.678 4.904,-11.163c3.678,-5.484 8.904,-9.549 15.034,-12.001c1.485,-0.581 2.968,-1.096 4.453,-1.484c1.096,-0.258 2.193,0.388 2.451,1.421c0.452,1.482 0.775,3.031 1.033,4.579c0.903,6.582 -0.065,13.163 -2.903,19.099c-1.807,3.743 -4.324,6.97 -7.228,9.808l6.001,11.292c0.452,0.839 0.323,1.807 -0.387,2.452c-0.645,0.645 -1.614,0.71 -2.387,0.258l-12.647,-7.292Zm9.549,-27.035c1.936,1.162 2.581,3.614 1.485,5.549c-1.098,1.936 -3.613,2.582 -5.55,1.485c-1.935,-1.098 -2.58,-3.614 -1.484,-5.55c1.162,-1.935 3.614,-2.581 5.549,-1.484"/>
16+
<path d="M26.093,72.118l13.679,-15.551c-0.516,0.065 -1.032,0.129 -1.549,0.194c-2.064,0.129 -4,-0.968 -4.902,-2.903c-0.259,-0.452 -0.453,-0.904 -0.646,-1.42l-6.582,19.68Z"/>
17+
</g>
18+
</svg>
19+
</Fragment>
20+
)

src/icons/logomark.js

-22
This file was deleted.

src/sidebar/index.js

+3-17
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,15 @@ const { PluginSidebar, PluginSidebarMoreMenuItem } = wp.editPost;
44
const { registerPlugin } = wp.plugins;
55

66
import Instructors from './instructors'
7-
import LogomarkIcon from '../icons/logomark'
8-
9-
// const MyPlugin = ( wut ) => {
10-
// return (
11-
// <PluginSidebar>
12-
// Wutarst
13-
// </PluginSidebar>
14-
// );
15-
// };
7+
import LifterLMSIcon from '../icons/lifterlms-icon'
168

179
const sidebar = () => {
1810
if ( -1 !== [ 'course', 'llms_membership' ].indexOf( wp.data.select( 'core/editor' ).getCurrentPostType() ) ) {
1911
return (
2012
<Fragment>
2113
<PluginSidebarMoreMenuItem
2214
target="llms-sidebar"
23-
icon={ <LogomarkIcon /> }
15+
icon={ <LifterLMSIcon /> }
2416
>
2517
LifterLMS
2618
</PluginSidebarMoreMenuItem>
@@ -36,13 +28,7 @@ const sidebar = () => {
3628
return null;
3729
}
3830

39-
4031
registerPlugin( 'llms', {
4132
render: sidebar,
42-
icon: <LogomarkIcon />
33+
icon: <LifterLMSIcon />
4334
} )
44-
45-
// wp.hooks.addFilter( 'plugins.registerPlugin', 'llms/modify-sidebar', ( settings, name ) => {
46-
// console.log( name, settings );
47-
// return settings
48-
// } );

0 commit comments

Comments
 (0)