Selaa lähdekoodia

Redhill: clean up conflict.

Allan Cole 4 vuotta sitten
vanhempi
commit
f0255bae5d
2 muutettua tiedostoa jossa 23 lisäystä ja 24 poistoa
  1. 23 3
      redhill/functions.php
  2. 0 21
      redhill/inc/wpcom.php

+ 23 - 3
redhill/functions.php

@@ -81,12 +81,17 @@
 				array(
 				array(
 					'name'  => __( 'Primary', 'redhill' ),
 					'name'  => __( 'Primary', 'redhill' ),
 					'slug'  => 'primary',
 					'slug'  => 'primary',
-					'color' => $primary,
+					'color' => '#CA2017',
 				),
 				),
 				array(
 				array(
 					'name'  => __( 'Secondary', 'redhill' ),
 					'name'  => __( 'Secondary', 'redhill' ),
 					'slug'  => 'secondary',
 					'slug'  => 'secondary',
-					'color' => $secondary,
+					'color' => '#007FDB',
+				),
+				array(
+					'name'  => __( 'Dark Gray', 'redhill' ),
+					'slug'  => 'foreground-dark',
+					'color' => '#111111',
 				),
 				),
 				array(
 				array(
 					'name'  => __( 'Background', 'redhill' ),
 					'name'  => __( 'Background', 'redhill' ),
@@ -96,7 +101,22 @@
 				array(
 				array(
 					'name'  => __( 'Foreground', 'redhill' ),
 					'name'  => __( 'Foreground', 'redhill' ),
 					'slug'  => 'foreground',
 					'slug'  => 'foreground',
-					'color' => $foreground,
+					'color' => '#444444',
+				),
+				array(
+					'name'  => __( 'Light Gray', 'redhill' ),
+					'slug'  => 'foreground-light',
+					'color' => '#666666',
+				),
+				array(
+					'name'  => __( 'Lighter Gray', 'varia' ),
+					'slug'  => 'background-dark',
+					'color' => '#DDDDDD',
+				),
+				array(
+					'name'  => __( 'Subtle Gray', 'varia' ),
+					'slug'  => 'background-light',
+					'color' => '#FAFAFA',
 				),
 				),
 				array(
 				array(
 					'name'  => __( 'Foreground Light', 'redhill' ),
 					'name'  => __( 'Foreground Light', 'redhill' ),

+ 0 - 21
redhill/inc/wpcom.php

@@ -1,21 +0,0 @@
-<?
-/**
- * Adds support for wp.com-specific theme functions.
- *
- * @global array $themecolors
- */
-function redhill_wpcom_setup() {
-	global $themecolors;
-
-	// Set theme colors for third party services.
-	if ( ! isset( $themecolors ) ) {
-		$themecolors = array(
-			'bg'     => 'white', // $config-global--color-background-default
-			'border' => 'DDDDDD', // $config-global--color-border-default
-			'text'   => '222222', // $config-global--color-foreground-default
-			'link'   => 'CA2017', // $config-global--color-primary-default
-			'url'    => 'CA2017', // $config-global--color-primary-default
-		);
-	}
-}
-add_action( 'after_setup_theme', 'redhill_wpcom_setup' );