126 lines
2.9 KiB
PHP
126 lines
2.9 KiB
PHP
<?php
|
|
|
|
return [
|
|
"debug" => true,
|
|
"flex-file-prefix" => "flex",
|
|
"excerpt-more-text" => "…",
|
|
|
|
"options-pages" => [
|
|
"Site Settings",
|
|
],
|
|
|
|
/**
|
|
* excerpt-length
|
|
*
|
|
* how many words should the wordpress excerpt be
|
|
*/
|
|
"excerpt-length" => 40,
|
|
|
|
|
|
/**
|
|
* 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",
|
|
"footer-nav" => "Footer Navigation",
|
|
],
|
|
|
|
|
|
/**
|
|
* custom-post-types
|
|
*
|
|
* here is where you can define your custom post types easily
|
|
*/
|
|
"custom-post-types" => [
|
|
[
|
|
"slug" => "team-member",
|
|
"archive" => true,
|
|
"options" => [
|
|
"supports" => ["thumbnail", "title", "editor"]
|
|
],
|
|
"options-pages" => ["Team Members Archive Settings"],
|
|
]
|
|
],
|
|
|
|
|
|
/**
|
|
* 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" => [
|
|
"formatDate" => \Helpers\DateFormatter::monthDayYear(),
|
|
],
|
|
],
|
|
|
|
|
|
/**
|
|
* enable
|
|
*
|
|
* enable individual wordpress features here
|
|
*/
|
|
"enable" => [
|
|
"post-thumbnails",
|
|
"menus",
|
|
],
|
|
|
|
/**
|
|
* disable
|
|
*
|
|
* disable individual wordpress features here
|
|
*/
|
|
"disable" => [
|
|
"editor",
|
|
"gutenberg",
|
|
"customizer",
|
|
"emojis",
|
|
"meta-generator",
|
|
"patterns",
|
|
],
|
|
|
|
"shortcodes" => [
|
|
"vc_row" => function ($attr, $content) {
|
|
return "<div class='row'>".do_shortcode($content)."</div>".PHP_EOL;
|
|
},
|
|
"vc_column" => function ($attr, $content) {
|
|
return "<div class='col'>".do_shortcode($content)."</div>".PHP_EOL;
|
|
},
|
|
"vc_column_text" => function ($attr, $content) {
|
|
return "<div>".do_shortcode($content)."</div>".PHP_EOL;
|
|
},
|
|
"vc_single_image" => function ($attr) {
|
|
return "";
|
|
|
|
// code that actually tries to do something with this shortcode content
|
|
$imageID = $attr["image"] ?? "";
|
|
return "<div>".$imageID."</div>";
|
|
},
|
|
"vc_empty_space" => function () {
|
|
return "";
|
|
},
|
|
"vc_raw_html" => function ($attr, $content) {
|
|
$raw = "";
|
|
if (strlen($content) > 0) {
|
|
$raw = base64_decode($content);
|
|
}
|
|
return urldecode($raw);
|
|
},
|
|
]
|
|
];
|