[英]Drupal theme a block with html content
How do I theme a block with plain HTML content 如何以纯HTML内容为块主题
Following is the code for the content type render 以下是内容类型渲染的代码
function phone_content_type_render($subtype, $conf, $panel_args, $context) {
$block = new stdClass();
$block->module = 'support';
$block->title = '';
$url = "http://time.com"(assumed url)
$response = drupal_http_request($url);
$block->content = render($response->data);
return $block;
}
The response->data is an html file. response-> data是一个html文件。
How can I theme the HTML file to render it with specific style? 如何设置HTML文件的主题以使其具有特定样式?
您必须重新声明HTML内容中的类!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.