function fetch_php_docs_from_functions_folder()
{
    //get function directory
    $functions_dir = get_function_directory_extension();
    //scan directory, and strip non-php docs
    $all_php_docs = only_php_files(scandir($functions_dir));
    //include php docs
    if (is_array($all_php_docs)) {
        foreach ($all_php_docs as $include) {
            include $functions_dir . '/' . $include;
        }
    }
}
Ejemplo n.º 2
0
	<?php 
} elseif (get_post_type() == 'Program') {
    ?>
		<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>

			<div class="post" id="post-<?php 
            the_ID();
            ?>
">
				<?php 
            //Include program-meta-include
            $template = get_function_directory_extension();
            include $template . '/program-meta-include.php';
            ?>
				<?php 
            mf_post_thumbnail('large-uncropped');
            ?>
				
				
				<?php 
            echo program_meta_display($date, $time, $venue, $artist, $price, $eventbrite_link, $concession_link, get_the_ID());
            ?>
				<h2><?php 
            the_title();
            ?>
</h2>
				<div class='the_content'>