Skip to content

vendi-advertising/vendi-starter-theme

Repository files navigation

Vendi Starter Theme

This theme is the general starter theme for Vendi sites.

Quality Gate Status PHP Composer

Version 2024 change

  • Require PHP 8.1 or greater
  • Removed WebMozart path loader in favor of Symfony's Filesystem component
  • Added stater theme content for:
    • Default menu
    • Logo
  • Add "Early exit" feature to ensure that the following theme requirements are met:
    • PHP Version
    • Composer dependencies installed
    • Required plugins:
      • Advanced Custom Fields Pro
      • Fly Dynamic Image Resizer
      • Classic Editor
  • Removed vendi-advertising/vendi-cpt-from-yaml in favor of ACF withing JSON syncing
  • Added WP Rocket CLI
  • Deprecating Fly images, use https://wordpress.org/plugins/webp-express/
  • Testing ACF options UI
  • Remove ACF-E features not used
  • Added common CPTs:
    • Testimonials
  • Added common components
    • Accordion
    • Basic Copy
    • Blockquote
    • Callout
    • Figure
    • Reusable Content
    • Testimonials

Version 2022 changes

  • Symfony has been upgraded to 6
  • The tracking pixel hook after the opening body has been removed since GTM is usually used
  • Upgraded theme development default template for missing components
  • Added ACF Theme Options with a tab for global JavaScript
  • Content Components are now standard
  • Upgraded reset to more modern
  • Disabled ACF-E CPTs, taxonomies and options, use YAML and PHP instead
  • CPT YAML file now supports taxonomies to a limited degree

Version 2021 changes

Version 2020 changes

The theme has been upgraded to Chris's 2020 brain and installation should be greatly simplified.

Overview of changes

  • The install.sh script has been completely removed
  • The theme's namespace for code in /src/ will now always be Vendi\\Theme unless someone manually changes this.
  • Symfony has been upgraded to version 5
  • The WebMozart path loader has been abstracted away, see the Vendi Component Loader below.
  • Custom Post Types should all be declared in /.config/cpts.yaml. , see the Vendi Custom Post Type Loader below.
  • Asset (CSS and JS) loading logic has been moved into a shared library, see the Vendi Asset Loader below.
  • The WordPress VIP code standards are installed, and you are encouraged to run the theme against that code sniffer for that ruleset.

New components

All themes should now use the open source components created and maintained by Vendi including the following. See each component's documentation page for further details.

  • Vendi Component Loader - Allows loading components such as ACF Flexible Layouts as well as general abstract objects such as headers, footers, heroes and any other asset that can be componentized.
  • Vendi Custom Post Type Loader - Created CPTs directly from a YAML file instead of having to deal with PHP arrays.
  • Vendi Asset Loader - Dynamically loads all CSS and JS files from a common directory in alphabetical order.

Installation

THEMENAMEHERE should be renamed to your theme's folder name. eg. stoptheclot

  • Run git clone [email protected]:vendi-advertising/vendi-starter-theme.git from the theme's folder.
  • mv vendi-starter-theme THEMENAMEHERE
  • cd THEMENEAMEHERE
  • composer install
  • composer up
  • run rm -rf ./.git/ from the theme directory
  • make a new GIT repository https://github.com/organizations/vendi-advertising/repositories/new

Required Plugins

This theme assumes that you have certain plugins installed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •