| @@ -12,16 +12,512 @@ | ||
| 12 | 12 | $config = [ |
| 13 | 13 | 'sections' => [], |
| 14 | 14 | ]; |
| 15 | 15 | |
| 16 | +define( 'SM_HEADINGS_FONT', 'Source Sans Pro' ); | |
| 17 | +define( 'SM_SECONDARY_FONT', 'Source Sans Pro' ); | |
| 18 | +define( 'SM_ACCENT_FONT', 'Source Sans Pro' ); | |
| 19 | +define( 'SM_BODY_FONT', 'Source Sans Pro' ); | |
| 20 | +define( 'SM_LOGO_FONT', 'Source Sans Pro' ); | |
| 21 | + | |
| 22 | +// Recommended Fonts List - Headings | |
| 23 | +$recommended_fonts = array( | |
| 24 | + 'Oswald', | |
| 25 | + 'Roboto', | |
| 26 | + 'Playfair Display', | |
| 27 | + 'Lato', | |
| 28 | + 'Open Sans', | |
| 29 | + 'Exo', | |
| 30 | + 'PT Sans', | |
| 31 | + 'Ubuntu', | |
| 32 | + 'Vollkorn', | |
| 33 | + 'Lora', | |
| 34 | + 'Arvo', | |
| 35 | + 'Josefin Slab', | |
| 36 | + 'Crete Round', | |
| 37 | + 'Kreon', | |
| 38 | + 'Bubblegum Sans', | |
| 39 | + 'The Girl Next Door', | |
| 40 | + 'Pacifico', | |
| 41 | + 'Handlee', | |
| 42 | + 'Satify', | |
| 43 | + 'Pompiere' | |
| 44 | +); | |
| 45 | + | |
| 46 | +// Body | |
| 47 | +$recommended_body_fonts = apply_filters( | |
| 48 | + 'customify_theme_recommended_body_fonts', | |
| 49 | + array( | |
| 50 | + 'Roboto', | |
| 51 | + 'Playfair Display', | |
| 52 | + 'Oswald', | |
| 53 | + 'Lato', | |
| 54 | + 'Open Sans', | |
| 55 | + 'Exo', | |
| 56 | + 'PT Sans', | |
| 57 | + 'Ubuntu', | |
| 58 | + 'Vollkorn', | |
| 59 | + 'Lora', | |
| 60 | + 'Arvo', | |
| 61 | + 'Josefin Slab', | |
| 62 | + 'Crete Round', | |
| 63 | + 'Kreon', | |
| 64 | + 'Bubblegum Sans', | |
| 65 | + 'The Girl Next Door', | |
| 66 | + 'Pacifico', | |
| 67 | + 'Handlee', | |
| 68 | + 'Satify', | |
| 69 | + 'Pompiere', | |
| 70 | + ) | |
| 71 | +); | |
| 72 | + | |
| 16 | 73 | $config['sections'] = [ |
| 17 | 74 | |
| 18 | 75 | /** |
| 76 | + * Fonts - This section will handle all elements fonts (eg. links, headings) | |
| 77 | + */ | |
| 78 | + 'fonts_section' => [ | |
| 79 | + 'title' => esc_html__( 'Fonts', 'customify' ), | |
| 80 | + 'priority' => 3, // This will put this section right after Colors section that has a priority of 2. | |
| 81 | + 'options' => [ | |
| 82 | + /** | |
| 83 | + * Header Section | |
| 84 | + */ | |
| 85 | + 'header_section' => [ | |
| 86 | + 'type' => 'html', | |
| 87 | + 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Header', 'customify' ) . '</span>', | |
| 88 | + ], | |
| 89 | + 'header_site_title_font' => array( | |
| 90 | + 'type' => 'font', | |
| 91 | + 'label' => esc_html__( 'Site Title Font', 'customify' ), | |
| 92 | + 'selector' => '.page-template-template-homepage .entry-header h1', | |
| 93 | + 'callback' => 'typeline_font_cb', | |
| 94 | + | |
| 95 | + 'default' => array( | |
| 96 | + 'font-family' => SM_HEADINGS_FONT, | |
| 97 | + 'font-weight' => '700', | |
| 98 | + 'font-size' => 32, | |
| 99 | + 'line-height' => 1.214, | |
| 100 | + 'letter-spacing' => -0.02, | |
| 101 | + 'text-transform' => 'none', | |
| 102 | + ), | |
| 103 | + | |
| 104 | + // Sub Fields Configuration | |
| 105 | + 'fields' => array( | |
| 106 | + 'font-size' => array( | |
| 107 | + 'min' => 8, | |
| 108 | + 'max' => 90, | |
| 109 | + 'step' => 1, | |
| 110 | + 'unit' => 'px', | |
| 111 | + ), | |
| 112 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 113 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 114 | + 'text-align' => false, | |
| 115 | + 'text-transform' => true, | |
| 116 | + 'text-decoration' => false, | |
| 117 | + ), | |
| 118 | + ), | |
| 119 | + 'header_navigation_font' => array( | |
| 120 | + 'type' => 'font', | |
| 121 | + 'label' => esc_html__( 'Navigation Text', 'customify' ), | |
| 122 | + 'selector' => '.storefront-primary-navigation', | |
| 123 | + 'callback' => 'typeline_font_cb', | |
| 124 | + | |
| 125 | + 'default' => array( | |
| 126 | + 'font-family' => SM_HEADINGS_FONT, | |
| 127 | + 'font-weight' => '400', | |
| 128 | + 'font-size' => 16, | |
| 129 | + 'line-height' => 1.618, | |
| 130 | + 'letter-spacing' => 0, | |
| 131 | + 'text-transform' => 'none', | |
| 132 | + ), | |
| 133 | + | |
| 134 | + // Sub Fields Configuration | |
| 135 | + 'fields' => array( | |
| 136 | + 'font-size' => array( | |
| 137 | + 'min' => 8, | |
| 138 | + 'max' => 90, | |
| 139 | + 'step' => 1, | |
| 140 | + 'unit' => 'px', | |
| 141 | + ), | |
| 142 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 143 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 144 | + 'text-align' => false, | |
| 145 | + 'text-transform' => true, | |
| 146 | + 'text-decoration' => false, | |
| 147 | + ), | |
| 148 | + ), | |
| 149 | + | |
| 150 | + /** | |
| 151 | + * Main Content Section | |
| 152 | + */ | |
| 153 | + 'main_content' => [ | |
| 154 | + 'type' => 'html', | |
| 155 | + 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Main Content', 'customify' ) . '</span>', | |
| 156 | + ], | |
| 157 | + 'main_content_page_title_font' => array( | |
| 158 | + 'type' => 'font', | |
| 159 | + 'label' => esc_html__( 'Page Title Font', 'customify' ), | |
| 160 | + 'selector' => '.page-template-template-homepage .entry-header h1', | |
| 161 | + 'callback' => 'typeline_font_cb', | |
| 162 | + | |
| 163 | + 'default' => array( | |
| 164 | + 'font-family' => SM_HEADINGS_FONT, | |
| 165 | + 'font-weight' => '300', | |
| 166 | + 'font-size' => 59, | |
| 167 | + 'line-height' => 1.214, | |
| 168 | + 'letter-spacing' => -0.02, | |
| 169 | + 'text-transform' => 'none', | |
| 170 | + ), | |
| 171 | + | |
| 172 | + // Sub Fields Configuration | |
| 173 | + 'fields' => array( | |
| 174 | + 'font-size' => array( | |
| 175 | + 'min' => 8, | |
| 176 | + 'max' => 90, | |
| 177 | + 'step' => 1, | |
| 178 | + 'unit' => 'px', | |
| 179 | + ), | |
| 180 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 181 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 182 | + 'text-align' => false, | |
| 183 | + 'text-transform' => true, | |
| 184 | + 'text-decoration' => false, | |
| 185 | + ), | |
| 186 | + ), | |
| 187 | + 'main_content_body_text_font' => array( | |
| 188 | + 'type' => 'font', | |
| 189 | + 'label' => esc_html__( 'Body Text Font', 'customify' ), | |
| 190 | + 'selector' => 'body', | |
| 191 | + 'callback' => 'typeline_body_font_cb', | |
| 192 | + | |
| 193 | + 'default' => array( | |
| 194 | + 'font-family' => SM_BODY_FONT, | |
| 195 | + 'font-weight' => '400', | |
| 196 | + 'font-size' => 16, | |
| 197 | + 'line-height' => 1.618, | |
| 198 | + 'letter-spacing' => 0, | |
| 199 | + 'text-transform' => 'none', | |
| 200 | + ), | |
| 201 | + | |
| 202 | + // Sub Fields Configuration | |
| 203 | + 'fields' => array( | |
| 204 | + 'font-size' => array( | |
| 205 | + 'min' => 8, | |
| 206 | + 'max' => 90, | |
| 207 | + 'step' => 1, | |
| 208 | + 'unit' => 'px', | |
| 209 | + ), | |
| 210 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 211 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 212 | + 'text-align' => false, | |
| 213 | + 'text-transform' => true, | |
| 214 | + 'text-decoration' => false, | |
| 215 | + ), | |
| 216 | + ), | |
| 217 | + 'main_content_quote_block_font' => array( | |
| 218 | + 'type' => 'font', | |
| 219 | + 'label' => esc_html__( 'Quote Block Font', 'customify' ), | |
| 220 | + 'selector' => 'blockquote', | |
| 221 | + 'callback' => 'typeline_font_cb', | |
| 222 | + 'default' => array( | |
| 223 | + 'font-family' => SM_ACCENT_FONT, | |
| 224 | + 'font-weight' => 'italic', | |
| 225 | + 'font-size' => 18, | |
| 226 | + 'line-height' => 1.67, | |
| 227 | + 'letter-spacing' => 0, | |
| 228 | + 'text-transform' => 'none', | |
| 229 | + ), | |
| 230 | + | |
| 231 | + // Sub Fields Configuration | |
| 232 | + 'fields' => array( | |
| 233 | + 'font-size' => array( | |
| 234 | + 'min' => 8, | |
| 235 | + 'max' => 90, | |
| 236 | + 'step' => 1, | |
| 237 | + 'unit' => 'px', | |
| 238 | + ), | |
| 239 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 240 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 241 | + 'text-align' => false, | |
| 242 | + 'text-transform' => true, | |
| 243 | + 'text-decoration' => false, | |
| 244 | + ), | |
| 245 | + ), | |
| 246 | + | |
| 247 | + 'main_content_heading_1_font' => [ | |
| 248 | + 'type' => 'font', | |
| 249 | + 'label' => esc_html__( 'Heading 1', 'customify' ), | |
| 250 | + 'desc' => esc_html__( '', 'customify' ), | |
| 251 | + 'selector' => '.alpha, h1', | |
| 252 | + | |
| 253 | + 'default' => array( | |
| 254 | + 'font-family' => SM_HEADINGS_FONT, | |
| 255 | + 'font-weight' => '300', | |
| 256 | + 'font-size' => 42, | |
| 257 | + 'line-height' => 1.214, | |
| 258 | + 'letter-spacing' => -0.02, | |
| 259 | + 'text-transform' => 'none', | |
| 260 | + ), | |
| 261 | + | |
| 262 | + // Sub Fields Configuration | |
| 263 | + 'fields' => array( | |
| 264 | + 'font-size' => array( | |
| 265 | + 'min' => 8, | |
| 266 | + 'max' => 90, | |
| 267 | + 'step' => 1, | |
| 268 | + 'unit' => 'px', | |
| 269 | + ), | |
| 270 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 271 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 272 | + 'text-align' => false, | |
| 273 | + 'text-transform' => true, | |
| 274 | + 'text-decoration' => false, | |
| 275 | + ), | |
| 276 | + ], | |
| 277 | + | |
| 278 | + 'main_content_heading_2_font' => [ | |
| 279 | + 'type' => 'font', | |
| 280 | + 'label' => esc_html__( 'Heading 2', 'customify' ), | |
| 281 | + 'desc' => esc_html__( '', 'customify' ), | |
| 282 | + 'selector' => '.beta, h2', | |
| 283 | + | |
| 284 | + 'default' => array( | |
| 285 | + 'font-family' => SM_HEADINGS_FONT, | |
| 286 | + 'font-weight' => '300', | |
| 287 | + 'font-size' => 32, | |
| 288 | + 'line-height' => 1.214, | |
| 289 | + 'letter-spacing' => 0, | |
| 290 | + 'text-transform' => 'none', | |
| 291 | + ), | |
| 292 | + | |
| 293 | + // Sub Fields Configuration | |
| 294 | + 'fields' => array( | |
| 295 | + 'font-size' => array( | |
| 296 | + 'min' => 8, | |
| 297 | + 'max' => 90, | |
| 298 | + 'step' => 1, | |
| 299 | + 'unit' => 'px', | |
| 300 | + ), | |
| 301 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 302 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 303 | + 'text-align' => false, | |
| 304 | + 'text-transform' => true, | |
| 305 | + 'text-decoration' => false, | |
| 306 | + ), | |
| 307 | + ], | |
| 308 | + | |
| 309 | + 'main_content_heading_4_font' => [ | |
| 310 | + 'type' => 'font', | |
| 311 | + 'label' => esc_html__( 'Heading 4', 'customify' ), | |
| 312 | + 'desc' => esc_html__( '', 'customify' ), | |
| 313 | + 'selector' => '.delta, h4', | |
| 314 | + | |
| 315 | + 'default' => array( | |
| 316 | + 'font-family' => SM_HEADINGS_FONT, | |
| 317 | + 'font-weight' => '300', | |
| 318 | + 'font-size' => 23, | |
| 319 | + 'line-height' => 1.6, | |
| 320 | + 'letter-spacing' => 0, | |
| 321 | + 'text-transform' => 'none', | |
| 322 | + ), | |
| 323 | + | |
| 324 | + // Sub Fields Configuration | |
| 325 | + 'fields' => array( | |
| 326 | + 'font-size' => array( | |
| 327 | + 'min' => 8, | |
| 328 | + 'max' => 90, | |
| 329 | + 'step' => 1, | |
| 330 | + 'unit' => 'px', | |
| 331 | + ), | |
| 332 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 333 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 334 | + 'text-align' => false, | |
| 335 | + 'text-transform' => true, | |
| 336 | + 'text-decoration' => false, | |
| 337 | + ), | |
| 338 | + ], | |
| 339 | + | |
| 340 | + 'main_content_heading_5_font' => [ | |
| 341 | + 'type' => 'font', | |
| 342 | + 'label' => esc_html__( 'Heading 5', 'customify' ), | |
| 343 | + 'desc' => esc_html__( '', 'customify' ), | |
| 344 | + 'selector' => 'h5', | |
| 345 | + | |
| 346 | + 'default' => array( | |
| 347 | + 'font-family' => SM_HEADINGS_FONT, | |
| 348 | + 'font-weight' => '300', | |
| 349 | + 'font-size' => 14, | |
| 350 | + 'line-height' => 1.6, | |
| 351 | + 'letter-spacing' => 0, | |
| 352 | + 'text-transform' => 'none', | |
| 353 | + ), | |
| 354 | + | |
| 355 | + // Sub Fields Configuration | |
| 356 | + 'fields' => array( | |
| 357 | + 'font-size' => array( | |
| 358 | + 'min' => 8, | |
| 359 | + 'max' => 90, | |
| 360 | + 'step' => 1, | |
| 361 | + 'unit' => 'px', | |
| 362 | + ), | |
| 363 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 364 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 365 | + 'text-align' => false, | |
| 366 | + 'text-transform' => true, | |
| 367 | + 'text-decoration' => false, | |
| 368 | + ), | |
| 369 | + ], | |
| 370 | + | |
| 371 | + 'main_content_heading_6_font' => [ | |
| 372 | + 'type' => 'font', | |
| 373 | + 'label' => esc_html__( 'Heading 6', 'customify' ), | |
| 374 | + 'desc' => esc_html__( '', 'customify' ), | |
| 375 | + 'selector' => 'h6', | |
| 376 | + | |
| 377 | + 'default' => array( | |
| 378 | + 'font-family' => SM_HEADINGS_FONT, | |
| 379 | + 'font-weight' => '300', | |
| 380 | + 'font-size' => 11, | |
| 381 | + 'line-height' => 1.6, | |
| 382 | + 'letter-spacing' => 0, | |
| 383 | + 'text-transform' => 'none', | |
| 384 | + ), | |
| 385 | + | |
| 386 | + // Sub Fields Configuration | |
| 387 | + 'fields' => array( | |
| 388 | + 'font-size' => array( | |
| 389 | + 'min' => 8, | |
| 390 | + 'max' => 90, | |
| 391 | + 'step' => 1, | |
| 392 | + 'unit' => 'px', | |
| 393 | + ), | |
| 394 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 395 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 396 | + 'text-align' => false, | |
| 397 | + 'text-transform' => true, | |
| 398 | + 'text-decoration' => false, | |
| 399 | + ), | |
| 400 | + ], | |
| 401 | + | |
| 402 | + 'main_content_heading_3_font' => [ | |
| 403 | + 'type' => 'font', | |
| 404 | + 'label' => esc_html__( 'Heading 3', 'customify' ), | |
| 405 | + 'desc' => esc_html__( '', 'customify' ), | |
| 406 | + 'selector' => '.gamma, h3', | |
| 407 | + | |
| 408 | + 'default' => array( | |
| 409 | + 'font-family' => SM_HEADINGS_FONT, | |
| 410 | + 'font-weight' => '300', | |
| 411 | + 'font-size' => 26, | |
| 412 | + 'line-height' => 1.6, | |
| 413 | + 'letter-spacing' => 0, | |
| 414 | + 'text-transform' => 'none', | |
| 415 | + ), | |
| 416 | + | |
| 417 | + // Sub Fields Configuration | |
| 418 | + 'fields' => array( | |
| 419 | + 'font-size' => array( | |
| 420 | + 'min' => 8, | |
| 421 | + 'max' => 90, | |
| 422 | + 'step' => 1, | |
| 423 | + 'unit' => 'px', | |
| 424 | + ), | |
| 425 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 426 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 427 | + 'text-align' => false, | |
| 428 | + 'text-transform' => true, | |
| 429 | + 'text-decoration' => false, | |
| 430 | + ), | |
| 431 | + ], | |
| 432 | + | |
| 433 | + /** | |
| 434 | + * Buttons Section | |
| 435 | + */ | |
| 436 | + 'buttons_content' => [ | |
| 437 | + 'type' => 'html', | |
| 438 | + 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Buttons', 'customify' ) . '</span>', | |
| 439 | + ], | |
| 440 | + 'buttons_font' => [ | |
| 441 | + 'type' => 'font', | |
| 442 | + 'label' => esc_html__( 'Buttons', 'customify' ), | |
| 443 | + 'desc' => esc_html__( '', 'customify' ), | |
| 444 | + 'selector' => '.added_to_cart, .button, button, input[type=button], input[type=reset], input[type=submit]', | |
| 445 | + | |
| 446 | + 'default' => array( | |
| 447 | + 'font-family' => SM_SECONDARY_FONT, | |
| 448 | + 'font-weight' => '600', | |
| 449 | + 'font-size' => 14, | |
| 450 | + 'line-height' => 1.618, | |
| 451 | + 'letter-spacing' => 0, | |
| 452 | + 'text-transform' => 'none', | |
| 453 | + ), | |
| 454 | + | |
| 455 | + // Sub Fields Configuration | |
| 456 | + 'fields' => array( | |
| 457 | + 'font-size' => array( | |
| 458 | + 'min' => 8, | |
| 459 | + 'max' => 90, | |
| 460 | + 'step' => 1, | |
| 461 | + 'unit' => 'px', | |
| 462 | + ), | |
| 463 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 464 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 465 | + 'text-align' => false, | |
| 466 | + 'text-transform' => true, | |
| 467 | + 'text-decoration' => false, | |
| 468 | + ), | |
| 469 | + ], | |
| 470 | + | |
| 471 | + | |
| 472 | + /** | |
| 473 | + * Cards Section | |
| 474 | + */ | |
| 475 | + 'cards_content' => [ | |
| 476 | + 'type' => 'html', | |
| 477 | + 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Cards', 'customify' ) . '</span>', | |
| 478 | + ], | |
| 479 | + | |
| 480 | + 'cards_price_font' => [ | |
| 481 | + 'type' => 'font', | |
| 482 | + 'label' => esc_html__( 'Price', 'customify' ), | |
| 483 | + 'desc' => esc_html__( '', 'customify' ), | |
| 484 | + 'selector' => 'ul.products li.product .price', | |
| 485 | + | |
| 486 | + 'default' => array( | |
| 487 | + 'font-family' => SM_BODY_FONT, | |
| 488 | + 'font-weight' => '400', | |
| 489 | + 'font-size' => 14, | |
| 490 | + 'line-height' => 1.7, | |
| 491 | + 'letter-spacing' => 0, | |
| 492 | + 'text-transform' => 'none', | |
| 493 | + ), | |
| 494 | + | |
| 495 | + // Sub Fields Configuration | |
| 496 | + 'fields' => array( | |
| 497 | + 'font-size' => array( | |
| 498 | + 'min' => 8, | |
| 499 | + 'max' => 90, | |
| 500 | + 'step' => 1, | |
| 501 | + 'unit' => 'px', | |
| 502 | + ), | |
| 503 | + 'line-height' => array( 0, 2, 0.1, '' ), | |
| 504 | + 'letter-spacing' => array( - 1, 2, 0.01, 'em' ), | |
| 505 | + 'text-align' => false, | |
| 506 | + 'text-transform' => true, | |
| 507 | + 'text-decoration' => false, | |
| 508 | + ), | |
| 509 | + ], | |
| 510 | + | |
| 511 | + ], | |
| 512 | + ], | |
| 513 | + | |
| 514 | + /** | |
| 19 | 515 | * COLORS - This section will handle all elements colors (eg. links, headings) |
| 20 | 516 | */ |
| 21 | 517 | 'colors_section' => [ |
| 22 | - 'title' => __( 'Colors', 'customify' ), | |
| 23 | - 'priority' => 2, // This will put this section right after Style Manager that has a priority of 1. | |
| 518 | + 'title' => esc_html__( 'Colors', 'customify' ), | |
| 519 | + 'priority' => 3, // This will put this section right after Style Manager that has a priority of 1. | |
| 24 | 520 | 'options' => [ |
| 25 | 521 | /** |
| 26 | 522 | * Header Section |
| 27 | 523 | */ |
| @@ -30,9 +526,9 @@ | ||
| 30 | 526 | 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Header', 'storefront' ) . '</span>', |
| 31 | 527 | ], |
| 32 | 528 | 'header_navigation_text_color' => [ |
| 33 | 529 | 'type' => 'color', |
| 34 | - 'label' => __( 'Header Text Color', 'customify' ), | |
| 530 | + 'label' => esc_html__( 'Header Text Color', 'customify' ), | |
| 35 | 531 | 'live' => true, |
| 36 | 532 | 'default' => '#404040', |
| 37 | 533 | 'css' => [ |
| 38 | 534 | [ |
| @@ -62,9 +558,9 @@ | ||
| 62 | 558 | ], |
| 63 | 559 | ], |
| 64 | 560 | 'header_navigation_links_color' => [ |
| 65 | 561 | 'type' => 'color', |
| 66 | - 'label' => __( 'Navigation Links Color', 'customify' ), | |
| 562 | + 'label' => esc_html__( 'Navigation Links Color', 'customify' ), | |
| 67 | 563 | 'live' => true, |
| 68 | 564 | 'default' => '#333333', |
| 69 | 565 | 'css' => [ |
| 70 | 566 | [ |
| @@ -96,9 +592,9 @@ | ||
| 96 | 592 | ], |
| 97 | 593 | ], |
| 98 | 594 | 'header_navigation_links_active_color' => [ |
| 99 | 595 | 'type' => 'color', |
| 100 | - 'label' => __( 'Links Active Color', 'customify' ), | |
| 596 | + 'label' => esc_html__( 'Links Active Color', 'customify' ), | |
| 101 | 597 | 'live' => true, |
| 102 | 598 | 'default' => '#282828', |
| 103 | 599 | 'css' => [ |
| 104 | 600 | [ |
| @@ -114,9 +610,9 @@ | ||
| 114 | 610 | ], |
| 115 | 611 | ], |
| 116 | 612 | 'header_background_color' => [ |
| 117 | 613 | 'type' => 'color', |
| 118 | - 'label' => __( 'Header Background', 'customify' ), | |
| 614 | + 'label' => esc_html__( 'Header Background', 'customify' ), | |
| 119 | 615 | 'live' => true, |
| 120 | 616 | 'default' => '#ffffff', |
| 121 | 617 | 'css' => [ |
| 122 | 618 | [ |
| @@ -187,9 +683,9 @@ | ||
| 187 | 683 | 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Main Content', 'storefront' ) . '</span>', |
| 188 | 684 | ], |
| 189 | 685 | 'page_title_color' => [ |
| 190 | 686 | 'type' => 'color', |
| 191 | - 'label' => __( 'Page Title Color', 'customify' ), | |
| 687 | + 'label' => esc_html__( 'Page Title Color', 'customify' ), | |
| 192 | 688 | 'live' => true, |
| 193 | 689 | 'default' => '#282828', |
| 194 | 690 | 'css' => [ |
| 195 | 691 | [ |
| @@ -200,9 +696,9 @@ | ||
| 200 | 696 | ], |
| 201 | 697 | ], |
| 202 | 698 | 'body_text_color' => [ |
| 203 | 699 | 'type' => 'color', |
| 204 | - 'label' => __( 'Body Text Color', 'customify' ), | |
| 700 | + 'label' => esc_html__( 'Body Text Color', 'customify' ), | |
| 205 | 701 | 'live' => true, |
| 206 | 702 | 'default' => '#6d6d6d', |
| 207 | 703 | 'css' => [ |
| 208 | 704 | [ |
| @@ -267,9 +763,9 @@ | ||
| 267 | 763 | ], |
| 268 | 764 | ], |
| 269 | 765 | 'body_link_color' => [ |
| 270 | 766 | 'type' => 'color', |
| 271 | - 'label' => __( 'Body Link Color', 'customify' ), | |
| 767 | + 'label' => esc_html__( 'Body Link Color', 'customify' ), | |
| 272 | 768 | 'live' => true, |
| 273 | 769 | 'default' => '#96588A', |
| 274 | 770 | 'css' => [ |
| 275 | 771 | [ |
| @@ -307,9 +803,9 @@ | ||
| 307 | 803 | ], |
| 308 | 804 | ], |
| 309 | 805 | 'body_link_active_color' => [ |
| 310 | 806 | 'type' => 'color', |
| 311 | - 'label' => __( 'Body Link Active Color', 'customify' ), | |
| 807 | + 'label' => esc_html__( 'Body Link Active Color', 'customify' ), | |
| 312 | 808 | 'live' => true, |
| 313 | 809 | 'default' => '#282828', |
| 314 | 810 | 'css' => [ |
| 315 | 811 | [ |
| @@ -533,9 +1029,9 @@ | ||
| 533 | 1029 | 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Buttons', 'storefront' ) . '</span>', |
| 534 | 1030 | ], |
| 535 | 1031 | 'buttons_text_color' => [ |
| 536 | 1032 | 'type' => 'color', |
| 537 | - 'label' => __( 'Text Color', 'customify' ), | |
| 1033 | + 'label' => esc_html__( 'Text Color', 'customify' ), | |
| 538 | 1034 | 'live' => true, |
| 539 | 1035 | 'default' => '#333333', |
| 540 | 1036 | 'css' => [ |
| 541 | 1037 | [ |
| @@ -553,9 +1049,9 @@ | ||
| 553 | 1049 | ], |
| 554 | 1050 | ], |
| 555 | 1051 | 'buttons_background_color' => [ |
| 556 | 1052 | 'type' => 'color', |
| 557 | - 'label' => __( 'Background Color', 'customify' ), | |
| 1053 | + 'label' => esc_html__( 'Background Color', 'customify' ), | |
| 558 | 1054 | 'live' => true, |
| 559 | 1055 | 'default' => '#eeeeee', |
| 560 | 1056 | 'css' => [ |
| 561 | 1057 | [ |
| @@ -596,9 +1092,9 @@ | ||
| 596 | 1092 | ], |
| 597 | 1093 | ], |
| 598 | 1094 | 'buttons_alt_text_color' => [ |
| 599 | 1095 | 'type' => 'color', |
| 600 | - 'label' => __( 'Alternate Text Color', 'customify' ), | |
| 1096 | + 'label' => esc_html__( 'Alternate Text Color', 'customify' ), | |
| 601 | 1097 | 'live' => true, |
| 602 | 1098 | 'default' => '#ffffff', |
| 603 | 1099 | 'css' => [ |
| 604 | 1100 | [ |
| @@ -608,9 +1104,9 @@ | ||
| 608 | 1104 | ], |
| 609 | 1105 | ], |
| 610 | 1106 | 'buttons_alt_background_color' => [ |
| 611 | 1107 | 'type' => 'color', |
| 612 | - 'label' => __( 'Alternate Background Color', 'customify' ), | |
| 1108 | + 'label' => esc_html__( 'Alternate Background Color', 'customify' ), | |
| 613 | 1109 | 'live' => true, |
| 614 | 1110 | 'default' => '#333333', |
| 615 | 1111 | 'css' => [ |
| 616 | 1112 | [ |
| @@ -654,9 +1150,9 @@ | ||
| 654 | 1150 | 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Footer', 'storefront' ) . '</span>', |
| 655 | 1151 | ], |
| 656 | 1152 | 'footer_text_color' => [ |
| 657 | 1153 | 'type' => 'color', |
| 658 | - 'label' => __( 'Footer Text Color', 'customify' ), | |
| 1154 | + 'label' => esc_html__( 'Footer Text Color', 'customify' ), | |
| 659 | 1155 | 'live' => true, |
| 660 | 1156 | 'default' => '#6d6d6d', |
| 661 | 1157 | 'css' => [ |
| 662 | 1158 | [ |
| @@ -666,9 +1162,9 @@ | ||
| 666 | 1162 | ], |
| 667 | 1163 | ], |
| 668 | 1164 | 'footer_links_color' => [ |
| 669 | 1165 | 'type' => 'color', |
| 670 | - 'label' => __( 'Footer Links Color', 'customify' ), | |
| 1166 | + 'label' => esc_html__( 'Footer Links Color', 'customify' ), | |
| 671 | 1167 | 'live' => true, |
| 672 | 1168 | 'default' => '#333333', |
| 673 | 1169 | 'css' => [ |
| 674 | 1170 | [ |
| @@ -678,9 +1174,9 @@ | ||
| 678 | 1174 | ], |
| 679 | 1175 | ], |
| 680 | 1176 | 'footer_heading_color' => [ |
| 681 | 1177 | 'type' => 'color', |
| 682 | - 'label' => __( 'Footer Headings Color', 'customify' ), | |
| 1178 | + 'label' => esc_html__( 'Footer Headings Color', 'customify' ), | |
| 683 | 1179 | 'live' => true, |
| 684 | 1180 | 'default' => '#333333', |
| 685 | 1181 | 'css' => [ |
| 686 | 1182 | [ |
| @@ -690,9 +1186,9 @@ | ||
| 690 | 1186 | ], |
| 691 | 1187 | ], |
| 692 | 1188 | 'footer_background_color' => [ |
| 693 | 1189 | 'type' => 'color', |
| 694 | - 'label' => __( 'Footer Background', 'customify' ), | |
| 1190 | + 'label' => esc_html__( 'Footer Background', 'customify' ), | |
| 695 | 1191 | 'live' => true, |
| 696 | 1192 | 'default' => '#f0f0f0', |
| 697 | 1193 | 'css' => [ |
| 698 | 1194 | [ |
| @@ -711,9 +1207,9 @@ | ||
| 711 | 1207 | ], |
| 712 | 1208 | |
| 713 | 1209 | 'woocommerce_info_background_color' => [ |
| 714 | 1210 | 'type' => 'background-color', |
| 715 | - 'label' => __( 'WooCommerce Info', 'customify' ), | |
| 1211 | + 'label' => esc_html__( 'WooCommerce Info', 'customify' ), | |
| 716 | 1212 | 'live' => true, |
| 717 | 1213 | 'default' => '#3d9cd2', |
| 718 | 1214 | 'css' => [ |
| 719 | 1215 | [ |
| @@ -730,8 +1226,9 @@ | ||
| 730 | 1226 | * Add the Style Manager cross-theme Customizer section. |
| 731 | 1227 | */ |
| 732 | 1228 | $config['sections']['style_manager_section'] = [ |
| 733 | 1229 | 'options' => [ |
| 1230 | + // Colors connected fields. | |
| 734 | 1231 | 'sm_color_primary' => [ |
| 735 | 1232 | 'connected_fields' => [ |
| 736 | 1233 | 'body_link_color', |
| 737 | 1234 | 'main_content_heading_4_color', |
| @@ -784,8 +1281,34 @@ | ||
| 784 | 1281 | ], |
| 785 | 1282 | 'sm_light_tertiary' => [ |
| 786 | 1283 | 'connected_fields' => [], |
| 787 | 1284 | ], |
| 1285 | + | |
| 1286 | + // Fonts connected fields. | |
| 1287 | + 'sm_font_primary' => [ | |
| 1288 | + 'connected_fields' => [ | |
| 1289 | + 'main_content_page_title_font', | |
| 1290 | + 'main_content_quote_block_font', | |
| 1291 | + 'main_content_heading_1_font', | |
| 1292 | + 'main_content_heading_2_font', | |
| 1293 | + 'main_content_heading_3_font', | |
| 1294 | + ], | |
| 1295 | + ], | |
| 1296 | + 'sm_font_secondary' => [ | |
| 1297 | + 'connected_fields' => [ | |
| 1298 | + 'main_content_heading_4_font', | |
| 1299 | + 'main_content_heading_5_font', | |
| 1300 | + 'main_content_heading_6_font', | |
| 1301 | + 'buttons_font', | |
| 1302 | + 'header_navigation_font' | |
| 1303 | + ], | |
| 1304 | + ], | |
| 1305 | + 'sm_font_body' => [ | |
| 1306 | + 'connected_fields' => [ | |
| 1307 | + 'main_content_body_text_font', | |
| 1308 | + 'cards_price_font' | |
| 1309 | + ], | |
| 1310 | + ], | |
| 788 | 1311 | ], |
| 789 | 1312 | ]; |
| 790 | 1313 | |
| 791 | 1314 | /** |
| @@ -804,5 +1327,5 @@ | ||
| 804 | 1327 | 'storefront_header_link_color', |
| 805 | 1328 | 'background_color', |
| 806 | 1329 | ]; |
| 807 | 1330 | |
| 808 | -// You don't need to return anything. | |
| 1331 | +// You don't need to return anything. | |