示例#1
0
      <ul>
        <li><strong><? print $post['content_title'] ?></strong></li>
        <? foreach( $cf as $c) :?>
        <li><strong><? print $c['config']['name']; ?>:</strong> <? print $c['custom_field_value']; ?></li>
        <? endforeach; ?>
      </ul>
    </div>
  </div>
  <? endforeach;  ?>
  <mw module="content/paging" />
  <? else :?>
  
  <h2 class="title"><? print $post['content_title'] ?></h2>
  <br />
  <br />
  <? $cf = get_custom_fields_for_content( $post['id']);

		//p($cf);
		?>
  <ul style="padding-left: 20px">
        <li><strong><? print $post['content_title'] ?></strong></li>
        <? foreach( $cf as $c) :?>
        <li><strong><? print $c['config']['name']; ?>:</strong> <? print $c['custom_field_value']; ?></li>
        <? endforeach; ?>
      </ul>
      <br />
<? print $post['the_content_body'] ?>
  
  
  <? endif; ?>
</div>
示例#2
0
function get_custom_fields($content_id)
{
    return get_custom_fields_for_content($content_id);
}
示例#3
0
<? if(POST_ID): ?>
<editable  post="<? print PAGE_ID ?>" field="custom_field_product_inner_custom_fields_title">
<h4>Item properties</h4></editable>
<?  // p( $params); ?>
<? 
 $fields = get_custom_fields_for_content(POST_ID);
 if(!empty($fields)){
	foreach($fields as $field){
		if($field['config'] != false){ ?>
<mw module="content/custom_field" name="<? print $field['custom_field_name']  ?>" value="<? print $field['custom_field_value']  ?>" />
<?	}
	
	}

 }
 
 
 

 ?>
<? endif; ?>