<?php
/* No hardoced URL's in examples. Just copy the folder to server. */
$folder = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']);
$url = sprintf('http://%s%sphp/', $_SERVER['SERVER_NAME'], $folder);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Jeditable MarkItUp! Custom Input Demo</title>
<meta name="generator" content="Mephisto" />
<link href="http://www.appelsiini.net/stylesheets/main2.css"
rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="markitup/skins/markitup/style.css" />
<link rel="stylesheet" type="text/css" href="markitup/sets/default/style.css" />
<link rel="alternate" type="application/atom+xml" href="http://feeds.feedburner.com/tuupola" title="Atom feed" />
<script src="/mint/?js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="markitup/skins/markitup/style.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="markitup/jquery.markitup.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="markitup/sets/html/style.css" />
<script src="markitup/sets/html/set.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="markitup/sets/textile/style.css" />
<script src="markitup/sets/textile/set.js" type="text/javascript"></script>
<script src="../jquery.jeditable.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.jeditable.markitup.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$('#markitup_1').editable('<?php print $url ?>save.php', {
indicator : '<img src="img/indicator.gif">',
type : 'markitup',
width : 640,
height : 'auto',
onblur : 'ignore',
submit : 'OK',
cancel : 'Cancel',
markitup : markitupHTML
});
$('#markitup_2').editable('<?php print $url ?>save.php?renderer=textile', {
indicator : '<img src="img/indicator.gif">',
loadurl : "<?php print $url ?>load.php",
type : 'markitup',
width : 640,
height : 'auto',
onblur : 'ignore',
submit : 'OK',
cancel : 'Cancel',
markitup : markitupTextile
});
});
</script>
<style type="text/css">
#sidebar {
width: 0px;
}
#content {
width: 770px;
}
</style>
</head>
<body>
<div id="wrap">
<div id="header">
<p>
<h1>Jeditable</h1><br />
<small>MarkItUp! custom input demo.</small>
<ul id="nav">
<li id="first"><a href="/" class="active">weblog</a></li>
<li><a href="/projects" class="last">projects</a></li>
</ul>
</p>
</div>
<div id="content">
<div class="entry">
<p>You might also want to check <a href="custom.html">other custom inputs</a>.
<h2>Default set</h2>
<div class="editable" id="markitup_1"><?php print file_get_contents($url . 'load.php?id=markitup_1') ?></div>
</div>
<h2>Textile set</h2>
<div class="editable" id="markitup_2"><?php print file_get_contents($url . 'load.php?id=markitup_2&renderer=textile') ?></div>
</div>
<div id="sidebar">
</div>
<div id="footer">
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
urchinTracker();
</script>
</body>
</html>