Gallery: 外观主题:开发:概览:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
 
第1行: 第1行:
With a bit of HTML and CSS knowledge, you can customize how your Gallery theme appears. Add some PHP and Smarty Template knowledge and you can change a theme’s functionality or create a new theme.
只要懂一点HTML和CSS,你就可以自定义外观主题的呈现方式了。如果能再了解一些PHP和Smarty模板的相关知识,你就能修改外观主题的功能或新建外观主题。


Before beginning to edit or create a theme, get familiar with Gallery 2’s theme elements. Theme developers should also be familiar with the [http://smarty.php.net/manual/en/what.is.smarty.php Smarty template engine].
在开始编辑或创建外观主题之前,先让我们熟悉一下Gallery2的外观主题元素。外观主题开发者也应熟悉[http://smarty.php.net/manual/en/what.is.smarty.php Smarty模板引擎]


* '''[[Gallery:Themes:Anatomy_of_a_Theme|Anatomy of a Theme]]''' - Learn how Gallery themes are constructed
* '''[[Gallery:Themes:Anatomy_of_a_Theme|外观主题剖析]]''' – 了解Gallery外观主题的构建


* '''[[Gallery:Modules:colorpack|Colorpacks]]''' - Gallery's color scheme manager
* '''[[Gallery:Modules:colorpack|颜色包]]''' – Gallery的色彩方案管理
* '''[[Gallery:Imageframe|ImageFrames]]''' - Customize albums and images by framing them
* '''[[Gallery:Imageframe|图片框]]''' – 为相册和图片加上边框


* '''[[Gallery:Themes:How_to_Edit_an_Existing_Theme|Editing an Existing Theme]]''' - Customize a theme to meet your needs
* '''[[Gallery:Themes:How_to_Edit_an_Existing_Theme|编辑现有的外观主题]]''' – 修改外观主题以符合你的要求
* '''[[Gallery:Themes:How_to_Create_a_New_Theme|Create a New Theme]]''' - Learn how to create your own theme. This tutorial takes an HTML/CSS theme mockup and converts it to a Gallery theme
* '''[[Gallery:Themes:How_to_Create_a_New_Theme|新建外观主题]]''' – 了解如何创建外观主题。该教程使用HTML/CSS外观主题模型并将其转为一个Gallery外观主题
* '''[[Gallery:Themes:How_to_Copy_an_Existing_Theme|How to Copy an Existing Theme]]''' - Learn how to copy an existing theme before making extensive modifications
* '''[[Gallery:Themes:How_to_Copy_an_Existing_Theme|如何复制现有的外观主题]]''' – 了解在做大幅修改前如何复制现有外观主题
* '''[[Gallery:Themes:Reference|Theme Template Reference]]''' - A quick reference of theme components (tags, blocks, callbacks, etc)
* '''[[Gallery:Themes:Reference|外观主题模板参考]]''' – 外观主题组件的简要参考(标签,区块,callback等)
* '''[http://gallery.menalto.com/apidoc/GalleryCore/Classes/GalleryTheme.html Gallery 2's Theme API]''' - Code documentation for developers
* '''[http://gallery.menalto.com/apidoc/GalleryCore/Classes/GalleryTheme.html Gallery2外观主题API]''' – 为开发者准备的代码资料


* '''[[Gallery:Usability_Issues|Usability Issues]]''' - Creating themes with users in mind
* '''[[Gallery:Usability_Issues|可用性的相关问题]]''' – 创建符合用户习惯的外观主题


'''Note: ''' Be sure to '''disable template caching''' when editing templates (.tpl files). Else you need to clear your template cache to see the change taking effect. ''Site Admin'' -> ''Performance'' - The template cache was introduced in Gallery 2.3.
'''注:''' 在编辑模板时(.tpl文件),请确保'''禁用模板缓存'''。不然的话,在清除模板缓存之后,你才能看到修改起效。''站点管理(Site Admin)'' -> ''性能(Performance)'' – 模板缓存是在Gallery2.3中引入的。


{{expand}}
[[Category:Gallery 2:Development:Themes]]
{{review}}
[[Category:Gallery 2:Development:Themes]]

2008年11月29日 (六) 10:27的最新版本

只要懂一点HTML和CSS,你就可以自定义外观主题的呈现方式了。如果能再了解一些PHP和Smarty模板的相关知识,你就能修改外观主题的功能或新建外观主题。

在开始编辑或创建外观主题之前,先让我们熟悉一下Gallery2的外观主题元素。外观主题开发者也应熟悉Smarty模板引擎

注: 在编辑模板时(.tpl文件),请确保禁用模板缓存。不然的话,在清除模板缓存之后,你才能看到修改起效。站点管理(Site Admin) -> 性能(Performance) – 模板缓存是在Gallery2.3中引入的。