function wck_repeater_shortcode($atts, $content) { extract(shortcode_atts(array('meta' => '', 'metabox' => '', 'id' => ''), $atts)); if (!empty($metabox)) { $meta = $metabox; } if (empty($meta)) { return; } // Needs metabox name $out = null; self::$state['is_wck_repeater'] = true; self::$state['wck_repeater_meta'] = $meta; if (!empty($id)) { self::$state['wck_repeater_id'] = $id; $metas = get_cfc_meta($meta, $id); } else { self::$state['wck_repeater_id'] = 0; $metas = get_cfc_meta($meta); } // Loop through repeater foreach ($metas as $key => $value) { self::$state['wck_repeater_key'] = $key; $out[] = do_local_shortcode('ccs', $content, true); } self::$state['is_wck_repeater'] = false; self::$state['wck_repeater_id'] = 0; return implode("", $out); }
function wck_stp_pass_archive_query_args($args, $stp_id) { $stp_args = get_cfc_meta('wck_stp_query-args', $stp_id); foreach ($stp_args as $argument) { $args[$argument['query-arguments']] = $argument['value']; } return $args; }
function idies_get_cfc_data($meta_name, $pageid = false) { // Check if WCK installed if (!function_exists('get_cfc_meta')) { return false; } $meta_data = get_cfc_meta($meta_name); echo "<!-- DEBUG "; print_r($meta_data); echo "-->"; }
<?php the_content(); } ?> </div> <div class="col-sm-3"> <a href="//portal.sciserver.org" class="btn btn-success" target="_blank" >Login to SciServer</a> </div> </div> </div> </section> <section class="splash-teaser" > <?php if (function_exists('get_cfc_meta')) { $splash_teaser_ids = array(); foreach (get_cfc_meta('splash-teaser') as $key => $value) { $splash_teaser_ids[] = get_cfc_field('splash-teaser', 'page-number', false, $key); } $max_items = 6; $this_item = 1; ?> <div class="container"> <div class="row"> <?php foreach ($splash_teaser_ids as $this_teaser_id) { $this_teaser_post = get_post($this_teaser_id); //title $this_teaser_title = get_cfc_field('page-meta', 'display-name', $this_teaser_id); if (empty($this_teaser_title)) { $this_teaser_title = $this_teaser_post->post_title; }
<?php the_post(); the_content(); ?> <div id="accordion" class="panel-group"> <?php if (function_exists('get_cfc_meta')) { $thisCollapse = 1; $accToggle = ''; $accIn = ' in '; foreach (get_cfc_meta('accordions-meta') as $key => $value) { $cfc_thumb = the_cfc_field('accordions-meta', 'thumbnail', false, $key, false); $cfc_thumb = !empty($cfc_thumb) ? "<img src=" . $cfc_thumb . " class='img-responsive alignright thumbnail' />" : ""; ?> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="heading<?php echo $thisCollapse; ?> "> <h3 class="panel-title"><a data-toggle="collapse" class="accordion-toggle <?php echo $accToggle; ?> " data-parent="#accordion" href="#collapse<?php echo $thisCollapse; ?> " aria-expanded="true" aria-controls="collapse<?php echo $thisCollapse; ?> "><?php the_cfc_field('accordions-meta', 'title', false, $key);
<?php //This is where the carousel, h1 and description goes. ?> <section class="splash-slides" > <div id="splash-carousel" class="carousel slide" data-ride="carousel"> <div class="carousel-inner" role="listbox"> <?php if (function_exists('get_cfc_meta')) { $slideshow = get_cfc_meta('splash_slideshow'); $slide_class = 'item active'; foreach (get_cfc_meta('splash_slideshow') as $key => $value) { ?> <div class="<?php echo $slide_class; ?> "> <!--img src="<?php the_cfc_field('splash_slideshow', 'background-image', false, $key); ?> " width="100%" height="auto" /--> <div style="background:url(<?php the_cfc_field('splash_slideshow', 'background-image', false, $key); ?> ) center center; background-size:cover;" class="slider-size"> <div class="intro-message container"> <?php if ('posts' == get_option('show_on_front')) { include get_home_template(); } else {