Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
Bla bla
<div style="background-color:#12345; border: 1px solid #010245;">
<?php echo $variable ?>
</div>
<?php
$psuroot = str_replace("\\","/",dirname(__FILE__));
$scriptpath = $psuroot;
$psuroot = substr($psuroot,0,strrpos($psuroot, "/"));
$phpext = strrchr (__FILE__, ".");
include($psuroot."/lib/ini.class".$phpext);
include($psuroot."/lib/template.class".$phpext);
include($psuroot."/lib/textdb.class".$phpext);
include($psuroot."/lib/lib".$phpext);
$ini = new Ini($scriptpath."/cfg".$phpext);
$table = new TextDB($scriptpath."/data/data");
$count = $ini->Get("count");
$pos = ($_POS == "") ? 0 : $_POS;
$actpos = 0;
$newscount = 0;
if ($table->DoOpen()) {
if ($table->DoSelect("ORDER date_start DESC",$pos,$count)) {
do {
$id = $table->QueryGet("id");
$date_start = TimestamptoDate($table->QueryGet("date_start"));
$topic = $table->QueryGet("topic");
$shortinfo = ReadContentFromFile($table->QueryGet("shortinfo"),$scriptpath."/data/");
$shortpic = $table->QueryGet("shortpic");
$longinfo = $table->QueryGet("longinfo");
$tpl = new Template($scriptpath."/article.tpl");
$tpl->Replace(":date",$date_start);
$tpl->Replace(":topic",$topic);
$tpl->Replace(":shortinfo",$shortinfo);
if ($shortpic == "") $tpl->Remove("hp1"); else
$tpl->Replace(":shortpic","data/{$shortpic}");
if ($longinfo == "") $tpl->Remove("hp2"); else
$tpl->Replace(":showarticle","show{$phpext}?_ID=$id");
$tpl->CleanUp();
$news .= $tpl->Content();
$newscount++;
} while ($table->QueryNext() && ($newscount < $count));
}
}
$tpl = new Template($scriptpath."/page.tpl");
$tpl->Replace("spacer1",$news);
if ($table->QueryPrevAvailable()) $tpl->Replace(":navigate-prev","index{$phpext}?_POS=".($pos-$count < 0 ? 0 : $pos-$count));
else $tpl->Remove("hp1");
if ($table->QueryNextAvailable()) $tpl->Replace(":navigate-next","index{$phpext}?_POS=".($pos+$count));
else $tpl->Remove("hp2");
$tpl->CleanUp();
$tpl->Output();
?>
$cssfile = "<link rel=\"stylesheet\" type=\"text/css\" href=\"yourfile.css\">
";
echo $cssfile;
#bla.html
...
<link rel="stylesheet" href="css.php?bgcolor=123456" type="text/css">
#css.php:
<?php
header("Content-type: text/css");
?>
body {
background-color: #<?php echo $_GET["bgcolor"] ?>;
}
Fluessig:
Es spricht meines Erachtens nichts dagegen, wenn du davor ein <link rel="stylesheet" type="text/css" href="yourfile.css">
setzt.