Beispiel #1
0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8">
		<?php 
echo core::prepend('head');
?>
	</head>
	<body>
		<?
			$c= cms::context();
			$c-> label('Test if  data files writable') -> icon('offline_pin') -> popup(core::url('test-files'));
			$c-> label('To ConKit project page') -> icon('cloud') -> url("https://github.com/stanpro/conkit");
			echo cms::anchorGlobal($c);
		?>
		<fieldset>
			<legend>Header (see head.tpl.php)</legend>
			<div>
				<img src="logo.png" style="width:100px; vertical-align:middle; margin-right:2em; margin-left:3em;">
				<a href="<?php 
echo cms::loginUrl();
?>
">Login</a>
			</div>
		</fieldset>
		
		<fieldset style="padding:3em;">
			<legend>Body template (see <?php 
echo core::moduleName();
?>
.tpl.php)</legend>
Beispiel #2
0
		else $c-> label('Hide image') -> icon('visibility_off') -> url(core::url('upload-image','cms-form-action','hide'));
		echo cms::anchor($c);
	?>
	<div style="float:right;">
		<? if (!core::req('.hide-image')): ?>
			<img src="sample.jpg" style="max-width:400px; margin-left:2em;">
		<? endif ?>
	</div>
	<?php 
echo core::vars('text1');
?>
</div>

<? if(cms::admin()): ?>
	<?
		$c= cms::context() -> label('Edit') -> icon('edit') -> popup(core::url('edit-block','no',2)) -> popuptitle('Edit text block 2');
		echo cms::anchor($c,'Block 2');
	?>
	<div>
			<h1><?php 
echo core::vars('headline2');
?>
</h1>
			<h2><?php 
echo core::vars('subheadline2');
?>
</h2>
			<?php 
echo core::vars('text2');
?>
	</div>