Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function ChangeStyle($rcaw, $things, $voice) {
- if($rcaw == 't' && $things == 't' && $voice == 't') {
- return 'rcaw-banner-full-mode ';
- }
- if($rcaw == 'f' && $things == 'f' && $voice == 'f') {
- return 'all-in-none-mode ';
- }
- $key = 0;
- $classMap = [
- 1 => 'rcaw-banner-none-mode',
- 3 => 'things-banner-none-mode',
- 4 => 'classA classB',
- 5 => 'voice-banner-none-mode',
- 6 => 'classC classB',
- 8 => 'class dayoos'
- ];
- $key += $rcaw == 't' ? 1 : 0;
- $key += $things == 't' ? 3 : 0;
- $key += $voice == 't' ? 5 : 0;
- return $classMap[$key];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement