예제 #1
0
 public function create_ghost_settings($settings = array())
 {
     if (!empty($settings['details_bg_color'])) {
         $details_bg_color = new Tribe__Events__Pro__Customizer__Color($settings['details_bg_color']);
         if ($details_bg_color->isDark()) {
             $settings['details_text_color'] = '#f9f9f9';
         } else {
             $settings['details_text_color'] = '#333333';
         }
     }
     return $settings;
 }
예제 #2
0
 public function create_ghost_settings($settings = array())
 {
     if (!empty($settings['bg_color'])) {
         $bg_color = new Tribe__Events__Pro__Customizer__Color($settings['bg_color']);
         $settings['bg_color_light'] = '#' . $bg_color->lighten();
         if ($bg_color->isDark()) {
             $settings['text_color'] = '#f9f9f9';
         } else {
             $settings['text_color'] = '#333333';
         }
     }
     return $settings;
 }
예제 #3
0
 public function create_ghost_settings($settings = array())
 {
     if (!empty($settings['price_bg_color'])) {
         $price_bg_color = new Tribe__Events__Pro__Customizer__Color($settings['price_bg_color']);
         $settings['price_border_color'] = '#' . $price_bg_color->darken(15);
         if ($price_bg_color->isDark()) {
             $settings['price_color'] = '#f9f9f9';
         } else {
             $settings['price_color'] = '#333333';
         }
     }
     return $settings;
 }
예제 #4
0
 public function create_ghost_settings($settings = array())
 {
     if (!empty($settings['table_bg_color'])) {
         $table_bg_color = new Tribe__Events__Pro__Customizer__Color($settings['table_bg_color']);
         $settings['table_header_bg_color'] = '#' . $table_bg_color->darken(70);
         $settings['border_light_color'] = '#' . $table_bg_color->darken(8);
         $settings['border_dark_color'] = '#' . $table_bg_color->darken(15);
         $settings['cell_inactive_bg_color'] = '#' . $table_bg_color->darken(3);
         $settings['cell_inactive_header_bg_color'] = '#' . $table_bg_color->darken(15);
         $settings['cell_header_bg_color'] = '#' . $table_bg_color->darken(30);
     }
     if (!empty($settings['highlight_color'])) {
         $highlight_color = new Tribe__Events__Pro__Customizer__Color($settings['highlight_color']);
         $settings['highlight_color_rgba'] = 'rgba( ' . implode(', ', $highlight_color->getRgb()) . ', .75 )';
         $settings['highlight_border_color'] = '#' . $highlight_color->darken(15);
     }
     return $settings;
 }