示例#1
0
文件: setting.php 项目: Hircine/embrr
				<option value="13px" selected="selected">Middle(Default)</option>
				<option value="14px">Large</option>
				<option value="15px">Extra Large</option>
			</select>
			<small>(Set the font size)</small>

			<br /><br />		

			<label>Customize CSS</label>
			<small>(You can put your own CSS hack here, or your Twitter style code)</small>
			<br />
			<label>Tips:</label>
			<small>You must use <a href="http://i.zou.lu/csstidy/" target="_blank" title="Powered by Showfom">CSSTidy</a> to compress your stylesheet.</small>
			<br />
			<textarea type="text" id="myCSS" name="myCSS" value="" /><?php 
        echo getDefCookie("myCSS", "");
        ?>
</textarea>
			</fieldset>

<?php 
}
?>
	<a id="reset_link" href="#" title="You will lose all customized settings!">Reset to default</a>

</form>
	</div>
</div>

<?php 
include 'inc/sidebar.php';
示例#2
0
文件: header.php 项目: Hircine/embrr
<link rel="icon" href="img/favicon.ico" />
<link id="css" href="css/main.css" rel="stylesheet" />
<link href="//cdn.jsdelivr.net/fontawesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" />
<title>Embr / <?php 
echo $title;
?>
</title>
<?php 
$myCSS = getDefCookie("myCSS");
$old_css = "ul.sidebar-menu li.active a";
$new_css = "ul.sidebar-menu a.active";
$myCSS = str_replace($old_css, $new_css, $myCSS);
$fontsize = getDefCookie("fontsize", "13px");
$Bgcolor = getDefCookie("Bgcolor");
$Bgimage = getAvatar(getDefCookie("Bgimage"));
$Bgrepeat = getDefCookie("Bgrepeat", "no-repeat");
if ($title != 'Error') {
    setcookie('loginPage', $_SERVER['PHP_SELF'], $_SERVER['REQUEST_TIME'] + 3600 * 24);
}
?>
<style type="text/css">
<?php 
echo $myCSS;
?>
a:active,a:focus {outline:none}
body {font-size:<?php 
echo $fontsize;
?>
 !important;<?php 
if ($Bgcolor != "") {
    echo 'background-color:' . $Bgcolor . ';';
示例#3
0
文件: status.php 项目: Hircine/embrr
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="embr, open source, php, twitter, oauth" />
<meta name="description" content="Vivid Interface for Twitter" />
<meta name="author" content="disinfeqt, JLHwung" />
<link rel="icon" href="img/favicon.ico" />
<link id="css" href="css/main.css" rel="stylesheet" />
<title>Embr / Tweet</title>
<?php 
$myCSS = getDefCookie("myCSS", "");
$old_css = "ul.sidebar-menu li.active a";
$new_css = "ul.sidebar-menu a.active";
$myCSS = str_replace($old_css, $new_css, $myCSS);
$fontsize = getDefCookie("fontsize", "13px");
$bodyBg = getDefCookie("bodyBg");
$Bgcolor = getDefCookie("Bgcolor");
?>
<style>
<?php 
echo $myCSS;
?>
a:active, a:focus {outline:none}
body {font-size:<?php 
echo $fontsize;
?>
 !important;background-color:<?php 
echo $bodyBg;
?>
;background-image:<?php 
echo $Bgcolor;
?>