@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,66 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Template: Testimonial Quote Wrapper
|
|
4
|
+
*
|
|
5
|
+
* Blockquote and author attribution on patterned background.
|
|
6
|
+
* AVAILABLE DATA ($view): show_quote, show_author, quote, author_name, author_icon,
|
|
7
|
+
* content_width_class, classes, widget_id
|
|
8
|
+
*
|
|
9
|
+
* @package SocialLane_Elements
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
13
|
+
exit;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if ( empty( $view ) ) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
$anim = $view['animation'] ?? [];
|
|
21
|
+
$section_attrs = sociallane_section_animation_attrs( $anim );
|
|
22
|
+
$headline_attrs = sociallane_headline_animation_attrs( $anim );
|
|
23
|
+
$section_id = 'testimonial-quote-' . $view['widget_id'];
|
|
24
|
+
$has_quote = $view['show_quote'] && $view['quote'] !== '';
|
|
25
|
+
$has_author = $view['show_author'] && ( $view['author_name'] !== '' || ! empty( $view['author_icon']['value'] ) );
|
|
26
|
+
$section_classes = array_filter( [
|
|
27
|
+
$view['classes']['section'],
|
|
28
|
+
$view['classes']['pattern'],
|
|
29
|
+
] );
|
|
30
|
+
?>
|
|
31
|
+
|
|
32
|
+
<?php // ========== TESTIMONIAL QUOTE START ========== ?>
|
|
33
|
+
|
|
34
|
+
<section
|
|
35
|
+
class="<?php echo esc_attr( implode( ' ', $section_classes ) ); ?> py-16 md:py-24 lg:py-28"
|
|
36
|
+
<?php echo $section_attrs ? ' ' . $section_attrs : ''; ?>
|
|
37
|
+
<?php if ( $has_quote ) : ?>aria-labelledby="<?php echo esc_attr( $section_id ); ?>"<?php endif; ?>
|
|
38
|
+
>
|
|
39
|
+
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
|
|
40
|
+
<div class="<?php echo esc_attr( $view['content_width_class'] ); ?> mx-auto text-left">
|
|
41
|
+
<?php if ( $has_quote ) : ?>
|
|
42
|
+
<blockquote id="<?php echo esc_attr( $section_id ); ?>" class="border-0 p-0 m-0">
|
|
43
|
+
<p class="<?php echo esc_attr( $view['classes']['quote'] ); ?> text-xl md:text-2xl lg:text-3xl font-semibold font-heading leading-snug"<?php echo ! empty( $headline_attrs ) ? ' ' . $headline_attrs : ''; ?>>
|
|
44
|
+
<span aria-hidden="true">"</span><?php echo $view['quote']; ?><span aria-hidden="true">"</span>
|
|
45
|
+
</p>
|
|
46
|
+
<?php if ( $has_author ) : ?>
|
|
47
|
+
<footer class="mt-6 md:mt-8 flex items-center gap-3">
|
|
48
|
+
<?php if ( ! empty( $view['author_icon']['value'] ) ) : ?>
|
|
49
|
+
<span class="<?php echo esc_attr( $view['classes']['author_name'] ); ?> flex items-center justify-center shrink-0 [&_.e-icon]:w-6 [&_.e-icon]:h-6 [&_.e-icon]:text-current" aria-hidden="true">
|
|
50
|
+
<?php \Elementor\Icons_Manager::render_icon( $view['author_icon'], [ 'aria-hidden' => 'true', 'class' => 'w-6 h-6' ] ); ?>
|
|
51
|
+
</span>
|
|
52
|
+
<?php endif; ?>
|
|
53
|
+
<?php if ( $view['author_name'] !== '' ) : ?>
|
|
54
|
+
<cite class="<?php echo esc_attr( $view['classes']['author_name'] ); ?> italic font-medium text-lg md:text-xl">
|
|
55
|
+
<?php echo $view['author_name']; ?>
|
|
56
|
+
</cite>
|
|
57
|
+
<?php endif; ?>
|
|
58
|
+
</footer>
|
|
59
|
+
<?php endif; ?>
|
|
60
|
+
</blockquote>
|
|
61
|
+
<?php endif; ?>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</section>
|
|
65
|
+
|
|
66
|
+
<?php // ========== TESTIMONIAL QUOTE END ========== ?>
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Widget: Testimonial Quote
|
|
4
|
+
*
|
|
5
|
+
* A single testimonial block: prominent quote and attributed author (icon + name)
|
|
6
|
+
* on a light patterned background. Left-aligned, optional pattern.
|
|
7
|
+
*
|
|
8
|
+
* @package SocialLane_Elements
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
namespace SocialLane\Elements;
|
|
12
|
+
|
|
13
|
+
use Elementor\Widget_Base;
|
|
14
|
+
use Elementor\Controls_Manager;
|
|
15
|
+
use SocialLane\Elements\Traits\Animation_Controls;
|
|
16
|
+
|
|
17
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
18
|
+
exit;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Testimonial Quote Widget
|
|
23
|
+
*/
|
|
24
|
+
class Testimonial_Quote extends Widget_Base {
|
|
25
|
+
|
|
26
|
+
use Animation_Controls;
|
|
27
|
+
|
|
28
|
+
public function get_name(): string {
|
|
29
|
+
return 'testimonial-quote';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public function get_title(): string {
|
|
33
|
+
return esc_html__( 'Testimonial Quote', 'sociallane-elements' );
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public function get_icon(): string {
|
|
37
|
+
return 'eicon-blockquote';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public function get_categories(): array {
|
|
41
|
+
return [ 'sociallane-content' ];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public function get_keywords(): array {
|
|
45
|
+
return [ 'testimonial', 'quote', 'blockquote', 'author', 'social proof' ];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
protected function register_controls(): void {
|
|
49
|
+
$this->register_content_section();
|
|
50
|
+
$this->register_layout_section();
|
|
51
|
+
$this->register_animation_controls( true );
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
private function register_content_section(): void {
|
|
55
|
+
$this->start_controls_section(
|
|
56
|
+
'section_content',
|
|
57
|
+
[
|
|
58
|
+
'label' => esc_html__( 'Content', 'sociallane-elements' ),
|
|
59
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
60
|
+
]
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
$this->add_control(
|
|
64
|
+
'show_quote',
|
|
65
|
+
[
|
|
66
|
+
'label' => esc_html__( 'Show quote', 'sociallane-elements' ),
|
|
67
|
+
'type' => Controls_Manager::SWITCHER,
|
|
68
|
+
'default' => 'yes',
|
|
69
|
+
]
|
|
70
|
+
);
|
|
71
|
+
$this->add_control(
|
|
72
|
+
'quote',
|
|
73
|
+
[
|
|
74
|
+
'label' => esc_html__( 'Quote', 'sociallane-elements' ),
|
|
75
|
+
'type' => Controls_Manager::TEXTAREA,
|
|
76
|
+
'default' => esc_html__( "The team at Studio went above and beyond with our onboarding, even finding a way to access the user's microphone without triggering one of those annoying permission dialogs.", 'sociallane-elements' ),
|
|
77
|
+
'rows' => 5,
|
|
78
|
+
'condition' => [ 'show_quote' => 'yes' ],
|
|
79
|
+
]
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
$this->add_control(
|
|
83
|
+
'show_author',
|
|
84
|
+
[
|
|
85
|
+
'label' => esc_html__( 'Show author', 'sociallane-elements' ),
|
|
86
|
+
'type' => Controls_Manager::SWITCHER,
|
|
87
|
+
'default' => 'yes',
|
|
88
|
+
]
|
|
89
|
+
);
|
|
90
|
+
$this->add_control(
|
|
91
|
+
'author_icon',
|
|
92
|
+
[
|
|
93
|
+
'label' => esc_html__( 'Author icon', 'sociallane-elements' ),
|
|
94
|
+
'type' => Controls_Manager::ICONS,
|
|
95
|
+
'default' => [
|
|
96
|
+
'value' => 'eicon-heart',
|
|
97
|
+
'library' => 'elementor',
|
|
98
|
+
],
|
|
99
|
+
'condition' => [ 'show_author' => 'yes' ],
|
|
100
|
+
]
|
|
101
|
+
);
|
|
102
|
+
$this->add_control(
|
|
103
|
+
'author_name',
|
|
104
|
+
[
|
|
105
|
+
'label' => esc_html__( 'Author name', 'sociallane-elements' ),
|
|
106
|
+
'type' => Controls_Manager::TEXT,
|
|
107
|
+
'default' => esc_html__( 'Phobia', 'sociallane-elements' ),
|
|
108
|
+
'condition' => [ 'show_author' => 'yes' ],
|
|
109
|
+
]
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
$this->add_control(
|
|
113
|
+
'show_pattern',
|
|
114
|
+
[
|
|
115
|
+
'label' => esc_html__( 'Show background pattern', 'sociallane-elements' ),
|
|
116
|
+
'type' => Controls_Manager::SWITCHER,
|
|
117
|
+
'default' => 'yes',
|
|
118
|
+
]
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
$this->end_controls_section();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
private function register_layout_section(): void {
|
|
125
|
+
$this->start_controls_section(
|
|
126
|
+
'section_layout',
|
|
127
|
+
[
|
|
128
|
+
'label' => esc_html__( 'Layout', 'sociallane-elements' ),
|
|
129
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
130
|
+
]
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
$this->add_control(
|
|
134
|
+
'content_width',
|
|
135
|
+
[
|
|
136
|
+
'label' => esc_html__( 'Content width', 'sociallane-elements' ),
|
|
137
|
+
'type' => Controls_Manager::SELECT,
|
|
138
|
+
'default' => 'medium',
|
|
139
|
+
'options' => [
|
|
140
|
+
'narrow' => esc_html__( 'Narrow', 'sociallane-elements' ),
|
|
141
|
+
'medium' => esc_html__( 'Medium', 'sociallane-elements' ),
|
|
142
|
+
'wide' => esc_html__( 'Wide', 'sociallane-elements' ),
|
|
143
|
+
'full' => esc_html__( 'Full', 'sociallane-elements' ),
|
|
144
|
+
],
|
|
145
|
+
]
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
$this->end_controls_section();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
protected function render(): void {
|
|
152
|
+
$settings = $this->get_settings_for_display();
|
|
153
|
+
require_once __DIR__ . '/data/view.php';
|
|
154
|
+
$view = prepare_testimonial_quote_view( $settings, $this->get_id() );
|
|
155
|
+
include __DIR__ . '/templates/wrapper.php';
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Data Preparation: Testimonials Grid
|
|
4
|
+
*
|
|
5
|
+
* Transforms raw Elementor settings into clean, template-ready data.
|
|
6
|
+
* ALL sanitization, defaults, and data transformation happens here.
|
|
7
|
+
*
|
|
8
|
+
* @package SocialLane_Elements
|
|
9
|
+
* @since 1.0.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
13
|
+
exit;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Bento layout: explicit grid placement [col_start, col_end, row_start, row_end]
|
|
18
|
+
* Creates a packed bento with one large 2x2, one wide 2x1, no gaps.
|
|
19
|
+
*
|
|
20
|
+
* @return array<int, array{col: string, row: string}>
|
|
21
|
+
*/
|
|
22
|
+
function get_testimonials_bento_cells(): array {
|
|
23
|
+
return [
|
|
24
|
+
0 => [ 'col' => '1 / 3', 'row' => '1 / 3' ], // Large featured (2x2)
|
|
25
|
+
1 => [ 'col' => '3', 'row' => '1' ],
|
|
26
|
+
2 => [ 'col' => '3', 'row' => '2' ],
|
|
27
|
+
3 => [ 'col' => '1', 'row' => '3' ],
|
|
28
|
+
4 => [ 'col' => '2', 'row' => '3' ],
|
|
29
|
+
5 => [ 'col' => '3', 'row' => '3' ],
|
|
30
|
+
6 => [ 'col' => '1 / 3', 'row' => '4' ], // Wide (2x1)
|
|
31
|
+
7 => [ 'col' => '3', 'row' => '4' ],
|
|
32
|
+
8 => [ 'col' => '1 / 4', 'row' => '5' ], // Full width bottom
|
|
33
|
+
];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Prepare view data for Testimonials Grid widget
|
|
38
|
+
*
|
|
39
|
+
* @param array $settings Raw Elementor settings
|
|
40
|
+
* @param string $widget_id Unique widget ID for accessibility
|
|
41
|
+
* @return array Template-ready data
|
|
42
|
+
*/
|
|
43
|
+
function prepare_testimonials_bento_view( array $settings, string $widget_id ): array {
|
|
44
|
+
$fields = sociallane_extract_fields( $settings, [ 'headline' => [], 'subtitle' => [] ] );
|
|
45
|
+
$headline_tag = sociallane_validate_heading_tag( $settings, 'headline_tag', 'h2' );
|
|
46
|
+
|
|
47
|
+
$title_align = sociallane_align_classes( sociallane_validate_option( $settings['title_alignment'] ?? 'left', [ 'left', 'center', 'right' ], 'left' ) );
|
|
48
|
+
$content_align = sociallane_align_classes( sociallane_validate_option( $settings['content_alignment'] ?? 'left', [ 'left', 'center', 'right' ], 'left' ) );
|
|
49
|
+
$title_align_class = $title_align['text'];
|
|
50
|
+
$content_align_class = $content_align['text'];
|
|
51
|
+
$footer_justify_class = $content_align['justify'];
|
|
52
|
+
|
|
53
|
+
$placeholder_src = \Elementor\Utils::get_placeholder_image_src();
|
|
54
|
+
$testimonials = sociallane_process_repeater( $settings['testimonials'] ?? [], function ( $item ) use ( $placeholder_src ) {
|
|
55
|
+
$avatar = sociallane_prepare_avatar( $item['avatar'] ?? [], $item['avatar_alt'] ?? '' );
|
|
56
|
+
if ( empty( $avatar['src'] ) ) {
|
|
57
|
+
$avatar['src'] = esc_url( $placeholder_src );
|
|
58
|
+
}
|
|
59
|
+
return [
|
|
60
|
+
'card_title' => esc_html( $item['card_title'] ?? '' ),
|
|
61
|
+
'quote' => esc_html( $item['quote'] ?? '' ),
|
|
62
|
+
'avatar' => $avatar,
|
|
63
|
+
'name' => esc_html( $item['name'] ?? '' ),
|
|
64
|
+
'role' => esc_html( $item['role'] ?? '' ),
|
|
65
|
+
];
|
|
66
|
+
} );
|
|
67
|
+
|
|
68
|
+
// Bento: assign explicit grid placement to each testimonial
|
|
69
|
+
$bento_cells = get_testimonials_bento_cells();
|
|
70
|
+
foreach ( $testimonials as $i => &$t ) {
|
|
71
|
+
$cell = $bento_cells[ $i ] ?? [ 'col' => 'auto', 'row' => 'auto' ];
|
|
72
|
+
$t['bento_col'] = $cell['col'];
|
|
73
|
+
$t['bento_row'] = $cell['row'];
|
|
74
|
+
}
|
|
75
|
+
unset( $t );
|
|
76
|
+
|
|
77
|
+
$animation = sociallane_animation_view_data( $settings, [ 'headline' => true, 'stagger' => true ] );
|
|
78
|
+
|
|
79
|
+
/*
|
|
80
|
+
|--------------------------------------------------------------------------
|
|
81
|
+
| Theme Classes (light + dark)
|
|
82
|
+
|--------------------------------------------------------------------------
|
|
83
|
+
|
|
|
84
|
+
| ALL color, background, border-color, and text-color Tailwind classes
|
|
85
|
+
| are defined HERE — never in templates. Templates only echo these
|
|
86
|
+
| pre-built strings via $view['classes'].
|
|
87
|
+
|
|
|
88
|
+
*/
|
|
89
|
+
$classes = [
|
|
90
|
+
'section' => 'bg-neutral-100 dark:bg-zinc-900',
|
|
91
|
+
'headline' => 'text-neutral-900 dark:text-white',
|
|
92
|
+
'subtitle' => 'text-neutral-600 dark:text-neutral-300',
|
|
93
|
+
'card' => 'bg-white dark:bg-neutral-800 rounded-xl border border-neutral-200 dark:border-neutral-700',
|
|
94
|
+
'title' => 'text-neutral-900 dark:text-white',
|
|
95
|
+
'quote' => 'text-neutral-600 dark:text-neutral-300',
|
|
96
|
+
'name' => 'text-neutral-900 dark:text-white',
|
|
97
|
+
'role' => 'text-neutral-500 dark:text-neutral-400',
|
|
98
|
+
];
|
|
99
|
+
|
|
100
|
+
return array_merge( $fields, [
|
|
101
|
+
'headline_tag' => $headline_tag,
|
|
102
|
+
'title_align_class' => $title_align_class,
|
|
103
|
+
'content_align_class' => $content_align_class,
|
|
104
|
+
'footer_justify_class' => $footer_justify_class,
|
|
105
|
+
'testimonials' => $testimonials,
|
|
106
|
+
'classes' => $classes,
|
|
107
|
+
'widget_id' => $widget_id,
|
|
108
|
+
'animation' => $animation,
|
|
109
|
+
] );
|
|
110
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sociallane/widget-testimonials-bento",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "SocialLane Elements widget: testimonials-bento",
|
|
6
|
+
"peerDependencies": {
|
|
7
|
+
"@sociallane/core": "^1.0.0"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "echo \"No widget-specific build\""
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Partial: Testimonials Grid – bento layout
|
|
4
|
+
*
|
|
5
|
+
* Expects $view with testimonials (bento_col, bento_row), classes, alignment classes.
|
|
6
|
+
*
|
|
7
|
+
* @package SocialLane_Elements
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
12
|
+
exit;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if ( empty( $view ) ) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
?>
|
|
19
|
+
|
|
20
|
+
<div class="sl-testimonials-bento grid grid-cols-1 md:grid-cols-3 gap-6 lg:gap-8" style="grid-auto-rows: minmax(180px, auto);"<?php echo ! empty( $stagger_attrs ) ? ' ' . $stagger_attrs : ''; ?>>
|
|
21
|
+
<?php foreach ( $view['testimonials'] as $testimonial ) : ?>
|
|
22
|
+
<?php
|
|
23
|
+
$card = $testimonial;
|
|
24
|
+
$card['classes'] = $view['classes'];
|
|
25
|
+
$card['title_align_class'] = $view['title_align_class'];
|
|
26
|
+
$card['content_align_class'] = $view['content_align_class'];
|
|
27
|
+
$card['footer_justify_class'] = $view['footer_justify_class'];
|
|
28
|
+
$card['bento_style'] = sprintf(
|
|
29
|
+
'grid-column: %s; grid-row: %s;',
|
|
30
|
+
esc_attr( $card['bento_col'] ?? 'auto' ),
|
|
31
|
+
esc_attr( $card['bento_row'] ?? 'auto' )
|
|
32
|
+
);
|
|
33
|
+
include __DIR__ . '/testimonial-card.php';
|
|
34
|
+
?>
|
|
35
|
+
<?php endforeach; ?>
|
|
36
|
+
</div>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Partial: Testimonials Grid – masonry layout
|
|
4
|
+
*
|
|
5
|
+
* Three columns: left/right uniform cards; middle variable height.
|
|
6
|
+
* Expects $view with testimonials, classes, alignment classes.
|
|
7
|
+
*
|
|
8
|
+
* @package SocialLane_Elements
|
|
9
|
+
* @since 1.0.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
13
|
+
exit;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if ( empty( $view ) ) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
$testimonials = $view['testimonials'];
|
|
21
|
+
$left = array_filter( $testimonials, fn( $_, $i ) => $i % 3 === 0, ARRAY_FILTER_USE_BOTH );
|
|
22
|
+
$middle = array_filter( $testimonials, fn( $_, $i ) => $i % 3 === 1, ARRAY_FILTER_USE_BOTH );
|
|
23
|
+
$right = array_filter( $testimonials, fn( $_, $i ) => $i % 3 === 2, ARRAY_FILTER_USE_BOTH );
|
|
24
|
+
$left = array_values( $left );
|
|
25
|
+
$middle = array_values( $middle );
|
|
26
|
+
$right = array_values( $right );
|
|
27
|
+
?>
|
|
28
|
+
|
|
29
|
+
<div class="sl-testimonials-masonry grid grid-cols-1 md:grid-cols-3 gap-6 lg:gap-8 items-start"<?php echo ! empty( $stagger_attrs ) ? ' ' . $stagger_attrs : ''; ?>>
|
|
30
|
+
<?php // Left column: uniform short cards ?>
|
|
31
|
+
<div class="sl-masonry-col sl-masonry-col-uniform flex flex-col gap-6">
|
|
32
|
+
<?php foreach ( $left as $testimonial ) : ?>
|
|
33
|
+
<?php
|
|
34
|
+
$card = $testimonial;
|
|
35
|
+
$card['classes'] = $view['classes'];
|
|
36
|
+
$card['title_align_class'] = $view['title_align_class'];
|
|
37
|
+
$card['content_align_class'] = $view['content_align_class'];
|
|
38
|
+
$card['footer_justify_class'] = $view['footer_justify_class'];
|
|
39
|
+
$card['masonry_compact'] = true;
|
|
40
|
+
include __DIR__ . '/testimonial-card.php';
|
|
41
|
+
?>
|
|
42
|
+
<?php endforeach; ?>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<?php // Middle column: first short, 2nd and 3rd tall (variable height) ?>
|
|
46
|
+
<div class="sl-masonry-col sl-masonry-col-variable flex flex-col gap-6">
|
|
47
|
+
<?php foreach ( $middle as $mi => $testimonial ) : ?>
|
|
48
|
+
<?php
|
|
49
|
+
$card = $testimonial;
|
|
50
|
+
$card['classes'] = $view['classes'];
|
|
51
|
+
$card['title_align_class'] = $view['title_align_class'];
|
|
52
|
+
$card['content_align_class'] = $view['content_align_class'];
|
|
53
|
+
$card['footer_justify_class'] = $view['footer_justify_class'];
|
|
54
|
+
$card['masonry_compact'] = ( $mi === 0 );
|
|
55
|
+
include __DIR__ . '/testimonial-card.php';
|
|
56
|
+
?>
|
|
57
|
+
<?php endforeach; ?>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<?php // Right column: uniform short cards ?>
|
|
61
|
+
<div class="sl-masonry-col sl-masonry-col-uniform flex flex-col gap-6">
|
|
62
|
+
<?php foreach ( $right as $testimonial ) : ?>
|
|
63
|
+
<?php
|
|
64
|
+
$card = $testimonial;
|
|
65
|
+
$card['classes'] = $view['classes'];
|
|
66
|
+
$card['title_align_class'] = $view['title_align_class'];
|
|
67
|
+
$card['content_align_class'] = $view['content_align_class'];
|
|
68
|
+
$card['footer_justify_class'] = $view['footer_justify_class'];
|
|
69
|
+
$card['masonry_compact'] = true;
|
|
70
|
+
include __DIR__ . '/testimonial-card.php';
|
|
71
|
+
?>
|
|
72
|
+
<?php endforeach; ?>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Partial: Testimonials Grid – testimonial card
|
|
4
|
+
*
|
|
5
|
+
* Expects $card from loop: card_title, quote, avatar, name, role;
|
|
6
|
+
* classes, title_align_class, content_align_class, footer_justify_class.
|
|
7
|
+
* Optional: cell_class, bento_style, masonry_compact.
|
|
8
|
+
*
|
|
9
|
+
* @package SocialLane_Elements
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
14
|
+
exit;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if ( empty( $card ) ) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
$classes = $card['classes'] ?? [];
|
|
22
|
+
$title_align = $card['title_align_class'] ?? 'text-left';
|
|
23
|
+
$content_align = $card['content_align_class'] ?? 'text-left';
|
|
24
|
+
$footer_justify = $card['footer_justify_class'] ?? 'justify-start';
|
|
25
|
+
$avatar = $card['avatar'] ?? [];
|
|
26
|
+
|
|
27
|
+
$article_class = $classes['card'] ?? 'bg-white dark:bg-neutral-800 rounded-xl';
|
|
28
|
+
$article_class .= ' p-6 md:p-8 flex flex-col';
|
|
29
|
+
if ( ! empty( $card['cell_class'] ) ) {
|
|
30
|
+
$article_class .= ' ' . $card['cell_class'];
|
|
31
|
+
}
|
|
32
|
+
$article_style = $card['bento_style'] ?? '';
|
|
33
|
+
?>
|
|
34
|
+
|
|
35
|
+
<?php // ----- Testimonial card start ----- ?>
|
|
36
|
+
|
|
37
|
+
<article class="<?php echo esc_attr( trim( $article_class ) ); ?>"<?php echo $article_style ? ' style="' . $article_style . '"' : ''; ?>>
|
|
38
|
+
<?php if ( ! empty( $card['card_title'] ) ) : ?>
|
|
39
|
+
<h3 class="<?php echo esc_attr( $classes['title'] ?? '' ); ?> <?php echo esc_attr( $title_align ); ?> text-lg md:text-xl font-bold font-heading leading-tight">
|
|
40
|
+
<?php echo $card['card_title']; ?>
|
|
41
|
+
</h3>
|
|
42
|
+
<?php endif; ?>
|
|
43
|
+
|
|
44
|
+
<?php if ( ! empty( $card['quote'] ) ) : ?>
|
|
45
|
+
<?php $quote_class = ( $classes['quote'] ?? '' ) . ' ' . $content_align . ' mt-3 text-sm md:text-base leading-relaxed'; ?>
|
|
46
|
+
<?php if ( ! empty( $card['masonry_compact'] ) ) : ?>
|
|
47
|
+
<?php $quote_class .= ' line-clamp-3'; ?>
|
|
48
|
+
<?php endif; ?>
|
|
49
|
+
<blockquote class="<?php echo esc_attr( trim( $quote_class ) ); ?>">
|
|
50
|
+
"<?php echo $card['quote']; ?>"
|
|
51
|
+
</blockquote>
|
|
52
|
+
<?php endif; ?>
|
|
53
|
+
|
|
54
|
+
<?php if ( ! empty( $avatar['src'] ) || ! empty( $card['name'] ) || ! empty( $card['role'] ) ) : ?>
|
|
55
|
+
<footer class="mt-6 flex items-center gap-4 <?php echo esc_attr( $footer_justify ); ?> <?php echo esc_attr( $content_align ); ?>">
|
|
56
|
+
<?php if ( ! empty( $avatar['src'] ) ) : ?>
|
|
57
|
+
<img
|
|
58
|
+
src="<?php echo esc_url( $avatar['src'] ); ?>"
|
|
59
|
+
alt="<?php echo esc_attr( $avatar['alt'] ?? '' ); ?>"
|
|
60
|
+
<?php if ( ! empty( $avatar['srcset'] ) ) : ?>srcset="<?php echo esc_attr( $avatar['srcset'] ); ?>"<?php endif; ?>
|
|
61
|
+
<?php if ( ! empty( $avatar['sizes'] ) ) : ?>sizes="<?php echo esc_attr( $avatar['sizes'] ); ?>"<?php endif; ?>
|
|
62
|
+
<?php if ( ! empty( $avatar['width'] ) ) : ?>width="<?php echo esc_attr( $avatar['width'] ); ?>"<?php endif; ?>
|
|
63
|
+
<?php if ( ! empty( $avatar['height'] ) ) : ?>height="<?php echo esc_attr( $avatar['height'] ); ?>"<?php endif; ?>
|
|
64
|
+
loading="<?php echo esc_attr( $avatar['loading'] ?? 'lazy' ); ?>"
|
|
65
|
+
decoding="async"
|
|
66
|
+
class="size-10 md:size-12 rounded-full object-cover shrink-0"
|
|
67
|
+
/>
|
|
68
|
+
<?php endif; ?>
|
|
69
|
+
<div class="min-w-0">
|
|
70
|
+
<?php if ( ! empty( $card['name'] ) ) : ?>
|
|
71
|
+
<p class="<?php echo esc_attr( $classes['name'] ?? '' ); ?> font-semibold text-sm md:text-base">
|
|
72
|
+
<?php echo $card['name']; ?>
|
|
73
|
+
</p>
|
|
74
|
+
<?php endif; ?>
|
|
75
|
+
<?php if ( ! empty( $card['role'] ) ) : ?>
|
|
76
|
+
<p class="<?php echo esc_attr( $classes['role'] ?? '' ); ?> text-xs md:text-sm mt-0.5">
|
|
77
|
+
<?php echo $card['role']; ?>
|
|
78
|
+
</p>
|
|
79
|
+
<?php endif; ?>
|
|
80
|
+
</div>
|
|
81
|
+
</footer>
|
|
82
|
+
<?php endif; ?>
|
|
83
|
+
</article>
|
|
84
|
+
|
|
85
|
+
<?php // ----- Testimonial card end ----- ?>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Template: Testimonials Grid Wrapper
|
|
4
|
+
*
|
|
5
|
+
* AVAILABLE DATA ($view):
|
|
6
|
+
* - layout, grid_class, columns_class
|
|
7
|
+
* - show_headline, show_subtitle, headline, headline_tag, subtitle
|
|
8
|
+
* - title_align_class, content_align_class, footer_justify_class
|
|
9
|
+
* - testimonials (array), classes (section, headline, subtitle, card, title, quote, name, role), widget_id
|
|
10
|
+
*
|
|
11
|
+
* @package SocialLane_Elements
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
16
|
+
exit;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if ( empty( $view ) ) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
$anim = $view['animation'] ?? [];
|
|
24
|
+
$section_attrs = sociallane_section_animation_attrs( $anim );
|
|
25
|
+
$headline_attrs = sociallane_headline_animation_attrs( $anim );
|
|
26
|
+
$section_id = 'testimonials-' . $view['widget_id'];
|
|
27
|
+
$has_heading = ( $view['show_headline'] && ! empty( $view['headline'] ) ) || ( $view['show_subtitle'] && ! empty( $view['subtitle'] ) );
|
|
28
|
+
?>
|
|
29
|
+
|
|
30
|
+
<?php // ========== TESTIMONIALS GRID START ========== ?>
|
|
31
|
+
|
|
32
|
+
<section
|
|
33
|
+
class="<?php echo esc_attr( $view['classes']['section'] ); ?> py-16 md:py-20 lg:py-24"
|
|
34
|
+
<?php echo $section_attrs ? ' ' . $section_attrs : ''; ?>
|
|
35
|
+
<?php if ( $has_heading ) : ?>aria-labelledby="<?php echo esc_attr( $section_id ); ?>"<?php endif; ?>
|
|
36
|
+
>
|
|
37
|
+
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
|
|
38
|
+
<?php if ( $has_heading ) : ?>
|
|
39
|
+
<header class="text-center max-w-3xl mx-auto mb-12 md:mb-16" id="<?php echo esc_attr( $section_id ); ?>">
|
|
40
|
+
<?php if ( $view['show_headline'] && ! empty( $view['headline'] ) ) : ?>
|
|
41
|
+
<<?php echo $view['headline_tag']; ?>
|
|
42
|
+
class="<?php echo esc_attr( $view['classes']['headline'] ); ?> text-3xl sm:text-4xl font-bold font-heading leading-tight"
|
|
43
|
+
>
|
|
44
|
+
<?php echo $view['headline']; ?>
|
|
45
|
+
</<?php echo $view['headline_tag']; ?>>
|
|
46
|
+
<?php endif; ?>
|
|
47
|
+
|
|
48
|
+
<?php if ( $view['show_subtitle'] && ! empty( $view['subtitle'] ) ) : ?>
|
|
49
|
+
<p class="<?php echo esc_attr( $view['classes']['subtitle'] ); ?> mt-4 text-base md:text-lg leading-relaxed">
|
|
50
|
+
<?php echo $view['subtitle']; ?>
|
|
51
|
+
</p>
|
|
52
|
+
<?php endif; ?>
|
|
53
|
+
</header>
|
|
54
|
+
<?php endif; ?>
|
|
55
|
+
|
|
56
|
+
<?php if ( ! empty( $view['testimonials'] ) ) : ?>
|
|
57
|
+
<?php $stagger_attrs = sociallane_stagger_attrs( $anim ); ?>
|
|
58
|
+
<?php include __DIR__ . '/partials/layout-bento.php'; ?>
|
|
59
|
+
<?php endif; ?>
|
|
60
|
+
</div>
|
|
61
|
+
</section>
|
|
62
|
+
|
|
63
|
+
<?php // ========== TESTIMONIALS GRID END ========== ?>
|