<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head lang="en">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<title>Poly - Documentation [www.20script.ir]</title>
	<!-- Framework CSS -->
	<link rel="stylesheet" href="assets/blueprint-css/screen.css" type="text/css" media="screen, projection">
	<link rel="stylesheet" href="assets/blueprint-css/print.css" type="text/css" media="print">
	<!--[if lt IE 8]><link rel="stylesheet" href="assets/blueprint-css/ie.css" type="text/css" media="screen, projection"><![endif]-->
	<link rel="stylesheet" href="assets/blueprint-css/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
	<style type="text/css" media="screen">
		p, table, hr, .box { margin-bottom:25px; }
		.box p { margin-bottom:10px; }
	</style>
</head>
<body>
	<div class="container">
	
		<h3 class="center alt">&ldquo;Poly&rdquo; Documentation by &ldquo;Fast Hive&rdquo; v1.0</h3>
		<hr>
		
		<h1 class="center">&ldquo;Poly&rdquo;</h1>
		
		<div class="borderTop">
			<div class="span-6 colborder info prepend-1">
				<p class="prepend-top">
					<strong>
					Created at: 01/01/2016<br>
					By: Fast Hive<br>
					E-mail: <a href="mailto:info@fasthive.com">info@fasthive.com</a>
					</strong>
				</p>
			</div><!-- end div .span-6 -->		
	
			<div class="span-12 last">
				<p class="prepend-top append-0">Thank you for purchasing Poly. If you have any questions that are beyond the scope of this help file, 
				Please feel free to contact us by using this contact form <a href="https://fasthive.com/clientarea/support/contact-us">here</a>. 
				Thank you for your cooperation.</p>
			</div>
		</div><!-- end div .borderTop -->
		
		<hr>
		<h2 id="toc" class="alt">Table of Contents</h2>
		<ol class="alpha">
			<li><a href="#poly">What is Poly?</a></li>
			<li><a href="#Installation">Installation</a></li>
			<li><a href="#atcp">How to Access the Control Panel?</a></li>
			<li><a href="#settings">Change Website Settings</a></li>
			<li><a href="#users">Add/Delete Users</a></li>
			<li><a href="#ccat">Create a New Category</a></li>
			<li><a href="#cpost">Create a New Post</a></li>
			<li><a href="#editcorp">Edit/Delete Category or a Post</a></li>
			<li><a href="#contactus">Contact Us Form</a></li>
			<li><a href="#template">How to edit Poly template?</a></li>
		</ol>
		
		<hr>
		<h3 id="poly"><strong>A) What is Poly</strong> - <a href="#toc">top</a></h3>
		<p>Poly is a multi-use web based software, especially designed to build user-friendly useful to modify blogs and websites. 
		Poly is a platform for those specialised in blogging and web design, and provides them with simplified and flexible interface, 
		search engine optimisation, easy publishing, installation and upgrades, various publishing tools, easy theme selection, 
		straightforward user management, data ownership and full standards compliance. The software offers multifunctions at a very cheap price, 
		and can also be used as a base for other app developers interested in customisation and further code development.</p>
		<p>Select Features:</p>
		
		<li>Post Creation: We have made post creation smooth and accessible, through our easy to use control panel. 
		You will not need to struggle to find icons to create a post, our design is suitable for amateurs.</li>
		<li>Template Systems: Our application can be used to create sleek and elegant themes, 
		that can be reused and shared with other users. You can create simple straightforward themes, or complicated stylish ones. 
		You will own the theme you have created, and you have the freedom to share it with others.</li>
		<li>Multiple Administrators: Our straightforward design allow for multiple users to use the application. 
		The users are easy to manage, you can provide full or restricted access to users in a trouble-free manner.</li>
		<br/>

		<hr>
		<h3 id="Installation"><strong>B) Installation</strong> - <a href="#toc">top</a></h3>
		<h3>Requirements</h3> 
		<p>1) Poly Requires PHP 5 and MySQL.</p>  
		<p>2) <a href="http://fasthive.com" >Domain Name</a> and <a href="http://fasthive.com" >Web Hosting.</a></p>  

		<hr>
		<h3>1) Setting Up Your MySQL & FTP server</h3> 
		<p>First thing you want to do, is to make sure you create a MySQL database along with an user for it (IMPORTANT NOTE: Copy somewhere your mysql username, and password, as you will need them later)</p>
		<p>Setup your FTP server for the domain where the script will be installed.</p>

		<hr>
		<h3>2) Upload Process </h3> 
		<li>The first step is to upload the content inside the folder "Script" (IMPORTANT NOTE: Upload what's inside the folder Script, not the script folder) into your public_html folder or into your default FTP root folder.</li>
		<li>The second thing is to upload your .sql file from the folder called "MySQL" using the IMPORT function available in phpMyAdmin.</li>
		<br/>
		
		<hr>
		<h3>3) Installation Process</h3> 
		<p>Now, After you uploaded everything, You can start the installation process.</p>

		<p>Changes inside the files</br>
		With a text editor (e.g.: Notepad), Open the following folder located inside the '/includes/'
		file: config.php. Now, Replace what's inside the brackets (e.g.: 'Your Database Host') with your MySQL settings, 
		</p>
		<pre>	
		define("DB_HOST", "Your Database Host"); 
		define("DB_USER", "Database Username"); 
		define("DB_PASS", "Database Password");
		define("DB_NAME", "Database Name");
		</pre>
		Save and exit.
		<p>Now, After you finished the steps above, Upload the edited file config.php to includes folder using FTP.</p> 

		<hr>
		<h3 id="atcp"><strong>C) How to Access the Control Panel?</strong> - <a href="#toc">top</a></h3>
		<p>Accessing the control panel can be done through: <b>example.com/administration</b>
		<br/>
		The default username is "Admin", and the password is "Admin" without quotes.
		</p>
		
		<hr>
		<h3 id="settings"><strong>D) Changing Website Settings </strong> - <a href="#toc">top</a></h3>
		<p>Through the control panel, There is a menu containing Settings, In the settings page you can change the site title, Description, Keywords, Logo and copyright text.</p>
				
		<hr>
		<h3 id="users"><strong>E) Add/Delete Users</strong> - <a href="#toc">top</a></h3>
		<b>Adding a New User</b>
		<p>Through the control panel, There is a menu containing Users, At the bottom of the Users page, you will find a new user button.</p>
		<b>Deleting a User</b>
		<p>Through the control panel, There is a menu containing Users, Click on it and you will find a delete icon next to each user, Click it to delete the user.</p>

		
		<hr>
		<h3 id="ccat"><strong>F) Create a New Category</strong> - <a href="#toc">top</a></h3>
		<p>Through the control panel, There is a menu containing categories, 
		Click on it and at the bottom of the categories page, You will find a new category button.</p>
		
		<hr>
		<h3 id="cpost"><strong>G) Create a New Post</strong> - <a href="#toc">top</a></h3>
		<p>Through the control panel, there is a menu containing Add New, Click on it and add your content, Then click on "Add Post"</p>
		
		<hr>
		<h3 id="editcorp"><strong>H) Edit/Delete Category or a Post</strong> - <a href="#toc">top</a></h3>
		<b>Delete a Category</b>
		<p>Through the control panel, There is a menu containing Categories, Click on it and you will find a delete icon next to each category, Click it to delete the category.</p>
		<b>Delete a Post</b>
		<p>Through the control panel, There is a menu containing All Posts, Click on it and you will find a delete icon next to each post, Click it to delete the post.</p>
	
		<hr>
		<h3 id="contactus"><strong>I) Contact Form</strong> - <a href="#toc">top</a></h3>
		<p>Through the control panel under Settings, Just change the email address to the email you want messages to be sent to.</p>

		<hr>
		<h3 id="template"><strong>J) How to edit Poly template</strong> - <a href="#toc">top</a></h3>
		<p>This part is to guide you throughout the customization of the template. HTML and CSS knowledhe is required to customize this template.</p>
		<p>Requirements: You will need the following software to customize this template:</p>
		<ul>
		<li>Code Editing Software (eg: Dreamweaver, Sublime Text or Notepad)</li>
		<li>Web Browser for testing (eg: Google Chrome or Mozilla Firefox)</li>
		<li>FTP Tool to upload files to Server (eg: FileZilla)</li>
		</ul>
		<p>If you have successfully downloaded the package and extracted the zip file you should be able to navigate to the following directory template/default. 
		This directory contains all the tempalte files that you may want to edit! you should see file structure as follows</p>
		<pre>
		Script/
		├── template/
		│   ├── default/    
		│   │	├── assets/ - Includes the CSS and JS files. 
		│   │	├── category.phtml - Category Template File
		│   │	├── contactus.phtml - Contact Us Template File
		│   │	├── index.phtml - Home Page Template File
		│   │	├── post.phtml - Post Template File
		</pre>
		<p>If you want to create a custom theme, you can either customize an existing theme or start from scratch.</p>
		<p>The .phtml files which are HTML files that have php instructions that pieces your pages together. 
		They are essentially HTML files with PHP instructions that pulls content from your database and constructs the pages.</p>
		<hr>
		<h3>Code Reference</h3>
		<h3>Site Information
		<span style="font-size:12px;">These variables displays information for your site, mostly gathered from the information you supply in the Settings page.
		It can be used anywhere within a template file.</span></h3> 
		<ol>
		<li> {{ site.url }} - Displays the site url.</li>
		<li> {{ site.title }} - Displays the site title.</li>
		<li> {{ site.copyright }} - Displays the site copyright.</li>
		<li> {{ site.description }} - Displays the site description.</li>
		<li> {{ site.keywords }} - Displays the site keywords.</li>
		<li> {{ site.logo }} - Displays the site logo name.</li>
		<li> {{ site.email }} - Displays the site email.</li>
		<li> {{ site.phone }} - Displays the site phone.</li>
		<li> {{ site.city }} - Displays the site city.</li>
		<li> {{ site.country }} - Displays the country.</li>
		<li> {{ site.address1 }} - Displays the address.</li>
		<li> {{ site.name }} - Displays the business name.</li>
		</ol>
		<h3>Post - <span style="font-size:12px;">These variables displays information for any post, It can be used anywhere within the post template file.</span></h3>
		<ul>
		<li> {{ post.id }} - Displays the post ID.</li>
		<li> {{ post.title }} - Displays the post title.</li>
		<li> {{ post.description }} - Displays the post description.</li>
		<li> {{ post.subtitle }} - Displays the post subtitle.</li>
		<li> {{ post.keywords }} - Displays the post keywords.</li>
		<li> {{ post.content }} - Displays the post content.</li>
		<li> {{ post.photo }} - Displays the post photo name.</li>
		<li> {{ post.tags }} - Displays the post tags.</li>
		<li> {{ post.date }} - Displays the post date.</li>
		</ul>
		
		<h3>Category - <span style="font-size:12px;">These variables displays information for a category, It can be used anywhere within the category template file.</span></h3>
		<ul>
		<li> {{ category.id }} - Displays the category ID.</li>
		<li> {{ category.title }} - Displays the category title.</li>
		<li> {{ category.description }} - Displays the category description.</li>
		<li> {{ category.keywords }} - Displays the category keywords.</li>
		</ul>		
		<h3>Posts Loop in Home and Categories Pages</h3>
		<p>The Loop should be placed in index.phtml and in any other templates used to display post information.</p>
		<p>Here is a quick example for a loop</p>
			<pre>
			{% for post in posts %}
			
			{{ post.title }}
			{{ post.content }}
			{{ post.date }}
			
			{% endfor %}
			</pre>		
		<hr>	
		<p>Once again, Thank you so much for purchasing Poly. As we mentioned at the beginning, 
		Please feel free to contact us via this contact form <a href="https://fasthive.com/clientarea/support/contact-us">here</a>. 
		We will do do our best to.</p> 
		
		<p class="append-bottom alt large"><strong>Fast Hive</strong></p>
		<p><a href="#toc">Go To Table of Contents</a></p>
		
		<hr class="space">
	</div><!-- end div .container -->
</body>
</html>