コード例 #1
0
<?php

/**
 * Template Name: Create Bucket
 * Description: This is the upload page.
 */
get_header();
?>

<?php 
$frontEndController = new frontEndController();
?>

<?php 
$frontEndController->displayMainMenu();
?>

<?php 
if (!isset($_GET['id'])) {
    ?>

<div class="uploads-wrapper">
	<div class='container'>
		<div class="row">
			<h1>Create a New Bucket!</h1>

			<input type="button" id="create" value="Create New Bucket" />
		</div>
		<div class="row">
			<?php 
    $frontEndController->createBucketForm();
コード例 #2
0
ファイル: home.php プロジェクト: mawilliamson/wordpress
<?php

/**
 * Template Name: Homepage
 * Description: This is the homepage.
 */
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
get_header();
?>

<?php 
$frontEndController = new frontEndController();
$home = true;
$results = $frontEndController->displayMainMenu($home);
?>

	<script>home = true;</script>
	<style>
	

		.search-container{display: inline-block; width: 100%; margin: 125px 0 45px;}
		.search-wrapper{max-width: none; margin: 0px auto; width: 750px; border-radius: 2px; float: none;}
		.search-wrapper #tagInput{padding: 14px 13px 13px; font-size: 2.5em; line-height: 1; width: 590px;}
		.search-wrapper input#addTag[type="submit"]{padding: 21px 30px 20px; font-size: 1.5em; width: 158px; background: #EEE;}
		.search-wrapper input#addTag[type="submit"]:hover {background: #D8E4E4 none repeat scroll 0% 0%;}
		.recently-updated{margin-bottom: 50px;}
		.recently-updated h2{ text-align: center; font-size: 2em; margin: 15px 0;}
		.recently-updated .items-wrapper {margin: 0px; left: auto; width: 100%; position: relative !important;}

コード例 #3
0
ファイル: results.php プロジェクト: mawilliamson/wordpress
<?php

/**
 * Template Name: Results Page
 * Description: This template is to display results
 */
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
get_header();
?>

<?php 
$frontEndController = new frontEndController();
$results = $frontEndController->displayMainMenu();
?>
	
<div class='preview-wrapper'>
	<div class="close">&times;</div>
	<div class='controls-wrapper'>
		<h3>Preview</h3>
		<div class="page-helper">
			<span>Page: <input type="text" id="page_num" value="1" /> / <span id="page_count"></span></span>
		</div>


		<input type='button' class='secondary disabled' id="prev" value='Previous' />
		<input type='button' class='secondary' id="next" value='Next' />
	</div>
	<div class="pdf-wrapper"></div>

</div>
コード例 #4
0
<?php

include "../wp-load.php";
$id = isset($_POST['id']) ? $_POST['id'] : null;
$name = $_POST['bucket-name'];
$description = $_POST['description'];
if (!$id) {
    $bucket = new Bucket($name, $description, $id);
    $bucketId = $bucket->create();
    $frontEndController = new frontEndController();
    $frontEndController->addUserToBucket($bucketId);
} else {
    $bucket = new Bucket($name, $description, $id);
    $id = $bucket->update();
}
header("Location: /buckets");
exit;
コード例 #5
0
ファイル: upload.php プロジェクト: mawilliamson/wordpress
<?php

/**
 * Template Name: Upload
 * Description: This is the upload page.
 */
get_header();
?>

<?php 
$frontEndController = new frontEndController();
?>

	<div class='uploads-wrapper'>
		<div class='container'>
			<div class="editQueue"></div>
		</div>
		<div class="container">
			<h2>My Uploads</h2>
		</div>
		<div class='items-wrapper grid'>
			<?php 
$frontEndController->getUploadsByCurrentUser();
?>
		</div>
	</div>



<?php 
get_footer();