diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 04a962c..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -.DS_Store -nbproject diff --git a/Credits.html b/Credits.html new file mode 100644 index 0000000..8450701 --- /dev/null +++ b/Credits.html @@ -0,0 +1,62 @@ + + + + RainTPL - easy php template engine + + + + + + + + + + + + + + + + + +
+
+

Credits

+
RainTPL is an open source Template Engine under the MIT license.
+
This project has been created by Federico Ulfo and maintained by the community.
+
+
+ + + + + + + \ No newline at end of file diff --git a/Documentation.html b/Documentation.html new file mode 100644 index 0000000..70664aa --- /dev/null +++ b/Documentation.html @@ -0,0 +1,65 @@ + + + + RainTPL - easy php template engine + + + + + + + + + + + + + + + + + +
+
+

Documentation

+

The documentation of Rain TPL is divided in documentation for web designers and documentation for PHP developers. + Click here to go to the documentation +

+
+ +
+ + + + + + + + \ No newline at end of file diff --git a/Download.html b/Download.html new file mode 100644 index 0000000..e6f2103 --- /dev/null +++ b/Download.html @@ -0,0 +1,58 @@ + + + + RainTPL - easy php template engine + + + + + + + + + + + + + + + +
+
+

Download

+
You can download RainTPL directly from the github repository or you can install it with packagist
+
+
+ + + + + + \ No newline at end of file diff --git a/FAQ.html b/FAQ.html new file mode 100644 index 0000000..7351774 --- /dev/null +++ b/FAQ.html @@ -0,0 +1,78 @@ + + + + RainTPL - easy php template engine + + + + + + + + + + + + + + + + +
+
 
+
+

FAQ

+


What is a template engine?

+

A template engine is a script that loads templates and draws the graphics of your application. The purpose of the template engine is to separate the logic from the presentation, so developers and designers can work better together, because developers can focus on the PHP and designers can work on the HTML.

here a simple example of how a template engine works:

my_template.html

+
My name is {$name}
+


my_script.php

+
$t=new raintpl;
$t->assign("name", // get the name from a database for example // );
$t->draw( "my_template" ); // draw the template
+


So this snippet will draw something like

+
"Hello my name is Rain"
+



+

Why should I use a template engine?

+

As probably all of you knows PHP born as a template engine, during the years he evolved its coding features, but it's exactly the same for the presentation features.

For example the short tag <?= is not enabled by default in all servers, so the syntax <?=$title?> is not compatible everywhere. There's still the
closing-php-tag-eating-new-line "bug", which can become a problem with javascript or in the configuration files. It doesn't exists any official PHP documentation for PHP template designers, don't forget that web designers think HTML , they think totally different by us, PHP developers, so learn how to design PHP template from the huge documentation of php.net can be not that easy!

A template engine also allows to work in a controlled environtment, called sandbox, which allows developers to load templates from untrusted source, because is not possible to execute "dangerous code".

Another last reason is for best practices, separating your project in more layer, helps your team to work better on each single task, and to easily maintain big projects.


+

What is the best PHP template engine?

+

The one that fit the best your application needs. There are a few template engines very good, and many offer different interesting features, we advise you to just choose the one you like the most.

+

What is the faster PHP template engine?

+

RainTPL is a fast and light template engine, if performance are important for you try RainTPL.

+

Why Rain?

+

Rain is a PHP template engine, easy, fast and secure. It is open source under GNU/LGPL, so you are free to use it in your free or commercial projects.

It totally separates logic from presentation, so developers focus on PHP and designers on HTML.

Is the only template engine that uses relative paths. This feature called WYSIWYG allows designers to work on templates, like static page, so it's possible to immediately check the result on the browser. Cool ah?

+

Why should I use a template engine in an MVC Framework?

+

Templates keep your presentation layer clean and elegant, which enable your application to be more maintainable than using PHP Views.

Also thanks to the sandbox, you can't run dangerous code in your templates, and you can have sweet dream!

Here a tutorial of how to integrate RainTPL in Zend Framework.
Rain Framework, uses by default Rain TPL for the presentation layer. 

+
+
+
+ + + + + + \ No newline at end of file diff --git a/Forum.html b/Forum.html new file mode 100644 index 0000000..fde4aea --- /dev/null +++ b/Forum.html @@ -0,0 +1,62 @@ + + + + RainTPL - easy php template engine + + + + + + + + + + + + + + + + + +
+
+

Forum

+
All the conversation and questions will be done on the RainTPL Google Group
+
+
+ + + + + + + diff --git a/Links.html b/Links.html new file mode 100644 index 0000000..f11dc2e --- /dev/null +++ b/Links.html @@ -0,0 +1,63 @@ + + + + RainTPL - easy php template engine + + + + + + + + + + + + + + + + + +
+
+

Links

+

Who speak and who use RainTPL:

RainFramework.com

is an open source framework PHP based on raintpl and developed by the same team.


RainCMS.com
Coming soon ...


Php-Developer.org
Php-Developer.org/simple-and-easiest-wysiwyg-free-php5-templating-engine-raintpl-review/ Article and simple tutorial. 

+



WebResourcesDepot.com 19 Promising PHP Template Engines
article that speak about the 19 promising template engine.


Memht.com, choose RainTPL
Memht is an open source cms that use RainTPL.

+


Jooria.com
It's a website where you can find a good tutorial about RainTPL.

+
+
+ + + + + + + \ No newline at end of file diff --git a/News.html b/News.html new file mode 100644 index 0000000..88c1d45 --- /dev/null +++ b/News.html @@ -0,0 +1,402 @@ + + + + RainTPL - easy php template engine + + + + + + + + + + + + + + + + + +
+
+

News

+
+
+
+ +
+
20 July 2013
+ +

A few (nice) words on the Rain Projects

+
Hi everyone, it's been a really hot summer in New York city, one of those insanely humid, temperature arrived to over 100 F (37 C) and humidity to over 70%, but this won't stop us from coding, and...
+ + +
+ +
+
17 January 2013
+ +

RainTPL 3 final version online on Packagist

+
RainTPL 3 is been officially released and is been published on Packagist, so you'll be able to download it from github or install in your application with Composer (the suggested way). We also...
+ + +
+ +
+
24 December 2012
+ +

RainTPL on Composer

+
+ +
+ +
+
20 September 2012
+ +

Try.github the most amazing way to learn Github

+
That's the most amazing way to learn git and github: http://try.github.com/ Try it if you want to learn git to contribute to the RainTPL project or even to create your own repository. And please...
+ + +
+ +
+
12 September 2012
+ +

RainTPL 3 progress

+
Slowly RainTPL 3 is moving forward thanks to the sinergy of our awesome community. In the meaning time we are also working on the RainCMS and preparing a wiki module to create the new...
+ + +
+ +
+
20 July 2012
+ +

Rain on Cloud Server

+
You may notice that this website is going way faster, well we moved all Rain project websites on the cloud! Now we are on Cloud Server on Rackspace, in the next few weeks we'll also upgrade the...
+ + +
+ +
+
13 July 2012
+ +

Rain CMS is online!

+
The first drop + Lot of years passed since I started to work on Rain CMS, and months since I announced that Rain was going open source... and the time has finally come! This is the first Alpha...
+ + +
+ +
+
23 June 2012
+ +

Rain CMS is under MIT license

+
After years of coding, years of thinking, failures and small successes, after some recent suggestions of some big NY angel investor to do not go open source...We decided to do something good for...
+ + +
+ +
+
03 May 2012
+ +

RainTPL 3 Beta ready on Github

+
Here is the link github.com/rainphp/raintpl3!Here is the features implemented in the Beta version: + + Namespace, we chosed to use the psr-0 naming convention (if you see any wrong naming, please...
+ + +
+ +
+
29 February 2012
+ +

PHPcomparison updated

+
We updated the version of the template engines in phpcomparison.net, now it test the latest version of RainTPL and the latest version of other template engines.We are happy to say that, yet one...
+ + +
+ +
+
28 December 2011
+ +

RainTPL 3 Alpha

+
We are happy to announce that RainTpl 3 Alpha is finally on github:https://github.com/rainphp/raintpl3 + Easy, light and fast as ever, RainTPL 3 Alpha is back-compatible with RainTPL 2, the list of...
+
+ +
+
31 July 2011
+ +

RainTPL 2.6.5 bug fix for 2.6.4

+
The version 2.6.4 has been tested it and used it in many projects. Version 2.6.5 just fix 2 minor bugs of the previous version, here are the changes: + + Bug fix: variable assignment ereditable in...
+ + +
+ +
+
01 May 2011
+ +

RainTPL 2.6.4 released

+
RainTPL 2.6.4 version improve all the features introduced in RainTPL 2.6, fix a few bugs and it's even faster:Changes: + + Output Buffer, removed when unnecessary the output buffer. This change speed...
+ + +
+ +
+
08 April 2011
+ +

Fresh Forums for our community

+
As the community grows we decided to put a forum into raintpl and rainframework website, to let all of you partecipating and share experiences. You are all invited to join  the Rain Framework...
+ + +
+ +
+
10 March 2011
+ +

RainTPL 2.6.2 released

+
RainTPL 2.6.2 confirm few improvements of the version 2.6 beta.Changes: + Sandbox, introduced in 2.6 beta, the sandbox is now part of the RainTPL. The sandbox is implemented with a $black_list that... +
+
+ +
+
17 February 2011
+

Integrating Rain TPL into Zend

+
Using HTML templates instead of PHP templates has many advantages, the code is more readable, if you work in a team, designers will love you, and you'll have more time to focus on your PHP...
+ + +
+ +
+
10 February 2011
+

PHP Template Engine comparison

+
The benchmark now test also the memory used by the template engine:PHP-Template-Engines-Speed-Test/
+ +
+ +
+
08 February 2011
+

RainTPL 2.5.5 - PHP Views

+
Since the increasing use of MVC Framework, a new trend has surfaced, preference to Views over Templates, so many developers are using PHP templates instead of HTML templates. We've decided to...
+ + +
+ +
+
27 January 2011
+

RainTPL 2.5.1 - small fix

+
In version 2.4.9beta, we introduced the cache. The code changing made a bug that didn't allow to call draw method more than once on different templates, we just fixed this bug, so now is...
+ + +
+ +
+
24 January 2011
+

RainTPL published on GitHub

+
Thanks to Gonçalo Margalho, we published RainTPL on GitHub at link: https://github.com/rainphp/raintpl
+ + +
+ +
+
22 January 2011
+

RainTPL 2.5 released

+
In about a month RainTpl evolved from version 2 to version 2.5, considering first version evolved slowly in about 4 years to version 2, this is a big jump!So let's see the Rain TPL 2.5...
+ + +
+ +
+
15 January 2011
+

Website changes

+
Added the possibility to choose the new white theme or the old acid theme, and removed temporarly the Forum, at the moment for any request or feedback please write on the raintpl google groups,...
+
+ +
+
15 January 2011
+

RainTPL 2.4.9 beta

+
Mantain Rain easy and fast, but more complete is our challenge! So here we are with the new version (in beta), that implements new features: + static cache, the output of the template can be cached...
+
+ +
+
03 January 2011
+

PHP Template Engines Speed Test

+
Updated the speed test with more template engines. Click here to see the Speed Test.
+
+ +
+
02 January 2011
+

RainTPL 2.2

+
+ new tag {function="function_name"}. + source code optimized, improved the speed. + TPL_EXT constant removed. RainTPL loads only html template. + TPL_CACHE_ENABLED constant removed. Cache is always...
+
+ +
+
23 December 2010
+

LGPL License

+
RainTPL is now distributed under the Lesser General Public License, which allows the inclusion in others projects also with different license.
+
+ +
+
13 December 2010
+

RainTPL 2

+
RainTPL, get easier and lighter.The new version implements: + 7 tags to design templates. + 2 methods, assign() and draw() to load templates. + 1 file/class, the code was optimized to make it lighter...
+
+ +
+
21 August 2010
+

Rain Framework 1.0

+
RainTPL is now part of a bigger open: Rain Framework, the easy framework php open source.Rain Framework is a collection of usefull functions and classes to simplify the creation of web project...
+
+ +
+
18 August 2010
+

RainTPL 1.9

+
Corrected bug in {include} tag of the 1.9 beta version, Important updates: + + Added static property raintpl::$base_dir, which set the base directory of all image src attribute,  background attribute...
+ + +
+ +
+
23 June 2010
+

RainTPL 1.9 beta

+
After many email requests we decided to anticipate the update of the new version, to solve some problems of the older version.This is a beta version so we'll wait your feedback to make it...
+ + +
+ +
+
14 June 2010
+

Documentation in German

+
Documentation updated and translated in German.Thanks to Christian Stefan for the translation.
+
+ +
+
14 June 2010
+

Website Updated

+
Restyled the graphics and the documentation to simplify more the navigation.Thanks to Christian Stefan for graphics restyle and documentation.
+ +
+ +
+
12 June 2010
+

RainTPL 1.7.8

+
+ When the template directory is not writeable, RainTPL load the default precompiled template template_name.php (before was template_name_def.php). + Fixed some minor bug in directory...
+
+ +
+
28 December 2009
+

RainTPL 1.7.6

+
+ Fixed bug that caused wrong path replace when template had more images. +
+ +
+ +
+
10 December 2009
+

RainTPL 1.7.5

+
+ Constant DEBUG changed name in RAINTPL_CHACHE_ENABLED. Set true as default to load cached template and improved speed. + + Important: filename are now lowercase: rain.tpl.class.php, ...
+ +
+ +
+
01 September 2009
+ +

RainTPL 1.7

+
+ Is now possible to organize templates in subdirectory, ex:TPL_DIR/TPL/news/news.html $tpl = new RainTpl( 'TPL_DIR/TPL/' ); $tpl->draw( 'news/news' ); + Can be create xml template. + $show_copyright...
+ + +
+ +
+
19 November 2008
+

RainTPL 1.6 project on sourceforge.net

+
Released RainTPL version 1.6 online on sourceforge.net. Updates: + added constants:{#_CONST_NAME_#} + added global vars:{$GLOBALS}  {$_GET}  {$_POST}  {$_COOKIES}  {$_SESSION} e {$_SERVER} + if cannot...
+
+ +
+
05 August 2007
+

Memht use Raintpl

+
+ +
+ +
+
05 August 2007
+

Benchmark added

+
Benchmark of the famouse PHP template engine: benchmark. Thanks Juozas Salna for the benchmark script!
+ +
+ +
+
08 July 2007
+

RainTPL 1.0

+
Released the version 1.0 of Rain TPL. Features + Fast: load precompiled template. + Easy: 2 files, 7 tags and 3 methods for design template. + Useful: split graphics by contents, manage theme (ex:...
+
+
+
+ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index f8dd728..0000000 --- a/README.md +++ /dev/null @@ -1,6 +0,0 @@ - RainTPL -------------- - -The easy and fast template engine for PHP. Rain.TPL makes application easier to create & enables designers/developers to work better together. - -https://feulf.github.io/raintpl diff --git a/assets/css/style.css b/assets/css/style.css new file mode 100644 index 0000000..df33550 --- /dev/null +++ b/assets/css/style.css @@ -0,0 +1,217 @@ +*{margin:0;padding:0} +p{margin: 14px 0;} +ul{padding-left:40px} +p{margin-bottom:10px} +header,footer,section,aside,nav,article{display:block} +body{font-family:street,Helvetica;font-size:14px;color:#444;width:900px;margin:0 auto;} +a:link,a:visited,a:active{color:#333;text-decoration:none} +a:hover{color:red;text-decoration:underline} +img{border:0} +h1,h2,h3{font-weight:normal;margin-bottom:5px} +h1{color:#393;font-size:24px} +h2{color:#369;font-size:20px} +h3{color:#333;font-size:17px} +input,textarea{font-size:14px;color:#333;text-indent:5px;border:1px solid #ccc;-moz-border-radius:5px;-webkit-border-radius:5px;outline:none;margin:2px;padding:1px} + +@font-face{font-family: Segan-Light;src: url(../fonts/Segan-Light.ttf);} +@font-face{font-family:street;src:url(../fonts/STREET__.ttf)} +#header_msg{position:absolute;width:100%;left:0px;font-size:12px;width:100%;color:#666;background:#eeffcc;border-top:5px solid #aacc00;} +#header_msg div{padding:10px;} +#header_msg span{color:#aacc00} +#header_msg a{color:#666;text-decoration:underline;} +#header_msg a:hover{color:#aacc00} +#header{height:100px;float:left;clear:both;width:100%;margin-top:50px;font-size:10px;line-height:10px;color:#999} +#logo{float:left;margin-top:10px} +#login,#search{float:right;clear:both;margin-top:10px;font-family:Helvetica} +#search input{width:190px;height:25px;} +#search input:focus{border:3px solid #6c3;background:#efe;margin:0} +#nav{font-family:Segan-Light;font-size:13px} +#nav a{text-decoration:none;margin-right:30px} +#nav a:hover{color:#393} +#footer{font-size:11px;float:left;clear:both;width:100%;margin:30px 0} +#footer a{padding:2px 6px} +#footer .left{float:left;margin-bottom:30px} +#footer .right{float:right;margin-bottom:30px} +#slogan{background:red;float:left;clear:both;height:300px;width:900px;background:red;list-style:none;padding:0px;margin:0px;overflow:auto;} +#slogan li{float:left;clear:both;padding:0px;margin:0px;background:red;float:left;clear:both;height:300px;width:900px;background:red;list-style:none;overflow:auto;} +.block_separator{float:left;margin:30px;} +.block{float:left;width:170px;margin:80px 0 30px} +.block div{font-size:14px;color:#777;margin:0 0 10px 10px} +#message{display:none;width:200px;position:absolute;font-size:13px;line-height:16px;border:1px solid #ccc;background:#fff;-moz-border-radius:5px;-webkit-border-radius:5px;-moz-box-shadow:5px 5px 5px #999;-webkit-box-shadow:5px 5px 5px #999;box-shadow:5px 5px 5px #999;padding:20px} +#message b{color:#9c0;font-size:15px} +#news_home{float:left;clear:both;font-size:12px;color:#666;margin:40px 0;} +#news_home .link{display:block;float:right;color:#999;font-size:12px} +#ticker{height:40px;width:890px;text-shadow:1px 1px 1px #fff;font-size:20px;border:1px solid #ddd;-moz-border-radius:5px;-webkit-border-radius:5px;overflow:hidden;} +#ticker ul{padding:10px;} +#ticker li{list-style:none;line-height:20px;width:870px;} +#ticker .first a{color:#f00;} +#ticker .date{color:#999;margin-right:10px;font-size:12px;display:inline;} +#ticker h2{margin:0px;display:inline;} +#ticker .text{font-size:12px;color:#999;display:inline;margin-left:10px;} +#section{float:left;width:600px;font-family:Helvetica;margin:40px 0} +#generic_aside{float:right;clear:right;margin-top:40px;width:200px;border-left:2px dashed #ddd;padding:30px 0 30px 50px} +#section_documentation{margin:40px 0} +.doc_content{width:600px} +.documentation_content .text{font-family: Helvetica, Arial;} +.doc_index{float:left;width:400px;margin-right:40px;font-family:street;font-size:13px;border-right:1px solid #eee;min-height:300px} +.documentation_list ul{list-style:url(../img/list.jpg);line-height:22px} +.documentation_list h2 a{color:#369} +.documentation_list_block{font-size:10px;line-height:15px} +.documentation_list_block ul{padding-left:25px;list-style:none} +.documentation_list_block a{font-size:11px;color:#bbb} +.documentation_list_block:hover a{color:#333} +.documentation_list_block a:hover{color:red} +.documentation_list_block h3 a{font-size:13px} +.doc_nav{border-top:1px solid #eee;padding-top:30px;margin-top:50px;font-size:11px;text-align:center} +.doc_nav a,.doc_nav span{float:left;width:170px} +#path{color:#ccc;font-size:11px} +#path a{color:#ccc} +#generic_aside h2{font-size:18px;font-weight:normal;color:#393} +#generic_aside div{font-size:15px;color:#aaa} +.button{font-size:18px;border:1px solid #ccc;background:#f6f6f6;-moz-border-radius:10px;-webkit-border-radius:10px;color:#393!important;padding:10px} +.button:hover{text-decoration:none;color:#fff!important;background:#393;border:1px solid #030} +.button2{font-size:18px;border:1px solid #ccc;background:#f6f6f6;-moz-border-radius:10px;-webkit-border-radius:10px;color:#369!important;padding:10px} +.button2:hover{text-decoration:none;color:#fff!important;background:#369;border:1px solid #003} +.button3{font-size:18px;border:1px solid #ccc;background:#f6f6f6;-moz-border-radius:10px;-webkit-border-radius:10px;color:#963!important;padding:10px} +.button3:hover{text-decoration:none;color:#fff!important;background:#963;border:1px solid #300} +.row_0{background:#efe;padding:5px} +.row_1{background:#f6fff6;padding:5px} +.php{font-size:12px;font-family:monospace;background-color:#f6f6f6;border-left:solid 5px #ccc;padding:15px} +.template{display:block;font-size:12px;font-family:monospace;background-color:#f3fff3;border-left:solid 5px #6c6;padding:15px} +.output{font-size:12px;font-family:monospace;background-color:#f3fcfc;border-left:solid 5px #9ce;padding:15px} +code{display:block;font-size:12px;font-family:monospace;background-color:#eee;border-left:solid 5px #6c6;padding:15px} +.tag{color:#039} +.variable{color:#930} +.string{color:#090} +.command{color:blue} +.var_icon{list-style-type:disc;list-style-image:url(../images/var_icon.gif);list-style-position:outside} +.img_icon{list-style-type:disc;list-style-image:url(../images/img_icon.gif);list-style-position:outside} +.css_icon{list-style-type:disc;list-style-image:url(../images/css_icon.gif);list-style-position:outside} +.dir_icon{list-style-type:disc;list-style-image:url(../images/dir_icon.gif);list-style-position:outside} +.php_icon{list-style-type:disc;list-style-image:url(../images/php_icon.gif);list-style-position:outside} +.html_icon{list-style-type:disc;list-style-image:url(../images/html_icon.gif);list-style-position:outside} +.comment{color:#999;} +#search_result{margin:80px 0 30px} +#search_result .cover img{float:left;margin-right:10px;max-width:80px;max-height:80px} +#search_result h2 a{font-size:16px;color:#369;font-weight:bold} +#search_result .text{line-height:16px;font-size:13px} +#search_result .continue a{color:#390;font-size:11px} +.content .date{font-size:14px;color:#999} +.content a{color:#369;} +.content a:hover{color:#f00;} +.content .text{line-height:18px;} +.content ul{line-height:22px} +#news ul{line-height:15px;} +#news li{font-family:street;} +.content_list .voice{margin-bottom:30px;padding-bottom:20px;border-bottom:1px dashed #eee} +.content_list .voice h2 a{font-size:18px;text-decoration:none;color:#393} +.content_list .voice .date{font-size:11px;color:#999} + + +/* forum */ + +#forum{padding:0px;margin:0 auto 20px auto;} + +#forum_tool{margin:10px 0 30px;background:#eee;padding:6px 20px;-moz-border-radius:5px;-webkit-border-radius:5px;font-size:11px;color:#999;} +#forum_tool .path { float:left;font-size:10px;font-family:Verdana;text-decoration:none; } +#forum_tool .path a{text-decoration:none;font-weight:bold;color:#999;} +#forum_tool .path a:hover{text-decoration:underline;color:#393;} +#forum_tool .tool {text-align:right;} +#forum_tool .tool a{font-weight:bold;text-decoration:none;color:#369;} +#forum_tool .tool a:hover{text-decoration:underline;} + +#forum .forum_layout{background:#eee;padding:20px;-moz-border-radius:5px;-webkit-border-radius:5px;font-size:11px;margin-bottom:10px;} +#forum .forum_layout h1{font-size:20px;color:#369;border-bottom: 1px solid #ccc;padding-bottom:3px;} +#forum .forum_layout .text{font-size:13px;} + +#forum_content{font-family:Helvetica;line-height:13px;margin-bottom:10px;} +#forum_content h1{font-size:15px;margin:0px;padding:0px;color:#333;text-decoration:none;font-weight:bold;} +#forum_content .text{font-size:13px;margin:0px;padding:0px;} + +#forum .forum_table{border:1px solid #ccc;margin-bottom:30px;} +#forum .category{background:#369;font-size:12px;color:#fff;padding:8px 10px;font-weight:bold;} +#forum .category a{text-decoration:none;font-weight:bold;font-size:13px;} +#forum .last_reply{font-size:12px;text-align:left;width:200px;line-height:14px;} +#forum .last_reply a{color:#393;text-decoration:none;font-weight:bold;} +#forum .last_reply a:hover{text-decoration:underline;} +#forum .ntopic{font-size:12px;line-height:14px;} +#forum .title{font-size:12px;background:#dde;padding:2px 10px;border-bottom:1px solid #999;} +#forum .forum{padding:10px;border-bottom:1px solid #ccc;line-height:14px;} +#forum .forum_title{font-weight:bold;text-decoration:none;color:#069;} +#forum .forum_title:hover{text-decoration:underline;} +#forum .moderator{font-size:10px;color:#999;} +#forum .row_1{background:#f9f9f9} +#forum .row_0{background:#fff} + +#forum .alert{background:#fc9;padding:5px;font-size:12px;} + +#forum .statistics{margin-top:30px;font-size:12px;color:#666;} +#forum .statistics h2{color:#666;font-size:12px;font-weight:bold;border-bottom:1px solid #ccc;} +#forum .online_list {font-size:11px;line-height:15px;margin-top:10px;} +#forum .online_list a{text-decoration:none;} +#forum .online_list a:hover{text-decoration:underline;} + + +#topic_list {border:1px solid #ccc;margin-bottom:30px;} +#topic_list .topic_title{background:#369;font-size:12px;color:#fff;padding:3px 5px;font-weight:bold;} +#topic_list .status{padding:5px;width:30px;} +#topic_list .topic{font-size:12px;line-height:16px;} +#topic_list .topic a{color:#393;text-decoration:none;font-weight:bold;font-size:14px;} +#topic_list .topic a:hover{text-decoration:underline;} +#topic_list .npost{text-align:center;width:100px;font-size:11px;} +#topic_list .nview{text-align:center;width:100px;font-size:11px;} +#topic_list .last_reply{text-align:center;width:200px;font-size:11px;} +#topic_list .row_1{background:#f9f9f9;height:50px;} +#topic_list .row_0{background:#fff;height:50px;} + + + +#topic_title{font-weight:bold;font-size:15px;margin-bottom:10px;} +#topic_title a{color:#393;text-decoration:none;} +#topic_title a:hover{text-decoration:underline;} +#post_list table{border:1px solid #ccc;width:100%;height:200px;} +#post_list .post_date{background:#ddd;border-bottom:1px solid #bbb;padding:3px 8px;font-size:12px;height:15px;} +#post_list .post_tool{text-align:right;background:#ddd;border-bottom:1px solid #bbb;padding:3px 8px;font-size:12px;height:15px;} +#post_list .post_info{width:180px;border-right:1px solid #eee;vertical-align:top;padding:10px 20px;} +#post_list .post{vertical-align:top;padding:10px 20px;font-family:Helvetica,Arial;font-size:16px;} +#post_list .post a{color:#693;text-decoration:none;text-decoration:underline;} +#post_list .row1{background:#f3f3fc} +#post_list .row0{background:#fff} +#post_list .author{color:#369;font-weight:bold} +#post_list .level{color:#666} +#post_list .post{margin-top:10px;font-size:13px} +#new_post{width:100%} +#post_list code{} + +#forum textarea{width:98%} +#forum input[type=text],#forum input[type=password]{width:300px;border:1px solid #ccc;color:#333;font-family:helvetica;font-size:13px;padding:2px;height:20px;} +#forum input[type=text]:focus,#forum input[type=password]:focus{border:3px solid #6c3;background:#efe;margin:0} +#forum textarea{width:500px;border:1px solid #ccc;color:#333;font-family:helvetica;font-size:13px;padding:4px} +#forum textarea:focus{border:3px solid #6c3;background:#efe;margin:0} +#forum .button{font-size:12px;border:1px solid #ccc;background:#f6f6f6;-moz-border-radius:5px;-webkit-border-radius:5px;color:#666!important;padding:5px} + + + +.btn {background:#393;color:#fff!important;text-shadow:1px 1px 1px #363; display:inline-block;outline:none;cursor:pointer;text-align:center;text-decoration:none;font-size:13px;padding: 3px 20px;-webkit-border-radius: 5px;-moz-border-radius: 20px;border-radius: 20px;-webkit-box-shadow: 1px 2px 2px #060;-moz-box-shadow: 1px 2px 2px #060;box-shadow: 1px 2px 2px #060;border:0px;} +.btn:hover {text-decoration: none;background:#6c6;} +.btn:active {position: relative;top: 1px;} + +a.btn {background:#393;color:#fff!important;text-shadow:1px 1px 1px #363; display:inline-block;outline:none;cursor:pointer;text-align:center;text-decoration:none;font-size:13px;padding: 3px 20px;-webkit-border-radius: 5px;-moz-border-radius: 20px;border-radius: 20px;-webkit-box-shadow: 1px 2px 2px #060;-moz-box-shadow: 1px 2px 2px #060;box-shadow: 1px 2px 2px #060;} +a.btn:hover {text-decoration: none;background:#6c6;} +a.btn:active {position: relative;top: 1px;} +/* end forum */ + +.form_layout label.error{color:red;display:block} +.box{border:1px solid #beb;margin-bottom:20px;-moz-border-radius:5px;-webkit-border-radius:5px;line-height:18px;padding:20px} +.box_success{background:#efe;border-color:#beb} +.box_warning{background:#fff6ee;border-color:#feb} +.box_error{background:#fee;border-color:#ebb} +.box_info{background:#f6f6ff;border-color:#cce} +.box_grey{background:#f6f6f6;border-color:#ccc} +.box_purple{background:#fff3ff;border-color:#ece} +.box .close{float:right;margin-top:4px} +.box li{margin-left:10px} +#header a,.doc_nav a:hover,#path a:hover,.light_text{color:#999} +#nav .selected,#footer .selected{text-decoration:underline} +#search_result .voice,.content,.file_list .voice{margin-bottom:30px} +.padding_20{padding:20px;} \ No newline at end of file diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100644 index 0000000..08554f2 Binary files /dev/null and b/assets/favicon.ico differ diff --git a/assets/fonts/STREET__.ttf b/assets/fonts/STREET__.ttf new file mode 100644 index 0000000..9265cba Binary files /dev/null and b/assets/fonts/STREET__.ttf differ diff --git a/assets/fonts/Segan-Light.ttf b/assets/fonts/Segan-Light.ttf new file mode 100644 index 0000000..06b5833 Binary files /dev/null and b/assets/fonts/Segan-Light.ttf differ diff --git a/assets/img/easy.jpg b/assets/img/easy.jpg new file mode 100644 index 0000000..73d976d Binary files /dev/null and b/assets/img/easy.jpg differ diff --git a/assets/img/easy_text.jpg b/assets/img/easy_text.jpg new file mode 100644 index 0000000..c456cde Binary files /dev/null and b/assets/img/easy_text.jpg differ diff --git a/assets/img/fast.jpg b/assets/img/fast.jpg new file mode 100644 index 0000000..36a0f7f Binary files /dev/null and b/assets/img/fast.jpg differ diff --git a/assets/img/fast_text.jpg b/assets/img/fast_text.jpg new file mode 100644 index 0000000..eb8f882 Binary files /dev/null and b/assets/img/fast_text.jpg differ diff --git a/assets/img/logo.jpg b/assets/img/logo.jpg new file mode 100644 index 0000000..457d909 Binary files /dev/null and b/assets/img/logo.jpg differ diff --git a/assets/img/useful.jpg b/assets/img/useful.jpg new file mode 100644 index 0000000..548dba3 Binary files /dev/null and b/assets/img/useful.jpg differ diff --git a/assets/img/useful_text.jpg b/assets/img/useful_text.jpg new file mode 100644 index 0000000..f8ac8d1 Binary files /dev/null and b/assets/img/useful_text.jpg differ diff --git a/assets/img/wysiwyg.jpg b/assets/img/wysiwyg.jpg new file mode 100644 index 0000000..e926693 Binary files /dev/null and b/assets/img/wysiwyg.jpg differ diff --git a/assets/img/wysiwyg_text.jpg b/assets/img/wysiwyg_text.jpg new file mode 100644 index 0000000..1db2e92 Binary files /dev/null and b/assets/img/wysiwyg_text.jpg differ diff --git a/assets/js/jquery.innerfade.min.js b/assets/js/jquery.innerfade.min.js new file mode 100644 index 0000000..b562005 --- /dev/null +++ b/assets/js/jquery.innerfade.min.js @@ -0,0 +1 @@ +(function($){var default_options={animationType:"fade",animate:true,first_slide:0,easing:"linear",speed:"normal",type:"sequence",timeout:2e3,startDelay:0,loop:true,containerHeight:"auto",runningClass:"innerFade",children:null,cancelLink:null,pauseLink:null,prevLink:null,nextLink:null,indexContainer:null,currentItemContainer:null,totalItemsContainer:null,callback_index_update:null};$(function(){window.isActive=true;$(window).focus(function(){this.isActive=true});$(window).blur(function(){this.isActive=false})});$.fn.innerFade=function(options){return this.each(function(){$fade_object=new Object;$fade_object.container=this;$fade_object.settings=$.extend({},default_options,options);$fade_object.elements=$fade_object.settings.children===null?$($fade_object.container).children():$($fade_object.container).children($fade_object.settings.children);$fade_object.count=0;$($fade_object.container).data("object",$fade_object);if($fade_object.elements.length>1){if($fade_object.settings.nextLink||$fade_object.settings.prevLink){$.bindControls($fade_object)}if($fade_object.settings.cancelLink){$.bindCancel($fade_object)}$($fade_object.container).css({position:"relative"}).addClass($fade_object.settings.runningClass);if($fade_object.settings.containerHeight=="auto"){height=$($fade_object.elements).filter(":first").height();$($fade_object.container).css({height:height+"px"})}else{$($fade_object.container).css({height:$fade_object.settings.containerHeight})}if($fade_object.settings.indexContainer){$.innerFadeIndex($fade_object)}for(var i=0;i<$fade_object.elements.length;i++){$($fade_object.elements[i]).hide(0).css("z-index",String($fade_object.elements.length-i)).css("position","absolute")}var toShow="";var toHide="";if($fade_object.settings.type=="random"){toShow=Math.floor(Math.random()*$fade_object.elements.length);do{toHide=Math.floor(Math.random()*$fade_object.elements.length)}while(toHide==toShow)}else if($fade_object.settings.type=="random_start"){$fade_object.settings.type="sequence";toHide=Math.floor(Math.random()*$fade_object.elements.length);toShow=(toHide+1)%$fade_object.elements.length}else{toShow=$fade_object.settings.first_slide;toHide=$fade_object.settings.first_slide==0?$fade_object.elements.length-1:$fade_object.settings.first_slide-1}if($fade_object.settings.animate){$.fadeTimeout($fade_object,toShow,toHide,true)}else{$($fade_object.elements[toShow]).show();$($fade_object.elements[toHide]).hide();$.updateIndexes($fade_object,toShow)}$.updateIndexes($fade_object,toShow);$($fade_object.elements[toShow]).show();if($fade_object.settings.currentItemContainer){$.currentItem($fade_object,toShow)}if($fade_object.settings.totalItemsContainer){$.totalItems($fade_object)}if($fade_object.settings.pauseLink){$.bind_pause($fade_object)}}})};$.fn.innerFadeTo=function(slide_number){return this.each(function(index){var $fade_object=$(this).data("object");var $currentVisibleItem=$($fade_object.elements).filter(":visible");var currentItemIndex=$($fade_object.elements).index($currentVisibleItem);$.stopSlideshow($fade_object);if(slide_number!=currentItemIndex){$.fadeToItem($fade_object,slide_number,currentItemIndex)}})};$.fadeToItem=function($fade_object,toShow,toHide){var speed=$fade_object.settings.speed;switch($fade_object.settings.animationType){case"slide":$($fade_object.elements[toHide]).slideUp(speed);$($fade_object.elements[toShow]).slideDown(speed);break;case"slideOver":var itemWidth=$($fade_object.elements[0]).width(),to_hide_css={},to_show_css={},to_hide_animation={},to_show_animation={};$($fade_object.container).css({overflow:"hidden"});to_hide_css={position:"absolute",top:"0px"};to_show_css=$.extend({},to_hide_css);if(toShow>toHide){to_hide_css.left="0px";to_hide_css.right="auto";to_show_css.left="auto";to_show_css.right="-"+itemWidth+"px";to_hide_animation.left="-"+itemWidth+"px";to_show_animation.right="0px";console.log(to_hide_css)}else{to_hide_css.left="auto";to_hide_css.right="0px";to_show_css.left="-"+itemWidth+"px";to_show_css.right="auto";to_hide_animation.right="-"+itemWidth+"px";to_show_animation.left="0px"};$($fade_object.elements[toHide]).css(to_hide_css);$($fade_object.elements[toShow]).css(to_show_css).show();$($fade_object.elements[toHide]).animate(to_hide_animation,speed,$fade_object.settings.easing,function(){$(this).hide()});$($fade_object.elements[toShow]).animate(to_show_animation,speed,$fade_object.settings.easing);break;case"fadeEmpty":$($fade_object.elements[toHide]).fadeOut(speed,function(){$($fade_object.elements[toShow]).fadeIn(speed)});break;case"slideEmpty":$($fade_object.elements[toHide]).slideUp(speed,function(){$($fade_object.elements[toShow]).slideDown(speed)});break;default:$($fade_object.elements[toHide]).fadeOut(speed);$($fade_object.elements[toShow]).fadeIn(speed);break}if($fade_object.settings.currentItemContainer){$.currentItem($fade_object,toShow)}if($fade_object.settings.indexContainer||$fade_object.settings.callback_index_update){$.updateIndexes($fade_object,toShow)}};$.fadeTimeout=function($fade_object,toShow,toHide,firstRun){if(window.isActive){if(firstRun!=true){$.fadeToItem($fade_object,toShow,toHide)}$fade_object.count++;if($fade_object.settings.loop==false&&$fade_object.count>=$fade_object.elements.length){$.stopSlideshow($fade_object);return}if($fade_object.settings.type=="random"){toHide=toShow;while(toShow==toHide){toShow=Math.floor(Math.random()*$fade_object.elements.length)}}else{toHide=toHide>toShow?0:toShow;toShow=toShow+1>=$fade_object.elements.length?0:toShow+1}}var timeout=firstRun&&$fade_object.settings.startDelay?$fade_object.settings.startDelay:$fade_object.settings.timeout;$($fade_object.container).data("current_timeout",setTimeout(function(){$.fadeTimeout($fade_object,toShow,toHide,false)},timeout))};$.fn.innerFadeUnbind=function(){return this.each(function(index){var $fade_object=$(this).data("object");$.stopSlideshow($fade_object)})};$.stopSlideshow=function($fade_object){clearTimeout($($fade_object.container).data("current_timeout"));$($fade_object.container).data("current_timeout",null)};$.bindControls=function($fade_object){$($fade_object.settings.nextLink).on("click",function(event){event.preventDefault();$.stopSlideshow($fade_object);var $currentElement=$($fade_object.elements).filter(":visible");var currentElementIndex=$($fade_object.elements).index($currentElement);var $nextElement=$currentElement.next().length>0?$currentElement.next():$($fade_object.elements).filter(":first");var nextElementIndex=$($fade_object.elements).index($nextElement);$.fadeToItem($fade_object,nextElementIndex,currentElementIndex)});$($fade_object.settings.prevLink).on("click",function(event){event.preventDefault();$.stopSlideshow($fade_object);var $currentElement=$($fade_object.elements).filter(":visible");var currentElementIndex=$($fade_object.elements).index($currentElement);var $previousElement=$currentElement.prev().length>0?$currentElement.prev():$($fade_object.elements).filter(":last");var previousElementIndex=$($fade_object.elements).index($previousElement);$.fadeToItem($fade_object,previousElementIndex,currentElementIndex)})};$.bind_pause=function($fade_object){$($fade_object.settings.pauseLink).unbind().click(function(event){event.preventDefault();if($($fade_object.container).data("current_timeout")!=null){$.stopSlideshow($fade_object)}else{var tag=$($fade_object.container).children(":first").prop("tagName").toLowerCase();var nextItem="";var previousItem="";if($fade_object.settings.type=="random"){previousItem=Math.floor(Math.random()*$fade_object.elements.length);do{nextItem=Math.floor(Math.random()*$fade_object.elements.length)}while(previousItem==nextItem)}else if($fade_object.settings.type=="random_start"){previousItem=Math.floor(Math.random()*$fade_object.elements.length);nextItem=(previousItem+1)%$fade_object.elements.length}else{previousItem=$(tag,$($fade_object.container)).index($(tag+":visible",$($fade_object.container)));nextItem=previousItem+1==$fade_object.elements.length?0:previousItem+1}$.fadeTimeout($fade_object,nextItem,previousItem,false)}})};$.bindCancel=function($fade_object){$($fade_object.settings.cancelLink).unbind().click(function(event){event.preventDefault();$.stopSlideshow($fade_object)})};$.updateIndexes=function($fade_object,toShow){$($fade_object.settings.indexContainer).children().removeClass("active");$("> :eq("+toShow+")",$($fade_object.settings.indexContainer)).addClass("active");if(typeof $fade_object.settings.callback_index_update=="function"){$fade_object.settings.callback_index_update.call(this,toShow)}};$.createIndexHandler=function($fade_object,count,link){$(link).click(function(event){event.preventDefault();var $currentVisibleItem=$($fade_object.elements).filter(":visible");var currentItemIndex=$($fade_object.elements).index($currentVisibleItem);$.stopSlideshow($fade_object);if($currentVisibleItem.size()<=1&&count!=currentItemIndex){$.fadeToItem($fade_object,count,currentItemIndex)}})};$.createIndexes=function($fade_object){var $indexContainer=$($fade_object.settings.indexContainer);for(var i=0;i<$fade_object.elements.length;i++){var $link=$('
  • '+(i+1)+"
  • ");$.createIndexHandler($fade_object,i,$link);$indexContainer.append($link)}};$.linkIndexes=function($fade_object){var $indexContainer=$($fade_object.settings.indexContainer);var $indexContainerChildren=$("> :visible",$indexContainer);if($indexContainerChildren.size()==$fade_object.elements.length){var count=$fade_object.elements.length;for(var i=0;icache('page', 60, 1) ) - echo $cache; - else{ - - //variable assign example - $variable = "Hello World!"; - $tpl->assign( "variable", $variable ); - - //loop example - $week = array( 'Monday', 'Tuersday', 'Wednesday', 'Friday', 'Saturday', 'Sunday' ); - $tpl->assign( "week", $week ); - - //loop example 2 - $user = array( array( 'name'=>'Jupiter', 'color'=>'yellow'), - array( 'name'=>'Mars', 'color'=>'red' ), - array( 'name'=>'Earth', 'color'=>'blue' ), - ); - $tpl->assign( "user", $user ); - - //loop example with empty array - $tpl->assign( "empty_array", array() ); - - $info = array( 'title'=>'Rain TPL Example', - 'copyright' => 'Copyright 2006 - 2011 Rain TPL
    Project By Rain Team' ); - - $tpl->assign( $info ); - - global $global_variable; - $global_variable = 'This is a global variable'; - - //draw the template - echo $tpl->draw( 'page', $return_string = true ); - } - -?> \ No newline at end of file diff --git a/clean_cache.php b/clean_cache.php deleted file mode 100644 index b3157fc..0000000 --- a/clean_cache.php +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/example.php b/example.php deleted file mode 100644 index f5bcec3..0000000 --- a/example.php +++ /dev/null @@ -1,55 +0,0 @@ -assign( "variable", $variable ); - - //loop example - $week = array( 'Monday', 'Tuersday', 'Wednesday', 'Friday', 'Saturday', 'Sunday' ); - $tpl->assign( "week", $week ); - - //loop example 2 - $user = array( array( 'name'=>'Jupiter', 'color'=>'yellow'), - array( 'name'=>'Mars', 'color'=>'red' ), - array( 'name'=>'Earth', 'color'=>'blue' ), - ); - $tpl->assign( "user", $user ); - - //loop example with empty array - $tpl->assign( "empty_array", array() ); - - $info = array( 'title'=>'Rain TPL Example', - 'copyright' => 'Copyright 2006 - 2011 Rain TPL
    Project By Rain Team' ); - - $tpl->assign( $info ); - - global $global_variable; - $global_variable = 'This is a global variable'; - - - // you can draw the output - // $tpl->draw( 'page' ); - // or the template output string by setting $return_string = true: - $html = $tpl->draw( 'page', $return_string = true ); - - // and then draw the output - echo $html; - - - class str{ - function cut($t){ - return substr($t, 1, 2 ); - } - } - -?> \ No newline at end of file diff --git a/gz_example.php b/gz_example.php deleted file mode 100644 index 2ae7e8c..0000000 --- a/gz_example.php +++ /dev/null @@ -1,62 +0,0 @@ -assign( "variable", $variable ); - - //loop example - $week = array( 'Monday', 'Tuersday', 'Wednesday', 'Friday', 'Saturday', 'Sunday' ); - $tpl->assign( "week", $week ); - - //loop example 2 - $user = array( array( 'name'=>'Jupiter', 'color'=>'yellow'), - array( 'name'=>'Mars', 'color'=>'red' ), - array( 'name'=>'Earth', 'color'=>'blue' ), - ); - $tpl->assign( "user", $user ); - - //loop example with empty array - $tpl->assign( "empty_array", array() ); - - $info = array( 'title'=>'Rain TPL Example', - 'copyright' => 'Copyright 2006 - 2011 Rain TPL
    Project By Rain Team' ); - - $tpl->assign( $info ); - - global $global_variable; - $global_variable = 'This is a global variable'; - - - // you can draw the output - // $tpl->draw( 'page' ); - // or the template output string by setting $return_string = true: - $html = $tpl->draw( 'page', $return_string = true ); - - // and then draw the output - echo $html; - - - class str{ - function cut($t){ - return substr($t, 1, 2 ); - } - } - - -// -- end \ No newline at end of file diff --git a/inc/LICENSE.txt b/inc/LICENSE.txt deleted file mode 100755 index 19c3fbd..0000000 --- a/inc/LICENSE.txt +++ /dev/null @@ -1,30 +0,0 @@ -The MIT License - -Copyright (c) 2011 Federico Ulfo - -Permission is hereby granted, free of charge, to any person obtaining a -copy -of this software and associated documentation files (the "Software"), to -deal -in the Software without restriction, including without limitation the -rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included -in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN -THE SOFTWARE. diff --git a/inc/rain.tpl.class.php b/inc/rain.tpl.class.php deleted file mode 100755 index 7219422..0000000 --- a/inc/rain.tpl.class.php +++ /dev/null @@ -1,1136 +0,0 @@ -), stylesheet (), script ( + + + + +
    +
    + The easy and fast template engine for PHP.   Rain.TPL makes application easier to create & enables designers/developers to work better together. +
    +
    + + + + + + + +
    +
    + + + + +
    + 8 Tags
    + 4 Methods +
    +
    +
     
    +
    + + + + +
    + compiles HTML to PHP +
    +
    +
     
    +
    + + + + +
    + divides logic by graphic +
    +
    +
     
    +
    + + + + +
    + designs HTML templates +
    +
    +
    + + + + + + diff --git a/tmp/.gitignore b/tmp/.gitignore deleted file mode 100644 index cde8069..0000000 --- a/tmp/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.php diff --git a/tpl/img/bottom.gif b/tpl/img/bottom.gif deleted file mode 100644 index a536dde..0000000 Binary files a/tpl/img/bottom.gif and /dev/null differ diff --git a/tpl/img/logo.gif b/tpl/img/logo.gif deleted file mode 100644 index bc8c9ac..0000000 Binary files a/tpl/img/logo.gif and /dev/null differ diff --git a/tpl/img/top.gif b/tpl/img/top.gif deleted file mode 100644 index a5ea97f..0000000 Binary files a/tpl/img/top.gif and /dev/null differ diff --git a/tpl/page.html b/tpl/page.html deleted file mode 100644 index baac941..0000000 --- a/tpl/page.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - -{$title} - - - - - - - - - - -
    - -

    Variable example

    -
    - -

    Variable example

    - {* all code between noparse tags is not compiled *} - variable {noparse}{$variable}{/noparse} = {$variable} - -

    -

    Variable assignment

    - assignment {$number=10} and print {$number} - -

    -

    Operation with strings

    - - - {$variable . $number}
    - {$number + 20} -
    - -

    -

    Variable Modifiers

    - - {$variable|substr:0,7}
    - a modifier on string: {"hello world"|strtoupper} -
    - -

    -

    Global variables

    - The variable is declared as global into the PHP {$GLOBALS.global_variable} -

    - -

    Show all declared variables

    - To show all declared variable use {noparse}{$template_info}{/noparse}.

    - - {$template_info} - -

    - -
    - -

    Constants

    -
    -

    Constant

    - Constant: {#true#} - -

    -

    Modier on constant as follow

    - Negation of false is true: {PHP_VERSION|round} -
    - -

    Loop example

    -
    -

    Simple loop example

    - -
      - {loop="week"} -
    • {$key} = {$value}
    • - {/loop} -
    -
    - -

    - -

    Loop example with associative array

    - -
      -
    • ID _ Name _ Color
    • - {loop="user"} -
    • {$key}) - {$value.name|strtoupper} - {$value.color}
    • - {/loop} -
    -
    - -

    - -

    Loop an empty array

    - -
      - {loop="empty_array"} -
    • {$key}) - {$value.name} - {$value.color}
    • - {else} - The array is empty - {/loop} -
    -
    - -
    - -

    If Example

    -
    - -

    simple if example

    - - {if="$number==10"}OK! - {else}NO!{/if} - - -

    - -

    example of if, elseif, else example

    - - {if="substr($variable,0,1)=='A'"}First character is A - {elseif="substr($variable,0,1)=='B'"}First character is B - {else}First character of variable is not A neither B - {/if} - -

    - -

    use of ? : operator (number==10?'OK!':'no')

    - You can also use the ? operator instead of if - {$number==10? 'OK!' : 'no'} - -
    - -

    Include Example

    -
    -

    Example of include file

    - {include="test"} -
    - -

    External Include Example

    -
    -

    Example of include file

    - {include="http://www.phpcomparison.net/graph/pie.php?template[dwoo]=on&template[openpowertemplate]=on&template[php]=on&template[raintpl]=on&template[savant]=on&template[smarty]=on&template[twig]=on&test=assign"} -
    Yes, Rain is fast and light, so click here if you want to see the complete speed test -
    - - -

    Functions

    -
    -

    Example of function: ucfirst(strtolower($title))

    - {function="ucfirst(strtolower($title))"} -
    - -

    Path Replace (WYSIWYG)

    -
    - -

    WYSIWYG

    - - RainTPL replaces relative paths of images, css and links automatically with the correct server paths. -

    - -

    Path replace on relative path of image

    - into the template the image is wrote as: - <img src="img/logo.gif" alt="logo"/> - in the compiled template the path is replaced with the correct path tpl/img/logo.gif:
    - logo -


    - RainTpl is javascript friendly - Absolute paths and path ending with # are not replaced -

    For more info read the documentation: - https://feulf.github.io/raintpl - -
    - -
    - - - - - diff --git a/tpl/style.css b/tpl/style.css deleted file mode 100644 index dfa9334..0000000 --- a/tpl/style.css +++ /dev/null @@ -1,18 +0,0 @@ -/* CSS Document */ - -body{ margin:0px; color:#333; font: 13px Helvetica; background:#eee;} -a{ color: #333; } -a:hover{ color: #999; } -img{border:0px;} - -#logo{width:100%;height:80px;background:url('img/top.gif') repeat-x #666;} -#content{ height: 100%;padding:20px; } -#footer{background: url('img/bottom.gif') repeat-x;color:#ccff00; padding:15px; text-align:center;} -#footer a{color:#ccff00;} - -.layout{background:#fff;border: 1px solid #ccc; padding:20px;margin-bottom:30px;} -code{ display:block;font:12px monospace; background: #e9ffe9;padding: 15px; border: solid 1px #ccddcc; margin-bottom:10px;} -tt{ display:block; font:12px monospace; background: #f6fdfd; padding: 15px; border: solid 1px #ccdddd; margin-bottom:0 0 10px 0; } - -.color1{background:#eeeeff;} -.color2{background:#ddddee;} \ No newline at end of file diff --git a/tpl/test.html b/tpl/test.html deleted file mode 100644 index 973179c..0000000 --- a/tpl/test.html +++ /dev/null @@ -1 +0,0 @@ -
    This is test.html
    \ No newline at end of file