theme_simple
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:
# Theme Simple

This is a theme used for various web applications running CakePHP 1.3.
It is plain and basic, black on white.

**Assume nothing:** The Simple theme should work without any additional content available.

**Keep it minimalistic:** The Simple theme should be as simple as possible.

**Keep it lightweight:** The Underlying markup is lightweight, easy to transform and free of markup-overhead just to produce more visually appealing results. The markup should treat the content with respect and work without the inclusion of tons of libraries.

## Requirements

You need CakePHP 1.3 or higher, to make use of the webroot-folder within the themes-folder.

Also, you need to activate themes, by setting these variables in your AppController:

	public $view = 'Theme'; //tells CakePHP to use Themed View
	public $theme = '  '; //tells CakePHP to use this 

### Wait, what about CakePHP 1.2?

If you need to use CakePHP 1.2 for whatever reason, try to symlink the webroot folder to `APP\webroot\themes\  `

## Installation

Within your CakePHP applications root type the following command to add theme_simple as a git submodule.

	git submodule add git@github.com:bruensicke/theme_simple.git app/views/themed/simple

## Development

Simple Theme can easily be developed without CakePHP running or PHP parsing at all. Just open `webroot/index.html` in your favourite browser.
All Assets (js, css, img) should be loaded as usual and you can change markup to your likings and see how they render. Please notice, that changes to the markup will not reflect the themes layouts within CakePHP. It is more a preview of how assets will be rendered.
Therefore, to change something crucial, you have to work within the folders `/css`, `/js` or `/img`. Make sure to reference every other asserts relative, so both access methods remain intact.

## Elements

We created elements below `elements`-folder, that checks for APP versions of that file. If they do exist, it includes this one.

## Markup

Have a look at the following markups, to get a clue of what this layout is about.

### Layout "default.ctp"

This is just the main-markup without head and the rest.

	
element('flash'); echo $content_for_layout; ?>
element('footer'); ?>
### 3 columns You can use this to have 3 columns in a row.

optional title

### Articles (4 in a row) You can use this markup to have 4 articles side by side.

title for section

...
...
...
### Inline Tabs These inline-Tabs are shown on the upper right.
  • highlights
  • all
## Owners Simple theme is developed by [brünsicke.com GmbH](http://bruensicke.com/). Get in touch if you need help making your next project.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。