-
Notifications
You must be signed in to change notification settings - Fork 2
/
example-config.php
146 lines (131 loc) · 3.77 KB
/
example-config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?php
/**
* Example theme configuration
*
* @package Gamajo\ExampleTheme
* @author Gary Jones
* @copyright 2017 Gamajo
* @license MIT
*/
declare( strict_types = 1 );
namespace Gamajo\ExampleTheme;
use Gamajo\GenesisThemeToolkit\BreadcrumbArgs;
use Gamajo\GenesisThemeToolkit\CustomLogo;
use Gamajo\GenesisThemeToolkit\Layouts;
use Gamajo\GenesisThemeToolkit\Templates;
use Gamajo\GenesisThemeToolkit\ThemeSettings;
use Gamajo\GenesisThemeToolkit\WidgetAreas;
use Gamajo\GenesisThemeToolkit\GenesisThemeToolkit;
use Gamajo\ThemeToolkit\ImageSizes;
use Gamajo\ThemeToolkit\ThemeSupport;
use Gamajo\ThemeToolkit\ThemeToolkit;
use Gamajo\ThemeToolkit\Widgets;
$gamajo_theme_support = [
ThemeSupport::ADD => [
'html5' => [
'caption',
'comment-form',
'comment-list',
'gallery',
'search-form',
],
'genesis-accessibility' => [
'headings',
'drop-down-menu',
'rems',
'search-form',
'skip-links',
],
'genesis-responsive-viewport' => '',
'genesis-structural-wraps' => [
'header',
'breadcrumb',
'footer-widgets',
'footer',
],
'genesis-menus' => [
'header' => __( 'Header Navigation Menu', 'your-theme' ),
],
'genesis-style-selector' => [
'your-theme-red' => _x( 'Red', 'Theme style', 'your-theme' ),
'your-theme-green' => _x( 'Green', 'Theme style', 'your-theme' ),
'your-theme-blue' => _x( 'Blue', 'Theme style', 'your-theme' ),
],
'genesis-after-entry-widget-area' => '',
],
];
$gamajo_image_sizes = [
ImageSizes::ADD => [
'article-grid' => [ 480, 320, true ],
'article-header' => [ 1200, 400, true ],
],
];
$gamajo_google_fonts = [
/*
* Translators: If there are characters in your language that are not
* supported by this font, translate this to 'off'. Do not translate
* into your own language.
*/
'Roboto:300,400,500,700' => _x( 'on', 'Roboto font: on or off', 'gamajo' ),
];
$gamajo_templates = [
Templates::UNREGISTER => [
'page-foobar.php',
],
];
$gamajo_genesis_breadcrumb_args = [
BreadcrumbArgs::SEP => ' <span class="dashicons dashicons-arrow-right-alt2"></span> ',
BreadcrumbArgs::LABELS => [
BreadcrumbArgs::PREFIX => '',
],
];
$gamajo_genesis_theme_settings = [
ThemeSettings::FORCE => [
ThemeSettings::POSTS_NAV => 'numeric',
ThemeSettings::SEMANTIC_HEADINGS => 0,
],
ThemeSettings::DEFAULTS => [
ThemeSettings::BLOG_TITLE => 'image',
],
];
$gamajo_genesis_layouts = [
Layouts::UNREGISTER => [
Layouts::CONTENT_SIDEBAR_SIDEBAR,
Layouts::SIDEBAR_CONTENT_SIDEBAR,
Layouts::SIDEBAR_SIDEBAR_CONTENT,
],
Layouts::DEFAULTLAYOUT => __genesis_return_full_width_content()
];
$gamajo_widgets = [
Widgets::UNREGISTER => [
\Genesis_Featured_Page::class,
\Genesis_Featured_Post::class,
\Genesis_User_Profile_Widget::class,
],
];
$gamajo_genesis_widget_areas = [
WidgetAreas::UNREGISTER => [
WidgetAreas::HEADER_RIGHT,
],
];
$gamajo_genesis_custom_logo = [
CustomLogo::WIDTH => 600,
CustomLogo::HEIGHT => 160,
CustomLogo::SITE_DESCRIPTION => false,
];
return [
'Gamajo' => [
'ExampleTheme' => [
ThemeToolkit::THEMESUPPORT => $gamajo_theme_support,
ThemeToolkit::IMAGESIZES => $gamajo_image_sizes,
ThemeToolkit::GOOGLEFONTS => $gamajo_google_fonts,
ThemeToolkit::WIDGETS => $gamajo_widgets,
GenesisThemeToolkit::TEMPLATES => $gamajo_templates,
GenesisThemeToolkit::BREADCRUMBARGS => $gamajo_genesis_breadcrumb_args,
GenesisThemeToolkit::LAYOUTS => $gamajo_genesis_layouts,
GenesisThemeToolkit::THEMESETTINGS => $gamajo_genesis_theme_settings,
GenesisThemeToolkit::WIDGETAREAS => $gamajo_genesis_widget_areas,
GenesisThemeToolkit::CUSTOMLOGO => $gamajo_genesis_custom_logo,
],
],
];