How do I make "dark" the default theme.
Also, why do the popups load a little off screen? It causes horizontal scroll. Tested on 3 different android phones. Works on iPhone though.
How do I make "dark" the default theme.
Also, why do the popups load a little off screen? It causes horizontal scroll. Tested on 3 different android phones. Works on iPhone though.
Change the contents of includeCSS with the following
<if test="hasimportcss:|:is_array( $css['import'] )">
<if test="minifycss:|:$this->settings['use_minify']"><php>$this->minify = array();</php></if>
<foreach loop="cssImport:$css['import'] as $data">
<php>
if( $this->settings['use_minify'] AND ( ! $data['attributes'] OR stripos( $data['attributes'], 'screen' ) !== false ) ) {
$this->minify[] = "{$data['content']}";
}
</php>
<if test="donotminifycss:|:!$this->settings['use_minify'] OR ( $data['attributes'] AND stripos( $data['attributes'], 'screen' ) === false )">
<link rel="stylesheet" type="text/css" {$data['attributes']} href="../../unavailable.html" />
</if>
</foreach>
<if test="csstominify:|:$this->settings['use_minify'] AND count($this->minify)">
<link rel="stylesheet" type="text/css" media='screen' href="../../unavailable.html"trim(ipsRegistry::$vn_full)"}&f={parse expression="str_replace( $this->settings['public_dir'], 'public/', implode( ',', $this->minify ) )"}" />
</if>
</if>
<if test="inlinecss:|:is_array( $css['inline'] ) AND count( $css['inline'] )">
<foreach loop="cssInline:$css['inline'] as $data">
<style type="text/css" {$data['attributes']}>
{$data['content']}
</style>
</foreach>
</if>
<if test="strpos( strtolower( $this->member->user_agent ), 'windows phone os' ) != true"><link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" href="../../unavailable.html" /></if>
<if test="substr($this->member->user_agent, 0, 10) == 'BlackBerry' OR strpos( strtolower( $this->member->user_agent ), 'webos' ) != false OR strpos( strtolower( $this->member->user_agent ), 'presto' ) != false OR strpos( strtolower( $this->member->user_agent ), 'android 2.1' ) != false OR strpos( strtolower( $this->member->user_agent ), 'windows phone os' ) != false">
<link rel="stylesheet" type="text/css" media="screen" href="../../unavailable.html" />
</if>
<if test="strpos( strtolower( $this->member->user_agent ), 'windows phone os' ) != false">
<link rel="stylesheet" type="text/css" media="screen" href="../../unavailable.html" />
</if>
<link rel="stylesheet" type="text/css" title="dark" media="screen" href="../../unavailable.html" />
<script type="text/javascript">
function createCookie(name,value) {
var date = new Date();
date.setTime(date.getTime()+(365*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
if (readCookie('style') != (undefined || '' || null)) {
styleName = readCookie('style');
}
else {
styleName = 'dark';
}
var StyleFile = "color_" + styleName + ".css";
document.writeln('<link rel="stylesheet" type="text/css" href="../../unavailable.html">');
</script>
Ok, another question Tim. I have google adsense on here. How do I make them so they fit mobile but stay same size when viewing on pc?
Err not really sure how to do that. The only ad's you'd be able to fit are googles mobile ones. Anything bigger could cause it to scroll.
Ok. Well on my site I have ads when viewed on a PC and on phone are same size. Which is bad on mobile since its way to big. What's a good solution? Remove ads on mobile theme? How?