示例#1
0
文件: about.php 项目: NickGeek/Fancy
				<a href="." id="logo"><img src="images/logo.png" alt=""/></a>
				<ul>
					<li><a href=".">Home</a></li>
					<li class="selected"><a href="about.php">About</a></li>
					<li><a href="blog.php">Blog</a></li>
				</ul>
			</div>
			<div class="body">
				
				<h3>The power of Fancy</h3>
				<p>This part of the page is static, however note the three boxes below. They are from the homepage. I can update these featured products from the Fancy Dashboard and it will directly feed into the boxes on the homepage as well as this page. No duplication of code for duplication of stuff!</p>
				<p>Also note the 'Coming soon to Fancy' section. Just the text under that heading is dynamic. This means you don't have to go into the code to edit that section.</p>

				<h3>Coming soon to Fancy</h3>
				<?php 
$fancyConnector->fancy('Coming Soon');
?>

				<h3>What makes Fancy different from a CMS?</h3>
				<p>Fancy is a drop-in solution for existing static pages. It doesn't require the entire page to be built around it.</p>

				<h3>Why PHP? Are you stupid?</h3>
				<p>I could write Fancy for NodeJS, Python, Rails, etc. The reason I have chosen PHP (even with all of its flaws) is because of the wide support it has. Fancy will even work on shared hosting where user access is very limited.</p>
					
				<ul class="featuredItems">
					<li>
						<div>
							<?php 
$fancyConnector->fancy('Feature 1');
?>
							<a href="javascript:void(0);"></a>
示例#2
0
文件: index.php 项目: NickGeek/Fancy
					<li class="selected"><a href=".">Home</a></li>
					<li><a href="about.php">About</a></li>
					<li><a href="blog.php">Blog</a></li>
				</ul>
			</div>
			<div class="body">
				<div id="featured">
					<h3>This page is very <a href="http://fancyxht.ml" target="_blank"><em>Fancy</em></a></h3>
					<p>This website has dynamic content all throughout it using Fancy. This entire website took next to no time to class it up and make it <em>fancy</em>! Have a look around and see how this website has no CMS junk; just simple HTML, CSS, and a little bit of fanciness. Once you're done here consider saving yourself time and hassle by putting Fancy in your website.</p>
					<input type="button" value="Read more" onClick="parent.location='about.php'"/>
				</div>
				<ul class="featuredItems">
					<li>
						<div>
							<?php 
$fancyConnector->fancy('Feature 1');
?>
							<a href="javascript:void(0);"></a>
						</div>
					</li>
					<li>
						<div>
							<?php 
$fancyConnector->fancy('Feature 2');
?>
							<a href="javascript:void(0);"></a>
						</div>
					</li>
					<li>
						<div>
							<?php