wpcom.php 834 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * WordPress.com-specific functions and definitions.
  4. *
  5. * This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
  6. *
  7. * @package Alves
  8. */
  9. /**
  10. * Adds support for wp.com-specific theme functions.
  11. *
  12. * @global array $themecolors
  13. */
  14. function alves_wpcom_setup() {
  15. global $themecolors;
  16. // Set theme colors for third party services.
  17. if ( ! isset( $themecolors ) ) {
  18. $themecolors = array(
  19. 'bg' => 'ffffff', // $config-global--color-background-default
  20. 'border' => '3E7D98', // $config-global--color-border-default
  21. 'text' => '394d55', // $config-global--color-foreground-default
  22. 'link' => '3E7D98', // $config-global--color-primary-default
  23. 'url' => '3E7D98', // $config-global--color-primary-default
  24. );
  25. }
  26. }
  27. add_action( 'after_setup_theme', 'alves_wpcom_setup' );