本文整理汇总了PHP中types_render_field函数的典型用法代码示例。如果您正苦于以下问题:PHP types_render_field函数的具体用法?PHP types_render_field怎么用?PHP types_render_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了types_render_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wpcf_shortcode
function wpcf_shortcode($atts, $content = null, $code = '')
{
$atts = array_merge(array('field' => false, 'style' => 'default', 'show_name' => false, 'raw' => false), $atts);
if ($atts['field']) {
return types_render_field($atts['field'], $atts, $content, $code);
}
return '';
}
示例2: wpcf_shortcode
function wpcf_shortcode($atts, $content = null, $code = '')
{
// Switch the post if there is an attribute of 'id' in the shortcode.
$post_id_atts = new WPV_wpcf_switch_post_from_attr_id($atts);
$atts = array_merge(array('field' => false, 'style' => '', 'show_name' => false, 'raw' => false), $atts);
if ($atts['field']) {
return types_render_field($atts['field'], $atts, $content, $code);
}
return '';
}
示例3: wpcf_shortcode
/**
* Shortcode processing.
*
* Called by WP when rendering post on frontend.
* From here follow these:
* @see types_render_field() Renders shortcode. Can be used other ways too.
* @see types_render_field_single() Renders single field. Useful for Repeater.
* Afterwards wrapping options.
*
* @param type $atts
* @param type $content
* @param type $code
* @return string
*/
function wpcf_shortcode($atts, $content = null, $code = '')
{
global $wpcf;
// Switch the post if there is an attribute of 'id' in the shortcode.
$post_id_atts = new WPV_wpcf_switch_post_from_attr_id($atts);
if (!is_array($atts)) {
$wpcf->errors['shortcode_malformed'][] = func_get_args();
return '';
}
$atts = array_merge(array('field' => false, 'usermeta' => false, 'style' => '', 'show_name' => false, 'raw' => false), $atts);
if ($atts['field']) {
return types_render_field($atts['field'], $atts, $content, $code);
}
if ($atts['usermeta']) {
return types_render_usermeta($atts['usermeta'], $atts, $content, $code);
}
return '';
}
示例4: types_render_field
?>
?subject=Contato%20pelo%20Web%20Site%20da%20RBGV" target="_blank" data-ix="btn-redes" class="w-inline-block link link-mail"%5Bemail%5D%5Bexists%5D%3Dyes">
<img src="<?php
echo PW_THEME_URL;
?>
assets/images/icon-mail.svg" class="icon-mail">
<img src="<?php
echo PW_THEME_URL;
?>
assets/images/bg-icon-hover.svg" data-ix="hover-invisivel" class="overlay">
</a>
<?php
}
?>
<?php
$linkedin = types_render_field("linkedin", array("raw" => "true", "separator" => ";"));
?>
<?php
if (!empty($linkedin)) {
?>
<a href="<?php
echo $linkedin;
?>
" target="_blank" data-ix="btn-redes" class="w-inline-block link link-linkedin"%5Blinked-in-link%5D%5Bexists%5D%3Dyes">
<img src="<?php
echo PW_THEME_URL;
?>
assets/images/icon-linkedin.svg" class="icon-mail">
<img src="<?php
echo PW_THEME_URL;
?>
示例5: the_content
<div class="singlePost-content singlePost-content--topPadding singlePost-content--bottomPadding scan">
<div class="text">
<?php
the_content();
?>
</div>
</div>
</div>
<div class="imgGalerie">
<?php
if (types_render_field("medienbilder", array("output" => "raw")) != "") {
?>
<div id="slides">
<?php
echo types_render_field("medienbilder", array("output" => "img", "proportional" => "true", "width" => "990"));
?>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
<script>
$(function(){
$("#slides").slidesjs();
});
$(document).ready(function () {
i = 0;
示例6: site_url
<form action="<?php
echo site_url();
?>
/icsgen.php" method="post">
<input type="hidden" value="<?php
echo types_render_field('startdate');
?>
" name="start" />
<input type="hidden" value="<?php
echo types_render_field('enddate');
?>
" name="end" />
<input type="hidden" value="<?php
echo get_the_title() . ' by ' . $artist;
?>
" name="title" />
<input type="hidden" value="<?php
echo strip_tags(get_the_content());
?>
" name="description" />
<input type="hidden" value="<?php
echo types_render_field('venue');
?>
" name="venue" />
<input type="submit" value="Add to Calender" />
</form>
</div> <!-- /.row -->
</div><!-- /.container -->
<?php
get_footer();
示例7: types_render_field
?>
<strong>Phone: </strong>
<?php
echo types_render_field("phone", array("raw" => "true"));
?>
<p>
<a href="<?php
assist_static_gplus_link(types_render_field("google-plus", array("raw" => true)));
?>
" target="gplus" class="gpus">View on Google+</a>
</p>
<h5>Services:</h5>
<?php
echo types_render_field("services", array("output" => "html"));
?>
</div>
<?php
}
?>
</div>
</div>
</div>
<div class="span3 hidden-tablet">
<?php
get_sidebar();
?>
</div>
示例8: the_title
}
?>
<h3 class="team-member-name"><?php
the_title();
?>
</h3>
<em class="team-member-title"><?php
echo types_render_field("job-title");
?>
</em>
<div class="team-member-bio">
<?php
echo types_render_field("bio");
?>
</div>
</div>
<?php
}
}
?>
</div>
<?php
get_template_part('templates/three-column-widget', 'none');
?>
示例9: the_title
" alt="" />
</div>
<h3><?php
the_title();
?>
</h3>
<h4><?php
echo types_render_field('title', array('output' => 'raw'));
?>
</h4>
<p>
<?php
echo types_render_field('biography', array('output' => 'raw'));
?>
</p>
</div>
</div>
<?php
}
}
?>
<?php
wp_reset_postdata();
?>
</div>
示例10: types_render_field
<?php
$from_price = types_render_field("from-price", array("raw" => "true"));
?>
<div class="trip">
<div class="trip-left">
<div class="trip-photo" style="background-image: url('<?php
echo wp_get_attachment_url(get_post_thumbnail_id());
?>
');">
<?php
if (has_tag('most-popular')) {
?>
<span class="most-popular">Most Popular</span>
<?php
}
?>
</div>
</div>
<div class="trip-right">
<div class="trip-content">
<h2 class="trip-title"><?php
the_title();
?>
</h2>
<p class="trip-summary"><?php
the_excerpt();
?>
</p>
<span class="price">
示例11: get_the_content
$content = get_the_content();
$contents = explode("\n", $content);
$menu_head = get_the_title();
$ownUrl = types_render_field('url-slug');
$ownUrl = trim(strtolower($ownUrl)) == 'home' ? site_url() : site_url() . '/' . $ownUrl;
if (lowertrim(types_render_field('url-slug')) == 'project') {
$menu_head = get_the_title();
$contents = get_menu_post('project');
} elseif (lowertrim(types_render_field('url-slug')) == 'resources') {
$menu_head = get_the_title();
$contents = get_menu_post('resource');
} elseif (lowertrim(types_render_field('url-slug')) == 'news') {
} elseif (lowertrim(types_render_field('url-slug')) == 'shop') {
$menu_head = get_the_title();
$contents = get_menu_post('product');
} elseif (lowertrim(types_render_field('url-slug')) == 'about') {
$menu_head = get_the_title();
$contents = get_menu_post('about');
}
$j = 0;
?>
<li class="dropdown yamm-fw first " ><a class="dropdown-toggle <?php
echo current_url() == $ownUrl ? 'active' : null;
?>
topMenu" href="<?php
echo $ownUrl;
?>
"><?php
echo $menu_head;
示例12: bloginfo
<td valign="top" height="405" bgcolor="#FFFFFF" align="left">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="header_tbl">
<tbody><tr>
<td valign="top" bgcolor="#DCEDE4" align="left"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td class="gluing-images" width="232" valign="top" align="left" rowspan="2"><a style="border-width: 0px; margin: 0px; padding: 0px" href="<?php
bloginfo('siteurl');
?>
" target="_blank">
<img style="border-width: 0px; margin: 0px; padding: 0px" alt="" src="<?php
bloginfo('template_directory');
?>
/core/images/PBLLogo.gif"></a></td>
<td class="fix-td" valign="top" align="left" colspan="2"><img alt="" src="<?php
echo types_render_field('Headerimage', array("output" => "html"));
?>
"></td>
</tr>
<tr>
<td width="415" valign="top" align="right"><font size="3" face="Georgia, Arial, Helvetica, sans-serif"><?php
the_date('F j, Y');
?>
</font></td>
<td width="13" valign="top" align="right"><img width="1" height="38" src="/images/1x1GRNpixel.gif"></td>
</tr>
</tbody></table></td>
</tr>
</tbody>
</table>
示例13: bloginfo
echo $pe;
?>
<h3>
<a href="<?php
bloginfo('home');
?>
/enquiries" class="button">PRESS ENQUIRIES</a>
<div class="divider-left"></div>
<h3>
<?php
$pd = types_render_field("press-downloads-text", array("raw" => "false"));
echo $pd;
?>
</h3>
<a href="#" class="button">DOWNLOAD PRESS PACK</a>
<a href="#" class="button">DOWNLOAD PRESS HISTORY</a>
</div>
</div>
<div class="row">
示例14: get_header
get_header();
?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
// Start the Loop.
while (have_posts()) {
the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part('content', get_post_format());
echo types_render_field('bookemail-url', array("argument1" => "value1", "argument2" => "value2", "argument2" => "value2"));
//Advanced custom fields echo
//echo the_field('text_field')
// Previous/next post navigation.
twentyfourteen_post_nav();
// If comments are open or we have at least one comment, load up the comment template.
if (comments_open() || get_comments_number()) {
comments_template();
}
}
?>
</div><!-- #content -->
</div><!-- #primary -->
<?php
get_sidebar('content');
示例15: post_class
<div <?php
post_class();
?>
>
<div class="col-md-4 col-sm-6 single-profile">
<div class="card">
<h5 class="entry-title">
<a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a>
<p class="specialty"><?php
echo types_render_field("doc-special", array('raw' => 'true'));
?>
</p>
</h5>
<a href="<?php
the_permalink();
?>
" class="doctor-portrait"><?php
the_post_thumbnail('small');
?>
</a>
</div>
</div>
</div>