function test_concat() { define('MOD_CONCAT', True); /* Nothing extra. */ $this->assertEqual(stylesheets(array('one.css')), '<link rel="stylesheet" type="text/css" href="one.css" />'); /* Extras. */ $this->assertEqual(stylesheets(array('one.css'), array('media' => 'screen')), '<link rel="stylesheet" type="text/css" href="one.css" media="screen"/>'); $this->assertEqual(stylesheets(array('one.css', 'foo/two.css'), array('media' => 'screen')), '<link rel="stylesheet" type="text/css" href="??one.css,foo/two.css" media="screen"/>'); $this->assertEqual(scripts(array('one.js', 'two.js')), '<script type="text/javascript" src="??one.js,two.js" ></script>'); }
<? /* Make sure this require() points to config.php. */ require('../../inc/config.php'); javascripts('form_builder'); stylesheets('form_builder_tool', 'scoped_smoothness/jquery-ui-1.8.1.custom'); $steps = 4; // TODO Dynamic include(ROOT.'/inc/header.php'); ?> <div class="content_div" id="form_builder"> <form id="fb_form" class="chisel_form" action="builder.php" method="post"> <div id="accordion"> <?php for ($step = 1; $step <= $steps; ++$step) { ?> <?php include './form/step_' . $step . '.php'; ?> <?php } ?> </div> </form> <div id="fb_summary" class="summary"> <h2>Summary</h2> </div> </div>
<?php include $_SERVER['DOCUMENT_ROOT'] . '/inc/classes/tests/class.test_norm.php'; $tester = new Test_NORM(); if (isset($_GET['v'])) { $tester->initialize_tests($_GET['v']); } require $_SERVER['DOCUMENT_ROOT'] . '/inc/admin/config.php'; $session->auth_or_redirect('admin', '/', true); $admin_title = 'Run Tests'; $admin_subtitle = 'NORM'; javascripts('tests/norm'); stylesheets('tests/norm'); include ROOT . '/inc/admin/header.php'; $test_classes = array_map('basename', glob('./tests/*')); foreach ($test_classes as $file) { include './tests/' . $file; } ?> <p><a href="/admin">Back to Admin Home</a></p> <p><a href="../">Back to Tests Home</a></p> <div> <h1>NORM Test</h1> <p>Which version would you like to test?</p> <?php echo $tester->version_links(); ?>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>{{{=yields_title=}}}</title> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <?php stylesheets('css'); ?> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/">Jaxara Project</a> </div> <div id="navbar" class="navbar-collapse collapse">
<? /* Make sure this require() points to config.php. */ require('../../inc/config.php'); javascripts('project_starter'); stylesheets('project_starter', 'scoped_smoothness/jquery-ui-1.8.1.custom'); $steps = 6; // TODO: Dynamic include(ROOT.'/inc/header.php'); ?> <div class="content_div" id="project_starter"> <form id="ps_form" class="chisel_form"> <div id="accordion"> <?php for ($step = 1; $step <= $steps; ++$step) { ?> <?php include './form/step_' . $step . '.php'; ?> <?php } ?> </div> </form> <div id="ps_summary"> <h2>Summary</h2> </div> </div>
<? /* Make sure this require() points to config.php. */ require('../../inc/config.php'); if (!isset($_SESSION['builder'])) { header("Location: gone.php"); } $builder = unserialize($_SESSION['builder']); unset($_SESSION['builder']); stylesheets('form_builder_tool'); include(ROOT.'/inc/header.php'); ?> <h2>Form Builder</h2> <div id="form_builder_done" class="content_div"> <a class="big_link" href="/tools/_shared/tmp/<?php echo $_SESSION['form_package']; ?> ">Form Files</a> <div id="form"> <h2>Form</h2> <pre><code><?php echo $builder->form; ?> </code></pre> </div>