</div>
			</div>
		  </div>
		</div>
	  </div>
	</div>
</div>
<div class="container">
  <div class="row">
	<div class="col-xs-8">
	  <h4>Bio <?php 
        print_custom_field('ChannelAuthor');
        ?>
</h4>
	  <p><?php 
        print_custom_field('bio');
        ?>
</p>
	  <?php 
        $value = get_custom_field('weburl');
        if (!empty($value)) {
            echo "<a href='{$value}'><strong>Web URL</strong></a>";
        }
        ?>
	</div>
  </div>
</div>
</div>
</div>
<?php 
    }
</h2>
						<p>with <?php 
        print_custom_field('voices');
        ?>
</p>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="container">
	<div class="row">
		<div class="col-xs-12 col-md-offset-1 col-md-9">
		<h2>Disturbances</h2>
		<p class="lead">Audio</p> 
		<p><strong>Detail</strong> <?php 
        print_custom_field('detail');
        ?>
<br /></p> 
		</div>
	</div>
<?php 
    }
}
// end of the loop.
?>

<?php 
get_footer();
    /**
     * Populate the custom data for a given column.  This function should actually
     * *print* data, not just return it.
     * Oddly, WP doesn't even send the column this way unless it is something custom.
     * Note that things get all broken and wonky if you do not include the "post_title" 
     * column, so we rely on the $this->no_title_flag boolean variable (set in __call)
     * to trigger customizations here which print out the various eye-candy
     * "Edit/Trash/View" links when the post_title column has been omitted.
     *
     * See https://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=443
     *
     * @param string $column name
     */
    public function populate_custom_column_data($column)
    {
        // See https://code.google.com/p/wordpress-custom-content-type-manager/wiki/CustomColumns
        $function_name = 'cctm_custom_column_' . $this->post_type . '_' . $column;
        if (function_exists($function_name)) {
            return $function_name();
        }
        global $post;
        if ($this->last_post != $post->ID) {
            $this->new_row = true;
        }
        // This attaches the Edit/Trash/View links to the first column if the post_title isn't there
        if ($this->no_title_flag && $this->new_row) {
            printf('<strong><a class="row-title" href="post.php?post=%s&amp;action=edit">', $post->ID);
        }
        $meta = get_custom_field_meta($column);
        if ($meta['type'] === "image") {
            $id = get_custom_field($column . ":raw");
            printf('<a target="_blank" href="%s">%s</a>', get_edit_post_link($id), wp_get_attachment_image($id, "thumbnail"));
        } elseif ($meta['type'] === "relation") {
            $id = get_custom_field($column . ":raw");
            printf('<a target="_blank" href="%s">%s</a>', get_edit_post_link($id), get_the_title($id));
        } else {
            print_custom_field($column);
        }
        // End the anchor
        if ($this->no_title_flag && $this->new_row) {
            print '</a></strong>
				<div class="row-actions"><span class="edit"><a href="post.php?post=' . $post->ID . '&amp;action=edit" title="' . __('Edit') . '">' . __('Edit') . '</a> | </span>
				<span class="inline hide-if-no-js"><a href="#" class="editinline">' . __('Quick Edit') . '</a> | </span><span class="trash"><a class="submitdelete" href="' . get_delete_post_link($post->ID) . '">' . __('Trash') . '</a> | </span><span class="view"><a href="' . get_permalink($post->ID) . '" rel="permalink">' . __('View') . '</a></span>';
            $this->new_row = false;
            $this->last_post = $post->ID;
        }
    }
Example #4
0
            echo '<div class="blog-post-thumbnail-wrapper"><div class="blog-post-thumbnail" style="background: url(' . $image[0] . '); background-size: cover;"></div></div>';
        }
        ?>
			<div class="blog-post-text">
				<h2><a href="<?php 
        esc_url(the_permalink());
        ?>
" title="Permalink to <?php 
        the_title();
        ?>
" rel="bookmark"><?php 
        the_title();
        ?>
</a></h2>
				<p><?php 
        print_custom_field('summary');
        ?>
</p>
				<p class="blog-post-meta">
					Published on <time datetime="<?php 
        the_time('Y-m-d');
        ?>
" pubdate><?php 
        the_date('F jS, Y');
        ?>
</time><br />
					Written by <?php 
        the_author();
        ?>
				</p>
			</div>
?>

<?php 
get_header();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
<div class="feature-block">
	<div class="page-feature">
		<h1><?php 
        the_title();
        ?>
</h1>
		<div class="item" style="background-image:url('<?php 
        print_custom_field('pageHeroImage:to_image_src');
        ?>
');"></div>
	</div>	
</div><!-- /feature-block -->

<div class="video-block">
	<div class="container">
		<div class="row">
			<div class="col-xs-10 col-xs-offset-1">
				<div class="video-container">
					<iframe width="778" height="433" src="http://www.youtube.com/embed/ELnHNNg4sGM?modestbranding=1&iv_load_policy=3&rel=0&showinfo=0" frameborder="0"></iframe>
				</div>
			</div>
		</div>
	</div>
$my_query = new WP_Query($args);
if ($my_query->have_posts()) {
    while ($my_query->have_posts()) {
        $my_query->the_post();
        ?>

			<div class="col-xs-12 col-sm-4">
				<a href="<?php 
        the_permalink();
        ?>
?category=<?php 
        the_title();
        ?>
" class="tile cat" >
					<img src="<?php 
        print_custom_field('bikeCatImage');
        ?>
" alt="<?php 
        the_title();
        ?>
"/>
					<h2><?php 
        the_title();
        ?>
</h2>
				</a>
			</div>	
			<?php 
    }
}
wp_reset_query();
$var = 0;
$args = array('post_type' => $type, 'post_status' => 'publish', 'posts_per_page' => 5, 'caller_get_posts' => 1);
$my_query = null;
$my_query = new WP_Query($args);
while ($my_query->have_posts()) {
    $my_query->the_post();
    ?>
			<h3><a href="<?php 
    the_permalink();
    ?>
"><?php 
    print_custom_field('topic');
    ?>
</a></h3>
			<p><?php 
    print_custom_field('voices');
    ?>
</p>
			<p class="text-muted">Posted on <?php 
    the_time('F jS, Y');
    ?>
</p>
			<?php 
}
wp_reset_query();
?>
		</div>
	</div>
</div>
<?php 
get_footer();
?>
				<?php 
while ($query->have_posts()) {
    $query->the_post();
    ?>
	  			<div class="testimonial-item">
		  			<img src="<?php 
    print_custom_field('customerImage');
    ?>
"/>
		  			<h3><?php 
    the_title();
    ?>
</h3>
		  			<h4><?php 
    print_custom_field('customerName');
    ?>
</h4>
		  			<?php 
    the_content();
    ?>
				</div><!-- /testimonial-item -->
				<?php 
}
wp_reset_postdata();
?>
			</div>
		</div>
	</div>
</div><!-- /testimonial-block -->
                }
            }
            $my_query->reset_postdata();
        }
    }
    ?>
				<div class="col-md-2"><img src="<?php 
    echo $url1;
    ?>
" class="img-responsive"/></div>
				<div class="col-md-10">
					<h3><a href="<?php 
    the_permalink();
    ?>
"><?php 
    print_custom_field('episode');
    ?>
</a></h3>
					<p>
						<?php 
    $voices = get_custom_field('voices:to_array');
    $i = 0;
    foreach ($voices as $item) {
        if ($i == 0) {
            echo "{$item}";
        } else {
            echo ", {$item}";
        }
        $i = $i + 1;
    }
    ?>
        the_title();
        ?>
</h1>
		<div class="item" style="background-image:url('<?php 
        print_custom_field('pageHeroImage:to_image_src');
        ?>
');"></div>
		<div class="container">
			<div class="row">
				<div class="col-xs-10 col-xs-offset-1 col-md-8 col-md-offset-2 pre-text">
					<h2><?php 
        print_custom_field('tagline');
        ?>
</h2>
					<p><?php 
        print_custom_field('headingcopy');
        ?>
</p>
				</div>
			</div>
		</div>
	</div>	
</div><!-- /feature-block -->

<div class="subnav-block">
	<div class="container">
		<div class="row">
			<div class="col-xs-12 col-xs-offset-0 col-md-8 col-md-offset-2">
				<ul class="subnav">
					<li><a href="<?php 
        bloginfo('url');
            print_custom_field('associated_company');
            ?>
</h2>
		</div>
	
		<?php 
        } else {
            ?>
	
		<div id="profile-title">
			<h1><?php 
            the_title();
            ?>
</h1><br />
			<h2><?php 
            print_custom_field('associated_company');
            ?>
</h2>
		</div>
	
		<?php 
        }
        ?>
	
	<div id="profile-content">
		<?php 
        the_content();
        ?>
	</div>
	
	<!-- Shortcode doesn't seem to work, just hardcoding the HTML in here, suppose it's the same anyway -->
				</audio>
				<a href="<?php 
        print_custom_field('AudioURL');
        ?>
" download="<?php 
        print_custom_field('episode');
        ?>
.mp3">Download</a>
			</p> 
			<p><strong>Detail</strong> <?php 
        print_custom_field('detail');
        ?>
<br /></p>
			
			<h6><?php 
        print_custom_field('topic');
        ?>
</h6>
		</div>
		<div class="col-md-2 text-right">
			<h4>Voices</h4>
			<?php 
        $i = 0;
        $people = new WP_Query(array('post_type' => 'people', 'post_status' => 'publish', 'posts_per_page' => -1));
        if ($people->have_posts()) {
            while ($people->have_posts()) {
                $people->the_post();
                foreach ($voices as $item) {
                    if (get_the_title() == $item) {
                        echo "<img src=\"" . get_custom_field('photo:to_image_src') . "\" class='img-responsive'/>";
                    }
" alt="<?php 
        the_title();
        ?>
" />
					<div class="details">
						<h3><?php 
        the_title();
        ?>
</h3>
						<?php 
        the_content();
        ?>
	
					</div>
					<span class="price"><?php 
        print_custom_field('specialPrice');
        ?>
</span>			
				</div>
				
			</div>
		</div>
	</div>
</div><!-- /content-block -->	
<?php 
    }
}
?>
<div class="cta-block">
	<div class="container">
		<div class="row">
Example #14
0
        ?>
</a></h2>
				<p><?php 
        print_custom_field('summary');
        ?>
</p>
				<p class="blog-post-meta">
					Published on <time datetime="<?php 
        the_time('Y-m-d');
        ?>
" pubdate><?php 
        the_date('F jS, Y');
        ?>
</time><br />
					Written by <?php 
        print_custom_field('post_author_custom');
        ?>
<br /><br />
					
					<?php 
        $postcategories = get_categories();
        if ($postcategories) {
            if (count($postcategories) == 1) {
                echo '<strong>Catergory:</strong> ';
            } else {
                echo '<strong>Catergories:</strong> ';
            }
            foreach ($postcategories as $category) {
                echo $category->name . ', ';
            }
            echo '<br />';
					<a href="<?php 
        echo get_permalink();
        ?>
"><?php 
        echo CCTM::filter(get_post_meta(get_the_ID(), 'slider_image', true), 'to_image_tag', 'overview-img');
        ?>
</a>
					<a href="<?php 
        echo get_permalink();
        ?>
">
						<p class="related-title-white"><?php 
        print_custom_field('overview_title');
        ?>
<span><?php 
        print_custom_field('overview_subtitle');
        ?>
</span></p>
					</a>
				</div>

				<?php 
        if ($counter === 2 || ($counter - 2) % 3 === 0) {
            ?>
		      <div class="clearfix visible-md visible-lg "></div>
        <?php 
        }
        ?>


		<?php 
Example #16
0
 /**
  * Handles printing of custom fields in the main content blocks.
  *
  * @param	array	$raw_args: parameters from the shortcode: name, filter
  * @param	string	$options (optional)
  * @return string (printed)
  */
 public static function custom_field($raw_args = array(), $options = null)
 {
     $defaults = array('name' => '', 'filter' => '', 'post_id' => '');
     $args = shortcode_atts($defaults, $raw_args);
     if (empty($args['name'])) {
         print __('custom_field shortcode requires the "name" parameter.', CCTM_TXTDOMAIN);
     }
     // Append the ':filter' to the name
     if (!empty($args['filter'])) {
         $args['name'] = $args['name'] . ':' . $args['filter'];
     }
     // See http://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=120
     // This allows users to specify which post they want to retrieve the data from.
     if (!empty($args['post_id'])) {
         CCTM::$post_id = $args['post_id'];
     }
     if (!empty($options)) {
         print_custom_field($args['name'], htmlspecialchars_decode($options));
     } else {
         print_custom_field($args['name']);
     }
 }
Example #17
0
			<div class="panel-body people-panel-body text-center">
				<div class="panel-title people-panel-title"><?php 
    echo get_the_title();
    ?>
</div>
				<div class="people-panel-lead"><?php 
    print_custom_field('expertise');
    ?>
</div>
				<a href="<?php 
    echo get_the_permalink();
    ?>
">
					<figure>
						<img src="<?php 
    print_custom_field('photo:to_image_src');
    ?>
" class="img-responsive" />
					</figure>
				</a>
			</div>
	</div>
</div>
<?php 
    $var = $var + 1;
}
wp_reset_query();
?>
<script src="/cd/wp-content/themes/custom bootstrap theme v3/js/disturbances.js"></script>
<?php 
get_footer();
Example #18
0
</p>

				<?php 
    get_template_part('content', get_post_format());
    ?>

				<?php 
    ch5_psl_display_source_link();
    ?>

				<?php 
    ch5_cfu_display_pdf_link();
    ?>

				<p><strong>Gender:</strong> <?php 
    print_custom_field('gender');
    ?>
</p>

				<?php 
    //the_meta(); /* <----------- Custom Fields */
    // 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 -->
            ?>
; background-size: 38px 38px;"><?php 
            the_title();
            ?>
</h1>
	</div>
	
	<?php 
        } else {
            ?>
		
		<h1 style="background: url(<?php 
            print_custom_field('program_icon:to_image_src');
            ?>
) no-repeat 20px center #<?php 
            print_custom_field('program_color');
            ?>
; background-size: 38px 38px;"><?php 
            the_title();
            ?>
</h1>
	
	<?php 
        }
        ?>
	
	<?php 
        the_content();
        ?>

</article>
?>
 
	<?php 
while ($query->have_posts()) {
    $query->the_post();
    ?>
			<div class="col-xs-12 col-sm-6 col-md-4">
				<a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    the_title();
    ?>
" class="tile bike">
					<img src="<?php 
    print_custom_field('photoImage');
    ?>
" alt="<?php 
    the_title();
    ?>
"/>
					<h2 class="ttl"><?php 
    the_title();
    ?>
</h2>
				</a>
			</div>	
			<?php 
}
wp_reset_postdata();
?>
			<div class="col-xs-12 col-sm-4">
				<div class="special-tile">
					<a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    the_title();
    ?>
">
						<span class="sale-type"><?php 
    print_custom_field('specialType');
    ?>
</span>
						<img src="<?php 
    print_custom_field('specialImage:to_image_src');
    ?>
" alt="<?php 
    the_title();
    ?>
" />
						<h3><?php 
    the_title();
    ?>
</h3>
						<span class="cta-arrow"><img src="<?php 
    bloginfo('template_directory');
    ?>
/_/img/grey-arrow.svg" alt="View Special"></span>
						<?php 
    the_excerpt();
Example #22
0
				<img src="<?php 
    print_custom_field('album_cover:to_image_src');
    ?>
" class="img-responsive disturbance-img" width="200px" />
			</figure>
			<h4><?php 
    echo get_custom_field('channel:do_shortcode');
    ?>
</h4>
		</a>
		<div class="box">
			<?php 
    $channel = get_custom_field('channel');
    ?>
			<p class="lead"><?php 
    print_custom_field('Tagline');
    ?>
</p>
			<div class="list"><ol>
			<?php 
    $episodes = new WP_Query(array('post_type' => 'podcast', 'post_status' => 'publish', 'posts_per_page' => -1));
    if ($episodes->have_posts()) {
        while ($episodes->have_posts()) {
            $episodes->the_post();
            if (get_custom_field('channel') == $channel) {
                $url1 = get_permalink();
                echo '<li>' . "<a href={$url1}>" . get_custom_field('episode') . '</a></li>';
            }
        }
        $my_query->reset_postdata();
    }
    print_custom_field('channel:do_shortcode');
    ?>
</h4> -->
			<p class="lead"><?php 
    print_custom_field('channeldesc');
    ?>
</p>
			<div class="languages">
				<span class=""><?php 
    print_custom_field('lang');
    ?>
</span>
			</div>
			<div class="list">
				<?php 
    print_custom_field('list');
    ?>
			</div>
			<div class="text-center read-more"><span class="glyphicon glyphicon-chevron-down clk" /></div>
		</div>
	</div>
</div>
<?php 
    $var = $var + 1;
}
wp_reset_query();
?>

<script src="/cd/wp-content/themes/wpstrap/js/disturbances.js"></script>
<?php 
get_footer();
}
?>


<header id="header-desktop">
	<header id="header-homepage">
		
		<ul id="header-slider">
			<?php 
$args = array('numberposts' => 4, 'offset' => 0, 'orderby' => 'menu_order', 'order' => 'DESC', 'post_type' => 'header_slide', 'post_status' => 'publish', 'suppress_filters' => true);
$header_slides = get_posts($args);
foreach ($header_slides as $post) {
    setup_postdata($post);
    ?>
				<li style="background: linear-gradient( rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4) ), url('<?php 
    print_custom_field('header_image:to_image_src');
    ?>
') no-repeat center 30%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
					
					<?php 
    $related_post = get_custom_field('related_program:get_post');
    $program_color = $related_post['program_color'];
    if ($program_color != '') {
        $rgb = hex2rgb($program_color);
        ?>
						<h1><span style="background-color: rgba(<?php 
        echo $rgb[0];
        ?>
,<?php 
        echo $rgb[1];
        ?>
<!-- Video Embed -->
<?php 
        $is_video = get_post_meta($post->ID, 'video_embed', true);
        if (!empty($is_video)) {
            ?>

<div class="content-block white-bkgd content-video">
	<div class="container">
		<div class="row">
			<div class="col-xs-10 col-xs-offset-1">

				<!-- Do stuff here -->
				<div class="video-container">
					<iframe width="778" height="433" src="http://www.youtube.com/embed/<?php 
            print_custom_field('video_embed');
            ?>
?modestbranding=1&iv_load_policy=3&rel=0&showinfo=0&theme=light" frameborder="0"></iframe>
				</div>
			
			</div>
		</div>
	</div>
</div><!-- /content-block -->

<?php 
        } else {
            ?>

	<!-- Do nothing -->
Example #26
0
        ?>
		</p>
		
		<div id="blog-content"><?php 
        the_content();
        ?>
</div>
		
		<div id="blog-authorbio">
			<div id="blog-authorbio-image" style="background-image: url(<?php 
        print_custom_field('blog_authorimage:to_image_src');
        ?>
);"></div>
			<h3>About the Author</h3>
			<p><?php 
        print_custom_field('blog_authorabout');
        ?>
</p>
		</div>
		
		<!-- Shortcode doesn't seem to work, just hardcoding the HTML in here, suppose it's the same anyway -->
		<a href="http://buildinstitute.org/blog/" class="ghost-button-a"><span class="ghost-button arrow-left">Back to all blog posts</span></a>
	
		<?php 
        comments_template('', true);
        ?>
	
	</article>
	<?php 
    }
}
Example #27
0
    <?php 
$args = array('numberposts' => -1, 'offset' => 0, 'orderby' => 'menu_order', 'order' => 'DESC', 'post_type' => 'program', 'post_status' => 'publish', 'suppress_filters' => true);
$programs = get_posts($args);
foreach ($programs as $post) {
    setup_postdata($post);
    ?>
        <a href="<?php 
    the_permalink();
    ?>
">
            <div id="programs-tile" style="background: #<?php 
    print_custom_field('program_color');
    ?>
;">
                <div id="programs-tile-content" style="background: url(<?php 
    print_custom_field('program_icon:to_image_src');
    ?>
) no-repeat left center; background-size: 60px 60px;">
                    <h2><?php 
    the_title();
    ?>
</h2>
                </div>
            </div>
        </a>
    <?php 
}
wp_reset_postdata();
?>

</div>
			</div>
		  </div>
		</div>
	  </div>
	</div>
</div>
<div class="container">
  <div class="row">
	<div class="col-xs-8">
	  
	  <h4>Hosted by <?php 
        print_custom_field('ChannelAuthor');
        ?>
</h4>
	  <p><?php 
        print_custom_field('channeldesc');
        ?>
</p>
	  <div class="list">
		<ol>
			<?php 
        $voices = array();
        $episodes = new WP_Query(array('post_type' => 'podcast', 'post_status' => 'publish', 'posts_per_page' => -1));
        if ($episodes->have_posts()) {
            while ($episodes->have_posts()) {
                $episodes->the_post();
                if (get_custom_field('channel') == $channel_name) {
                    $url1 = get_permalink();
                    $audio_url = get_custom_field('AudioURL');
                    echo '<li>' . "<a href={$url1}>" . get_custom_field('episode') . "</a><span class='glyphicon glyphicon-play clk' audio={$audio_url}></span></li>";
                    array_push($voices, get_custom_field('voices:to_array'));