コード例 #1
0
 function load_template()
 {
     global $anthologize_formats;
     $return = true;
     if (isset($_GET['anth_preview'])) {
         load_template(plugin_dir_path(__FILE__) . '../templates/html_preview/preview.php');
         die;
     }
     if (isset($_POST['export-step'])) {
         if ($_POST['export-step'] == 3) {
             $return = false;
         }
     }
     if ($return) {
         return;
     }
     anthologize_save_project_meta();
     require_once anthologize()->includes_dir . 'class-export-panel.php';
     Anthologize_Export_Panel::save_session();
     $type = $_SESSION['filetype'];
     if (!is_array($anthologize_formats[$type])) {
         return;
     }
     $project_id = $_SESSION['project_id'];
     load_template($anthologize_formats[$type]['loader-path']);
     return false;
 }
コード例 #2
0
                /* $this->load_template() */
                ?>
			<?php 
            }
            ?>

			</div>
		</div>
		<?php 
        }
        function load_template()
        {
            // The goggles! Zey do nossing!
            // Check anthologize.php for the real handler method load_template, which happens before headers are sent.
        }
        function get_projects()
        {
            $projects = array();
            query_posts('post_type=anth_project&orderby=title&order=ASC');
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    $projects[get_the_ID()] = get_the_title();
                }
            }
            return $projects;
        }
    }
}
$export_panel = new Anthologize_Export_Panel();
$export_panel->display();