【问题标题】:Drupal theme a block with html contentDrupal 主题一个带有 html 内容的块
【发布时间】:2013-08-04 20:44:26
【问题描述】:

如何使用纯 HTML 内容为块设置主题

以下是内容类型渲染的代码

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;

}

response->data 是一个 html 文件。

如何为 HTML 文件设置主题以使用特定样式呈现它?

【问题讨论】:

    标签: html drupal themes


    【解决方案1】:

    你必须在 HTML 内容上重新声明类!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-28
      • 2023-03-30
      • 2015-12-04
      • 1970-01-01
      • 2023-03-26
      相关资源
      最近更新 更多