@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,329 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Widget: Card Hover Reveal
|
|
4
|
+
*
|
|
5
|
+
* Repeatable cards: each has image; on hover a backdrop-blur bar fades up
|
|
6
|
+
* with title, optional description, and CTA. Uses GSAP for bar and content animation.
|
|
7
|
+
*
|
|
8
|
+
* @package SocialLane_Elements
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
namespace SocialLane\Elements;
|
|
12
|
+
|
|
13
|
+
use Elementor\Widget_Base;
|
|
14
|
+
use Elementor\Controls_Manager;
|
|
15
|
+
use Elementor\Repeater;
|
|
16
|
+
use SocialLane\Elements\Traits\Animation_Controls;
|
|
17
|
+
|
|
18
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
19
|
+
exit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Card Hover Reveal Widget
|
|
24
|
+
*/
|
|
25
|
+
class Card_Hover_Reveal extends Widget_Base {
|
|
26
|
+
|
|
27
|
+
use Animation_Controls;
|
|
28
|
+
|
|
29
|
+
public function get_name(): string {
|
|
30
|
+
return 'card-hover-reveal';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public function get_title(): string {
|
|
34
|
+
return esc_html__( 'Card Hover Reveal', 'sociallane-elements' );
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public function get_icon(): string {
|
|
38
|
+
return 'eicon-gallery-grid';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public function get_categories(): array {
|
|
42
|
+
return [ 'sociallane-cards' ];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public function get_keywords(): array {
|
|
46
|
+
return [ 'card', 'hover', 'reveal', 'image', 'blur', 'overlay', 'grid' ];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
protected function register_controls(): void {
|
|
50
|
+
$this->register_header_section();
|
|
51
|
+
$this->register_cards_section();
|
|
52
|
+
$this->register_layout_section();
|
|
53
|
+
$this->register_animation_controls( true, true );
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private function register_header_section(): void {
|
|
57
|
+
$this->start_controls_section(
|
|
58
|
+
'section_header',
|
|
59
|
+
[
|
|
60
|
+
'label' => esc_html__( 'Header', 'sociallane-elements' ),
|
|
61
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
62
|
+
]
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
$this->add_control(
|
|
66
|
+
'show_headline',
|
|
67
|
+
[
|
|
68
|
+
'label' => esc_html__( 'Show headline', 'sociallane-elements' ),
|
|
69
|
+
'type' => Controls_Manager::SWITCHER,
|
|
70
|
+
'default' => 'yes',
|
|
71
|
+
]
|
|
72
|
+
);
|
|
73
|
+
$this->add_control(
|
|
74
|
+
'headline',
|
|
75
|
+
[
|
|
76
|
+
'label' => esc_html__( 'Headline', 'sociallane-elements' ),
|
|
77
|
+
'type' => Controls_Manager::TEXT,
|
|
78
|
+
'default' => esc_html__( 'Greep van onze specialisten', 'sociallane-elements' ),
|
|
79
|
+
'label_block' => true,
|
|
80
|
+
'condition' => [ 'show_headline' => 'yes' ],
|
|
81
|
+
]
|
|
82
|
+
);
|
|
83
|
+
$this->add_control(
|
|
84
|
+
'headline_tag',
|
|
85
|
+
[
|
|
86
|
+
'label' => esc_html__( 'Headline tag', 'sociallane-elements' ),
|
|
87
|
+
'type' => Controls_Manager::SELECT,
|
|
88
|
+
'default' => 'h2',
|
|
89
|
+
'options' => [ 'h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3' ],
|
|
90
|
+
'condition' => [ 'show_headline' => 'yes' ],
|
|
91
|
+
]
|
|
92
|
+
);
|
|
93
|
+
$this->add_control(
|
|
94
|
+
'show_header_cta',
|
|
95
|
+
[
|
|
96
|
+
'label' => esc_html__( 'Show header button', 'sociallane-elements' ),
|
|
97
|
+
'type' => Controls_Manager::SWITCHER,
|
|
98
|
+
'default' => 'yes',
|
|
99
|
+
]
|
|
100
|
+
);
|
|
101
|
+
$this->add_control(
|
|
102
|
+
'header_cta_text',
|
|
103
|
+
[
|
|
104
|
+
'label' => esc_html__( 'Button text', 'sociallane-elements' ),
|
|
105
|
+
'type' => Controls_Manager::TEXT,
|
|
106
|
+
'default' => esc_html__( 'Leer ons team kennen →', 'sociallane-elements' ),
|
|
107
|
+
'condition' => [ 'show_header_cta' => 'yes' ],
|
|
108
|
+
]
|
|
109
|
+
);
|
|
110
|
+
$this->add_control(
|
|
111
|
+
'header_cta_url',
|
|
112
|
+
[
|
|
113
|
+
'label' => esc_html__( 'Button URL', 'sociallane-elements' ),
|
|
114
|
+
'type' => Controls_Manager::URL,
|
|
115
|
+
'condition' => [ 'show_header_cta' => 'yes' ],
|
|
116
|
+
]
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
$this->end_controls_section();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
private function register_cards_section(): void {
|
|
123
|
+
$this->start_controls_section(
|
|
124
|
+
'section_cards',
|
|
125
|
+
[
|
|
126
|
+
'label' => esc_html__( 'Cards', 'sociallane-elements' ),
|
|
127
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
128
|
+
]
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
$repeater = new Repeater();
|
|
132
|
+
|
|
133
|
+
$repeater->add_control(
|
|
134
|
+
'image',
|
|
135
|
+
[
|
|
136
|
+
'label' => esc_html__( 'Image', 'sociallane-elements' ),
|
|
137
|
+
'type' => Controls_Manager::MEDIA,
|
|
138
|
+
'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src() ],
|
|
139
|
+
]
|
|
140
|
+
);
|
|
141
|
+
$repeater->add_control(
|
|
142
|
+
'image_alt',
|
|
143
|
+
[
|
|
144
|
+
'label' => esc_html__( 'Image Alt Text', 'sociallane-elements' ),
|
|
145
|
+
'type' => Controls_Manager::TEXT,
|
|
146
|
+
'description' => esc_html__( 'Required for accessibility', 'sociallane-elements' ),
|
|
147
|
+
]
|
|
148
|
+
);
|
|
149
|
+
$repeater->add_control(
|
|
150
|
+
'link',
|
|
151
|
+
[
|
|
152
|
+
'label' => esc_html__( 'Link (optional)', 'sociallane-elements' ),
|
|
153
|
+
'type' => Controls_Manager::URL,
|
|
154
|
+
]
|
|
155
|
+
);
|
|
156
|
+
$repeater->add_control(
|
|
157
|
+
'show_title',
|
|
158
|
+
[
|
|
159
|
+
'label' => esc_html__( 'Show Title', 'sociallane-elements' ),
|
|
160
|
+
'type' => Controls_Manager::SWITCHER,
|
|
161
|
+
'default' => 'yes',
|
|
162
|
+
]
|
|
163
|
+
);
|
|
164
|
+
$repeater->add_control(
|
|
165
|
+
'title',
|
|
166
|
+
[
|
|
167
|
+
'label' => esc_html__( 'Title', 'sociallane-elements' ),
|
|
168
|
+
'type' => Controls_Manager::TEXT,
|
|
169
|
+
'default' => esc_html__( 'Lorem ipsum dolor sit amet', 'sociallane-elements' ),
|
|
170
|
+
'label_block' => true,
|
|
171
|
+
'condition' => [ 'show_title' => 'yes' ],
|
|
172
|
+
]
|
|
173
|
+
);
|
|
174
|
+
$repeater->add_control(
|
|
175
|
+
'title_tag',
|
|
176
|
+
[
|
|
177
|
+
'label' => esc_html__( 'Title Tag', 'sociallane-elements' ),
|
|
178
|
+
'type' => Controls_Manager::SELECT,
|
|
179
|
+
'default' => 'h3',
|
|
180
|
+
'options' => [ 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4' ],
|
|
181
|
+
'condition' => [ 'show_title' => 'yes' ],
|
|
182
|
+
]
|
|
183
|
+
);
|
|
184
|
+
$repeater->add_control(
|
|
185
|
+
'subtitle',
|
|
186
|
+
[
|
|
187
|
+
'label' => esc_html__( 'Subtitle', 'sociallane-elements' ),
|
|
188
|
+
'type' => Controls_Manager::TEXT,
|
|
189
|
+
'default' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
190
|
+
'label_block' => true,
|
|
191
|
+
]
|
|
192
|
+
);
|
|
193
|
+
$repeater->add_control(
|
|
194
|
+
'show_description',
|
|
195
|
+
[
|
|
196
|
+
'label' => esc_html__( 'Show Description', 'sociallane-elements' ),
|
|
197
|
+
'type' => Controls_Manager::SWITCHER,
|
|
198
|
+
'default' => 'yes',
|
|
199
|
+
]
|
|
200
|
+
);
|
|
201
|
+
$repeater->add_control(
|
|
202
|
+
'description',
|
|
203
|
+
[
|
|
204
|
+
'label' => esc_html__( 'Description (WYSIWYG)', 'sociallane-elements' ),
|
|
205
|
+
'type' => Controls_Manager::WYSIWYG,
|
|
206
|
+
'default' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
207
|
+
'condition' => [ 'show_description' => 'yes' ],
|
|
208
|
+
]
|
|
209
|
+
);
|
|
210
|
+
$repeater->add_control(
|
|
211
|
+
'show_cta',
|
|
212
|
+
[
|
|
213
|
+
'label' => esc_html__( 'Show Button', 'sociallane-elements' ),
|
|
214
|
+
'type' => Controls_Manager::SWITCHER,
|
|
215
|
+
'default' => '',
|
|
216
|
+
]
|
|
217
|
+
);
|
|
218
|
+
$repeater->add_control(
|
|
219
|
+
'cta_text',
|
|
220
|
+
[
|
|
221
|
+
'label' => esc_html__( 'Button Text', 'sociallane-elements' ),
|
|
222
|
+
'type' => Controls_Manager::TEXT,
|
|
223
|
+
'default' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
224
|
+
'condition' => [ 'show_cta' => 'yes' ],
|
|
225
|
+
]
|
|
226
|
+
);
|
|
227
|
+
$repeater->add_control(
|
|
228
|
+
'cta_url',
|
|
229
|
+
[
|
|
230
|
+
'label' => esc_html__( 'Button URL', 'sociallane-elements' ),
|
|
231
|
+
'type' => Controls_Manager::URL,
|
|
232
|
+
'condition' => [ 'show_cta' => 'yes' ],
|
|
233
|
+
]
|
|
234
|
+
);
|
|
235
|
+
$repeater->add_control(
|
|
236
|
+
'cta_style',
|
|
237
|
+
[
|
|
238
|
+
'label' => esc_html__( 'Button Style', 'sociallane-elements' ),
|
|
239
|
+
'type' => Controls_Manager::SELECT,
|
|
240
|
+
'default' => 'primary',
|
|
241
|
+
'options' => function_exists( 'sociallane_get_button_preset_options' ) ? sociallane_get_button_preset_options() : [ 'primary' => 'Primary', 'secondary' => 'Secondary' ],
|
|
242
|
+
'condition' => [ 'show_cta' => 'yes' ],
|
|
243
|
+
]
|
|
244
|
+
);
|
|
245
|
+
|
|
246
|
+
$this->add_control(
|
|
247
|
+
'cards',
|
|
248
|
+
[
|
|
249
|
+
'label' => esc_html__( 'Cards', 'sociallane-elements' ),
|
|
250
|
+
'type' => Controls_Manager::REPEATER,
|
|
251
|
+
'fields' => $repeater->get_controls(),
|
|
252
|
+
'default' => [
|
|
253
|
+
[
|
|
254
|
+
'image' => [ 'url' => \Elementor\Utils::get_placeholder_image_src() ],
|
|
255
|
+
'title' => esc_html__( 'Lorem ipsum dolor sit amet', 'sociallane-elements' ),
|
|
256
|
+
'title_tag' => 'h3',
|
|
257
|
+
'show_description' => 'yes',
|
|
258
|
+
'description' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
259
|
+
],
|
|
260
|
+
[
|
|
261
|
+
'image' => [ 'url' => \Elementor\Utils::get_placeholder_image_src() ],
|
|
262
|
+
'title' => esc_html__( 'Lorem ipsum dolor sit amet', 'sociallane-elements' ),
|
|
263
|
+
'title_tag' => 'h3',
|
|
264
|
+
'show_description' => 'yes',
|
|
265
|
+
'description' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
266
|
+
],
|
|
267
|
+
[
|
|
268
|
+
'image' => [ 'url' => \Elementor\Utils::get_placeholder_image_src() ],
|
|
269
|
+
'title' => esc_html__( 'Lorem ipsum dolor sit amet', 'sociallane-elements' ),
|
|
270
|
+
'title_tag' => 'h3',
|
|
271
|
+
'show_description' => 'yes',
|
|
272
|
+
'description' => esc_html__( 'Lorem ipsum', 'sociallane-elements' ),
|
|
273
|
+
],
|
|
274
|
+
],
|
|
275
|
+
'title_field' => '{{{ title }}}',
|
|
276
|
+
]
|
|
277
|
+
);
|
|
278
|
+
|
|
279
|
+
$this->end_controls_section();
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
private function register_layout_section(): void {
|
|
283
|
+
$this->start_controls_section(
|
|
284
|
+
'section_layout',
|
|
285
|
+
[
|
|
286
|
+
'label' => esc_html__( 'Layout', 'sociallane-elements' ),
|
|
287
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
288
|
+
]
|
|
289
|
+
);
|
|
290
|
+
|
|
291
|
+
$this->add_control(
|
|
292
|
+
'aspect_ratio',
|
|
293
|
+
[
|
|
294
|
+
'label' => esc_html__( 'Card Aspect Ratio', 'sociallane-elements' ),
|
|
295
|
+
'type' => Controls_Manager::SELECT,
|
|
296
|
+
'default' => '3/4',
|
|
297
|
+
'options' => [
|
|
298
|
+
'16/9' => esc_html__( '16:9', 'sociallane-elements' ),
|
|
299
|
+
'4/3' => esc_html__( '4:3', 'sociallane-elements' ),
|
|
300
|
+
'3/2' => esc_html__( '3:2', 'sociallane-elements' ),
|
|
301
|
+
'1/1' => esc_html__( '1:1', 'sociallane-elements' ),
|
|
302
|
+
'3/4' => esc_html__( '3:4 (portrait)', 'sociallane-elements' ),
|
|
303
|
+
],
|
|
304
|
+
]
|
|
305
|
+
);
|
|
306
|
+
|
|
307
|
+
$this->add_control(
|
|
308
|
+
'columns',
|
|
309
|
+
[
|
|
310
|
+
'label' => esc_html__( 'Columns', 'sociallane-elements' ),
|
|
311
|
+
'type' => Controls_Manager::SELECT,
|
|
312
|
+
'default' => '3',
|
|
313
|
+
'options' => [
|
|
314
|
+
'2' => esc_html__( '2', 'sociallane-elements' ),
|
|
315
|
+
'3' => esc_html__( '3', 'sociallane-elements' ),
|
|
316
|
+
],
|
|
317
|
+
]
|
|
318
|
+
);
|
|
319
|
+
|
|
320
|
+
$this->end_controls_section();
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
protected function render(): void {
|
|
324
|
+
$settings = $this->get_settings_for_display();
|
|
325
|
+
require_once __DIR__ . '/data/view.php';
|
|
326
|
+
$view = prepare_card_hover_reveal_view( $settings, $this->get_id() );
|
|
327
|
+
include __DIR__ . '/templates/wrapper.php';
|
|
328
|
+
}
|
|
329
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Data Preparation: Card Hover Reveal
|
|
4
|
+
*
|
|
5
|
+
* @package SocialLane_Elements
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
9
|
+
exit;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Prepare view data for Card Hover Reveal 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_card_hover_reveal_view( array $settings, string $widget_id ): array {
|
|
20
|
+
$fields = sociallane_extract_fields( $settings, [ 'headline' => [] ] );
|
|
21
|
+
$headline_tag = sociallane_validate_heading_tag( $settings, 'headline_tag', 'h2' );
|
|
22
|
+
$show_header_cta = sociallane_show_field( $settings, 'show_header_cta' );
|
|
23
|
+
$header_cta_text = $show_header_cta ? trim( $settings['header_cta_text'] ?? '' ) : '';
|
|
24
|
+
$header_cta_link = sociallane_prepare_link_attrs( $settings['header_cta_url'] ?? [] );
|
|
25
|
+
$header_cta_href = trim( $header_cta_link['url'] ?? '#' ) !== '' && trim( $header_cta_link['url'] ) !== '#'
|
|
26
|
+
? $header_cta_link['url']
|
|
27
|
+
: '';
|
|
28
|
+
|
|
29
|
+
$cards = sociallane_process_repeater( $settings['cards'] ?? [], function ( $item, $index ) {
|
|
30
|
+
$item = is_array( $item ) ? $item : (array) $item;
|
|
31
|
+
$image = sociallane_prepare_image_data(
|
|
32
|
+
isset( $item['image'] ) && is_array( $item['image'] ) ? $item['image'] : [],
|
|
33
|
+
[
|
|
34
|
+
'alt' => $item['image_alt'] ?? '',
|
|
35
|
+
'sizes' => '(max-width: 768px) 100vw, 33vw',
|
|
36
|
+
'loading' => $index < 3 ? 'eager' : 'lazy',
|
|
37
|
+
'image_size' => 'full',
|
|
38
|
+
]
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
$show_title = sociallane_show_field( $item, 'show_title' );
|
|
42
|
+
$show_desc = sociallane_show_field( $item, 'show_description' );
|
|
43
|
+
$show_cta = sociallane_show_field( $item, 'show_cta' );
|
|
44
|
+
$title = $show_title ? esc_html( $item['title'] ?? '' ) : '';
|
|
45
|
+
$title_tag = sociallane_validate_heading_tag( $item, 'title_tag', 'h3' );
|
|
46
|
+
$subtitle = esc_html( $item['subtitle'] ?? '' );
|
|
47
|
+
$description = $show_desc ? wp_kses_post( $item['description'] ?? '' ) : '';
|
|
48
|
+
|
|
49
|
+
$cta = null;
|
|
50
|
+
if ( $show_cta && ! empty( trim( $item['cta_text'] ?? '' ) ) && function_exists( 'sociallane_prepare_button_data' ) ) {
|
|
51
|
+
$cta = sociallane_prepare_button_data(
|
|
52
|
+
$item['cta_text'] ?? '',
|
|
53
|
+
$item['cta_url'] ?? [],
|
|
54
|
+
[ 'preset' => $item['cta_style'] ?? 'primary' ]
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
$link = sociallane_prepare_link_attrs( $item['link'] ?? [] );
|
|
59
|
+
$link_url = trim( $link['url'] ?? '#' ) !== '' && trim( $link['url'] ) !== '#' ? $link['url'] : '';
|
|
60
|
+
|
|
61
|
+
return [
|
|
62
|
+
'image' => $image,
|
|
63
|
+
'show_title' => $show_title,
|
|
64
|
+
'title' => $title,
|
|
65
|
+
'title_tag' => $title_tag,
|
|
66
|
+
'subtitle' => $subtitle,
|
|
67
|
+
'show_description'=> $show_desc,
|
|
68
|
+
'description' => $description,
|
|
69
|
+
'show_cta' => $show_cta,
|
|
70
|
+
'cta' => $cta,
|
|
71
|
+
'link_url' => $link_url,
|
|
72
|
+
'link_attrs' => $link['attrs'],
|
|
73
|
+
];
|
|
74
|
+
} );
|
|
75
|
+
|
|
76
|
+
$aspect_ratio = sociallane_validate_option( $settings['aspect_ratio'] ?? '16/9', [ '16/9', '4/3', '3/2', '1/1', '3/4' ], '16/9' );
|
|
77
|
+
$aspect_map = [ '16/9' => 'aspect-video', '4/3' => 'aspect-[4/3]', '3/2' => 'aspect-[3/2]', '1/1' => 'aspect-square', '3/4' => 'aspect-[3/4]' ];
|
|
78
|
+
$aspect_class = $aspect_map[ $aspect_ratio ] ?? 'aspect-video';
|
|
79
|
+
$columns = sociallane_validate_option( $settings['columns'] ?? '3', [ '2', '3' ], '3' );
|
|
80
|
+
$grid_class = sociallane_grid_cols( $columns, [ '2' => 'grid-cols-1 sm:grid-cols-2', '3' => 'grid-cols-1 sm:grid-cols-2 lg:grid-cols-3' ] );
|
|
81
|
+
|
|
82
|
+
$animation = sociallane_animation_view_data( $settings, [ 'headline' => true, 'stagger' => true ] );
|
|
83
|
+
|
|
84
|
+
// Image: dark overlay with gradient (darker at bottom), white name + role.
|
|
85
|
+
$classes = [
|
|
86
|
+
'section' => 'bg-white dark:bg-neutral-900',
|
|
87
|
+
'headline' => 'text-neutral-900 dark:text-white',
|
|
88
|
+
'header_cta' => 'inline-flex items-center gap-2 px-4 py-2.5 rounded-lg bg-neutral-100 dark:bg-neutral-800 text-neutral-900 dark:text-white font-medium hover:bg-neutral-200 dark:hover:bg-neutral-700 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 transition-colors',
|
|
89
|
+
'bar_bg' => 'bg-zinc-900/60 border-t border-white-100/10 dark:bg-zinc-900/70 dark:border-white-100/10 backdrop-blur-sm',
|
|
90
|
+
'title' => 'text-white font-bold',
|
|
91
|
+
'description' => 'text-white/90',
|
|
92
|
+
'cta_focus' => 'focus:ring-white focus:ring-offset-2 focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-950',
|
|
93
|
+
];
|
|
94
|
+
|
|
95
|
+
return array_merge( $fields, [
|
|
96
|
+
'headline_tag' => $headline_tag,
|
|
97
|
+
'show_header_cta' => $show_header_cta && $header_cta_text !== '' && $header_cta_href !== '',
|
|
98
|
+
'header_cta_text' => esc_html( $header_cta_text ),
|
|
99
|
+
'header_cta_href' => $header_cta_href,
|
|
100
|
+
'header_cta_attrs' => $header_cta_link['attrs'],
|
|
101
|
+
'cards' => $cards,
|
|
102
|
+
'aspect_class' => $aspect_class,
|
|
103
|
+
'grid_class' => $grid_class,
|
|
104
|
+
'classes' => $classes,
|
|
105
|
+
'widget_id' => $widget_id,
|
|
106
|
+
'animation' => $animation,
|
|
107
|
+
] );
|
|
108
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sociallane/widget-card-hover-reveal",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "SocialLane Elements widget: card-hover-reveal",
|
|
6
|
+
"peerDependencies": {
|
|
7
|
+
"@sociallane/core": "^1.0.0"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "echo \"No widget-specific build\""
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Partial: Card Hover Reveal – single card
|
|
4
|
+
*
|
|
5
|
+
* Expects: $card (array), $card_id (string), $card_classes (array), $aspect_class (string), $elements_path (string)
|
|
6
|
+
*
|
|
7
|
+
* @package SocialLane_Elements
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
11
|
+
exit;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
if ( empty( $card ) ) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
$card_classes = is_array( $card_classes ?? null ) ? $card_classes : [];
|
|
19
|
+
?>
|
|
20
|
+
|
|
21
|
+
<div
|
|
22
|
+
class="card-hover-reveal__inner relative overflow-hidden <?php echo esc_attr( $aspect_class ); ?>"
|
|
23
|
+
data-sl-hover-reveal
|
|
24
|
+
>
|
|
25
|
+
<?php /* Image */ ?>
|
|
26
|
+
<?php if ( ! empty( $card['image']['src'] ) ) : ?>
|
|
27
|
+
<?php
|
|
28
|
+
$wrap_tag = ! empty( $card['link_url'] ) ? 'a' : 'div';
|
|
29
|
+
$wrap_attrs = $wrap_tag === 'a'
|
|
30
|
+
? ' href="' . esc_url( $card['link_url'] ) . '" ' . $card['link_attrs']
|
|
31
|
+
: '';
|
|
32
|
+
?>
|
|
33
|
+
<<?php echo $wrap_tag; ?> class="absolute inset-0 block focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 <?php echo $wrap_tag === 'a' ? '' : 'pointer-events-none'; ?>" <?php echo $wrap_attrs; ?>>
|
|
34
|
+
<img
|
|
35
|
+
src="<?php echo esc_url( $card['image']['src'] ); ?>"
|
|
36
|
+
alt="<?php echo esc_attr( $card['image']['alt'] ); ?>"
|
|
37
|
+
<?php if ( ! empty( $card['image']['srcset'] ) ) : ?>srcset="<?php echo esc_attr( $card['image']['srcset'] ); ?>"<?php endif; ?>
|
|
38
|
+
<?php if ( ! empty( $card['image']['sizes'] ) ) : ?>sizes="<?php echo esc_attr( $card['image']['sizes'] ); ?>"<?php endif; ?>
|
|
39
|
+
<?php if ( ! empty( $card['image']['width'] ) ) : ?>width="<?php echo esc_attr( $card['image']['width'] ); ?>"<?php endif; ?>
|
|
40
|
+
<?php if ( ! empty( $card['image']['height'] ) ) : ?>height="<?php echo esc_attr( $card['image']['height'] ); ?>"<?php endif; ?>
|
|
41
|
+
loading="<?php echo esc_attr( $card['image']['loading'] ); ?>"
|
|
42
|
+
decoding="async"
|
|
43
|
+
class="absolute inset-0 w-full h-full object-cover"
|
|
44
|
+
/>
|
|
45
|
+
</<?php echo $wrap_tag; ?>>
|
|
46
|
+
<?php endif; ?>
|
|
47
|
+
|
|
48
|
+
<?php /* Hover bar: dark blur bar, title & subtitle always visible, WYSIWYG content animates in */ ?>
|
|
49
|
+
<div
|
|
50
|
+
class="card-hover-reveal__bar absolute bottom-0 left-0 right-0 z-10 flex flex-col justify-end px-4 pb-4 pt-6 <?php echo esc_attr( $card_classes['bar_bg'] ); ?>"
|
|
51
|
+
data-sl-hover-reveal-bar
|
|
52
|
+
>
|
|
53
|
+
<div class="card-hover-reveal__content flex flex-col gap-0.5" data-sl-hover-reveal-content>
|
|
54
|
+
<?php if ( $card['show_title'] && $card['title'] !== '' ) : ?>
|
|
55
|
+
<<?php echo $card['title_tag']; ?>
|
|
56
|
+
id="<?php echo esc_attr( $card_id ); ?>-title"
|
|
57
|
+
class="<?php echo esc_attr( $card_classes['title'] ?? '' ); ?> text-lg sm:text-xl font-bold leading-tight"
|
|
58
|
+
>
|
|
59
|
+
<?php echo $card['title']; ?>
|
|
60
|
+
</<?php echo $card['title_tag']; ?>>
|
|
61
|
+
<?php endif; ?>
|
|
62
|
+
|
|
63
|
+
<?php if ( ! empty( $card['subtitle'] ) ) : ?>
|
|
64
|
+
<p class="subtitle text-sm leading-relaxed opacity-90">
|
|
65
|
+
<?php echo esc_html( $card['subtitle'] ); ?>
|
|
66
|
+
</p>
|
|
67
|
+
<?php endif; ?>
|
|
68
|
+
|
|
69
|
+
<?php if ( $card['show_description'] && $card['description'] !== '' ) : ?>
|
|
70
|
+
<div class="description-content text-sm leading-relaxed pt-4 <?php echo esc_attr( $card_classes['description'] ?? '' ); ?>" data-sl-hover-reveal-item data-sl-hover-reveal-collapsible>
|
|
71
|
+
<?php echo $card['description']; ?>
|
|
72
|
+
</div>
|
|
73
|
+
<?php endif; ?>
|
|
74
|
+
|
|
75
|
+
<?php if ( $card['show_cta'] && $card['cta'] ) : ?>
|
|
76
|
+
<div class="pt-1" data-sl-hover-reveal-item data-sl-hover-reveal-collapsible>
|
|
77
|
+
<?php
|
|
78
|
+
$button = $card['cta'];
|
|
79
|
+
$button['class'] = ( $button['class'] ?? '' ) . ' ' . ( $card_classes['cta_focus'] ?? '' );
|
|
80
|
+
include $elements_path . '/button/templates/render.php';
|
|
81
|
+
?>
|
|
82
|
+
</div>
|
|
83
|
+
<?php endif; ?>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Template: Card Hover Reveal Wrapper
|
|
4
|
+
*
|
|
5
|
+
* Grid of repeatable cards; each card has image and hover bar (name + role).
|
|
6
|
+
* GSAP animates bar and content on hover (data-sl-hover-reveal).
|
|
7
|
+
*
|
|
8
|
+
* AVAILABLE DATA ($view): cards, aspect_class, grid_class, classes, widget_id, animation
|
|
9
|
+
*
|
|
10
|
+
* @package SocialLane_Elements
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
14
|
+
exit;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if ( empty( $view ) || empty( $view['cards'] ) ) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
$anim = $view['animation'] ?? [];
|
|
22
|
+
$section_attrs = sociallane_section_animation_attrs( $anim );
|
|
23
|
+
$stagger_attrs = sociallane_stagger_attrs( $anim );
|
|
24
|
+
$block_id = 'card-hover-reveal-' . $view['widget_id'];
|
|
25
|
+
$elements_path = SOCIALLANE_ELEMENTS_PATH . 'elements';
|
|
26
|
+
$cards = $view['cards'];
|
|
27
|
+
$card_classes = is_array( $view['classes'] ?? null ) ? $view['classes'] : [];
|
|
28
|
+
$aspect_class = $view['aspect_class'];
|
|
29
|
+
$grid_class = $view['grid_class'];
|
|
30
|
+
?>
|
|
31
|
+
|
|
32
|
+
<?php // ========== CARD HOVER REVEAL START ========== ?>
|
|
33
|
+
|
|
34
|
+
<section
|
|
35
|
+
class="card-hover-reveal w-full <?php echo esc_attr( $view['classes']['section'] ); ?> py-12 md:py-16 lg:py-20"
|
|
36
|
+
<?php echo $section_attrs ? ' ' . $section_attrs : ''; ?>
|
|
37
|
+
aria-label="<?php esc_attr_e( 'Specialists', 'sociallane-elements' ); ?>"
|
|
38
|
+
>
|
|
39
|
+
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
|
|
40
|
+
<?php /* Header: title left, CTA right */ ?>
|
|
41
|
+
<?php if ( $view['show_headline'] || $view['show_header_cta'] ) : ?>
|
|
42
|
+
<header class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-8 md:mb-10">
|
|
43
|
+
<?php if ( $view['show_headline'] && $view['headline'] !== '' ) : ?>
|
|
44
|
+
<<?php echo $view['headline_tag']; ?> class="<?php echo esc_attr( $view['classes']['headline'] ); ?> text-2xl md:text-3xl lg:text-4xl font-bold font-heading leading-tight">
|
|
45
|
+
<?php echo $view['headline']; ?>
|
|
46
|
+
</<?php echo $view['headline_tag']; ?>>
|
|
47
|
+
<?php endif; ?>
|
|
48
|
+
<?php if ( $view['show_header_cta'] ) : ?>
|
|
49
|
+
<a
|
|
50
|
+
href="<?php echo esc_url( $view['header_cta_href'] ); ?>"
|
|
51
|
+
class="<?php echo esc_attr( $view['classes']['header_cta'] ); ?> shrink-0"
|
|
52
|
+
<?php echo $view['header_cta_attrs']; ?>
|
|
53
|
+
>
|
|
54
|
+
<?php echo $view['header_cta_text']; ?>
|
|
55
|
+
</a>
|
|
56
|
+
<?php endif; ?>
|
|
57
|
+
</header>
|
|
58
|
+
<?php endif; ?>
|
|
59
|
+
|
|
60
|
+
<div
|
|
61
|
+
class="grid <?php echo esc_attr( $grid_class ); ?> gap-4 sm:gap-6"
|
|
62
|
+
<?php echo $stagger_attrs ? ' ' . $stagger_attrs : ''; ?>
|
|
63
|
+
>
|
|
64
|
+
<?php foreach ( $cards as $index => $card ) : ?>
|
|
65
|
+
<?php
|
|
66
|
+
$card_id = $block_id . '-card-' . $index;
|
|
67
|
+
$has_title = $card['show_title'] && $card['title'] !== '';
|
|
68
|
+
?>
|
|
69
|
+
<article
|
|
70
|
+
class="card-hover-reveal__card w-full"
|
|
71
|
+
<?php if ( $has_title ) : ?>aria-labelledby="<?php echo esc_attr( $card_id ); ?>-title"<?php else : ?>aria-label="<?php esc_attr_e( 'Card', 'sociallane-elements' ); ?>"<?php endif; ?>
|
|
72
|
+
>
|
|
73
|
+
<?php include __DIR__ . '/partials/card.php'; ?>
|
|
74
|
+
</article>
|
|
75
|
+
<?php endforeach; ?>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</section>
|
|
79
|
+
|
|
80
|
+
<?php // ========== CARD HOVER REVEAL END ========== ?>
|