@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,131 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Template: CTA Banner Wrapper
|
|
4
|
+
*
|
|
5
|
+
* Full-width banner with background image and lower CTA block: dark overlay,
|
|
6
|
+
* centered headline, description, and contact (phone | email) with icons.
|
|
7
|
+
*
|
|
8
|
+
* AVAILABLE DATA ($view): show_headline, show_description, show_phone, show_email,
|
|
9
|
+
* show_cta, headline, headline_tag, description, image, phone, email, cta,
|
|
10
|
+
* min_height, overlay_height, classes, widget_id, animation
|
|
11
|
+
*
|
|
12
|
+
* @package SocialLane_Elements
|
|
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
|
+
$section_id = 'cta-banner-' . $view['widget_id'];
|
|
26
|
+
$elements_path = SOCIALLANE_ELEMENTS_PATH . 'elements';
|
|
27
|
+
|
|
28
|
+
$has_headline = $view['show_headline'] && $view['headline'] !== '';
|
|
29
|
+
$has_description = $view['show_description'] && $view['description'] !== '';
|
|
30
|
+
$has_contact = ! empty( $view['phone'] ) || ! empty( $view['email'] );
|
|
31
|
+
$has_cta = ! empty( $view['cta'] );
|
|
32
|
+
$has_heading = $has_headline || $has_description;
|
|
33
|
+
?>
|
|
34
|
+
|
|
35
|
+
<?php // ========== CTA BANNER START ========== ?>
|
|
36
|
+
|
|
37
|
+
<section
|
|
38
|
+
class="cta-banner relative flex flex-col overflow-hidden"
|
|
39
|
+
style="min-height: <?php echo esc_attr( $view['min_height'] ); ?>; height: <?php echo esc_attr( $view['min_height'] ); ?>;"
|
|
40
|
+
<?php echo $section_attrs ? ' ' . $section_attrs : ''; ?>
|
|
41
|
+
<?php if ( $has_heading ) : ?>aria-labelledby="<?php echo esc_attr( $section_id ); ?>"<?php endif; ?>
|
|
42
|
+
>
|
|
43
|
+
<?php /* Background image */ ?>
|
|
44
|
+
<?php if ( ! empty( $view['image']['src'] ) ) : ?>
|
|
45
|
+
<div class="absolute inset-0" aria-hidden="true">
|
|
46
|
+
<img
|
|
47
|
+
src="<?php echo esc_url( $view['image']['src'] ); ?>"
|
|
48
|
+
alt="<?php echo esc_attr( $view['image']['alt'] ); ?>"
|
|
49
|
+
<?php if ( ! empty( $view['image']['srcset'] ) ) : ?>srcset="<?php echo esc_attr( $view['image']['srcset'] ); ?>"<?php endif; ?>
|
|
50
|
+
<?php if ( ! empty( $view['image']['sizes'] ) ) : ?>sizes="<?php echo esc_attr( $view['image']['sizes'] ); ?>"<?php endif; ?>
|
|
51
|
+
<?php if ( ! empty( $view['image']['width'] ) ) : ?>width="<?php echo esc_attr( $view['image']['width'] ); ?>"<?php endif; ?>
|
|
52
|
+
<?php if ( ! empty( $view['image']['height'] ) ) : ?>height="<?php echo esc_attr( $view['image']['height'] ); ?>"<?php endif; ?>
|
|
53
|
+
loading="<?php echo esc_attr( $view['image']['loading'] ); ?>"
|
|
54
|
+
decoding="async"
|
|
55
|
+
class="absolute inset-0 w-full h-full object-cover"
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
<?php endif; ?>
|
|
59
|
+
|
|
60
|
+
<?php /* CTA block: lower portion, solid dark overlay (height as % of section) */ ?>
|
|
61
|
+
<div
|
|
62
|
+
class="cta-banner__overlay max-w-6xl mx-auto absolute bottom-0 left-0 right-0 z-10 flex items-center justify-center px-4 sm:px-6 lg:px-8 py-12 md:py-16 lg:py-20 <?php echo esc_attr( $view['classes']['overlay'] ); ?>"
|
|
63
|
+
style="height: <?php echo esc_attr( $view['overlay_height'] ); ?>%; min-height: 12rem;"
|
|
64
|
+
>
|
|
65
|
+
<div class="container mx-auto w-full text-center max-w-4xl">
|
|
66
|
+
<header class="mb-6 md:mb-8" id="<?php echo esc_attr( $section_id ); ?>">
|
|
67
|
+
<?php if ( $has_headline ) : ?>
|
|
68
|
+
<<?php echo $view['headline_tag']; ?>
|
|
69
|
+
class="<?php echo esc_attr( $view['classes']['headline'] ); ?> text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold font-heading leading-tight"
|
|
70
|
+
>
|
|
71
|
+
<?php echo $view['headline']; ?>
|
|
72
|
+
</<?php echo $view['headline_tag']; ?>>
|
|
73
|
+
<?php endif; ?>
|
|
74
|
+
<?php if ( $has_description ) : ?>
|
|
75
|
+
<p class="<?php echo esc_attr( $view['classes']['description'] ); ?> mt-4 text-base md:text-lg lg:text-xl leading-relaxed">
|
|
76
|
+
<?php echo $view['description']; ?>
|
|
77
|
+
</p>
|
|
78
|
+
<?php endif; ?>
|
|
79
|
+
</header>
|
|
80
|
+
|
|
81
|
+
<?php /* Contact: phone | email with icons */ ?>
|
|
82
|
+
<?php if ( $has_contact ) : ?>
|
|
83
|
+
<div class="flex flex-wrap items-center justify-center gap-x-4 gap-y-2 text-base md:text-lg">
|
|
84
|
+
<?php if ( ! empty( $view['phone'] ) ) : ?>
|
|
85
|
+
<a
|
|
86
|
+
href="<?php echo esc_url( $view['phone']['url'] ); ?>"
|
|
87
|
+
class="<?php echo esc_attr( $view['classes']['contact'] ); ?> inline-flex items-center gap-2 hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-blue-chill-900 dark:focus:ring-offset-blue-chill-950 rounded transition-opacity"
|
|
88
|
+
aria-label="<?php echo esc_attr( sprintf( /* translators: phone number */ __( 'Call %s', 'sociallane-elements' ), $view['phone']['label'] ) ); ?>"
|
|
89
|
+
>
|
|
90
|
+
<svg class="w-5 h-5 shrink-0 <?php echo esc_attr( $view['classes']['icon'] ); ?>" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
91
|
+
<path d="M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z"/>
|
|
92
|
+
</svg>
|
|
93
|
+
<span><?php echo $view['phone']['label']; ?></span>
|
|
94
|
+
</a>
|
|
95
|
+
<?php endif; ?>
|
|
96
|
+
|
|
97
|
+
<?php if ( ! empty( $view['phone'] ) && ! empty( $view['email'] ) ) : ?>
|
|
98
|
+
<span class="<?php echo esc_attr( $view['classes']['separator'] ); ?> hidden sm:inline" aria-hidden="true">|</span>
|
|
99
|
+
<?php endif; ?>
|
|
100
|
+
|
|
101
|
+
<?php if ( ! empty( $view['email'] ) ) : ?>
|
|
102
|
+
<a
|
|
103
|
+
href="<?php echo esc_url( $view['email']['url'] ); ?>"
|
|
104
|
+
class="<?php echo esc_attr( $view['classes']['contact'] ); ?> inline-flex items-center gap-2 hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-blue-chill-900 dark:focus:ring-offset-blue-chill-950 rounded transition-opacity"
|
|
105
|
+
aria-label="<?php echo esc_attr( sprintf( /* translators: email address */ __( 'Email %s', 'sociallane-elements' ), $view['email']['label'] ) ); ?>"
|
|
106
|
+
>
|
|
107
|
+
<svg class="w-5 h-5 shrink-0 <?php echo esc_attr( $view['classes']['icon'] ); ?>" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
108
|
+
<path d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"/>
|
|
109
|
+
<path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"/>
|
|
110
|
+
</svg>
|
|
111
|
+
<span><?php echo $view['email']['label']; ?></span>
|
|
112
|
+
</a>
|
|
113
|
+
<?php endif; ?>
|
|
114
|
+
</div>
|
|
115
|
+
<?php endif; ?>
|
|
116
|
+
|
|
117
|
+
<?php /* Optional CTA button */ ?>
|
|
118
|
+
<?php if ( $has_cta && ! empty( $view['cta'] ) ) : ?>
|
|
119
|
+
<div class="mt-8">
|
|
120
|
+
<?php
|
|
121
|
+
$button = $view['cta'];
|
|
122
|
+
$button['class'] = ( $button['class'] ?? '' ) . ' ' . ( $view['classes']['cta_focus'] ?? '' );
|
|
123
|
+
include $elements_path . '/button/templates/render.php';
|
|
124
|
+
?>
|
|
125
|
+
</div>
|
|
126
|
+
<?php endif; ?>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</section>
|
|
130
|
+
|
|
131
|
+
<?php // ========== CTA BANNER END ========== ?>
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Widget: CTA Notify
|
|
4
|
+
*
|
|
5
|
+
* Centered “Get notified” CTA: dark card with subtle purple glow, headline,
|
|
6
|
+
* description, and inline email form (Gravity Forms shortcode). Form styling
|
|
7
|
+
* via .sl-cta-notify-form Tailwind overrides.
|
|
8
|
+
*
|
|
9
|
+
* @package SocialLane_Elements
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace SocialLane\Elements;
|
|
13
|
+
|
|
14
|
+
use Elementor\Widget_Base;
|
|
15
|
+
use Elementor\Controls_Manager;
|
|
16
|
+
use SocialLane\Elements\Traits\Animation_Controls;
|
|
17
|
+
|
|
18
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
19
|
+
exit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* CTA Notify Widget
|
|
24
|
+
*/
|
|
25
|
+
class Cta_Notify extends Widget_Base {
|
|
26
|
+
|
|
27
|
+
use Animation_Controls;
|
|
28
|
+
|
|
29
|
+
public function get_name(): string {
|
|
30
|
+
return 'cta-notify';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public function get_title(): string {
|
|
34
|
+
return esc_html__( 'CTA Notify', 'sociallane-elements' );
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public function get_icon(): string {
|
|
38
|
+
return 'eicon-bell';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public function get_categories(): array {
|
|
42
|
+
return [ 'sociallane-forms' ];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public function get_keywords(): array {
|
|
46
|
+
return [ 'cta', 'notify', 'launch', 'email', 'gravity forms', 'signup' ];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
protected function register_controls(): void {
|
|
50
|
+
$this->register_content_section();
|
|
51
|
+
$this->register_animation_controls();
|
|
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_headline',
|
|
65
|
+
[
|
|
66
|
+
'label' => esc_html__( 'Show Headline', 'sociallane-elements' ),
|
|
67
|
+
'type' => Controls_Manager::SWITCHER,
|
|
68
|
+
'default' => 'yes',
|
|
69
|
+
]
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
$this->add_control(
|
|
73
|
+
'headline',
|
|
74
|
+
[
|
|
75
|
+
'label' => esc_html__( 'Headline', 'sociallane-elements' ),
|
|
76
|
+
'type' => Controls_Manager::TEXT,
|
|
77
|
+
'default' => esc_html__( "Get notified when we're launching", 'sociallane-elements' ),
|
|
78
|
+
'label_block' => true,
|
|
79
|
+
]
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
$this->add_control(
|
|
83
|
+
'headline_tag',
|
|
84
|
+
[
|
|
85
|
+
'label' => esc_html__( 'Headline Tag', 'sociallane-elements' ),
|
|
86
|
+
'type' => Controls_Manager::SELECT,
|
|
87
|
+
'default' => 'h2',
|
|
88
|
+
'options' => [
|
|
89
|
+
'h1' => 'H1',
|
|
90
|
+
'h2' => 'H2',
|
|
91
|
+
'h3' => 'H3',
|
|
92
|
+
],
|
|
93
|
+
]
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
$this->add_control(
|
|
97
|
+
'show_description',
|
|
98
|
+
[
|
|
99
|
+
'label' => esc_html__( 'Show Description', 'sociallane-elements' ),
|
|
100
|
+
'type' => Controls_Manager::SWITCHER,
|
|
101
|
+
'default' => 'yes',
|
|
102
|
+
]
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
$this->add_control(
|
|
106
|
+
'description',
|
|
107
|
+
[
|
|
108
|
+
'label' => esc_html__( 'Description', 'sociallane-elements' ),
|
|
109
|
+
'type' => Controls_Manager::TEXTAREA,
|
|
110
|
+
'default' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'sociallane-elements' ),
|
|
111
|
+
]
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
$this->add_control(
|
|
115
|
+
'form_shortcode',
|
|
116
|
+
[
|
|
117
|
+
'label' => esc_html__( 'Gravity Forms Shortcode', 'sociallane-elements' ),
|
|
118
|
+
'type' => Controls_Manager::TEXTAREA,
|
|
119
|
+
'default' => '[gravityform id="1" title="false" description="false"]',
|
|
120
|
+
'placeholder' => '[gravityform id="1" title="false" description="false"]',
|
|
121
|
+
'description' => esc_html__( 'Use a form with email + submit (e.g. one email field). Example: [gravityform id="1" title="false" description="false"]', 'sociallane-elements' ),
|
|
122
|
+
'label_block' => true,
|
|
123
|
+
]
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
$this->end_controls_section();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
protected function render(): void {
|
|
130
|
+
$settings = $this->get_settings_for_display();
|
|
131
|
+
require_once __DIR__ . '/data/view.php';
|
|
132
|
+
$view = prepare_cta_notify_view( $settings, $this->get_id() );
|
|
133
|
+
include __DIR__ . '/templates/wrapper.php';
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Data Preparation: CTA Notify
|
|
4
|
+
*
|
|
5
|
+
* Transforms raw Elementor settings into clean, template-ready data.
|
|
6
|
+
*
|
|
7
|
+
* @package SocialLane_Elements
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
11
|
+
exit;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Prepare view data for CTA Notify widget
|
|
16
|
+
*
|
|
17
|
+
* @param array $settings Raw Elementor settings
|
|
18
|
+
* @param string $widget_id Unique widget ID for accessibility
|
|
19
|
+
* @return array Template-ready data
|
|
20
|
+
*/
|
|
21
|
+
function prepare_cta_notify_view( array $settings, string $widget_id ): array {
|
|
22
|
+
$fields = sociallane_extract_fields( $settings, [
|
|
23
|
+
'headline' => [],
|
|
24
|
+
'description' => [ 'show_key' => 'show_description' ],
|
|
25
|
+
] );
|
|
26
|
+
$headline_tag = sociallane_validate_heading_tag( $settings, 'headline_tag', 'h2' );
|
|
27
|
+
|
|
28
|
+
$form_shortcode = trim( $settings['form_shortcode'] ?? '' );
|
|
29
|
+
|
|
30
|
+
$animation = sociallane_animation_view_data( $settings );
|
|
31
|
+
|
|
32
|
+
// Card: Tailwind-only dark card with purple glow (before: gradient)
|
|
33
|
+
$classes = [
|
|
34
|
+
'section' => 'bg-neutral-100 dark:bg-neutral-950',
|
|
35
|
+
'card' => 'relative overflow-hidden rounded-xl p-8 md:p-10 lg:p-12 text-center bg-neutral-700 border border-neutral-700 before:content-[""] before:absolute before:inset-x-0 before:bottom-0 before:h-3/4 before:bg-gradient-to-t before:from-neutral-500/25 before:to-transparent before:pointer-events-none',
|
|
36
|
+
'card_inner' => 'relative z-10',
|
|
37
|
+
'headline' => 'text-white',
|
|
38
|
+
'description'=> 'text-neutral-400',
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
return array_merge( $fields, [
|
|
42
|
+
'headline_tag' => $headline_tag,
|
|
43
|
+
'form_shortcode' => $form_shortcode,
|
|
44
|
+
'classes' => $classes,
|
|
45
|
+
'widget_id' => $widget_id,
|
|
46
|
+
'animation' => $animation,
|
|
47
|
+
] );
|
|
48
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sociallane/widget-cta-notify",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "SocialLane Elements widget: cta-notify",
|
|
6
|
+
"peerDependencies": {
|
|
7
|
+
"@sociallane/core": "^1.0.0"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "echo \"No widget-specific build\""
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Template: CTA Notify Wrapper
|
|
4
|
+
*
|
|
5
|
+
* Centered dark card with purple glow, headline, description, and inline form.
|
|
6
|
+
*
|
|
7
|
+
* AVAILABLE DATA ($view):
|
|
8
|
+
* - show_headline, show_description
|
|
9
|
+
* - headline, headline_tag, description, form_shortcode
|
|
10
|
+
* - classes, widget_id
|
|
11
|
+
*
|
|
12
|
+
* @package SocialLane_Elements
|
|
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
|
+
$section_id = 'cta-notify-' . $view['widget_id'];
|
|
26
|
+
$has_heading = ( $view['show_headline'] && ! empty( $view['headline'] ) ) || ( $view['show_description'] && ! empty( $view['description'] ) );
|
|
27
|
+
$has_form = ! empty( $view['form_shortcode'] );
|
|
28
|
+
?>
|
|
29
|
+
|
|
30
|
+
<?php // ========== CTA NOTIFY 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
|
+
<div class="max-w-4xl mx-auto">
|
|
39
|
+
<div class="<?php echo esc_attr( $view['classes']['card'] ); ?>">
|
|
40
|
+
<div class="<?php echo esc_attr( $view['classes']['card_inner'] ); ?>">
|
|
41
|
+
<?php if ( $has_heading ) : ?>
|
|
42
|
+
<header class="mb-6 md:mb-8" id="<?php echo esc_attr( $section_id ); ?>">
|
|
43
|
+
<?php if ( $view['show_headline'] && ! empty( $view['headline'] ) ) : ?>
|
|
44
|
+
<<?php echo $view['headline_tag']; ?>
|
|
45
|
+
class="<?php echo esc_attr( $view['classes']['headline'] ); ?> text-2xl sm:text-3xl md:text-4xl font-bold font-heading leading-tight"
|
|
46
|
+
>
|
|
47
|
+
<?php echo $view['headline']; ?>
|
|
48
|
+
</<?php echo $view['headline_tag']; ?>>
|
|
49
|
+
<?php endif; ?>
|
|
50
|
+
<?php if ( $view['show_description'] && ! empty( $view['description'] ) ) : ?>
|
|
51
|
+
<p class="<?php echo esc_attr( $view['classes']['description'] ); ?> mt-4 text-base md:text-lg leading-relaxed">
|
|
52
|
+
<?php echo $view['description']; ?>
|
|
53
|
+
</p>
|
|
54
|
+
<?php endif; ?>
|
|
55
|
+
</header>
|
|
56
|
+
<?php endif; ?>
|
|
57
|
+
|
|
58
|
+
<?php if ( $has_form ) : ?>
|
|
59
|
+
<div class="sl-cta-notify-form mt-8">
|
|
60
|
+
<?php echo do_shortcode( $view['form_shortcode'] ); ?>
|
|
61
|
+
</div>
|
|
62
|
+
<?php endif; ?>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</section>
|
|
68
|
+
|
|
69
|
+
<?php // ========== CTA NOTIFY END ========== ?>
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Widget: CTA Split
|
|
4
|
+
*
|
|
5
|
+
* Two-column section: left = dark slate panel (headline, description, phone | email);
|
|
6
|
+
* right = full-height image. No overlay on image. Teal contact icons and text.
|
|
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
|
+
* CTA Split Widget
|
|
23
|
+
*/
|
|
24
|
+
class Cta_Split extends Widget_Base {
|
|
25
|
+
|
|
26
|
+
use Animation_Controls;
|
|
27
|
+
|
|
28
|
+
public function get_name(): string {
|
|
29
|
+
return 'cta-split';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public function get_title(): string {
|
|
33
|
+
return esc_html__( 'CTA Split', 'sociallane-elements' );
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public function get_icon(): string {
|
|
37
|
+
return 'eicon-call-to-action';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public function get_categories(): array {
|
|
41
|
+
return [ 'sociallane-forms' ];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public function get_keywords(): array {
|
|
45
|
+
return [ 'cta', 'split', 'contact', 'phone', 'email', 'call to action' ];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
protected function register_controls(): void {
|
|
49
|
+
$this->register_content_section();
|
|
50
|
+
$this->register_contact_section();
|
|
51
|
+
$this->register_image_section();
|
|
52
|
+
$this->register_layout_section();
|
|
53
|
+
$this->register_animation_controls( true, false );
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private function register_content_section(): void {
|
|
57
|
+
$this->start_controls_section(
|
|
58
|
+
'section_content',
|
|
59
|
+
[
|
|
60
|
+
'label' => esc_html__( 'Content', '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
|
+
|
|
74
|
+
$this->add_control(
|
|
75
|
+
'headline',
|
|
76
|
+
[
|
|
77
|
+
'label' => esc_html__( 'Headline', 'sociallane-elements' ),
|
|
78
|
+
'type' => Controls_Manager::TEXT,
|
|
79
|
+
'default' => esc_html__( 'Lorem ipsum dolor sit amet', 'sociallane-elements' ),
|
|
80
|
+
'placeholder' => esc_html__( 'Lorem ipsum dolor sit amet', 'sociallane-elements' ),
|
|
81
|
+
'label_block' => true,
|
|
82
|
+
]
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
$this->add_control(
|
|
86
|
+
'headline_tag',
|
|
87
|
+
[
|
|
88
|
+
'label' => esc_html__( 'Headline Tag', 'sociallane-elements' ),
|
|
89
|
+
'type' => Controls_Manager::SELECT,
|
|
90
|
+
'default' => 'h2',
|
|
91
|
+
'options' => [
|
|
92
|
+
'h1' => 'H1',
|
|
93
|
+
'h2' => 'H2',
|
|
94
|
+
'h3' => 'H3',
|
|
95
|
+
],
|
|
96
|
+
]
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
$this->add_control(
|
|
100
|
+
'show_description',
|
|
101
|
+
[
|
|
102
|
+
'label' => esc_html__( 'Show Description', 'sociallane-elements' ),
|
|
103
|
+
'type' => Controls_Manager::SWITCHER,
|
|
104
|
+
'default' => 'yes',
|
|
105
|
+
]
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
$this->add_control(
|
|
109
|
+
'description',
|
|
110
|
+
[
|
|
111
|
+
'label' => esc_html__( 'Description', 'sociallane-elements' ),
|
|
112
|
+
'type' => Controls_Manager::TEXTAREA,
|
|
113
|
+
'default' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'sociallane-elements' ),
|
|
114
|
+
]
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
$this->end_controls_section();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
private function register_contact_section(): void {
|
|
121
|
+
$this->start_controls_section(
|
|
122
|
+
'section_contact',
|
|
123
|
+
[
|
|
124
|
+
'label' => esc_html__( 'Contact', 'sociallane-elements' ),
|
|
125
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
126
|
+
]
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
$this->add_control(
|
|
130
|
+
'show_phone',
|
|
131
|
+
[
|
|
132
|
+
'label' => esc_html__( 'Show Phone', 'sociallane-elements' ),
|
|
133
|
+
'type' => Controls_Manager::SWITCHER,
|
|
134
|
+
'default' => 'yes',
|
|
135
|
+
]
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
$this->add_control(
|
|
139
|
+
'phone',
|
|
140
|
+
[
|
|
141
|
+
'label' => esc_html__( 'Phone Number', 'sociallane-elements' ),
|
|
142
|
+
'type' => Controls_Manager::TEXT,
|
|
143
|
+
'placeholder' => '+31 (0)70 413 1100',
|
|
144
|
+
'label_block' => true,
|
|
145
|
+
]
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
$this->add_control(
|
|
149
|
+
'phone_url',
|
|
150
|
+
[
|
|
151
|
+
'label' => esc_html__( 'Phone Link (optional)', 'sociallane-elements' ),
|
|
152
|
+
'type' => Controls_Manager::URL,
|
|
153
|
+
'description' => esc_html__( 'Leave empty to use tel: from number', 'sociallane-elements' ),
|
|
154
|
+
]
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
$this->add_control(
|
|
158
|
+
'show_email',
|
|
159
|
+
[
|
|
160
|
+
'label' => esc_html__( 'Show Email', 'sociallane-elements' ),
|
|
161
|
+
'type' => Controls_Manager::SWITCHER,
|
|
162
|
+
'default' => 'yes',
|
|
163
|
+
]
|
|
164
|
+
);
|
|
165
|
+
|
|
166
|
+
$this->add_control(
|
|
167
|
+
'email',
|
|
168
|
+
[
|
|
169
|
+
'label' => esc_html__( 'Email Address', 'sociallane-elements' ),
|
|
170
|
+
'type' => Controls_Manager::TEXT,
|
|
171
|
+
'placeholder' => 'info@example.com',
|
|
172
|
+
'label_block' => true,
|
|
173
|
+
]
|
|
174
|
+
);
|
|
175
|
+
|
|
176
|
+
$this->end_controls_section();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
private function register_image_section(): void {
|
|
180
|
+
$this->start_controls_section(
|
|
181
|
+
'section_image',
|
|
182
|
+
[
|
|
183
|
+
'label' => esc_html__( 'Image', 'sociallane-elements' ),
|
|
184
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
185
|
+
]
|
|
186
|
+
);
|
|
187
|
+
|
|
188
|
+
$this->add_control(
|
|
189
|
+
'image',
|
|
190
|
+
[
|
|
191
|
+
'label' => esc_html__( 'Image', 'sociallane-elements' ),
|
|
192
|
+
'type' => Controls_Manager::MEDIA,
|
|
193
|
+
'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src() ],
|
|
194
|
+
]
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
$this->add_control(
|
|
198
|
+
'image_alt',
|
|
199
|
+
[
|
|
200
|
+
'label' => esc_html__( 'Image Alt Text', 'sociallane-elements' ),
|
|
201
|
+
'type' => Controls_Manager::TEXT,
|
|
202
|
+
'description' => esc_html__( 'Required for accessibility', 'sociallane-elements' ),
|
|
203
|
+
'label_block' => true,
|
|
204
|
+
]
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
$this->end_controls_section();
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
private function register_layout_section(): void {
|
|
211
|
+
$this->start_controls_section(
|
|
212
|
+
'section_layout',
|
|
213
|
+
[
|
|
214
|
+
'label' => esc_html__( 'Layout', 'sociallane-elements' ),
|
|
215
|
+
'tab' => Controls_Manager::TAB_CONTENT,
|
|
216
|
+
]
|
|
217
|
+
);
|
|
218
|
+
|
|
219
|
+
$this->add_control(
|
|
220
|
+
'min_height',
|
|
221
|
+
[
|
|
222
|
+
'label' => esc_html__( 'Minimum Section Height', 'sociallane-elements' ),
|
|
223
|
+
'type' => Controls_Manager::SELECT,
|
|
224
|
+
'default' => '60vh',
|
|
225
|
+
'options' => [
|
|
226
|
+
'40vh' => esc_html__( '40vh', 'sociallane-elements' ),
|
|
227
|
+
'50vh' => esc_html__( '50vh', 'sociallane-elements' ),
|
|
228
|
+
'60vh' => esc_html__( '60vh', 'sociallane-elements' ),
|
|
229
|
+
'70vh' => esc_html__( '70vh', 'sociallane-elements' ),
|
|
230
|
+
'80vh' => esc_html__( '80vh', 'sociallane-elements' ),
|
|
231
|
+
'90vh' => esc_html__( '90vh', 'sociallane-elements' ),
|
|
232
|
+
'100vh' => esc_html__( '100vh', 'sociallane-elements' ),
|
|
233
|
+
],
|
|
234
|
+
]
|
|
235
|
+
);
|
|
236
|
+
|
|
237
|
+
$this->end_controls_section();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
protected function render(): void {
|
|
241
|
+
$settings = $this->get_settings_for_display();
|
|
242
|
+
require_once __DIR__ . '/data/view.php';
|
|
243
|
+
$view = prepare_cta_split_view( $settings, $this->get_id() );
|
|
244
|
+
include __DIR__ . '/templates/wrapper.php';
|
|
245
|
+
}
|
|
246
|
+
}
|