150 lines
3.9 KiB
PHP
150 lines
3.9 KiB
PHP
<?php
|
|
|
|
use Helpers\McCansHelpers;
|
|
|
|
return [
|
|
"debug" => true,
|
|
"flex-file-prefix" => "flex",
|
|
|
|
"options-pages" => [
|
|
"Site Options",
|
|
],
|
|
|
|
/**
|
|
* excerpt-length
|
|
*
|
|
* how many words should the wordpress excerpt be
|
|
*/
|
|
"excerpt-length" => 100,
|
|
|
|
|
|
/**
|
|
* guest-class
|
|
*
|
|
* if you want wordpress to automatically append a class to the body_class
|
|
* list when users are not authenticated, put that class name here. it
|
|
* defaults to "guest"
|
|
*/
|
|
"guest-class" => "guest",
|
|
|
|
|
|
/**
|
|
* menu-locations
|
|
*
|
|
* register your individual menu locations here
|
|
*/
|
|
"menu-locations" => [
|
|
"main-nav" => "Main Navigation",
|
|
"shop-nav" => "Shop Navigation",
|
|
"footer-nav" => "Footer Customer Support Navigation",
|
|
],
|
|
|
|
|
|
/**
|
|
* custom-post-types
|
|
*
|
|
* here is where you can define your custom post types easily
|
|
*/
|
|
"custom-post-types" => [
|
|
[
|
|
"slug" => "location",
|
|
"archive" => true,
|
|
"options-pages" => "Locations Landing Page",
|
|
"options" => [
|
|
"supports" => ["title", "thumbnail"],
|
|
]
|
|
],
|
|
[
|
|
"slug" => "testimonial",
|
|
"options" => [
|
|
"supports" => ["title", "thumbnail"],
|
|
]
|
|
],
|
|
],
|
|
|
|
|
|
/**
|
|
* handlebars
|
|
*
|
|
* We use handlebars templating extensivly in this theme and code pattern.
|
|
* You can adjust the defaults for many attributes here.
|
|
*
|
|
* Set this to `false` to disable handlebars functionality completely
|
|
*/
|
|
"handlebars" => [
|
|
"additional-helpers" => [
|
|
"testimonial" => \Helpers\McCansHelpers::testimonial(),
|
|
"locationTile" => \Helpers\McCansHelpers::locationTile(),
|
|
"productTile" => \Helpers\McCansHelpers::productTile(),
|
|
"renderBlock" => \Helpers\McCansHelpers::renderBlock(),
|
|
"renderCallout" => \Helpers\McCansHelpers::renderCallout(),
|
|
"productBox" => \Helpers\McCansHelpers::searchResultBox('product'),
|
|
"pageBox" => \Helpers\McCansHelpers::searchResultBox('page'),
|
|
"categoryBox" => \Helpers\McCansHelpers::categoryBox(),
|
|
"usd" => \Helpers\McCansHelpers::usd(),
|
|
"fourColContent" => \Helpers\McCansHelpers::fourColContent(),
|
|
],
|
|
],
|
|
|
|
|
|
/**
|
|
* enable
|
|
*
|
|
* enable individual wordpress features here
|
|
*/
|
|
"enable" => [
|
|
"post-thumbnails",
|
|
"menus",
|
|
"woocommerce",
|
|
"excerpts",
|
|
],
|
|
|
|
|
|
/**
|
|
* disable
|
|
*
|
|
* disable individual wordpress features here
|
|
*/
|
|
"disable" => [
|
|
"editor",
|
|
"customizer",
|
|
"gutenberg",
|
|
"patterns",
|
|
"emojis",
|
|
"revisions",
|
|
"meta-generator",
|
|
"woocommerce.breadcrumb",
|
|
"woocommerce.sidebar",
|
|
"woocommerce.result_count",
|
|
"woocommerce.page_title",
|
|
"woocommerce.archive_description",
|
|
"woocommerce.reviews",
|
|
],
|
|
|
|
"actions" => [
|
|
"woocommerce_after_single_product" => function () {
|
|
echo site()->render('woocommerce-after-content');
|
|
},
|
|
[
|
|
"hook" => "woocommerce_after_single_product_summary",
|
|
"priority" => 18,
|
|
"callback" => function () {
|
|
echo site()->render('woocommerce-after-content');
|
|
}
|
|
],
|
|
[
|
|
"hook" => "woocommerce_after_single_product_summary",
|
|
"priority" => 19,
|
|
"callback" => function () {
|
|
echo site()->render('flex_callout_text', [
|
|
"headline_1" => "Shop",
|
|
"headline_2" => "Related Products",
|
|
]);
|
|
echo site()->render('woocommerce-before-content', [
|
|
"additionalTopLevelClass" => "related-wrapper"
|
|
]);
|
|
}
|
|
],
|
|
],
|
|
];
|