{php} $wp = isset($tplconfig['theme']['logo']['wpic']) && $tplconfig['theme']['logo']['wpic'] ? $tplconfig['theme']['logo']['wpic'] : 'template/default/images/la/logo-mobile-white.png'; $bp = isset($tplconfig['theme']['logo']['bpic']) && $tplconfig['theme']['logo']['bpic'] ? $tplconfig['theme']['logo']['bpic'] : 'template/default/images/la/logo-mobile-black.png'; $mystyle = isset($_COOKIE['mystyle']) ? (string)$_COOKIE['mystyle'] : ''; $defMs = isset($tplconfig['theme']['color']['ms']) ? (string)$tplconfig['theme']['color']['ms'] : 'white'; $dark = false; if ($mystyle === 'black') { $dark = true; } elseif ($mystyle === 'white') { $dark = false; } else { $dark = ($defMs === 'black'); } $pick = $dark ? $bp : $wp; $url = mac_url_img($pick); $base = preg_replace('/[?#].*/', '', $url); if (preg_match('/\.json$/i', $base)) { echo '' . "\n"; } {/php}