wpcom.php 909 B

12345678910111213141516171819202122232425262728293031323334353637
  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 Affinity
  8. */
  9. /**
  10. * Adds support for wp.com-specific theme functions.
  11. *
  12. * @global array $themecolors
  13. */
  14. function affinity_wpcom_setup() {
  15. global $themecolors;
  16. // Set theme colors for third party services.
  17. if ( ! isset( $themecolors ) ) {
  18. $themecolors = array(
  19. 'bg' => 'ffffff',
  20. 'border' => 'e8e9ea',
  21. 'text' => '1e1c1b',
  22. 'link' => '99908a',
  23. 'url' => '99908a',
  24. );
  25. }
  26. add_theme_support( 'print-styles' );
  27. }
  28. add_action( 'after_setup_theme', 'affinity_wpcom_setup' );
  29. //WordPress.com specific styles
  30. function affinity_wpcom_styles() {
  31. wp_enqueue_style( 'affinity-wpcom', get_template_directory_uri() . '/inc/style-wpcom.css', '20160411' );
  32. }
  33. add_action( 'wp_enqueue_scripts', 'affinity_wpcom_styles' );