English 中文(简体)
PHP: Sending CSS into Head than body (Joomla extension)
原标题:PHP: Sending CSS into head instead of body (Joomla extension)

I m使用AutsonSlideShow延伸到Joomla 1.7, 仅作罚款。 The plugin has itsdownsides tho, as it letter CSS 载于索引.php文档中的. /b>。 出于验证原因,我想改变这一点。 <>(如果任何人可能想要重复检查,则在上面作更多的验证错误。”

是否有任何指挥或方法将这一条码的整部分(包括变数)发送至head。 相反,还是对外提供?

这里摘自违约。 网址是我的索引。

<style type="text/css">
.box_skitter_large<?php echo $module->id;?> {width:<?php echo $slidewidth;?>px;height:<?php echo $slideheight; ?>px;}
<?php echo $margin;?>
.box_skitter_small {width:200px;height:200px;}
.box_skitter {border:<?php echo $border;?>px solid <?php echo $bordercolor;?>; background:<?php echo $backgroundcolor;?>}
</style>

它只是整体的 crop缩,但代表了。 如果检查

Greetings, Marian

最佳回答
ob_start();
?>

YOUR CSS HERE

<?php
$style = ob_get_contents();
ob_end_clean();
JFactory::getDocument()->addStyleDeclaration($style);
问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...