缓存css以更新facebook中的样式

时间:2012-04-11 04:35:26

标签: php facebook

Parse error: syntax error, unexpected '?'错误指向“.css之后”:

echo '<fb:recommendations bordercolor="'.$bordercolor.'" colorscheme="'.$colorscheme.'" recommendations="'.$recommTxt.'" height="'.$height.'" width="'.$width.'" header="'.$header.'" site="'.$site.' " css="'.'"<?php bloginfo( 'stylesheet_url' ); ?>/style.css?2"></fb:recommendations>';

我正在尝试对fb推荐框进行一些样式更改,因此css文件的完整路径不可行,因为文件将移动到具有不同域的不同服务器..

我可能忽略了单引号或双引号?我对这些很不好..

请指点/指导我纠正这个问题?谢谢

编辑#2

css="'.'"<?php bloginfo( 'stylesheet_url' ); ?>/style.css?2"

它已更新,但在萤火虫上我看到了:

<fb:recommendations class=" fb_iframe_widget " clear"="" css="http://xxx.com/wp-content/themes/xxx/facebook.css?2></fb:recommendations></div> </div><!--/sidebar--> <div class=" site="xxx.com " header="false" width="245" height="" recommendations="true" colorscheme="White" bordercolor="#fdbc88">
看到这很奇怪。

1 个答案:

答案 0 :(得分:1)

将其更改为:

css="'. bloginfo( 'stylesheet_url' ) . '/style.css?2"

只要它已经是PHP代码 - 您就不应该指定<?php