Skip to content

Commit 8dcef44

Browse files
committed
add useful plugins
1 parent 9bb3459 commit 8dcef44

File tree

9 files changed

+578
-264
lines changed

9 files changed

+578
-264
lines changed

plugin.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,6 @@ function is_frontend() {
289289
require_once( plugin_dir_path( __FILE__ ) . 'src/css-optimize.php' );
290290
require_once( plugin_dir_path( __FILE__ ) . 'src/compatibility/index.php' );
291291

292-
// For cross-marketing
293-
require_once( plugin_dir_path( __FILE__ ) . 'src/lazy-components/cimo/index.php' );
294-
295292
if ( ! is_admin() ) {
296293
require_once( plugin_dir_path( __FILE__ ) . 'src/lightbox/index.php' );
297294
require_once( plugin_dir_path( __FILE__ ) . 'src/block/accordion/index.php' );
@@ -318,6 +315,7 @@ function is_frontend() {
318315
*/
319316
require_once( plugin_dir_path( __FILE__ ) . 'src/welcome/getting-started.php' );
320317
if ( is_admin() ) {
318+
require_once( plugin_dir_path( __FILE__ ) . 'src/welcome/useful-plugins.php' ); // For cross-marketing
321319
require_once( plugin_dir_path( __FILE__ ) . 'src/welcome/index.php' );
322320
require_once( plugin_dir_path( __FILE__ ) . 'src/welcome/news.php' );
323321
require_once( plugin_dir_path( __FILE__ ) . 'src/welcome/freemius.php' );

src/lazy-components/cimo/index.php

Lines changed: 0 additions & 202 deletions
This file was deleted.

src/welcome/admin.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import { GettingStarted } from './getting-started'
4242
import { BLOCK_STATE } from '~stackable/util/blocks'
4343
import { BlockToggler, OptimizationSettings } from '~stackable/deprecated/v2/welcome/admin'
4444
import blockData from '~stackable/deprecated/v2/welcome/blocks'
45+
import { UsefulPlugins } from './useful-plugins'
4546

4647
const [ FREE_BLOCKS, BLOCK_DEPENDENCIES ] = importBlocks( require.context( '../block', true, /block\.json$/ ) )
4748

@@ -1658,4 +1659,12 @@ domReady( () => {
16581659
<Settings />
16591660
)
16601661
}
1662+
1663+
if ( document.getElementById( 's-useful-plugins' ) ) {
1664+
createRoot(
1665+
document.getElementById( 's-useful-plugins' )
1666+
).render(
1667+
<UsefulPlugins />
1668+
)
1669+
}
16611670
} )

src/welcome/admin.scss

Lines changed: 62 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
--stk-welcome-light-border: #d0d5dd;
99
}
1010

11+
@mixin s-shadow {
12+
box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
13+
transition: all 0.3s ease-in-out;
14+
&:hover {
15+
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
16+
}
17+
}
18+
19+
1120
// Make scroll smooth with inline navigation.
1221
html {
1322
scroll-behavior: smooth;
@@ -17,6 +26,9 @@ html {
1726

1827
body[class*="page_stackable"],
1928
body[class*="page_stk-"] {
29+
--wp-components-color-accent: var(--stk-welcome-primary);
30+
--wp-components-color-accent-darker-20: var(--stk-welcome-secondary);
31+
--wp-components-color-accent-inverted: var(--stk-welcome-secondary);
2032
#wpcontent {
2133
padding-left: 0;
2234
}
@@ -154,6 +166,54 @@ body[class*="page_stk-"] {
154166
align-items: center;
155167
}
156168

169+
170+
.s-card {
171+
padding: 1.5em;
172+
display: flex;
173+
flex-direction: column;
174+
border-radius: 16px;
175+
@include s-shadow;
176+
background: #fff;
177+
overflow: hidden;
178+
179+
.s-card-title,
180+
h3 {
181+
margin: 0 0 0.5em;
182+
}
183+
.s-card-subtitle,
184+
p {
185+
margin: 0;
186+
}
187+
> *:last-child {
188+
margin-bottom: 0;
189+
}
190+
191+
.s-video-wrapper {
192+
align-items: center;
193+
}
194+
195+
.s-icon-wrapper {
196+
border: 1px solid #eaecf0;
197+
border-radius: 8px;
198+
padding: 10px;
199+
display: flex;
200+
align-items: center;
201+
max-width: fit-content;
202+
margin-bottom: 20px;
203+
}
204+
205+
.s-bottom-icon-wrapper {
206+
display: flex;
207+
justify-content: flex-end;
208+
}
209+
210+
svg {
211+
height: 24px;
212+
width: 24px;
213+
}
214+
215+
}
216+
157217
.s-admin-notice-marker {
158218
display: none !important;
159219
}
@@ -369,10 +429,8 @@ body.toplevel_page_stackable {
369429
padding-bottom: 0;
370430
}
371431
}
372-
body.stackable_page_stackable-settings,
373432
body.toplevel_page_stackable,
374-
body.stackable_page_stk-custom-fields,
375-
body.stackable_page_stackable-go-premium {
433+
body[class*="page_stackable"] {
376434
img {
377435
max-width: 100%;
378436
}
@@ -939,3 +997,4 @@ body.stackable_page_stackable-go-premium {
939997
@import "news";
940998
@import "getting-started";
941999
@import "freemius";
1000+
@import "useful-plugins";

0 commit comments

Comments
 (0)