px-files/_sys/php/pxcmd.php
public function wrap_gui_frame( $content ){
		$this->bowl()->send($content);
		unset($content);

		@header( 'Content-type: text/html; charset="UTF-8"' );

		// リソースをキャッシュ領域にコピー
		$path_pxcache = $this->px->fs()->get_realpath( $this->px->get_path_controot().$this->px->conf()->public_cache_dir.'/px/' );
		$realpath_pxcache = $this->px->fs()->get_realpath( $this->px->get_realpath_docroot().$path_pxcache );
		$this->px->fs()->mkdir( $realpath_pxcache );
		$this->px->fs()->copy_r( __DIR__.'/files/', $realpath_pxcache );

		$pxcmd = $this->px->get_px_command();
		ob_start();?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title><?= htmlspecialchars( $this->px->conf()->name ) ?></title>

		<!-- jQuery -->
		<script src="<?= htmlspecialchars( $path_pxcache.'scripts/jquery-1.10.1.min.js' ); ?>" type="text/javascript"></script>

		<!-- Bootstrap -->
		<link rel="stylesheet" href="<?= htmlspecialchars( $path_pxcache.'styles/bootstrap/css/bootstrap.min.css' ); ?>">
		<script src="<?= htmlspecialchars( $path_pxcache.'styles/bootstrap/js/bootstrap.min.js' ); ?>"></script>

		<!-- FESS -->
		<link rel="stylesheet" href="<?= htmlspecialchars( $path_pxcache.'styles/contents.css' ); ?>" type="text/css" />

		<!-- layout -->
		<link rel="stylesheet" href="<?= htmlspecialchars( $path_pxcache.'styles/layout.css' ); ?>" type="text/css" />

<?= $this->bowl()->pull('head') ?>
	</head>
	<body class="pxcmd">
		<div class="pxcmd-outline">
			<div class="pxcmd-pxfw clearfix">
				<div class="pxcmd-pxfw_l"><?= $this->px->get_pickles_logo_svg() ?> Pickles 2 (version: <?= htmlspecialchars( $this->px->get_version() ) ?>)</div>
				<div class="pxcmd-pxfw_r">
<?php
	// $pxcommands = $this->pxcommands;
	// if( count($pxcommands) ){
	// 	print '<select onchange="window.location.href=\'?PX=\'+this.options[this.selectedIndex].value;">';
	// 	foreach( $pxcommands as $row ){
	// 		print '<option value="'.htmlspecialchars($row['cmd']).'"'.($row['cmd']==$pxcmd[0]?' selected="selected"':'').'>'.htmlspecialchars($row['name']).'</option>';
	// 	}
	// 	print '</select>';
	// }
?>
				</div>
			</div><!-- /.pxcmd-pxfw -->

			<div class="pxcmd-header">
				<div class="pxcmd-project_title"><?= htmlspecialchars( @$this->px->conf()->name ) ?></div>
			</div><!-- /.pxcmd-header -->

			<div class="pxcmd-middle">
<?php
		$command_title = $pxcmd[0].(@strlen($pxcmd[1])?'.'.$pxcmd[1]:'');
		$page_title = null;
?>
			<div class="pxcmd-title">
		<?php if(strlen($page_title)){ ?>
				<p class="pxcmd-category_title"><a href="?PX=<?= htmlspecialchars( $command_title ) ?>" style="color:inherit; text-decoration:none;"><?= htmlspecialchars($command_title) ?></a></p>
				<h1><?= htmlspecialchars( $page_title ) ?></h1>
		<?php }else{ ?>
				<h1><a href="?PX=<?= htmlspecialchars( $command_title ) ?>" style="color:inherit; text-decoration:none;"><?= htmlspecialchars( $command_title ) ?></a></h1>
		<?php } ?>
			</div><!-- /.pxcmd-title -->
			<div id="content" class="contents">
<?= $this->bowl()->pull() ?>
			</div>
			</div><!-- /.pxcmd-middle -->

			<div class="pxcmd-footer">
				<p><a href="?" class="btn btn-default">PX Commands を終了する</a></p>
				<p>PHP <?= htmlspecialchars(phpversion()) ?></p>
				<p><?= htmlspecialchars(@date('Y-m-d H:i:s')) ?></p>
				<p class="pxcmd-credits"><a href="http://pickles.pxt.jp/" target="_blank">Pickles Framework</a> (C)Tomoya Koyanagi.</p>
			</div><!-- /.footer -->
		</div>

	</body>
</html>
<?php
		return ob_get_clean();
	}
public function wrap_gui_frame( $content ){
		$this->bowl()->send($content);
		unset($content);

		@header( 'Content-type: text/html; charset="UTF-8"' );

		// リソースをキャッシュ領域にコピー
		$path_pxcache = $this->px->fs()->get_realpath( $this->px->get_path_controot().$this->px->conf()->public_cache_dir.'/px/' );
		$realpath_pxcache = $this->px->fs()->get_realpath( $this->px->get_realpath_docroot().$path_pxcache );
		$this->px->fs()->mkdir( $realpath_pxcache );
		$this->px->fs()->copy_r( __DIR__.'/files/', $realpath_pxcache );

		$pxcmd = $this->px->get_px_command();
		ob_start();?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title><?= htmlspecialchars( $this->px->conf()->name ) ?></title>

		<!-- jQuery -->
		<script src="<?= htmlspecialchars( $path_pxcache.'scripts/jquery-1.10.1.min.js' ); ?>" type="text/javascript"></script>

		<!-- Bootstrap -->
		<link rel="stylesheet" href="<?= htmlspecialchars( $path_pxcache.'styles/bootstrap/css/bootstrap.min.css' ); ?>">
		<script src="<?= htmlspecialchars( $path_pxcache.'styles/bootstrap/js/bootstrap.min.js' ); ?>"></script>

		<!-- FESS -->
		<link rel="stylesheet" href="<?= htmlspecialchars( $path_pxcache.'styles/contents.css' ); ?>" type="text/css" />

		<!-- layout -->
		<link rel="stylesheet" href="<?= htmlspecialchars( $path_pxcache.'styles/layout.css' ); ?>" type="text/css" />

<?= $this->bowl()->pull('head') ?>
	</head>
	<body class="pxcmd">
		<div class="pxcmd-outline">
			<div class="pxcmd-pxfw clearfix">
				<div class="pxcmd-pxfw_l"><?= $this->px->get_pickles_logo_svg() ?> Pickles 2 (version: <?= htmlspecialchars( $this->px->get_version() ) ?>)</div>
				<div class="pxcmd-pxfw_r">
<?php
	// $pxcommands = $this->pxcommands;
	// if( count($pxcommands) ){
	// 	print '<select onchange="window.location.href=\'?PX=\'+this.options[this.selectedIndex].value;">';
	// 	foreach( $pxcommands as $row ){
	// 		print '<option value="'.htmlspecialchars($row['cmd']).'"'.($row['cmd']==$pxcmd[0]?' selected="selected"':'').'>'.htmlspecialchars($row['name']).'</option>';
	// 	}
	// 	print '</select>';
	// }
?>
				</div>
			</div><!-- /.pxcmd-pxfw -->

			<div class="pxcmd-header">
				<div class="pxcmd-project_title"><?= htmlspecialchars( @$this->px->conf()->name ) ?></div>
			</div><!-- /.pxcmd-header -->

			<div class="pxcmd-middle">
<?php
		$command_title = $pxcmd[0].(@strlen($pxcmd[1])?'.'.$pxcmd[1]:'');
		$page_title = null;
?>
			<div class="pxcmd-title">
		<?php if(strlen($page_title)){ ?>
				<p class="pxcmd-category_title"><a href="?PX=<?= htmlspecialchars( $command_title ) ?>" style="color:inherit; text-decoration:none;"><?= htmlspecialchars($command_title) ?></a></p>
				<h1><?= htmlspecialchars( $page_title ) ?></h1>
		<?php }else{ ?>
				<h1><a href="?PX=<?= htmlspecialchars( $command_title ) ?>" style="color:inherit; text-decoration:none;"><?= htmlspecialchars( $command_title ) ?></a></h1>
		<?php } ?>
			</div><!-- /.pxcmd-title -->
			<div id="content" class="contents">
<?= $this->bowl()->pull() ?>
			</div>
			</div><!-- /.pxcmd-middle -->

			<div class="pxcmd-footer">
				<p><a href="?" class="btn btn-default">PX Commands を終了する</a></p>
				<p>PHP <?= htmlspecialchars(phpversion()) ?></p>
				<p><?= htmlspecialchars(@date('Y-m-d H:i:s')) ?></p>
				<p class="pxcmd-credits"><a href="http://pickles.pxt.jp/" target="_blank">Pickles Framework</a> (C)Tomoya Koyanagi.</p>
			</div><!-- /.footer -->
		</div>

	</body>
</html>
<?php
		return ob_get_clean();
	}
wrap GUI frame

@param string $content コンテンツ領域のHTMLソースコード
@return string HTML全体のHTMLソースコード