编辑“Gallery:Gallery2:Themes

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

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

最后版本 您的文本
第1行: 第1行:
A theme is the outermost skin of Gallery. It's a thin but powerful layer that allows you to control almost every aspect of the user interface to make Gallery look exactly the way that you want. Gallery provides several themes to choose from and there are several user-contributed themes available to download and install. Gallery Administrators can choose which themes are available and set different themes for individual albums.


There are several ways to customize how your Gallery looks. The first way is to select features to display in an installed theme in Gallery’s site administration area. Another way that to customize Gallery is to edit a theme’s template and style sheet files. The final way is to create your own theme—based on an existing theme or from scratch.<br/><br/>
'''Select and Configure:'''
* '''[[:Category:Gallery 2:Themes|Theme Catalog]]''' – A list of Gallery 2 standard and user-contributed themes, color packs, and icon packs.
* '''[[Gallery2:Configuration:Themes|Managing and Configuring Themes]]''' – Information about installing, activating, upgrading, and configuring themes to change your Gallery’s appearance.
'''Edit or Create a new one:'''
* '''[[Gallery2:Themes:How_To|How Tos]]''' – A collection of step-by-step procedures to show you how to customize the look of your Gallery.
* '''[[Gallery2:Themes:Theme_System_Overview|Editing and Creating Themes]]''' – An overview of Gallery 2’s theme system with detailed documentation showing how to edit and create theme templates and style sheets.
'''Embed it:'''
* '''[[Gallery2:Themes:Embedded_Theme_Considerations|Embedded Theme Considerations]]''' - Integrating Gallery with another application? This section is for you.
==Gallery 2 Templating System==
Gallery's templating system is based on [http://smarty.php.net Smarty], a generic PHP templating system which uses separate template files to lay pages out.  Gallery 2 customises this with several extra objects and variables.  The following pages describe the templating system in more detail:
*'''[[Gallery2:Themes:Reference:Smarty|Smarty]]''' - the template engine that assembles user- and Gallery-supplied content into the pages that are presented to the user
*'''[[Gallery2:Themes:Reference:Modifiers|Modifiers]]''' - modifiers can alter the way that Smarty presents text.  Gallery 2 extends the built-in ones with several that relate to display text in a gallery
*'''[[Gallery2:Themes:Reference:Tags|Tags]]''' - Gallery 2 extends smarty with its own tags (e.g. ''{g->url ...}'') to provide useful shortcuts related to Gallery functions
*'''[[Gallery2:Themes:Reference:Blocks|Blocks]]''' - in the same way that blocks can be manipulated using the Site Admin interface in Gallery 2, they can also be used within a template by using the '''g->block''' function
*'''[[Gallery2:Themes:Reference:Callbacks|Callbacks]]''' - callbacks are used to load data into blocks within templates using the '''g->callback''' function
*'''[[Gallery2:Themes:Reference:Variables|Variables]]''' - Gallery 2 makes several variables accessible to a template which provide information about the current image, album, user and environment
[[Category:Gallery 2:Development:Themes]]
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)