@sociallane/elements 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierignore +5 -0
- package/.prettierrc.json +8 -0
- package/.vite-dev +0 -0
- package/README.md +47 -0
- package/admin/js/widget-browser.js +124 -0
- package/admin/views/onboarding.php +62 -0
- package/admin/views/partials/category-tabs.php +39 -0
- package/admin/views/partials/step-complete.php +48 -0
- package/admin/views/partials/step-requirements.php +52 -0
- package/admin/views/partials/step-widgets.php +63 -0
- package/admin/views/partials/widget-card.php +67 -0
- package/admin/views/partials/widget-toolbar.php +28 -0
- package/admin/views/preview-embed.php +78 -0
- package/admin/views/preview-frame.php +183 -0
- package/admin/views/preview-index.php +74 -0
- package/admin/views/settings.php +94 -0
- package/admin/views/setup-widget-catalog-frontend.php +189 -0
- package/admin/views/setup-widget-catalog.php +164 -0
- package/assets/css/lenis.css +18 -0
- package/assets/css/tailwind.css +740 -0
- package/assets/dist/.vite/manifest.json +13 -0
- package/assets/dist/animations-BySooxN8.js +37 -0
- package/assets/dist/tailwind-DzIAfumJ.css +1 -0
- package/assets/js/animations.js +113 -0
- package/assets/js/utilities/hover-reveal.js +88 -0
- package/assets/js/utilities/pin.js +31 -0
- package/assets/js/utilities/reveal.js +59 -0
- package/assets/js/utilities/split-text.js +93 -0
- package/assets/js/utilities/stagger.js +48 -0
- package/assets/previews/.gitkeep +2 -0
- package/assets/previews/README.md +65 -0
- package/assets/svgs/components/accordion.svg +9 -0
- package/assets/svgs/components/alert.svg +6 -0
- package/assets/svgs/components/avatar.svg +4 -0
- package/assets/svgs/components/badge.svg +4 -0
- package/assets/svgs/components/breadcrumbs.svg +7 -0
- package/assets/svgs/components/button.svg +4 -0
- package/assets/svgs/components/calendar.svg +10 -0
- package/assets/svgs/components/card.svg +5 -0
- package/assets/svgs/widgets/bento-grid.svg +8 -0
- package/assets/svgs/widgets/bento-portfolio.svg +8 -0
- package/assets/svgs/widgets/content-block.svg +4 -0
- package/assets/svgs/widgets/faq.svg +11 -0
- package/assets/svgs/widgets/feature-grid.svg +14 -0
- package/assets/svgs/widgets/feature-list-cta.svg +10 -0
- package/assets/svgs/widgets/footer.svg +7 -0
- package/assets/svgs/widgets/grid-posts.svg +11 -0
- package/assets/svgs/widgets/grid-team.svg +8 -0
- package/assets/svgs/widgets/hero.svg +7 -0
- package/assets/svgs/widgets/intro-text.svg +3 -0
- package/assets/svgs/widgets/logo-grid.svg +12 -0
- package/assets/svgs/widgets/navigation.svg +10 -0
- package/assets/svgs/widgets/newsletter.svg +6 -0
- package/assets/svgs/widgets/pricing-table.svg +9 -0
- package/assets/svgs/widgets/social-proof.svg +7 -0
- package/docs/cursor-global-rule.md +24 -0
- package/docs/install-new-instance.md +92 -0
- package/docs/npm-widget-cheatsheet.md +178 -0
- package/docs/package-installation.md +127 -0
- package/docs/widgets/blog-grid.md +31 -0
- package/docs/widgets/card-hover-reveal.md +27 -0
- package/docs/widgets/cta-banner.md +31 -0
- package/docs/widgets/cta-split.md +26 -0
- package/docs/widgets/faq.md +31 -0
- package/docs/widgets/feature-list.md +21 -0
- package/docs/widgets/footer-links-contact.md +24 -0
- package/elements/.gitkeep +0 -0
- package/elements/button/button.php +161 -0
- package/elements/button/templates/render.php +89 -0
- package/elements/cta-group/templates/render.php +61 -0
- package/elements/image/image.php +113 -0
- package/elements/image/templates/render.php +43 -0
- package/elements/section-header/templates/render.php +103 -0
- package/includes/button-presets.php +71 -0
- package/includes/class-admin-settings.php +134 -0
- package/includes/class-disable-reset-css.php +78 -0
- package/includes/class-gravity-forms-styles.php +78 -0
- package/includes/class-onboarding.php +214 -0
- package/includes/class-setup-widget-catalog.php +37 -0
- package/includes/class-widget-manager.php +605 -0
- package/includes/class-widget-preview.php +101 -0
- package/includes/footer-menu-columns.php +85 -0
- package/includes/widget-preview-defaults.php +660 -0
- package/package.json +38 -0
- package/packages/core/assets/css/lenis.css +18 -0
- package/packages/core/assets/css/tailwind.css +704 -0
- package/packages/core/assets/dist/.vite/manifest.json +13 -0
- package/packages/core/assets/dist/animations-BySooxN8.js +37 -0
- package/packages/core/assets/dist/tailwind-BE97TLZW.css +1 -0
- package/packages/core/assets/js/animations.js +113 -0
- package/packages/core/assets/js/utilities/hover-reveal.js +88 -0
- package/packages/core/assets/js/utilities/pin.js +31 -0
- package/packages/core/assets/js/utilities/reveal.js +56 -0
- package/packages/core/assets/js/utilities/split-text.js +74 -0
- package/packages/core/assets/js/utilities/stagger.js +46 -0
- package/packages/core/includes/class-plugin.php +75 -0
- package/packages/core/includes/class-vite-assets.php +357 -0
- package/packages/core/includes/class-widgets-loader.php +195 -0
- package/packages/core/includes/helpers.php +407 -0
- package/packages/core/includes/traits/trait-animation-controls.php +194 -0
- package/packages/core/includes/traits/trait-common-controls.php +239 -0
- package/packages/core/package.json +25 -0
- package/packages/core/vite.config.js +123 -0
- package/packages/widgets/bento-grid/bento-grid.php +761 -0
- package/packages/widgets/bento-grid/data/view.php +327 -0
- package/packages/widgets/bento-grid/package.json +12 -0
- package/packages/widgets/bento-grid/templates/partials/cell1.php +45 -0
- package/packages/widgets/bento-grid/templates/partials/cell2.php +52 -0
- package/packages/widgets/bento-grid/templates/partials/cell3.php +45 -0
- package/packages/widgets/bento-grid/templates/partials/cell4.php +44 -0
- package/packages/widgets/bento-grid/templates/partials/default-grid.php +31 -0
- package/packages/widgets/bento-grid/templates/partials/tcsr-row1-left.php +68 -0
- package/packages/widgets/bento-grid/templates/partials/tcsr-row1-right.php +65 -0
- package/packages/widgets/bento-grid/templates/partials/tcsr-row2-center.php +41 -0
- package/packages/widgets/bento-grid/templates/partials/tcsr-row2-left.php +38 -0
- package/packages/widgets/bento-grid/templates/partials/tcsr-row2-right.php +38 -0
- package/packages/widgets/bento-grid/templates/partials/two-column-second-row-grid.php +35 -0
- package/packages/widgets/bento-grid/templates/partials/two-row-deploys.php +47 -0
- package/packages/widgets/bento-grid/templates/partials/two-row-grid.php +34 -0
- package/packages/widgets/bento-grid/templates/partials/two-row-integrations.php +40 -0
- package/packages/widgets/bento-grid/templates/partials/two-row-overview.php +67 -0
- package/packages/widgets/bento-grid/templates/partials/two-row-releases.php +29 -0
- package/packages/widgets/bento-grid/templates/partials/two-row-security.php +44 -0
- package/packages/widgets/bento-grid/templates/wrapper.php +72 -0
- package/packages/widgets/bento-grid-4/bento-grid-4.php +524 -0
- package/packages/widgets/bento-grid-4/data/view.php +127 -0
- package/packages/widgets/bento-grid-4/package.json +12 -0
- package/packages/widgets/bento-grid-4/templates/partials/cell1.php +45 -0
- package/packages/widgets/bento-grid-4/templates/partials/cell2.php +52 -0
- package/packages/widgets/bento-grid-4/templates/partials/cell3.php +45 -0
- package/packages/widgets/bento-grid-4/templates/partials/cell4.php +44 -0
- package/packages/widgets/bento-grid-4/templates/partials/default-grid.php +31 -0
- package/packages/widgets/bento-grid-4/templates/partials/tcsr-row1-left.php +68 -0
- package/packages/widgets/bento-grid-4/templates/partials/tcsr-row1-right.php +65 -0
- package/packages/widgets/bento-grid-4/templates/partials/tcsr-row2-center.php +41 -0
- package/packages/widgets/bento-grid-4/templates/partials/tcsr-row2-left.php +38 -0
- package/packages/widgets/bento-grid-4/templates/partials/tcsr-row2-right.php +38 -0
- package/packages/widgets/bento-grid-4/templates/partials/two-column-second-row-grid.php +35 -0
- package/packages/widgets/bento-grid-4/templates/partials/two-row-deploys.php +47 -0
- package/packages/widgets/bento-grid-4/templates/partials/two-row-grid.php +34 -0
- package/packages/widgets/bento-grid-4/templates/partials/two-row-integrations.php +40 -0
- package/packages/widgets/bento-grid-4/templates/partials/two-row-overview.php +67 -0
- package/packages/widgets/bento-grid-4/templates/partials/two-row-releases.php +29 -0
- package/packages/widgets/bento-grid-4/templates/partials/two-row-security.php +44 -0
- package/packages/widgets/bento-grid-4/templates/wrapper.php +65 -0
- package/packages/widgets/bento-grid-5/bento-grid-5.php +219 -0
- package/packages/widgets/bento-grid-5/data/view.php +136 -0
- package/packages/widgets/bento-grid-5/package.json +12 -0
- package/packages/widgets/bento-grid-5/templates/partials/cell1.php +45 -0
- package/packages/widgets/bento-grid-5/templates/partials/cell2.php +52 -0
- package/packages/widgets/bento-grid-5/templates/partials/cell3.php +45 -0
- package/packages/widgets/bento-grid-5/templates/partials/cell4.php +44 -0
- package/packages/widgets/bento-grid-5/templates/partials/default-grid.php +31 -0
- package/packages/widgets/bento-grid-5/templates/partials/tcsr-row1-left.php +68 -0
- package/packages/widgets/bento-grid-5/templates/partials/tcsr-row1-right.php +65 -0
- package/packages/widgets/bento-grid-5/templates/partials/tcsr-row2-center.php +41 -0
- package/packages/widgets/bento-grid-5/templates/partials/tcsr-row2-left.php +38 -0
- package/packages/widgets/bento-grid-5/templates/partials/tcsr-row2-right.php +38 -0
- package/packages/widgets/bento-grid-5/templates/partials/two-column-second-row-grid.php +35 -0
- package/packages/widgets/bento-grid-5/templates/partials/two-row-deploys.php +47 -0
- package/packages/widgets/bento-grid-5/templates/partials/two-row-grid.php +34 -0
- package/packages/widgets/bento-grid-5/templates/partials/two-row-integrations.php +40 -0
- package/packages/widgets/bento-grid-5/templates/partials/two-row-overview.php +67 -0
- package/packages/widgets/bento-grid-5/templates/partials/two-row-releases.php +29 -0
- package/packages/widgets/bento-grid-5/templates/partials/two-row-security.php +44 -0
- package/packages/widgets/bento-grid-5/templates/wrapper.php +65 -0
- package/packages/widgets/bento-grid-6/bento-grid-6.php +223 -0
- package/packages/widgets/bento-grid-6/data/view.php +158 -0
- package/packages/widgets/bento-grid-6/package.json +12 -0
- package/packages/widgets/bento-grid-6/templates/partials/cell1.php +45 -0
- package/packages/widgets/bento-grid-6/templates/partials/cell2.php +52 -0
- package/packages/widgets/bento-grid-6/templates/partials/cell3.php +45 -0
- package/packages/widgets/bento-grid-6/templates/partials/cell4.php +44 -0
- package/packages/widgets/bento-grid-6/templates/partials/default-grid.php +31 -0
- package/packages/widgets/bento-grid-6/templates/partials/tcsr-row1-left.php +68 -0
- package/packages/widgets/bento-grid-6/templates/partials/tcsr-row1-right.php +65 -0
- package/packages/widgets/bento-grid-6/templates/partials/tcsr-row2-center.php +41 -0
- package/packages/widgets/bento-grid-6/templates/partials/tcsr-row2-left.php +38 -0
- package/packages/widgets/bento-grid-6/templates/partials/tcsr-row2-right.php +38 -0
- package/packages/widgets/bento-grid-6/templates/partials/two-column-second-row-grid.php +35 -0
- package/packages/widgets/bento-grid-6/templates/partials/two-row-deploys.php +47 -0
- package/packages/widgets/bento-grid-6/templates/partials/two-row-grid.php +34 -0
- package/packages/widgets/bento-grid-6/templates/partials/two-row-integrations.php +40 -0
- package/packages/widgets/bento-grid-6/templates/partials/two-row-overview.php +67 -0
- package/packages/widgets/bento-grid-6/templates/partials/two-row-releases.php +29 -0
- package/packages/widgets/bento-grid-6/templates/partials/two-row-security.php +44 -0
- package/packages/widgets/bento-grid-6/templates/wrapper.php +65 -0
- package/packages/widgets/bento-portfolio/bento-portfolio.php +399 -0
- package/packages/widgets/bento-portfolio/data/view.php +102 -0
- package/packages/widgets/bento-portfolio/package.json +12 -0
- package/packages/widgets/bento-portfolio/templates/partials/portfolio-card.php +84 -0
- package/packages/widgets/bento-portfolio/templates/partials/portfolio-default-grid.php +35 -0
- package/packages/widgets/bento-portfolio/templates/partials/portfolio-two-column-second-row-grid.php +39 -0
- package/packages/widgets/bento-portfolio/templates/partials/portfolio-two-row-grid.php +35 -0
- package/packages/widgets/bento-portfolio/templates/wrapper.php +88 -0
- package/packages/widgets/bento-portfolio-4/bento-portfolio-4.php +382 -0
- package/packages/widgets/bento-portfolio-4/data/view.php +91 -0
- package/packages/widgets/bento-portfolio-4/package.json +12 -0
- package/packages/widgets/bento-portfolio-4/templates/partials/portfolio-card.php +84 -0
- package/packages/widgets/bento-portfolio-4/templates/partials/portfolio-default-grid.php +35 -0
- package/packages/widgets/bento-portfolio-4/templates/partials/portfolio-two-column-second-row-grid.php +39 -0
- package/packages/widgets/bento-portfolio-4/templates/partials/portfolio-two-row-grid.php +35 -0
- package/packages/widgets/bento-portfolio-4/templates/wrapper.php +78 -0
- package/packages/widgets/bento-portfolio-5/bento-portfolio-5.php +382 -0
- package/packages/widgets/bento-portfolio-5/data/view.php +91 -0
- package/packages/widgets/bento-portfolio-5/package.json +12 -0
- package/packages/widgets/bento-portfolio-5/templates/partials/portfolio-card.php +84 -0
- package/packages/widgets/bento-portfolio-5/templates/partials/portfolio-default-grid.php +35 -0
- package/packages/widgets/bento-portfolio-5/templates/partials/portfolio-two-column-second-row-grid.php +39 -0
- package/packages/widgets/bento-portfolio-5/templates/partials/portfolio-two-row-grid.php +35 -0
- package/packages/widgets/bento-portfolio-5/templates/wrapper.php +78 -0
- package/packages/widgets/bento-portfolio-6/bento-portfolio-6.php +382 -0
- package/packages/widgets/bento-portfolio-6/data/view.php +91 -0
- package/packages/widgets/bento-portfolio-6/package.json +12 -0
- package/packages/widgets/bento-portfolio-6/templates/partials/portfolio-card.php +84 -0
- package/packages/widgets/bento-portfolio-6/templates/partials/portfolio-default-grid.php +35 -0
- package/packages/widgets/bento-portfolio-6/templates/partials/portfolio-two-column-second-row-grid.php +39 -0
- package/packages/widgets/bento-portfolio-6/templates/partials/portfolio-two-row-grid.php +35 -0
- package/packages/widgets/bento-portfolio-6/templates/wrapper.php +78 -0
- package/packages/widgets/blog-grid/blog-grid.php +359 -0
- package/packages/widgets/blog-grid/data/view.php +192 -0
- package/packages/widgets/blog-grid/package.json +12 -0
- package/packages/widgets/blog-grid/templates/partials/card.php +73 -0
- package/packages/widgets/blog-grid/templates/wrapper.php +89 -0
- package/packages/widgets/card-hover-reveal/card-hover-reveal.php +329 -0
- package/packages/widgets/card-hover-reveal/data/view.php +108 -0
- package/packages/widgets/card-hover-reveal/package.json +12 -0
- package/packages/widgets/card-hover-reveal/templates/partials/card.php +86 -0
- package/packages/widgets/card-hover-reveal/templates/wrapper.php +80 -0
- package/packages/widgets/client-logos/client-logos.php +214 -0
- package/packages/widgets/client-logos/data/view.php +88 -0
- package/packages/widgets/client-logos/package.json +12 -0
- package/packages/widgets/client-logos/templates/partials/client-item.php +38 -0
- package/packages/widgets/client-logos/templates/wrapper.php +62 -0
- package/packages/widgets/content-block/content-block.php +280 -0
- package/packages/widgets/content-block/data/view.php +103 -0
- package/packages/widgets/content-block/package.json +12 -0
- package/packages/widgets/content-block/templates/partials/content.php +52 -0
- package/packages/widgets/content-block/templates/wrapper.php +73 -0
- package/packages/widgets/cta-banner/cta-banner.php +300 -0
- package/packages/widgets/cta-banner/data/view.php +96 -0
- package/packages/widgets/cta-banner/package.json +12 -0
- package/packages/widgets/cta-banner/templates/wrapper.php +131 -0
- package/packages/widgets/cta-notify/cta-notify.php +135 -0
- package/packages/widgets/cta-notify/data/view.php +48 -0
- package/packages/widgets/cta-notify/package.json +12 -0
- package/packages/widgets/cta-notify/templates/wrapper.php +69 -0
- package/packages/widgets/cta-split/cta-split.php +246 -0
- package/packages/widgets/cta-split/data/view.php +84 -0
- package/packages/widgets/cta-split/package.json +12 -0
- package/packages/widgets/cta-split/templates/wrapper.php +113 -0
- package/packages/widgets/faq-centered/data/view.php +87 -0
- package/packages/widgets/faq-centered/faq-centered.php +223 -0
- package/packages/widgets/faq-centered/package.json +12 -0
- package/packages/widgets/faq-centered/templates/partials/accordion.php +70 -0
- package/packages/widgets/faq-centered/templates/partials/layout-centered.php +41 -0
- package/packages/widgets/faq-centered/templates/partials/layout-split.php +47 -0
- package/packages/widgets/faq-centered/templates/partials/layout-stacked.php +57 -0
- package/packages/widgets/faq-centered/templates/wrapper.php +70 -0
- package/packages/widgets/faq-split/data/view.php +93 -0
- package/packages/widgets/faq-split/faq-split.php +236 -0
- package/packages/widgets/faq-split/package.json +12 -0
- package/packages/widgets/faq-split/templates/partials/accordion.php +70 -0
- package/packages/widgets/faq-split/templates/partials/layout-centered.php +41 -0
- package/packages/widgets/faq-split/templates/partials/layout-split.php +47 -0
- package/packages/widgets/faq-split/templates/partials/layout-stacked.php +57 -0
- package/packages/widgets/faq-split/templates/wrapper.php +70 -0
- package/packages/widgets/faq-stacked/data/view.php +92 -0
- package/packages/widgets/faq-stacked/faq-stacked.php +223 -0
- package/packages/widgets/faq-stacked/package.json +12 -0
- package/packages/widgets/faq-stacked/templates/partials/accordion.php +70 -0
- package/packages/widgets/faq-stacked/templates/partials/layout-centered.php +41 -0
- package/packages/widgets/faq-stacked/templates/partials/layout-split.php +47 -0
- package/packages/widgets/faq-stacked/templates/partials/layout-stacked.php +57 -0
- package/packages/widgets/faq-stacked/templates/wrapper.php +70 -0
- package/packages/widgets/feature-grid/data/view.php +80 -0
- package/packages/widgets/feature-grid/feature-grid.php +305 -0
- package/packages/widgets/feature-grid/package.json +12 -0
- package/packages/widgets/feature-grid/templates/partials/centered-2x2.php +69 -0
- package/packages/widgets/feature-grid/templates/partials/feature-item.php +54 -0
- package/packages/widgets/feature-grid/templates/wrapper.php +67 -0
- package/packages/widgets/feature-grid-centered/data/view.php +78 -0
- package/packages/widgets/feature-grid-centered/feature-grid-centered.php +278 -0
- package/packages/widgets/feature-grid-centered/package.json +12 -0
- package/packages/widgets/feature-grid-centered/templates/partials/centered-2x2.php +69 -0
- package/packages/widgets/feature-grid-centered/templates/partials/feature-item.php +54 -0
- package/packages/widgets/feature-grid-centered/templates/wrapper.php +35 -0
- package/packages/widgets/feature-list/data/view.php +49 -0
- package/packages/widgets/feature-list/feature-list.php +160 -0
- package/packages/widgets/feature-list/package.json +12 -0
- package/packages/widgets/feature-list/templates/wrapper.php +69 -0
- package/packages/widgets/feature-list-cta/data/view.php +62 -0
- package/packages/widgets/feature-list-cta/feature-list-cta.php +226 -0
- package/packages/widgets/feature-list-cta/package.json +12 -0
- package/packages/widgets/feature-list-cta/templates/partials/feature-item.php +49 -0
- package/packages/widgets/feature-list-cta/templates/wrapper.php +65 -0
- package/packages/widgets/footer/data/view.php +133 -0
- package/packages/widgets/footer/footer.php +389 -0
- package/packages/widgets/footer/package.json +12 -0
- package/packages/widgets/footer/templates/partials/bottom.php +77 -0
- package/packages/widgets/footer/templates/partials/cta.php +47 -0
- package/packages/widgets/footer/templates/partials/link-columns.php +52 -0
- package/packages/widgets/footer/templates/wrapper.php +53 -0
- package/packages/widgets/footer-brand/data/view.php +130 -0
- package/packages/widgets/footer-brand/footer-brand.php +278 -0
- package/packages/widgets/footer-brand/package.json +12 -0
- package/packages/widgets/footer-brand/templates/partials/brand.php +69 -0
- package/packages/widgets/footer-brand/templates/partials/link-columns.php +51 -0
- package/packages/widgets/footer-brand/templates/wrapper.php +59 -0
- package/packages/widgets/footer-links-contact/data/view.php +145 -0
- package/packages/widgets/footer-links-contact/footer-links-contact.php +361 -0
- package/packages/widgets/footer-links-contact/package.json +12 -0
- package/packages/widgets/footer-links-contact/templates/partials/bottom.php +70 -0
- package/packages/widgets/footer-links-contact/templates/partials/contact-column.php +66 -0
- package/packages/widgets/footer-links-contact/templates/partials/link-column.php +39 -0
- package/packages/widgets/footer-links-contact/templates/partials/logo-column.php +46 -0
- package/packages/widgets/footer-links-contact/templates/wrapper.php +68 -0
- package/packages/widgets/form-contact/data/view.php +96 -0
- package/packages/widgets/form-contact/form-contact.php +274 -0
- package/packages/widgets/form-contact/package.json +12 -0
- package/packages/widgets/form-contact/templates/partials/testimonial.php +83 -0
- package/packages/widgets/form-contact/templates/wrapper.php +98 -0
- package/packages/widgets/grid-case-studies/data/view.php +74 -0
- package/packages/widgets/grid-case-studies/grid-case-studies.php +262 -0
- package/packages/widgets/grid-case-studies/package.json +12 -0
- package/packages/widgets/grid-case-studies/templates/partials/card.php +66 -0
- package/packages/widgets/grid-case-studies/templates/wrapper.php +69 -0
- package/packages/widgets/grid-components/data/view.php +107 -0
- package/packages/widgets/grid-components/grid-components.php +323 -0
- package/packages/widgets/grid-components/package.json +12 -0
- package/packages/widgets/grid-components/templates/partials/component-card.php +81 -0
- package/packages/widgets/grid-components/templates/wrapper.php +55 -0
- package/packages/widgets/grid-team/data/view.php +67 -0
- package/packages/widgets/grid-team/grid-team.php +201 -0
- package/packages/widgets/grid-team/package.json +12 -0
- package/packages/widgets/grid-team/templates/partials/team-card.php +52 -0
- package/packages/widgets/grid-team/templates/wrapper.php +67 -0
- package/packages/widgets/hero-announcement/data/view.php +96 -0
- package/packages/widgets/hero-announcement/hero-announcement.php +270 -0
- package/packages/widgets/hero-announcement/package.json +12 -0
- package/packages/widgets/hero-announcement/templates/wrapper.php +111 -0
- package/packages/widgets/hero-centered-image/data/view.php +119 -0
- package/packages/widgets/hero-centered-image/hero-centered-image.php +297 -0
- package/packages/widgets/hero-centered-image/package.json +12 -0
- package/packages/widgets/hero-centered-image/templates/wrapper.php +123 -0
- package/packages/widgets/hero-collage/data/view.php +108 -0
- package/packages/widgets/hero-collage/hero-collage.php +151 -0
- package/packages/widgets/hero-collage/package.json +12 -0
- package/packages/widgets/hero-collage/templates/wrapper.php +102 -0
- package/packages/widgets/hero-overlay/data/view.php +117 -0
- package/packages/widgets/hero-overlay/hero-overlay.php +277 -0
- package/packages/widgets/hero-overlay/package.json +12 -0
- package/packages/widgets/hero-overlay/templates/wrapper.php +225 -0
- package/packages/widgets/hero-overlay-single/data/view.php +118 -0
- package/packages/widgets/hero-overlay-single/hero-overlay-single.php +221 -0
- package/packages/widgets/hero-overlay-single/package.json +12 -0
- package/packages/widgets/hero-overlay-single/templates/wrapper.php +225 -0
- package/packages/widgets/hero-overlay-slider/data/view.php +118 -0
- package/packages/widgets/hero-overlay-slider/hero-overlay-slider.php +262 -0
- package/packages/widgets/hero-overlay-slider/package.json +12 -0
- package/packages/widgets/hero-overlay-slider/templates/wrapper.php +225 -0
- package/packages/widgets/hero-saas-centered/data/view.php +79 -0
- package/packages/widgets/hero-saas-centered/hero-saas-centered.php +145 -0
- package/packages/widgets/hero-saas-centered/package.json +12 -0
- package/packages/widgets/hero-saas-centered/templates/partials/layout-centered.php +70 -0
- package/packages/widgets/hero-saas-centered/templates/partials/layout-split.php +76 -0
- package/packages/widgets/hero-saas-centered/templates/partials/layout-stacked.php +70 -0
- package/packages/widgets/hero-saas-centered/templates/wrapper.php +46 -0
- package/packages/widgets/hero-saas-split/data/view.php +83 -0
- package/packages/widgets/hero-saas-split/hero-saas-split.php +158 -0
- package/packages/widgets/hero-saas-split/package.json +12 -0
- package/packages/widgets/hero-saas-split/templates/partials/layout-centered.php +70 -0
- package/packages/widgets/hero-saas-split/templates/partials/layout-split.php +76 -0
- package/packages/widgets/hero-saas-split/templates/partials/layout-stacked.php +70 -0
- package/packages/widgets/hero-saas-split/templates/wrapper.php +46 -0
- package/packages/widgets/hero-saas-stacked/data/view.php +79 -0
- package/packages/widgets/hero-saas-stacked/hero-saas-stacked.php +145 -0
- package/packages/widgets/hero-saas-stacked/package.json +12 -0
- package/packages/widgets/hero-saas-stacked/templates/partials/layout-centered.php +70 -0
- package/packages/widgets/hero-saas-stacked/templates/partials/layout-split.php +76 -0
- package/packages/widgets/hero-saas-stacked/templates/partials/layout-stacked.php +70 -0
- package/packages/widgets/hero-saas-stacked/templates/wrapper.php +46 -0
- package/packages/widgets/hero-split/data/view.php +84 -0
- package/packages/widgets/hero-split/hero-split.php +127 -0
- package/packages/widgets/hero-split/package.json +12 -0
- package/packages/widgets/hero-split/templates/wrapper.php +86 -0
- package/packages/widgets/hero-stacked-image/data/view.php +137 -0
- package/packages/widgets/hero-stacked-image/hero-stacked-image.php +248 -0
- package/packages/widgets/hero-stacked-image/package.json +12 -0
- package/packages/widgets/hero-stacked-image/templates/wrapper.php +176 -0
- package/packages/widgets/intro-pattern/data/view.php +64 -0
- package/packages/widgets/intro-pattern/intro-pattern.php +161 -0
- package/packages/widgets/intro-pattern/package.json +12 -0
- package/packages/widgets/intro-pattern/templates/wrapper.php +61 -0
- package/packages/widgets/intro-text/data/view.php +79 -0
- package/packages/widgets/intro-text/intro-text.php +252 -0
- package/packages/widgets/intro-text/package.json +12 -0
- package/packages/widgets/intro-text/templates/wrapper.php +75 -0
- package/packages/widgets/logo-grid-centered/data/view.php +79 -0
- package/packages/widgets/logo-grid-centered/logo-grid-centered.php +254 -0
- package/packages/widgets/logo-grid-centered/package.json +12 -0
- package/packages/widgets/logo-grid-centered/templates/wrapper.php +95 -0
- package/packages/widgets/logo-grid-row/data/view.php +79 -0
- package/packages/widgets/logo-grid-row/logo-grid-row.php +254 -0
- package/packages/widgets/logo-grid-row/package.json +12 -0
- package/packages/widgets/logo-grid-row/templates/wrapper.php +108 -0
- package/packages/widgets/logo-grid-split/data/view.php +79 -0
- package/packages/widgets/logo-grid-split/logo-grid-split.php +254 -0
- package/packages/widgets/logo-grid-split/package.json +12 -0
- package/packages/widgets/logo-grid-split/templates/wrapper.php +97 -0
- package/packages/widgets/nav-centered/data/view.php +253 -0
- package/packages/widgets/nav-centered/nav-centered.php +350 -0
- package/packages/widgets/nav-centered/package.json +12 -0
- package/packages/widgets/nav-centered/templates/partials/desktop-mega-panel.php +109 -0
- package/packages/widgets/nav-centered/templates/partials/desktop-menu.php +102 -0
- package/packages/widgets/nav-centered/templates/partials/mobile-menu.php +104 -0
- package/packages/widgets/nav-centered/templates/wrapper.php +401 -0
- package/packages/widgets/nav-compact/data/view.php +253 -0
- package/packages/widgets/nav-compact/nav-compact.php +350 -0
- package/packages/widgets/nav-compact/package.json +12 -0
- package/packages/widgets/nav-compact/templates/partials/desktop-mega-panel.php +109 -0
- package/packages/widgets/nav-compact/templates/partials/desktop-menu.php +102 -0
- package/packages/widgets/nav-compact/templates/partials/mobile-menu.php +104 -0
- package/packages/widgets/nav-compact/templates/wrapper.php +401 -0
- package/packages/widgets/nav-default/data/view.php +254 -0
- package/packages/widgets/nav-default/nav-default.php +350 -0
- package/packages/widgets/nav-default/package.json +12 -0
- package/packages/widgets/nav-default/templates/partials/desktop-mega-panel.php +109 -0
- package/packages/widgets/nav-default/templates/partials/desktop-menu.php +102 -0
- package/packages/widgets/nav-default/templates/partials/mobile-menu.php +104 -0
- package/packages/widgets/nav-default/templates/wrapper.php +401 -0
- package/packages/widgets/nav-floating/data/view.php +253 -0
- package/packages/widgets/nav-floating/nav-floating.php +350 -0
- package/packages/widgets/nav-floating/package.json +12 -0
- package/packages/widgets/nav-floating/templates/partials/desktop-mega-panel.php +109 -0
- package/packages/widgets/nav-floating/templates/partials/desktop-menu.php +102 -0
- package/packages/widgets/nav-floating/templates/partials/mobile-menu.php +104 -0
- package/packages/widgets/nav-floating/templates/wrapper.php +401 -0
- package/packages/widgets/nav-minimal/data/view.php +253 -0
- package/packages/widgets/nav-minimal/nav-minimal.php +350 -0
- package/packages/widgets/nav-minimal/package.json +12 -0
- package/packages/widgets/nav-minimal/templates/partials/desktop-mega-panel.php +109 -0
- package/packages/widgets/nav-minimal/templates/partials/desktop-menu.php +102 -0
- package/packages/widgets/nav-minimal/templates/partials/mobile-menu.php +104 -0
- package/packages/widgets/nav-minimal/templates/wrapper.php +401 -0
- package/packages/widgets/newsletter/data/view.php +56 -0
- package/packages/widgets/newsletter/newsletter.php +210 -0
- package/packages/widgets/newsletter/package.json +12 -0
- package/packages/widgets/newsletter/templates/wrapper.php +137 -0
- package/packages/widgets/newsletter-card/data/view.php +55 -0
- package/packages/widgets/newsletter-card/newsletter-card.php +184 -0
- package/packages/widgets/newsletter-card/package.json +12 -0
- package/packages/widgets/newsletter-card/templates/wrapper.php +90 -0
- package/packages/widgets/newsletter-section/data/view.php +55 -0
- package/packages/widgets/newsletter-section/newsletter-section.php +184 -0
- package/packages/widgets/newsletter-section/package.json +12 -0
- package/packages/widgets/newsletter-section/templates/wrapper.php +87 -0
- package/packages/widgets/outreach-dashboard/data/view.php +176 -0
- package/packages/widgets/outreach-dashboard/outreach-dashboard.php +504 -0
- package/packages/widgets/outreach-dashboard/package.json +12 -0
- package/packages/widgets/outreach-dashboard/templates/partials/card-chat.php +69 -0
- package/packages/widgets/outreach-dashboard/templates/partials/card-engagement.php +60 -0
- package/packages/widgets/outreach-dashboard/templates/partials/card-integrations.php +39 -0
- package/packages/widgets/outreach-dashboard/templates/partials/card-meetings.php +43 -0
- package/packages/widgets/outreach-dashboard/templates/partials/card-networking.php +28 -0
- package/packages/widgets/outreach-dashboard/templates/wrapper.php +76 -0
- package/packages/widgets/page-hero-center/data/view.php +43 -0
- package/packages/widgets/page-hero-center/package.json +12 -0
- package/packages/widgets/page-hero-center/page-hero-center.php +120 -0
- package/packages/widgets/page-hero-center/templates/wrapper.php +54 -0
- package/packages/widgets/page-hero-left/data/view.php +43 -0
- package/packages/widgets/page-hero-left/package.json +12 -0
- package/packages/widgets/page-hero-left/page-hero-left.php +120 -0
- package/packages/widgets/page-hero-left/templates/wrapper.php +54 -0
- package/packages/widgets/pipeline-dashboard/data/view.php +131 -0
- package/packages/widgets/pipeline-dashboard/package.json +12 -0
- package/packages/widgets/pipeline-dashboard/pipeline-dashboard.php +407 -0
- package/packages/widgets/pipeline-dashboard/templates/partials/app-bar.php +31 -0
- package/packages/widgets/pipeline-dashboard/templates/partials/kanban.php +56 -0
- package/packages/widgets/pipeline-dashboard/templates/partials/pipeline-header.php +66 -0
- package/packages/widgets/pipeline-dashboard/templates/wrapper.php +64 -0
- package/packages/widgets/posts-grid/data/view.php +144 -0
- package/packages/widgets/posts-grid/package.json +12 -0
- package/packages/widgets/posts-grid/posts-grid.php +282 -0
- package/packages/widgets/posts-grid/templates/partials/card-overlay.php +58 -0
- package/packages/widgets/posts-grid/templates/partials/card.php +49 -0
- package/packages/widgets/posts-grid/templates/wrapper.php +55 -0
- package/packages/widgets/posts-grid-overlay/data/view.php +144 -0
- package/packages/widgets/posts-grid-overlay/package.json +12 -0
- package/packages/widgets/posts-grid-overlay/posts-grid-overlay.php +282 -0
- package/packages/widgets/posts-grid-overlay/templates/partials/card-overlay.php +58 -0
- package/packages/widgets/posts-grid-overlay/templates/partials/card.php +49 -0
- package/packages/widgets/posts-grid-overlay/templates/wrapper.php +55 -0
- package/packages/widgets/pricing-table/data/view.php +96 -0
- package/packages/widgets/pricing-table/package.json +12 -0
- package/packages/widgets/pricing-table/pricing-table.php +376 -0
- package/packages/widgets/pricing-table/templates/partials/pricing-card.php +125 -0
- package/packages/widgets/pricing-table/templates/wrapper.php +164 -0
- package/packages/widgets/sales-dashboard/data/view.php +158 -0
- package/packages/widgets/sales-dashboard/package.json +12 -0
- package/packages/widgets/sales-dashboard/sales-dashboard.php +434 -0
- package/packages/widgets/sales-dashboard/templates/partials/card-competitors.php +78 -0
- package/packages/widgets/sales-dashboard/templates/partials/card-feature.php +58 -0
- package/packages/widgets/sales-dashboard/templates/partials/card-profile.php +76 -0
- package/packages/widgets/sales-dashboard/templates/wrapper.php +74 -0
- package/packages/widgets/section-stats/data/view.php +90 -0
- package/packages/widgets/section-stats/package.json +12 -0
- package/packages/widgets/section-stats/section-stats.php +232 -0
- package/packages/widgets/section-stats/templates/partials/stat-card.php +44 -0
- package/packages/widgets/section-stats/templates/wrapper.php +87 -0
- package/packages/widgets/services/data/view.php +79 -0
- package/packages/widgets/services/package.json +12 -0
- package/packages/widgets/services/services.php +198 -0
- package/packages/widgets/services/templates/partials/service-item.php +35 -0
- package/packages/widgets/services/templates/wrapper.php +92 -0
- package/packages/widgets/simple-page-hero/data/view.php +43 -0
- package/packages/widgets/simple-page-hero/package.json +12 -0
- package/packages/widgets/simple-page-hero/simple-page-hero.php +147 -0
- package/packages/widgets/simple-page-hero/templates/wrapper.php +54 -0
- package/packages/widgets/social-proof/data/view.php +62 -0
- package/packages/widgets/social-proof/package.json +12 -0
- package/packages/widgets/social-proof/social-proof.php +271 -0
- package/packages/widgets/social-proof/templates/partials/layout-trust.php +73 -0
- package/packages/widgets/social-proof/templates/partials/stat-card.php +32 -0
- package/packages/widgets/social-proof/templates/partials/stat-item.php +35 -0
- package/packages/widgets/social-proof/templates/wrapper.php +87 -0
- package/packages/widgets/social-proof-trust/data/view.php +105 -0
- package/packages/widgets/social-proof-trust/package.json +12 -0
- package/packages/widgets/social-proof-trust/social-proof-trust.php +367 -0
- package/packages/widgets/social-proof-trust/templates/partials/layout-trust.php +73 -0
- package/packages/widgets/social-proof-trust/templates/partials/stat-card.php +32 -0
- package/packages/widgets/social-proof-trust/templates/partials/stat-item.php +35 -0
- package/packages/widgets/social-proof-trust/templates/wrapper.php +48 -0
- package/packages/widgets/testimonial-quote/data/view.php +57 -0
- package/packages/widgets/testimonial-quote/package.json +12 -0
- package/packages/widgets/testimonial-quote/templates/wrapper.php +66 -0
- package/packages/widgets/testimonial-quote/testimonial-quote.php +157 -0
- package/packages/widgets/testimonials-bento/data/view.php +110 -0
- package/packages/widgets/testimonials-bento/package.json +12 -0
- package/packages/widgets/testimonials-bento/templates/partials/layout-bento.php +36 -0
- package/packages/widgets/testimonials-bento/templates/partials/layout-masonry.php +74 -0
- package/packages/widgets/testimonials-bento/templates/partials/testimonial-card.php +85 -0
- package/packages/widgets/testimonials-bento/templates/wrapper.php +63 -0
- package/packages/widgets/testimonials-bento/testimonials-bento.php +322 -0
- package/packages/widgets/testimonials-grid/data/view.php +108 -0
- package/packages/widgets/testimonials-grid/package.json +12 -0
- package/packages/widgets/testimonials-grid/templates/partials/layout-bento.php +36 -0
- package/packages/widgets/testimonials-grid/templates/partials/layout-masonry.php +74 -0
- package/packages/widgets/testimonials-grid/templates/partials/testimonial-card.php +85 -0
- package/packages/widgets/testimonials-grid/templates/wrapper.php +74 -0
- package/packages/widgets/testimonials-grid/testimonials-grid.php +336 -0
- package/packages/widgets/testimonials-masonry/data/view.php +108 -0
- package/packages/widgets/testimonials-masonry/package.json +12 -0
- package/packages/widgets/testimonials-masonry/templates/partials/layout-bento.php +36 -0
- package/packages/widgets/testimonials-masonry/templates/partials/layout-masonry.php +74 -0
- package/packages/widgets/testimonials-masonry/templates/partials/testimonial-card.php +85 -0
- package/packages/widgets/testimonials-masonry/templates/wrapper.php +63 -0
- package/packages/widgets/testimonials-masonry/testimonials-masonry.php +336 -0
- package/packages/widgets/widget-filter/data/view.php +527 -0
- package/packages/widgets/widget-filter/package.json +12 -0
- package/packages/widgets/widget-filter/templates/wrapper.php +630 -0
- package/packages/widgets/widget-filter/widget-filter.php +123 -0
- package/scripts/scaffold-widget-packages.js +109 -0
- package/scripts/setup.sh +56 -0
- package/scripts/split-widget.js +176 -0
- package/scripts/sync-widgets.js +69 -0
- package/sociallane-elements.php +104 -0
- package/vite.config.js +129 -0
- package/widgets/.gitkeep +0 -0
- package/widgets/bento-grid/bento-grid.php +761 -0
- package/widgets/bento-grid/data/view.php +334 -0
- package/widgets/bento-grid/templates/partials/cell1.php +45 -0
- package/widgets/bento-grid/templates/partials/cell2.php +52 -0
- package/widgets/bento-grid/templates/partials/cell3.php +45 -0
- package/widgets/bento-grid/templates/partials/cell4.php +44 -0
- package/widgets/bento-grid/templates/partials/default-grid.php +31 -0
- package/widgets/bento-grid/templates/partials/tcsr-row1-left.php +68 -0
- package/widgets/bento-grid/templates/partials/tcsr-row1-right.php +65 -0
- package/widgets/bento-grid/templates/partials/tcsr-row2-center.php +41 -0
- package/widgets/bento-grid/templates/partials/tcsr-row2-left.php +38 -0
- package/widgets/bento-grid/templates/partials/tcsr-row2-right.php +38 -0
- package/widgets/bento-grid/templates/partials/two-column-second-row-grid.php +35 -0
- package/widgets/bento-grid/templates/partials/two-row-deploys.php +47 -0
- package/widgets/bento-grid/templates/partials/two-row-grid.php +34 -0
- package/widgets/bento-grid/templates/partials/two-row-integrations.php +40 -0
- package/widgets/bento-grid/templates/partials/two-row-overview.php +67 -0
- package/widgets/bento-grid/templates/partials/two-row-releases.php +29 -0
- package/widgets/bento-grid/templates/partials/two-row-security.php +44 -0
- package/widgets/bento-grid/templates/wrapper.php +72 -0
- package/widgets/bento-portfolio/bento-portfolio.php +399 -0
- package/widgets/bento-portfolio/data/view.php +124 -0
- package/widgets/bento-portfolio/templates/partials/portfolio-card.php +84 -0
- package/widgets/bento-portfolio/templates/partials/portfolio-default-grid.php +35 -0
- package/widgets/bento-portfolio/templates/partials/portfolio-two-column-second-row-grid.php +39 -0
- package/widgets/bento-portfolio/templates/partials/portfolio-two-row-grid.php +35 -0
- package/widgets/bento-portfolio/templates/wrapper.php +88 -0
- package/widgets/blog-grid/blog-grid.php +359 -0
- package/widgets/blog-grid/data/view.php +209 -0
- package/widgets/blog-grid/templates/partials/card.php +73 -0
- package/widgets/blog-grid/templates/wrapper.php +89 -0
- package/widgets/card-hover-reveal/card-hover-reveal.php +329 -0
- package/widgets/card-hover-reveal/data/view.php +141 -0
- package/widgets/card-hover-reveal/templates/partials/card.php +119 -0
- package/widgets/card-hover-reveal/templates/wrapper.php +80 -0
- package/widgets/client-logos/client-logos.php +214 -0
- package/widgets/client-logos/data/view.php +105 -0
- package/widgets/client-logos/templates/partials/client-item.php +38 -0
- package/widgets/client-logos/templates/wrapper.php +62 -0
- package/widgets/content-block/content-block.php +280 -0
- package/widgets/content-block/data/view.php +120 -0
- package/widgets/content-block/templates/partials/content.php +52 -0
- package/widgets/content-block/templates/wrapper.php +73 -0
- package/widgets/cta-banner/cta-banner.php +300 -0
- package/widgets/cta-banner/data/view.php +101 -0
- package/widgets/cta-banner/templates/wrapper.php +131 -0
- package/widgets/cta-notify/cta-notify.php +135 -0
- package/widgets/cta-notify/data/view.php +55 -0
- package/widgets/cta-notify/templates/wrapper.php +69 -0
- package/widgets/cta-split/cta-split.php +246 -0
- package/widgets/cta-split/data/view.php +86 -0
- package/widgets/cta-split/templates/wrapper.php +113 -0
- package/widgets/faq/data/view.php +105 -0
- package/widgets/faq/faq.php +253 -0
- package/widgets/faq/templates/partials/accordion.php +74 -0
- package/widgets/faq/templates/partials/layout-centered.php +41 -0
- package/widgets/faq/templates/partials/layout-split.php +47 -0
- package/widgets/faq/templates/partials/layout-stacked.php +57 -0
- package/widgets/faq/templates/wrapper.php +76 -0
- package/widgets/feature-grid/data/view.php +121 -0
- package/widgets/feature-grid/feature-grid.php +321 -0
- package/widgets/feature-grid/templates/partials/centered-2x2.php +69 -0
- package/widgets/feature-grid/templates/partials/feature-item.php +54 -0
- package/widgets/feature-grid/templates/wrapper.php +71 -0
- package/widgets/feature-list/data/view.php +56 -0
- package/widgets/feature-list/feature-list.php +160 -0
- package/widgets/feature-list/templates/wrapper.php +69 -0
- package/widgets/feature-list-cta/data/view.php +85 -0
- package/widgets/feature-list-cta/feature-list-cta.php +226 -0
- package/widgets/feature-list-cta/templates/partials/feature-item.php +49 -0
- package/widgets/feature-list-cta/templates/wrapper.php +65 -0
- package/widgets/footer/data/view.php +139 -0
- package/widgets/footer/footer.php +389 -0
- package/widgets/footer/templates/partials/bottom.php +77 -0
- package/widgets/footer/templates/partials/cta.php +47 -0
- package/widgets/footer/templates/partials/link-columns.php +52 -0
- package/widgets/footer/templates/wrapper.php +53 -0
- package/widgets/footer-brand/data/view.php +135 -0
- package/widgets/footer-brand/footer-brand.php +278 -0
- package/widgets/footer-brand/templates/partials/brand.php +69 -0
- package/widgets/footer-brand/templates/partials/link-columns.php +51 -0
- package/widgets/footer-brand/templates/wrapper.php +59 -0
- package/widgets/footer-links-contact/data/view.php +165 -0
- package/widgets/footer-links-contact/footer-links-contact.php +361 -0
- package/widgets/footer-links-contact/templates/partials/bottom.php +70 -0
- package/widgets/footer-links-contact/templates/partials/contact-column.php +66 -0
- package/widgets/footer-links-contact/templates/partials/link-column.php +39 -0
- package/widgets/footer-links-contact/templates/partials/logo-column.php +46 -0
- package/widgets/footer-links-contact/templates/wrapper.php +68 -0
- package/widgets/form-contact/data/view.php +133 -0
- package/widgets/form-contact/form-contact.php +274 -0
- package/widgets/form-contact/templates/partials/testimonial.php +83 -0
- package/widgets/form-contact/templates/wrapper.php +98 -0
- package/widgets/grid-case-studies/data/view.php +88 -0
- package/widgets/grid-case-studies/grid-case-studies.php +262 -0
- package/widgets/grid-case-studies/templates/partials/card.php +66 -0
- package/widgets/grid-case-studies/templates/wrapper.php +69 -0
- package/widgets/grid-components/data/view.php +131 -0
- package/widgets/grid-components/grid-components.php +316 -0
- package/widgets/grid-components/templates/partials/component-card.php +81 -0
- package/widgets/grid-components/templates/wrapper.php +55 -0
- package/widgets/grid-posts/data/view.php +159 -0
- package/widgets/grid-posts/grid-posts.php +295 -0
- package/widgets/grid-posts/templates/partials/card-overlay.php +58 -0
- package/widgets/grid-posts/templates/partials/card.php +49 -0
- package/widgets/grid-posts/templates/wrapper.php +59 -0
- package/widgets/grid-team/data/view.php +80 -0
- package/widgets/grid-team/grid-team.php +201 -0
- package/widgets/grid-team/templates/partials/team-card.php +52 -0
- package/widgets/grid-team/templates/wrapper.php +67 -0
- package/widgets/grid-testimonials/data/view.php +179 -0
- package/widgets/grid-testimonials/grid-testimonials.php +370 -0
- package/widgets/grid-testimonials/templates/partials/layout-bento.php +36 -0
- package/widgets/grid-testimonials/templates/partials/layout-masonry.php +74 -0
- package/widgets/grid-testimonials/templates/partials/testimonial-card.php +85 -0
- package/widgets/grid-testimonials/templates/wrapper.php +84 -0
- package/widgets/hero-announcement/data/view.php +98 -0
- package/widgets/hero-announcement/hero-announcement.php +270 -0
- package/widgets/hero-announcement/templates/wrapper.php +111 -0
- package/widgets/hero-centered-image/data/view.php +128 -0
- package/widgets/hero-centered-image/hero-centered-image.php +297 -0
- package/widgets/hero-centered-image/templates/wrapper.php +123 -0
- package/widgets/hero-collage/data/view.php +113 -0
- package/widgets/hero-collage/hero-collage.php +151 -0
- package/widgets/hero-collage/templates/wrapper.php +102 -0
- package/widgets/hero-overlay/data/view.php +121 -0
- package/widgets/hero-overlay/hero-overlay.php +277 -0
- package/widgets/hero-overlay/templates/wrapper.php +225 -0
- package/widgets/hero-saas/data/view.php +106 -0
- package/widgets/hero-saas/hero-saas.php +175 -0
- package/widgets/hero-saas/templates/partials/layout-centered.php +70 -0
- package/widgets/hero-saas/templates/partials/layout-split.php +76 -0
- package/widgets/hero-saas/templates/partials/layout-stacked.php +70 -0
- package/widgets/hero-saas/templates/wrapper.php +54 -0
- package/widgets/hero-split/data/view.php +92 -0
- package/widgets/hero-split/hero-split.php +127 -0
- package/widgets/hero-split/templates/wrapper.php +86 -0
- package/widgets/hero-stacked-image/data/view.php +142 -0
- package/widgets/hero-stacked-image/hero-stacked-image.php +248 -0
- package/widgets/hero-stacked-image/templates/wrapper.php +176 -0
- package/widgets/intro-pattern/data/view.php +73 -0
- package/widgets/intro-pattern/intro-pattern.php +161 -0
- package/widgets/intro-pattern/templates/wrapper.php +61 -0
- package/widgets/intro-text/data/view.php +97 -0
- package/widgets/intro-text/intro-text.php +252 -0
- package/widgets/intro-text/templates/wrapper.php +75 -0
- package/widgets/logo-grid/data/view.php +113 -0
- package/widgets/logo-grid/logo-grid.php +281 -0
- package/widgets/logo-grid/templates/wrapper.php +213 -0
- package/widgets/newsletter/data/view.php +75 -0
- package/widgets/newsletter/newsletter.php +210 -0
- package/widgets/newsletter/templates/wrapper.php +137 -0
- package/widgets/outreach-dashboard/data/view.php +176 -0
- package/widgets/outreach-dashboard/outreach-dashboard.php +504 -0
- package/widgets/outreach-dashboard/templates/partials/card-chat.php +69 -0
- package/widgets/outreach-dashboard/templates/partials/card-engagement.php +60 -0
- package/widgets/outreach-dashboard/templates/partials/card-integrations.php +39 -0
- package/widgets/outreach-dashboard/templates/partials/card-meetings.php +43 -0
- package/widgets/outreach-dashboard/templates/partials/card-networking.php +28 -0
- package/widgets/outreach-dashboard/templates/wrapper.php +76 -0
- package/widgets/pipeline-dashboard/data/view.php +131 -0
- package/widgets/pipeline-dashboard/pipeline-dashboard.php +407 -0
- package/widgets/pipeline-dashboard/templates/partials/app-bar.php +31 -0
- package/widgets/pipeline-dashboard/templates/partials/kanban.php +56 -0
- package/widgets/pipeline-dashboard/templates/partials/pipeline-header.php +66 -0
- package/widgets/pipeline-dashboard/templates/wrapper.php +64 -0
- package/widgets/pricing-table/data/view.php +133 -0
- package/widgets/pricing-table/pricing-table.php +376 -0
- package/widgets/pricing-table/templates/partials/pricing-card.php +125 -0
- package/widgets/pricing-table/templates/wrapper.php +164 -0
- package/widgets/sales-dashboard/data/view.php +158 -0
- package/widgets/sales-dashboard/sales-dashboard.php +434 -0
- package/widgets/sales-dashboard/templates/partials/card-competitors.php +78 -0
- package/widgets/sales-dashboard/templates/partials/card-feature.php +58 -0
- package/widgets/sales-dashboard/templates/partials/card-profile.php +76 -0
- package/widgets/sales-dashboard/templates/wrapper.php +74 -0
- package/widgets/section-stats/data/view.php +105 -0
- package/widgets/section-stats/section-stats.php +232 -0
- package/widgets/section-stats/templates/partials/stat-card.php +44 -0
- package/widgets/section-stats/templates/wrapper.php +87 -0
- package/widgets/services/data/view.php +91 -0
- package/widgets/services/services.php +198 -0
- package/widgets/services/templates/partials/service-item.php +35 -0
- package/widgets/services/templates/wrapper.php +92 -0
- package/widgets/simple-page-hero/data/view.php +52 -0
- package/widgets/simple-page-hero/simple-page-hero.php +147 -0
- package/widgets/simple-page-hero/templates/wrapper.php +54 -0
- package/widgets/social-proof/data/view.php +143 -0
- package/widgets/social-proof/social-proof.php +389 -0
- package/widgets/social-proof/templates/partials/layout-trust.php +73 -0
- package/widgets/social-proof/templates/partials/stat-card.php +32 -0
- package/widgets/social-proof/templates/partials/stat-item.php +35 -0
- package/widgets/social-proof/templates/wrapper.php +93 -0
- package/widgets/testimonial-quote/data/view.php +62 -0
- package/widgets/testimonial-quote/templates/wrapper.php +66 -0
- package/widgets/testimonial-quote/testimonial-quote.php +157 -0
- package/widgets.json +75 -0
- package/widgets.json.minimal +17 -0
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Widget: Bento Grid
|
|
4
|
+
*
|
|
5
|
+
* A bento-style grid: header plus three-column layout with left full-height card,
|
|
6
|
+
* middle column split into two cards, and right full-height card. Supports
|
|
7
|
+
* metric, icons, code snippet, and image visuals per cell.
|
|
8
|
+
*
|
|
9
|
+
* @package SocialLane_Elements
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace SocialLane\Elements;
|
|
13
|
+
|
|
14
|
+
use Elementor\Widget_Base;
|
|
15
|
+
use Elementor\Controls_Manager;
|
|
16
|
+
use Elementor\Repeater;
|
|
17
|
+
use SocialLane\Elements\Traits\Animation_Controls;
|
|
18
|
+
|
|
19
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
20
|
+
exit;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Bento Grid Widget
|
|
25
|
+
*/
|
|
26
|
+
class Bento_Grid_4 extends Widget_Base {
|
|
27
|
+
|
|
28
|
+
use Animation_Controls;
|
|
29
|
+
|
|
30
|
+
public function get_name(): string {
|
|
31
|
+
return 'bento-grid-4';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public function get_title(): string {
|
|
35
|
+
return esc_html__( 'Bento Grid (4 cells)', 'sociallane-elements' );
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public function get_icon(): string {
|
|
39
|
+
return 'eicon-gallery-masonry';
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public function get_categories(): array {
|
|
43
|
+
return [ 'sociallane-content' ];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public function get_keywords(): array {
|
|
47
|
+
return [ 'bento', 'grid', 'cards', 'features', 'dashboard' ];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
protected function register_controls(): void {
|
|
51
|
+
$this->register_header_section();
|
|
52
|
+
$this->register_cell1_section();
|
|
53
|
+
$this->register_cell2_section();
|
|
54
|
+
$this->register_cell3_section();
|
|
55
|
+
$this->register_cell4_section();
|
|
56
|
+
$this->register_animation_controls( true, true );
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private function register_header_section(): void {
|
|
60
|
+
$this->start_controls_section(
|
|
61
|
+
'section_header',
|
|
62
|
+
[
|
|
63
|
+
'label' => esc_html__( 'Header', 'sociallane-elements' ),
|
|
64
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
65
|
+
]
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
$this->add_control(
|
|
69
|
+
'show_eyebrow',
|
|
70
|
+
[
|
|
71
|
+
'label' => esc_html__( 'Show Eyebrow', 'sociallane-elements' ),
|
|
72
|
+
'type' => Controls_Manager::SWITCHER,
|
|
73
|
+
'default' => 'yes',
|
|
74
|
+
]
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
$this->add_control(
|
|
78
|
+
'eyebrow',
|
|
79
|
+
[
|
|
80
|
+
'label' => esc_html__( 'Eyebrow', 'sociallane-elements' ),
|
|
81
|
+
'type' => Controls_Manager::TEXT,
|
|
82
|
+
'default' => esc_html__( 'Deploy faster', 'sociallane-elements' ),
|
|
83
|
+
'placeholder' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
84
|
+
'condition' => [ 'show_eyebrow' => 'yes' ],
|
|
85
|
+
]
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
$this->add_control(
|
|
89
|
+
'show_headline',
|
|
90
|
+
[
|
|
91
|
+
'label' => esc_html__( 'Show Headline', 'sociallane-elements' ),
|
|
92
|
+
'type' => Controls_Manager::SWITCHER,
|
|
93
|
+
'default' => 'yes',
|
|
94
|
+
]
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
$this->add_control(
|
|
98
|
+
'headline',
|
|
99
|
+
[
|
|
100
|
+
'label' => esc_html__( 'Headline', 'sociallane-elements' ),
|
|
101
|
+
'type' => Controls_Manager::TEXT,
|
|
102
|
+
'default' => esc_html__( 'Everything you need to deploy your app', 'sociallane-elements' ),
|
|
103
|
+
'label_block' => true,
|
|
104
|
+
'condition' => [ 'show_headline' => 'yes' ],
|
|
105
|
+
]
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
$this->add_control(
|
|
109
|
+
'headline_tag',
|
|
110
|
+
[
|
|
111
|
+
'label' => esc_html__( 'Headline Tag', 'sociallane-elements' ),
|
|
112
|
+
'type' => Controls_Manager::SELECT,
|
|
113
|
+
'default' => 'h2',
|
|
114
|
+
'options' => [ 'h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3' ],
|
|
115
|
+
'condition' => [ 'show_headline' => 'yes' ],
|
|
116
|
+
]
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
$this->end_controls_section();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
private function register_cell1_section(): void {
|
|
123
|
+
$this->start_controls_section(
|
|
124
|
+
'section_cell1',
|
|
125
|
+
[
|
|
126
|
+
'label' => esc_html__( 'Cell 1 (Left)', 'sociallane-elements' ),
|
|
127
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
128
|
+
]
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
$this->add_control(
|
|
132
|
+
'cell1_title',
|
|
133
|
+
[
|
|
134
|
+
'label' => esc_html__( 'Title', 'sociallane-elements' ),
|
|
135
|
+
'type' => Controls_Manager::TEXT,
|
|
136
|
+
'default' => esc_html__( 'Mobile friendly', 'sociallane-elements' ),
|
|
137
|
+
]
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
$this->add_control(
|
|
141
|
+
'cell1_description',
|
|
142
|
+
[
|
|
143
|
+
'label' => esc_html__( 'Description', 'sociallane-elements' ),
|
|
144
|
+
'type' => Controls_Manager::TEXTAREA,
|
|
145
|
+
'default' => esc_html__( 'Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo.', 'sociallane-elements' ),
|
|
146
|
+
]
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
$this->add_control(
|
|
150
|
+
'cell1_visual',
|
|
151
|
+
[
|
|
152
|
+
'label' => esc_html__( 'Visual', 'sociallane-elements' ),
|
|
153
|
+
'type' => Controls_Manager::SELECT,
|
|
154
|
+
'default' => 'none',
|
|
155
|
+
'options' => [
|
|
156
|
+
'none' => esc_html__( 'None', 'sociallane-elements' ),
|
|
157
|
+
'image' => esc_html__( 'Image', 'sociallane-elements' ),
|
|
158
|
+
],
|
|
159
|
+
]
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
$this->add_control(
|
|
163
|
+
'cell1_image',
|
|
164
|
+
[
|
|
165
|
+
'label' => esc_html__( 'Image', 'sociallane-elements' ),
|
|
166
|
+
'type' => Controls_Manager::MEDIA,
|
|
167
|
+
'condition' => [ 'cell1_visual' => 'image' ],
|
|
168
|
+
]
|
|
169
|
+
);
|
|
170
|
+
|
|
171
|
+
$this->add_control(
|
|
172
|
+
'cell1_image_alt',
|
|
173
|
+
[
|
|
174
|
+
'label' => esc_html__( 'Image Alt Text', 'sociallane-elements' ),
|
|
175
|
+
'type' => Controls_Manager::TEXT,
|
|
176
|
+
'condition' => [ 'cell1_visual' => 'image' ],
|
|
177
|
+
]
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
$this->add_control(
|
|
181
|
+
'cell1_show_button',
|
|
182
|
+
[
|
|
183
|
+
'label' => esc_html__( 'Show Button', 'sociallane-elements' ),
|
|
184
|
+
'type' => Controls_Manager::SWITCHER,
|
|
185
|
+
'default' => 'no',
|
|
186
|
+
]
|
|
187
|
+
);
|
|
188
|
+
$this->add_control(
|
|
189
|
+
'cell1_button_text',
|
|
190
|
+
[
|
|
191
|
+
'label' => esc_html__( 'Button Text', 'sociallane-elements' ),
|
|
192
|
+
'type' => Controls_Manager::TEXT,
|
|
193
|
+
'placeholder' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
194
|
+
'condition' => [ 'cell1_show_button' => 'yes' ],
|
|
195
|
+
]
|
|
196
|
+
);
|
|
197
|
+
$this->add_control(
|
|
198
|
+
'cell1_button_url',
|
|
199
|
+
[
|
|
200
|
+
'label' => esc_html__( 'Button URL', 'sociallane-elements' ),
|
|
201
|
+
'type' => Controls_Manager::URL,
|
|
202
|
+
'condition' => [ 'cell1_show_button' => 'yes' ],
|
|
203
|
+
]
|
|
204
|
+
);
|
|
205
|
+
$this->add_control(
|
|
206
|
+
'cell1_button_style',
|
|
207
|
+
[
|
|
208
|
+
'label' => esc_html__( 'Button style', 'sociallane-elements' ),
|
|
209
|
+
'type' => Controls_Manager::SELECT,
|
|
210
|
+
'default' => 'primary',
|
|
211
|
+
'options' => sociallane_get_button_preset_options(),
|
|
212
|
+
'condition' => [ 'cell1_show_button' => 'yes' ],
|
|
213
|
+
]
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
$this->end_controls_section();
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
private function register_cell2_section(): void {
|
|
220
|
+
$this->start_controls_section(
|
|
221
|
+
'section_cell2',
|
|
222
|
+
[
|
|
223
|
+
'label' => esc_html__( 'Cell 2 (Middle top)', 'sociallane-elements' ),
|
|
224
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
225
|
+
]
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
$this->add_control(
|
|
229
|
+
'cell2_title',
|
|
230
|
+
[
|
|
231
|
+
'label' => esc_html__( 'Title', 'sociallane-elements' ),
|
|
232
|
+
'type' => Controls_Manager::TEXT,
|
|
233
|
+
'default' => esc_html__( 'Performance', 'sociallane-elements' ),
|
|
234
|
+
]
|
|
235
|
+
);
|
|
236
|
+
|
|
237
|
+
$this->add_control(
|
|
238
|
+
'cell2_description',
|
|
239
|
+
[
|
|
240
|
+
'label' => esc_html__( 'Description', 'sociallane-elements' ),
|
|
241
|
+
'type' => Controls_Manager::TEXTAREA,
|
|
242
|
+
'default' => esc_html__( 'Lorem ipsum, dolor sit amet consectetur adipisicing elit maiores impedit.', 'sociallane-elements' ),
|
|
243
|
+
]
|
|
244
|
+
);
|
|
245
|
+
|
|
246
|
+
$this->add_control(
|
|
247
|
+
'cell2_visual',
|
|
248
|
+
[
|
|
249
|
+
'label' => esc_html__( 'Visual', 'sociallane-elements' ),
|
|
250
|
+
'type' => Controls_Manager::SELECT,
|
|
251
|
+
'default' => 'metric',
|
|
252
|
+
'options' => [
|
|
253
|
+
'none' => esc_html__( 'None', 'sociallane-elements' ),
|
|
254
|
+
'metric' => esc_html__( 'Metric + chart', 'sociallane-elements' ),
|
|
255
|
+
],
|
|
256
|
+
]
|
|
257
|
+
);
|
|
258
|
+
|
|
259
|
+
$this->add_control(
|
|
260
|
+
'cell2_metric_value',
|
|
261
|
+
[
|
|
262
|
+
'label' => esc_html__( 'Metric value', 'sociallane-elements' ),
|
|
263
|
+
'type' => Controls_Manager::TEXT,
|
|
264
|
+
'default' => '1.04 s',
|
|
265
|
+
'condition' => [ 'cell2_visual' => 'metric' ],
|
|
266
|
+
]
|
|
267
|
+
);
|
|
268
|
+
|
|
269
|
+
$this->add_control(
|
|
270
|
+
'cell2_metric_change',
|
|
271
|
+
[
|
|
272
|
+
'label' => esc_html__( 'Metric change', 'sociallane-elements' ),
|
|
273
|
+
'type' => Controls_Manager::TEXT,
|
|
274
|
+
'default' => '-22%',
|
|
275
|
+
'condition' => [ 'cell2_visual' => 'metric' ],
|
|
276
|
+
]
|
|
277
|
+
);
|
|
278
|
+
|
|
279
|
+
$this->add_control(
|
|
280
|
+
'cell2_show_button',
|
|
281
|
+
[
|
|
282
|
+
'label' => esc_html__( 'Show Button', 'sociallane-elements' ),
|
|
283
|
+
'type' => Controls_Manager::SWITCHER,
|
|
284
|
+
'default' => 'no',
|
|
285
|
+
]
|
|
286
|
+
);
|
|
287
|
+
$this->add_control(
|
|
288
|
+
'cell2_button_text',
|
|
289
|
+
[
|
|
290
|
+
'label' => esc_html__( 'Button Text', 'sociallane-elements' ),
|
|
291
|
+
'type' => Controls_Manager::TEXT,
|
|
292
|
+
'placeholder' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
293
|
+
'condition' => [ 'cell2_show_button' => 'yes' ],
|
|
294
|
+
]
|
|
295
|
+
);
|
|
296
|
+
$this->add_control(
|
|
297
|
+
'cell2_button_url',
|
|
298
|
+
[
|
|
299
|
+
'label' => esc_html__( 'Button URL', 'sociallane-elements' ),
|
|
300
|
+
'type' => Controls_Manager::URL,
|
|
301
|
+
'condition' => [ 'cell2_show_button' => 'yes' ],
|
|
302
|
+
]
|
|
303
|
+
);
|
|
304
|
+
$this->add_control(
|
|
305
|
+
'cell2_button_style',
|
|
306
|
+
[
|
|
307
|
+
'label' => esc_html__( 'Button style', 'sociallane-elements' ),
|
|
308
|
+
'type' => Controls_Manager::SELECT,
|
|
309
|
+
'default' => 'primary',
|
|
310
|
+
'options' => sociallane_get_button_preset_options(),
|
|
311
|
+
'condition' => [ 'cell2_show_button' => 'yes' ],
|
|
312
|
+
]
|
|
313
|
+
);
|
|
314
|
+
|
|
315
|
+
$this->end_controls_section();
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
private function register_cell3_section(): void {
|
|
319
|
+
$this->start_controls_section(
|
|
320
|
+
'section_cell3',
|
|
321
|
+
[
|
|
322
|
+
'label' => esc_html__( 'Cell 3 (Middle bottom)', 'sociallane-elements' ),
|
|
323
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
324
|
+
]
|
|
325
|
+
);
|
|
326
|
+
|
|
327
|
+
$this->add_control(
|
|
328
|
+
'cell3_title',
|
|
329
|
+
[
|
|
330
|
+
'label' => esc_html__( 'Title', 'sociallane-elements' ),
|
|
331
|
+
'type' => Controls_Manager::TEXT,
|
|
332
|
+
'default' => esc_html__( 'Security', 'sociallane-elements' ),
|
|
333
|
+
]
|
|
334
|
+
);
|
|
335
|
+
|
|
336
|
+
$this->add_control(
|
|
337
|
+
'cell3_description',
|
|
338
|
+
[
|
|
339
|
+
'label' => esc_html__( 'Description', 'sociallane-elements' ),
|
|
340
|
+
'type' => Controls_Manager::TEXTAREA,
|
|
341
|
+
'default' => esc_html__( 'Morbi viverra dui mi arcu sed. Tellus semper adipiscing suspendisse semper morbi.', 'sociallane-elements' ),
|
|
342
|
+
]
|
|
343
|
+
);
|
|
344
|
+
|
|
345
|
+
$this->add_control(
|
|
346
|
+
'cell3_visual',
|
|
347
|
+
[
|
|
348
|
+
'label' => esc_html__( 'Visual', 'sociallane-elements' ),
|
|
349
|
+
'type' => Controls_Manager::SELECT,
|
|
350
|
+
'default' => 'icons',
|
|
351
|
+
'options' => [
|
|
352
|
+
'none' => esc_html__( 'None', 'sociallane-elements' ),
|
|
353
|
+
'icons' => esc_html__( 'Icons', 'sociallane-elements' ),
|
|
354
|
+
],
|
|
355
|
+
]
|
|
356
|
+
);
|
|
357
|
+
|
|
358
|
+
$this->add_control(
|
|
359
|
+
'cell3_icon_1',
|
|
360
|
+
[
|
|
361
|
+
'label' => esc_html__( 'Icon 1', 'sociallane-elements' ),
|
|
362
|
+
'type' => Controls_Manager::ICONS,
|
|
363
|
+
'default' => [ 'value' => 'eicon-cloud-check', 'library' => 'elementor' ],
|
|
364
|
+
'condition' => [ 'cell3_visual' => 'icons' ],
|
|
365
|
+
]
|
|
366
|
+
);
|
|
367
|
+
|
|
368
|
+
$this->add_control(
|
|
369
|
+
'cell3_icon_2',
|
|
370
|
+
[
|
|
371
|
+
'label' => esc_html__( 'Icon 2 (center)', 'sociallane-elements' ),
|
|
372
|
+
'type' => Controls_Manager::ICONS,
|
|
373
|
+
'default' => [ 'value' => 'eicon-lock-user', 'library' => 'elementor' ],
|
|
374
|
+
'condition' => [ 'cell3_visual' => 'icons' ],
|
|
375
|
+
]
|
|
376
|
+
);
|
|
377
|
+
|
|
378
|
+
$this->add_control(
|
|
379
|
+
'cell3_icon_3',
|
|
380
|
+
[
|
|
381
|
+
'label' => esc_html__( 'Icon 3', 'sociallane-elements' ),
|
|
382
|
+
'type' => Controls_Manager::ICONS,
|
|
383
|
+
'default' => [ 'value' => 'eicon-document-file', 'library' => 'elementor' ],
|
|
384
|
+
'condition' => [ 'cell3_visual' => 'icons' ],
|
|
385
|
+
]
|
|
386
|
+
);
|
|
387
|
+
|
|
388
|
+
$this->add_control(
|
|
389
|
+
'cell3_show_button',
|
|
390
|
+
[
|
|
391
|
+
'label' => esc_html__( 'Show Button', 'sociallane-elements' ),
|
|
392
|
+
'type' => Controls_Manager::SWITCHER,
|
|
393
|
+
'default' => 'no',
|
|
394
|
+
]
|
|
395
|
+
);
|
|
396
|
+
$this->add_control(
|
|
397
|
+
'cell3_button_text',
|
|
398
|
+
[
|
|
399
|
+
'label' => esc_html__( 'Button Text', 'sociallane-elements' ),
|
|
400
|
+
'type' => Controls_Manager::TEXT,
|
|
401
|
+
'placeholder' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
402
|
+
'condition' => [ 'cell3_show_button' => 'yes' ],
|
|
403
|
+
]
|
|
404
|
+
);
|
|
405
|
+
$this->add_control(
|
|
406
|
+
'cell3_button_url',
|
|
407
|
+
[
|
|
408
|
+
'label' => esc_html__( 'Button URL', 'sociallane-elements' ),
|
|
409
|
+
'type' => Controls_Manager::URL,
|
|
410
|
+
'condition' => [ 'cell3_show_button' => 'yes' ],
|
|
411
|
+
]
|
|
412
|
+
);
|
|
413
|
+
$this->add_control(
|
|
414
|
+
'cell3_button_style',
|
|
415
|
+
[
|
|
416
|
+
'label' => esc_html__( 'Button style', 'sociallane-elements' ),
|
|
417
|
+
'type' => Controls_Manager::SELECT,
|
|
418
|
+
'default' => 'primary',
|
|
419
|
+
'options' => sociallane_get_button_preset_options(),
|
|
420
|
+
'condition' => [ 'cell3_show_button' => 'yes' ],
|
|
421
|
+
]
|
|
422
|
+
);
|
|
423
|
+
|
|
424
|
+
$this->end_controls_section();
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
private function register_cell4_section(): void {
|
|
428
|
+
$this->start_controls_section(
|
|
429
|
+
'section_cell4',
|
|
430
|
+
[
|
|
431
|
+
'label' => esc_html__( 'Cell 4 (Right)', 'sociallane-elements' ),
|
|
432
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
433
|
+
]
|
|
434
|
+
);
|
|
435
|
+
|
|
436
|
+
$this->add_control(
|
|
437
|
+
'cell4_title',
|
|
438
|
+
[
|
|
439
|
+
'label' => esc_html__( 'Title', 'sociallane-elements' ),
|
|
440
|
+
'type' => Controls_Manager::TEXT,
|
|
441
|
+
'default' => esc_html__( 'Powerful APIs', 'sociallane-elements' ),
|
|
442
|
+
]
|
|
443
|
+
);
|
|
444
|
+
|
|
445
|
+
$this->add_control(
|
|
446
|
+
'cell4_description',
|
|
447
|
+
[
|
|
448
|
+
'label' => esc_html__( 'Description', 'sociallane-elements' ),
|
|
449
|
+
'type' => Controls_Manager::TEXTAREA,
|
|
450
|
+
'default' => esc_html__( 'Sit quis amet rutrum tellus ullamcorper ultricies libero dolor eget sem sodales gravida.', 'sociallane-elements' ),
|
|
451
|
+
]
|
|
452
|
+
);
|
|
453
|
+
|
|
454
|
+
$this->add_control(
|
|
455
|
+
'cell4_visual',
|
|
456
|
+
[
|
|
457
|
+
'label' => esc_html__( 'Visual', 'sociallane-elements' ),
|
|
458
|
+
'type' => Controls_Manager::SELECT,
|
|
459
|
+
'default' => 'code',
|
|
460
|
+
'options' => [
|
|
461
|
+
'none' => esc_html__( 'None', 'sociallane-elements' ),
|
|
462
|
+
'code' => esc_html__( 'Code snippet', 'sociallane-elements' ),
|
|
463
|
+
],
|
|
464
|
+
]
|
|
465
|
+
);
|
|
466
|
+
|
|
467
|
+
$this->add_control(
|
|
468
|
+
'cell4_code',
|
|
469
|
+
[
|
|
470
|
+
'label' => esc_html__( 'Code snippet', 'sociallane-elements' ),
|
|
471
|
+
'type' => Controls_Manager::CODE,
|
|
472
|
+
'default' => "import { useState } from 'react'\nimport { Switch } from '@headlessui/react'\n\nfunction Example() {\n const [enabled, setEnabled] = useState(true)\n return (\n <form action=\"/notification-settings\">\n <Switch checked={enabled} onChange={setEnabled}>\n {/* ... */}\n </Switch>\n <button>Submit</button>\n </form>\n )\n}",
|
|
473
|
+
'language' => 'html',
|
|
474
|
+
'condition' => [ 'cell4_visual' => 'code' ],
|
|
475
|
+
]
|
|
476
|
+
);
|
|
477
|
+
|
|
478
|
+
$this->add_control(
|
|
479
|
+
'cell4_show_button',
|
|
480
|
+
[
|
|
481
|
+
'label' => esc_html__( 'Show Button', 'sociallane-elements' ),
|
|
482
|
+
'type' => Controls_Manager::SWITCHER,
|
|
483
|
+
'default' => 'no',
|
|
484
|
+
]
|
|
485
|
+
);
|
|
486
|
+
$this->add_control(
|
|
487
|
+
'cell4_button_text',
|
|
488
|
+
[
|
|
489
|
+
'label' => esc_html__( 'Button Text', 'sociallane-elements' ),
|
|
490
|
+
'type' => Controls_Manager::TEXT,
|
|
491
|
+
'placeholder' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
492
|
+
'condition' => [ 'cell4_show_button' => 'yes' ],
|
|
493
|
+
]
|
|
494
|
+
);
|
|
495
|
+
$this->add_control(
|
|
496
|
+
'cell4_button_url',
|
|
497
|
+
[
|
|
498
|
+
'label' => esc_html__( 'Button URL', 'sociallane-elements' ),
|
|
499
|
+
'type' => Controls_Manager::URL,
|
|
500
|
+
'condition' => [ 'cell4_show_button' => 'yes' ],
|
|
501
|
+
]
|
|
502
|
+
);
|
|
503
|
+
$this->add_control(
|
|
504
|
+
'cell4_button_style',
|
|
505
|
+
[
|
|
506
|
+
'label' => esc_html__( 'Button style', 'sociallane-elements' ),
|
|
507
|
+
'type' => Controls_Manager::SELECT,
|
|
508
|
+
'default' => 'primary',
|
|
509
|
+
'options' => sociallane_get_button_preset_options(),
|
|
510
|
+
'condition' => [ 'cell4_show_button' => 'yes' ],
|
|
511
|
+
]
|
|
512
|
+
);
|
|
513
|
+
|
|
514
|
+
$this->end_controls_section();
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
protected function render(): void {
|
|
518
|
+
$settings = $this->get_settings_for_display();
|
|
519
|
+
require_once __DIR__ . '/data/view.php';
|
|
520
|
+
$view = prepare_bento_grid_4_view( $settings, $this->get_id() );
|
|
521
|
+
include __DIR__ . '/templates/wrapper.php';
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Data Preparation: Bento Grid
|
|
4
|
+
*
|
|
5
|
+
* @package SocialLane_Elements
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
9
|
+
exit;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Prepare view data for Bento Grid (4 cells) widget
|
|
14
|
+
*
|
|
15
|
+
* @param array $settings Raw Elementor settings
|
|
16
|
+
* @param string $widget_id Unique widget ID
|
|
17
|
+
* @return array Template-ready data
|
|
18
|
+
*/
|
|
19
|
+
function prepare_bento_grid_4_view( array $settings, string $widget_id ): array {
|
|
20
|
+
$layout = 'default';
|
|
21
|
+
$fields = sociallane_extract_fields( $settings, [ 'eyebrow' => [], 'headline' => [] ] );
|
|
22
|
+
$headline_tag = sociallane_validate_heading_tag( $settings );
|
|
23
|
+
|
|
24
|
+
// Cell 1 (left)
|
|
25
|
+
$cell1 = [
|
|
26
|
+
'title' => esc_html( $settings['cell1_title'] ?? '' ),
|
|
27
|
+
'description' => esc_html( $settings['cell1_description'] ?? '' ),
|
|
28
|
+
'visual' => ( $settings['cell1_visual'] ?? 'none' ) === 'image' ? 'image' : 'none',
|
|
29
|
+
'image' => null,
|
|
30
|
+
];
|
|
31
|
+
if ( $cell1['visual'] === 'image' ) {
|
|
32
|
+
$cell1['image'] = sociallane_prepare_image_data(
|
|
33
|
+
$settings['cell1_image'] ?? [],
|
|
34
|
+
[ 'alt' => $settings['cell1_image_alt'] ?? '', 'loading' => 'lazy' ]
|
|
35
|
+
);
|
|
36
|
+
$cell1['image'] = ! empty( $cell1['image']['src'] ) ? $cell1['image'] : null;
|
|
37
|
+
}
|
|
38
|
+
$cell1_preset = function_exists( 'sociallane_parse_button_preset' ) ? sociallane_parse_button_preset( $settings['cell1_button_style'] ?? 'primary' ) : [ 'variant' => 'primary', 'size' => 'md' ];
|
|
39
|
+
$cell1['button'] = ( $settings['cell1_show_button'] ?? 'no' ) === 'yes'
|
|
40
|
+
? sociallane_prepare_button_data(
|
|
41
|
+
$settings['cell1_button_text'] ?? '',
|
|
42
|
+
$settings['cell1_button_url'] ?? [],
|
|
43
|
+
[ 'variant' => $cell1_preset['variant'], 'size' => $cell1_preset['size'] ]
|
|
44
|
+
)
|
|
45
|
+
: null;
|
|
46
|
+
|
|
47
|
+
// Cell 2 (middle top)
|
|
48
|
+
$cell2 = [
|
|
49
|
+
'title' => esc_html( $settings['cell2_title'] ?? '' ),
|
|
50
|
+
'description' => esc_html( $settings['cell2_description'] ?? '' ),
|
|
51
|
+
'visual' => ( $settings['cell2_visual'] ?? 'none' ) === 'metric' ? 'metric' : 'none',
|
|
52
|
+
'metric_value' => esc_html( $settings['cell2_metric_value'] ?? '' ),
|
|
53
|
+
'metric_change' => esc_html( $settings['cell2_metric_change'] ?? '' ),
|
|
54
|
+
];
|
|
55
|
+
$cell2_preset = function_exists( 'sociallane_parse_button_preset' ) ? sociallane_parse_button_preset( $settings['cell2_button_style'] ?? 'primary' ) : [ 'variant' => 'primary', 'size' => 'md' ];
|
|
56
|
+
$cell2['button'] = ( $settings['cell2_show_button'] ?? 'no' ) === 'yes'
|
|
57
|
+
? sociallane_prepare_button_data(
|
|
58
|
+
$settings['cell2_button_text'] ?? '',
|
|
59
|
+
$settings['cell2_button_url'] ?? [],
|
|
60
|
+
[ 'variant' => $cell2_preset['variant'], 'size' => $cell2_preset['size'] ]
|
|
61
|
+
)
|
|
62
|
+
: null;
|
|
63
|
+
|
|
64
|
+
// Cell 3 (middle bottom)
|
|
65
|
+
$cell3 = [
|
|
66
|
+
'title' => esc_html( $settings['cell3_title'] ?? '' ),
|
|
67
|
+
'description' => esc_html( $settings['cell3_description'] ?? '' ),
|
|
68
|
+
'visual' => ( $settings['cell3_visual'] ?? 'none' ) === 'icons' ? 'icons' : 'none',
|
|
69
|
+
'icon_1' => $settings['cell3_icon_1'] ?? null,
|
|
70
|
+
'icon_2' => $settings['cell3_icon_2'] ?? null,
|
|
71
|
+
'icon_3' => $settings['cell3_icon_3'] ?? null,
|
|
72
|
+
];
|
|
73
|
+
$cell3_preset = function_exists( 'sociallane_parse_button_preset' ) ? sociallane_parse_button_preset( $settings['cell3_button_style'] ?? 'primary' ) : [ 'variant' => 'primary', 'size' => 'md' ];
|
|
74
|
+
$cell3['button'] = ( $settings['cell3_show_button'] ?? 'no' ) === 'yes'
|
|
75
|
+
? sociallane_prepare_button_data(
|
|
76
|
+
$settings['cell3_button_text'] ?? '',
|
|
77
|
+
$settings['cell3_button_url'] ?? [],
|
|
78
|
+
[ 'variant' => $cell3_preset['variant'], 'size' => $cell3_preset['size'] ]
|
|
79
|
+
)
|
|
80
|
+
: null;
|
|
81
|
+
|
|
82
|
+
// Cell 4 (right)
|
|
83
|
+
$cell4 = [
|
|
84
|
+
'title' => esc_html( $settings['cell4_title'] ?? '' ),
|
|
85
|
+
'description' => esc_html( $settings['cell4_description'] ?? '' ),
|
|
86
|
+
'visual' => ( $settings['cell4_visual'] ?? 'none' ) === 'code' ? 'code' : 'none',
|
|
87
|
+
'code' => $settings['cell4_code'] ?? '',
|
|
88
|
+
];
|
|
89
|
+
$cell4_preset = function_exists( 'sociallane_parse_button_preset' ) ? sociallane_parse_button_preset( $settings['cell4_button_style'] ?? 'primary' ) : [ 'variant' => 'primary', 'size' => 'md' ];
|
|
90
|
+
$cell4['button'] = ( $settings['cell4_show_button'] ?? 'no' ) === 'yes'
|
|
91
|
+
? sociallane_prepare_button_data(
|
|
92
|
+
$settings['cell4_button_text'] ?? '',
|
|
93
|
+
$settings['cell4_button_url'] ?? [],
|
|
94
|
+
[ 'variant' => $cell4_preset['variant'], 'size' => $cell4_preset['size'] ]
|
|
95
|
+
)
|
|
96
|
+
: null;
|
|
97
|
+
|
|
98
|
+
$animation = sociallane_animation_view_data( $settings, [ 'headline' => true, 'stagger' => true ] );
|
|
99
|
+
|
|
100
|
+
// Light/dark: section and cards
|
|
101
|
+
$classes = [
|
|
102
|
+
'section' => 'bg-neutral-100 dark:bg-zinc-900',
|
|
103
|
+
'eyebrow' => 'text-zinc-900 dark:text-neutral-200',
|
|
104
|
+
'headline' => 'text-zinc-900 dark:text-neutral-200',
|
|
105
|
+
'card' => 'bg-white dark:bg-zinc-900 rounded-2xl border border-neutral-200 dark:border-neutral-700 dark:shadow-none',
|
|
106
|
+
'card_title' => 'text-zinc-900 dark:text-neutral-200 font-bold',
|
|
107
|
+
'card_desc' => 'text-zinc-900 dark:text-neutral-200',
|
|
108
|
+
'metric_val' => 'text-zinc-900 dark:text-neutral-200',
|
|
109
|
+
'metric_change' => 'text-primary dark:text-neutral-200',
|
|
110
|
+
'code_bg' => 'bg-zinc-900 dark:bg-zinc-900 text-neutral-200',
|
|
111
|
+
'badge' => 'bg-primary/20 dark:bg-primary-light/20 text-primary dark:text-primary-light text-xs font-medium px-2.5 py-1 rounded-full',
|
|
112
|
+
];
|
|
113
|
+
|
|
114
|
+
$view = array_merge( $fields, [
|
|
115
|
+
'layout' => $layout,
|
|
116
|
+
'headline_tag' => $headline_tag,
|
|
117
|
+
'cell1' => $cell1,
|
|
118
|
+
'cell2' => $cell2,
|
|
119
|
+
'cell3' => $cell3,
|
|
120
|
+
'cell4' => $cell4,
|
|
121
|
+
'classes' => $classes,
|
|
122
|
+
'widget_id' => $widget_id,
|
|
123
|
+
'animation' => $animation,
|
|
124
|
+
] );
|
|
125
|
+
|
|
126
|
+
return $view;
|
|
127
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sociallane/widget-bento-grid-4",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "SocialLane Elements widget: bento-grid-4",
|
|
6
|
+
"peerDependencies": {
|
|
7
|
+
"@sociallane/core": "^1.0.0"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "echo \"No widget-specific build\""
|
|
11
|
+
}
|
|
12
|
+
}
|