SHARE
TWEET

Untitled

a guest Jul 19th, 2019 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function custom_theme_change_custom_theme() {
  2.     global $top_bar_color;
  3.     $top_bar_color = '#2b3643';
  4.     if (strpos($_SERVER['HTTP_HOST'], 'example.com') !== false) {
  5.         switch (returnRoleForTheme()) {
  6.             case 'old': $th = 'theme_1'; $top_bar_color = '#2b3643'; break;
  7.             case 'young': $th = 'theme_2'; $top_bar_color = '#6dad19'; break;
  8.             case 'kid': $th = 'theme_3'; $top_bar_color = '#6dad19'; break;
  9.         }
  10.     }
  11.     return $th;
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top