编辑“Gallery:外观主题:开发:概览

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第1行: 第1行:
只要懂一点HTML和CSS,你就可以自定义外观主题的呈现方式了。如果能再了解一些PHP和Smarty模板的相关知识,你就能修改外观主题的功能或新建外观主题。
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.


在开始编辑或创建外观主题之前,先让我们熟悉一下Gallery2的外观主题元素。外观主题开发者也应熟悉[http://smarty.php.net/manual/en/what.is.smarty.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].


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


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


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


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


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


[[Category:Gallery 2:Development:Themes]]
{{expand}}
{{review}}
[[Category:Gallery 2:Development:Themes]]
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)