Views rows style模板重写代码
Views rows style模板重写代码
发布时间:2016-12-29 来源:查字典编辑
摘要:以下是代码例子。复制代码代码如下:

以下是代码例子。

复制代码 代码如下:

<?php

$nid = $row->nid;

$country = db_result(db_query('SELECT name FROM {term_data} term_data JOIN {term_node} term_node ON term_node.tid = term_data.tid WHERE term_data.vid = %d AND term_node.nid = %d', 1, $nid));

$investment = db_result(db_query('SELECT name FROM {term_data} term_data JOIN {term_node} term_node ON term_node.tid = term_data.tid WHERE term_data.vid = %d AND term_node.nid = %d', 2, $nid));

?>

<div>

<?php echo $fields['title']->content ?>

<div>

<?php echo $fields['body']->content ?>

</div>

</div>

<div>

<div>

<?php echo $fields['body_1']->content ?>

</div>

<div>

<?php echo instanter_country_code($country) ?> <?php echo $fields['created']->content ?> <?php echo instanter_investment_code($investment) ?>

<?php echo $fields['view_node']->content ?>

</div>

</div>

<div></div>

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新php教程学习
热门php教程学习
编程开发子分类