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 ''; }
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 ''; }
/** * 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 ''; }
?> ?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; ?>
<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;
<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();
?> <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>
} ?> <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'); ?>
" 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>
<?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">
$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;
<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>
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">
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');
<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>
<?php $img_href = wp_get_attachment_image_src(get_post_thumbnail_id(), array(500, 500)); global $count; $is_active = $count != 1 ? '' : ' active'; $left_apt = types_render_field("left-apartments"); $post_title = $post->post_title; $id = $post->ID; $site_address = get_metadata('post', $id, 'wpcf-web-site-address', true); if (empty($site_address)) { $site_address = 'noset'; } $camera = get_metadata('post', $id, 'wpcf-online-camera', true); if (empty($camera)) { $camera = 'noset'; } $sold_text = get_metadata('post', $id, 'wpcf-left-sold-apartment', true); //$sold_text = $sold_text == 1 ? 'продано' : 'залишилось'; ?> <?php echo "<div id='number-apt-{$count}' class='smalligon {$is_active}' data-number='{$left_apt}' data-id={$id} data-camera='{$camera}' data-title='{$post_title}' data-link='{$site_address}' data-soldText='{$sold_text}' data-next=''>"; ?> <svg class="svg-graphic" width="95" height="96" viewBox="0 0 95 96" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"> <g> <clipPath id="hex-mask_small"> <polygon points="47,0 0,27 0,70 47,96 95,70 95,27 47,0" /> </clipPath> </g> <a xlink:href="javascript:void(0);"> <polygon fill="#fff" points="47,0 0,27 0,70 47,96 95,70 95,27 47,0" transform="" />
function jbaths_shortcode_bathdls($atts) { global $post; // only render shortcode on the frontend if (is_admin()) { return; } $a = shortcode_atts(array('cat' => '', 'att' => 'true', 'style' => 'p', 'bathscat' => ''), $atts); $oot = ''; if ($a['cat'] == '') { $oot .= '<!-- "Media Category" missing? -->'; } else { if (in_array($a['cat'], array('all-specifications', 'all-manuals'))) { $mcat = substr($a['cat'], 4); /* * this will be a recursive call, used on ALL BATH MANUALS * & SPECIFICATION SHEETS pages, to loop through all Tubs * in a particular "bathscat" & then list all specs/manuals for each... * with hardcoded term_id match to save another query or 2 */ $term_id = false; switch ($a['bathscat']) { case 'comfort': $term_id = 6; break; case 'luxury': $term_id = 5; break; case 'primo': $term_id = 7; break; case 'signature': $term_id = 8; break; } if ($term_id == false) { $oot .= '<!-- "bathscat" missing? -->'; } else { $oot .= '<!-- bathscat = ' . $a['bathscat'] . ' : ' . $term_id . ' -->'; $args = array('post_type' => 'bathtubs', 'posts_per_page' => -1, 'post_status' => 'publish', 'orderby' => 'title', 'order' => 'DESC', 'tax_query' => array(array('taxonomy' => 'collection', 'field' => 'term_id', 'terms' => $term_id))); $baths = get_posts($args); $n = count($baths); $oot .= '<!-- ' . $n . ' tubs? -->'; $b = ''; while ($n--) { // loop through all baths in given bathscat $b = '<p><strong>' . $baths[$n]->post_title . '</strong></p>'; $b .= do_shortcode('[bathdls cat="' . $mcat . '" att=' . $baths[$n]->ID . ' style="li"]'); $oot = $b . $oot; } } } elseif (in_array($a['cat'], array('specifications', 'manuals'))) { // assuming here we want PDFs for a given Bathtub... // $cat = get_term_by( 'slug', $a['cat'], 'mediacategory' ); // instead, just hardcoded term_id match to save a query or 2 $cat = 0; $catname = ''; if ($a['cat'] == 'specifications') { $cat = 31; $catname = 'Specifications'; } else { // manuals? $cat = 32; $catname = 'Manuals'; $mans = types_render_field('manuals'); $mansraw = $mans; $mans = explode(', ', $mans); krsort($mans); //$oot .= '<pre style="display:none">'. print_r($mansraw,true) .'</pre>'; //$oot .= '<pre style="display:none">'. print_r($mans,true) .'</pre>'; } if ($cat > 0) { if ($a['style'] == 'p') { $oot .= '<p>' . esc_attr($catname) . '<br />'; } else { $oot .= '<ul>'; } $args = array('post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' => 'any', 'orderby' => 'menu_order', 'order' => 'DESC', 'tax_query' => array(array('taxonomy' => 'mediacategory', 'field' => 'term_id', 'terms' => $cat))); if ($a['att'] == 'true') { if ($cat == 31) { $args['post_parent'] = $post->ID; } else { // instead do manuals this way $args = array('post__in' => $mans, 'post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' => 'any', 'orderby' => 'post__in', 'order' => 'ASC'); } } elseif ($a['att'] != 'false') { $args['post_parent'] = absint($a['att']); } $dls = get_posts($args); //$oot .= '<pre style="display:none">'. print_r($args,true) .'</pre>'; //$oot .= '<pre style="display:none">'. print_r($dls,true) .'</pre>'; $n = count($dls); if ($n > 0) { while ($n--) { if ($a['style'] == 'li') { $oot .= '<li>'; } $oot .= '<a href="' . esc_url($dls[$n]->guid) . '" target="_blank">' . esc_attr($dls[$n]->post_title) . '</a>'; if ($a['style'] == 'p') { $oot .= '<br />'; } else { $oot .= '</li>'; } } } else { /* * this is a legit download category, * but none found for this shortcode call */ if ($a['style'] == 'li') { $oot .= '<li>'; } $oot .= 'Check back soon.'; if ($a['style'] == 'li') { $oot .= '</li>'; } } if ($a['style'] == 'p') { $oot .= '</p>'; } else { $oot .= '</ul>'; } } } } return $oot; }
<!-- Waters List --> <div class="home-waters-list"> <div class="row"> <?php // Define loop $loop = new WP_Query(array('post_type' => 'water', 'posts_per_page' => 9, 'order' => 'asc')); // Start loop while ($loop->have_posts()) { $loop->the_post(); // Set variables $thumb_id = get_post_thumbnail_id(); $thumb_url_array = wp_get_attachment_image_src($thumb_id, 'full', true); $thumb_url = $thumb_url_array[0]; $water_species = types_render_field("popular-fish-species", array()); $water_trips = types_render_field("trip-types", array()); ?> <!-- Water Block --> <div class="water-tile-wrapper"> <article class="water-tile"> <a href="<?php the_permalink(); ?> " class="water-block" style="background-image: url('<?php echo $thumb_url; ?> ');"> <h1 class="trip-title"><?php the_title(); ?>
function doLandingPage($slug, $pub = '') { //$landingPage = ''; $category = 'issues'; ob_start(); ?> <div class="m-cols "> <div id="content" class="grid-right col-620 fit"> <div style="border-bottom:1px solid #eee;color: #649079;font: bold 28px/1.1em Arial, Helvetica, sans-serif;margin: 0;padding: 10px 0 10px 24px;">Issues <div class="select-list"> <?php pbl_year_filter_dropdown($pub, $category); ?> <script type="text/javascript"> $(function () { $("#QuRepYear").change(function () { var url = '/pubcode/<?php echo $pub; ?> /<?php echo $category; ?> /9999'; url = url.replace('9999', $(this).val()); document.location.href = url; }); }); </script> </div> </div> <?php add_filter('pre_get_posts', 'pbl_set_order', 11); $params = array('category_name' => $category, 'posts_per_page' => -1, 'order' => 'DESC', 'orderby' => 'date', 'tax_query' => array(array('taxonomy' => 'pubcode', 'field' => 'slug', 'terms' => $pub))); $Q = new WP_Query($params); $count = $Q->post_count; ?> <?php if ($Q->have_posts()) { global $wpdb; ?> <div class="contt"> <div class="archive_block fleft"> <?php if ($count == 1) { $Q->the_post(); ?> <div class="box"> <a href="<?php bloginfo('siteurl'); ?> /<?php echo $Q->post->post_name; ?> " target="_blank"> <?php the_title(); ?> </a> <span><?php echo types_render_field('recommendation', array("output" => "html")); ?> </span> <span class="date"><?php the_time('F j, Y'); ?> </span> </div> <?php } ?> <?php for ($i = 0; $i < floor($count / 2); $i++) { $Q->the_post(); ?> <div class="box"> <a href="<?php bloginfo('siteurl'); ?> /<?php echo $Q->post->post_name; ?> " target="_blank"> <?php the_title(); ?> </a> <span><?php echo types_render_field('recommendation', array("output" => "html")); ?> </span> <span class="date"><?php the_time('F j, Y'); ?> </span> </div> <?php } ?> </div> <div class="archive_block fright"> <?php for ($i = ceil($count / 2) - 1; $i < $count; $i++) { $Q->the_post(); ?> <div class="box"> <a href="<?php bloginfo('siteurl'); ?> /<?php echo $Q->post->post_name; ?> " target="_blank"> <?php the_title(); ?> </a> <span><?php echo types_render_field('recommendation', array("output" => "html")); ?> </span> <span class="date"><?php the_time('F j, Y'); ?> </span> </div> <?php } ?> </div> </div><?php } ?> <div class="note"> <?php if ($pub == 'leg') { echo 'Note: Click the “User Guide” tab to the left to learn more about implementing the Legacy Portfolio strategy.'; } else { if ($pub == 'pip') { echo 'Note: Click the “User Guide” tab to the left to learn more about implementing the Perpetual Income strategy.'; } else { if ($pub == 'pbl') { echo ''; } } } ?> </div> </div> <?php get_sidebar('leg-left'); ?> </div> <?php $landingPage = ob_get_contents(); ob_end_clean(); return $landingPage; }
get_header(); ?> <div id="primary" class="content-area" style="background:pink"> <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()); // 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(); } } echo types_render_field("book-field", array("argument1" => "value1", "argument2" => "value2", "argument2" => "value2")); ?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar('content'); get_sidebar(); get_footer();
<?php get_header('all'); wp_reset_query(); ?> <div class="page-wrapper"> <div class="row"> <?php $bigimg = types_render_field('big-banner-imager', array('raw' => true)); if ($bigimg != '') { ?> <div class="col-sm-12 wrapper banner" style="background-image: url(<?php echo $bigimg; ?> );"> <div class="banner-content"> </div> </div> <?php } ?> </div> <div class="row"> <div class="mid-nav"> <span class="marquee-left"><img src="<?php echo get_template_directory_uri(); ?> /images/arrow-left.png" /></span> <span class="marquee-right"><img src="<?php echo get_template_directory_uri(); ?>
$image = $imgsrc[0]; } ?> <div class="col-sm-4 content"> <div class="img-wrapper"> <img src="<?php echo $image; ?> " /> </div> <h4><?php the_title(); ?> </h4> <p><?php echo types_render_field('short-description'); ?> </p> <a href="<?php echo get_the_permalink(); ?> " class="news-btn">Read More</a> </div> <?php } ?> </div> <div class="row navigation"><?php echo easy_wp_pagenavigation($postslist); ?> </div>
</div> <h3>Parents love <img src="<?php echo get_template_directory_uri(); ?> /library/images/section3/tinq_logo_for_section3.png"> </h3> <div class="col-3"> <?php $args = array('post_type' => 'section-3', 'order' => 'ASC'); $query = new WP_Query($args); $ctr2 = 0; while ($query->have_posts()) { $query->the_post(); ?> <?php $post_group = types_render_field("sect3-group-name", array("row" => true)); ?> <?php if ($post_group == "Parents") { ?> <div class="item"> <?php $media = get_attached_media('image'); $images = array(); foreach ($media as $image) { array_push($images, $image->guid); } ?> <div class="item-image"> <div class="blue_overlay"></div>
<?php $titlesActs[] = $act->post_title; ?> <?php $kindOfActs[] = $act->fields['tipo-de-acto']; ?> <?php } ?> <div class="Hearing u-br-orange u-txt-darkgray <?php echo $flag == true ? 'u-bg-lightgray' : ''; ?> "> <div class="Hearing-date u-br-orange"><?php echo types_render_field("fecha", array('output' => 'normal')); ?> </div> <div class="Hearing-numOfActs Box"><?php echo $numOfActs; ?> </div> <div class="Hearing-RecordsActs Box"> <?php for ($i = 0; $i < count($titlesActs); $i++) { ?> <div class="Hearing-innerRecordsActs Block u-br-darkgray"> <div class="Hearing-records Box"><?php echo $titlesActs[$i]; ?> </div>
<div class="fullButton"> <a href="/wichtelwehr/info/"><p>Zur Infoseite</p></a> </div> <?php $args = array('posts_per_page' => 20, 'order' => 'DESC', 'category_name' => 'wichtel', post_type => array('post', 'page')); $postslist = get_posts($args); foreach ($postslist as $post) { setup_postdata($post); if (types_render_field("archiv", array("output" => "raw")) != 1) { ?> <div class="postBox scan"> <div class="postBox-img"> <img src="<?php $bild = types_render_field("start-bild", array("output" => "raw")); if ($bild != "") { echo $bild; } else { echo "/wp-content/themes/FFW/imgs/img_bild_folgt.png"; } ?> "> </div> <div class="postBox-content"> <h2><?php the_title(); ?> </h2> <p><?php the_excerpt();
echo ot_get_option('youtube_url'); ?> "><i class="icon-youtube"></i></a></li> </nav> </div> </div> <?php if (get_post_type() == 'staff' && is_archive()) { $title = ot_get_option('staff_archive_title'); $subtitle = ot_get_option('staff_archive_subtitle'); } elseif (get_post_type() == 'staff') { $title = get_the_title(); $subtitle = types_render_field("header_subtitle", array("raw" => true)); } else { $title = types_render_field("header_title", array("raw" => true)); $subtitle = types_render_field("header_subtitle", array("raw" => true)); } if (empty($title)) { $title = "A Wedding Experience"; } if (empty($subtitle)) { $subtitle = "That You Will Never Forget"; } ?> <div class="page-heading"> <h1><?php echo $title; ?> </h1> <h2><?php echo $subtitle;
echo $img_url[0]; ?> ') 50% 0 no-repeat;min-height:100%;background-size:100% auto;"> <?php /* ?><img src="<?php echo $img_url[0]; ?>" alt=""><?php //*/ ?> </div> </div> <div class="pre-content"></div> <div class="content-box"> <h4 class><?php the_title(); ?> </h4> <?php $position = types_render_field("human-position"); if (!empty($position)) { echo "<div class='position-humen'>{$position}</div>"; } ?> <div class="discription"> <div class="short-discription"><?php echo get_the_excerpt(); ?> </div> <div class="full-discription"><?php the_content(); ?> </div> <a href="javascript:void(0)" class="read-more-btn" data-more="більше" data-less="менше">більше</a> </div>
<div class="imagem2"> <?php echo types_render_field("imagem-do-perfil", array("alt" => "foto do perfil", "size" => "thumbnail")); ?> </div> </div> </div> </div> <div class="box-direta"> <h3 class="nome"><?php the_title(); ?> </h3> <div class="cargo"> <?php echo types_render_field("cargo", array()); ?> </div> <div class="w-embed"> <hr class: "hr"=""> </div> <p class="paragrafo"> <?php the_excerpt(); ?> </p> <a href="<?php the_permalink(); ?> " class="w-button btn-branco btn-perfil">ver perfil completo</a> </div>
</span> <span class="textTermin"><?php the_content(); ?> </span> <span><?php echo $day . ' ' . $monthGerman . ' um ' . $hour . ':' . $minute; ?> </span> </div> <?php if (types_render_field("berichtlinkcheck", array("output" => "raw"))) { ?> <div class="btn" style="position: absolute;right: 0px;bottom: 20px;"> <a href="<?php echo types_render_field("berichtlink", array("output" => "raw")); ?> ">Zum Bericht</a> </div> <?php } ?> <div class="divider"></div> </div> <?php } ?> </div> </div> </div> <?php
$posts_right = array(); $posts_left = array(); $ordered_posts = array(); while (have_posts()) { the_post(); $new_post = new stdClass(); $new_post->title = get_the_title(); $new_post->popular = types_render_field("popular", array("raw" => TRUE)); $new_post->tribal_price = types_render_field("tribal-price", array("raw" => TRUE)); $new_post->lifeline = types_render_field("lifeline", array("raw" => TRUE)); $new_post->monthly_cost = types_render_field("monthly-cost", array("raw" => TRUE)); $new_post->nontribal_price = types_render_field("nontribal-price", array("raw" => TRUE)); $new_post->price_range = types_render_field("price-range", array("raw" => TRUE)); $new_post->disclaimer = types_render_field("disclaimer-text", array("output" => "html")); $new_post->legal = types_render_field("legal", array("output" => "html")); $new_post->features = types_render_field("features", array("output" => "html")); if ($new_post->popular) { array_unshift($ordered_posts, $new_post); } else { $ordered_posts[] = $new_post; } } /** Split the arrays */ $planCount = 0; foreach ($ordered_posts as $post) { if ($planCount++ % 2 == 0) { $posts_right[] = $post; } else { $posts_left[] = $post; } }