Ejemplo n.º 1
0
?>
%;
}
</style>



<?php 
// Automatically load router files
$js_templates = glob(Kanban::$instance->settings->path . '/templates/inc/t-*.php');
foreach ($js_templates as $js_template) {
    ?>
<script type="text/html" id="<?php 
    echo basename($js_template, '.php');
    ?>
">

<?php 
    include $js_template;
    ?>

</script>
<?php 
}
?>



<?php 
include Kanban_Template::find_template('inc/footer');
Ejemplo n.º 2
0
 static function settings_page()
 {
     $settings = Kanban_Option::get_all();
     if (is_serialized($settings['allowed_users'])) {
         $settings['allowed_users'] = unserialize($settings['allowed_users']);
     }
     $all_users = get_users();
     $all_users_arr = array();
     foreach ($all_users as $user) {
         $all_users_arr[$user->ID] = Kanban_User::get_username_long($user);
     }
     $statuses = Kanban_Status::get_all();
     $statuses = Kanban_Utils::order_array_of_objects_by_property($statuses, 'position', 'int');
     $estimates = Kanban_Estimate::get_all();
     $estimates = Kanban_Utils::order_array_of_objects_by_property($estimates, 'position', 'int');
     $template = Kanban_Template::find_template('admin/settings');
     include_once $template;
 }
Ejemplo n.º 3
0
 /**
  * render an html template, and populate variables
  * @param  string $basename the filename of the template we're looking for
  * @param  array  $data     the variables to populate
  * @return string           the html output
  */
 static function render_template($basename, $data = array())
 {
     $template_path = Kanban_Template::find_template($basename);
     if (!$template_path) {
         return false;
     }
     extract($data);
     ob_start();
     include $template_path;
     $html_output = ob_get_contents();
     ob_end_clean();
     return $html_output;
 }
Ejemplo n.º 4
0
 /**
  * render the welcome page
  */
 static function welcome_page()
 {
     $template = Kanban_Template::find_template('admin/welcome');
     include_once $template;
 }