Bootstrap3是一个高度可定制的基于Bootstrap的DokuWiki模板,具有响应性,适用于所有设备(移动设备,平板电脑,台式机等)。
功能和特点
- HTML5和CSS3
- 基于Bootstrap 3.x
- Glyphicons 和 FontAwesome图标
- AnchorJS支持
- 可高度定制
- 丰富的HTML和DokuWiki钩子
- 侧边栏支持(左侧和右侧)
- 主题切换器
插件统合
- Bootstrap Wrapper Plugin
- Diagram Plugin
- Discussion Plugin
- Edittable Plugin
- Explain Plugin
- Inlinetoc Plugin
- Linkback Plugin
- Move Plugin
- Overlay Plugin
- Publish Plugin
- Rack Plugin
- Tagging Plugin
- Tags Plugin
- Translation Plugin
- User Home-Page Plugin
- Wrap Plugin - Tabs
- TplInc Plugin
设定
主题
项目名 | 项目说明 | 值类型 | 缺省值 | 可选值 |
---|---|---|---|---|
bootstrapTheme | Bootstrap主题 | multichoice | default | default optional custom bootswatch |
bootswatchTheme | 从Bootswatch.com选择主题 | multichoice | yeti | cerulean cosmo cyborg darkly flatly journal lumen paper readable sandstone simplex solar slate spacelab superhero united yeti |
customTheme | 插入自定义主题的URL | string | null | |
showThemeSwitcher | 在导航栏中显示Bootswatch.com主题切换器 | onoff | 0 | |
hideInThemeSwitcher | 在主题切换器中隐藏主题 | multicheckbox | null | cerulean cosmo cyborg darkly flatly journal lumen paper readable sandstone simplex solar slate spacelab superhero united yeti |
themeByNamespace | 按名字空间指定主题 | onoff | 0 |
侧边栏
项目名 | 项目说明 | 值类型 | 缺省值 | |
---|---|---|---|---|
sidebarPosition | DokuWiki Sidebar position (left or right ) | multichoice | left | left right |
rightSidebar | The Right Sidebar page name, empty field disables the right sidebar. The Right Sidebar is displayed only when the default DokuWiki sidebar is enabled and is on the left position (see the sidebarPosition configuration). If do you want only the DokuWiki sidebar on right position, set the sidebarPosition configuration with right value | string | rightsidebar | |
leftSidebarGrid | Left sidebar grid classes col-{xs,sm,md,lg}-x (see Bootstrap Grids documentation) | string | col-sm-3 col-md-2 | |
rightSidebarGrid | Right sidebar grid classes col-{xs,sm,md,lg}-x (see Bootstrap Grids documentation) | string | col-sm-3 col-md-2 | |
sidebarOnNavbar | Display the sidebar contents inside the navbar (useful on mobile/tablet devices) | onoff | 0 | |
sidebarShowPageTitle | Display Sidebar page title | onoff | 1 |
导航栏
项目名 | 项目说明 | 值类型 | 缺省值 | |
---|---|---|---|---|
inverseNavbar | Inverse navbar | onoff | 0 | |
fixedTopNavbar | Fix navbar to top | onoff | 0 | |
showTranslation | Display translation toolbar (require Translation Plugin) | onoff | 0 | |
showTools | Display Tools in navbar | multichoice | always | never logged always |
showHomePageLink | Display Home-Page link in navbar | onoff | 0 | |
homePageURL | Use custom URL for home-page links | string | null | |
showUserHomeLink | Display User Home-Page link in navbar | onoff | 1 | |
hideLoginLink | Hide the login button in navbar. This option is useful in “read-only” DokuWiki installations (eg. blog, personal website) | onoff | 0 | |
showEditBtn | Display edit button in navbar | multichoice | never | never logged always |
individualTools | Split the Tools in individual menu in navbar | onoff | 0 | |
showIndividualTool | Enable/Disable individual tool in navbar | multicheckbox | site,page | user site page |
showSearchForm | Display Search form in navbar | multichoice | always | never logged always |
showAdminMenu | Display Administration menu | onoff | 0 | |
useLegacyNavbar | Use legacy and deprecated navbar.html hook (consider in the future to use the :navbar hook) | onoff | 0 | |
showNavbar | Display navbar hook | multichoice | always | logged always |
navbarLabels | Show/Hide individual label | multicheckbox | login,register | login register admin tools user site page themes expand profile |
showAddNewPage | Enable the Add New Page plugin in navbar (require Add New Page Plugin) | multichoice | never | never logged always |
notifyExtensionsUpdate | Notify extensions update (for Admin users) | onoff | 0 |
Semantic
项目名 | 项目说明 | 值类型 | 缺省值 | |
---|---|---|---|---|
semantic | Enable semantic data | onoff | 1 | |
schemaOrgType | Schema.org type (Article , NewsArticle , TechArticle , BlogPosting , Recipe ) | multichoice | Article | Article NewsArticle TechArticle BlogPosting Recipe |
showSemanticPopup | Display a popup with an extract of the page when the user hover on wikilink (require Semantic Plugin) | onoff | 0 |
布局
项目名 | 项目说明 | 值类型 | Default Value | |
---|---|---|---|---|
fluidContainer | Enable the fluid container (full-width of page) | onoff | 0 | |
fluidContainerBtn | Display a button in navbar to expand container | onoff | 0 | |
pageOnPanel | Enable the panel around the page | onoff | 1 | |
tableFullWidth | Enable 100% full table width (Bootstrap default) | onoff | 1 | |
tableStyle | Table style | multicheckbox | striped,condensed,responsive | striped bordered hover condensed responsive |
showLandingPage | Enable the landing page (without a sidebar and the panel around the page) | onoff | 0 | |
landingPages | Landing page name (insert a regex) | regex | (intro) | |
showPageTools | Enable the DokuWiki-style Page Tools | multichoice | always | never logged always |
showPageId | Display the DokuWiki page name (pageId) on top | onoff | 1 | |
showBadges | Show badge buttons (DokuWiki, Donate, etc) | onoff | 1 | |
showLoginOnFooter | Display a “little” login link on footer. This option is useful when hideLoginLink is on | onoff | 0 | |
showWikiInfo | Display DokuWiki name, logo and tagline on footer | onoff | 1 |
文章目录
项目名 | 项目说明 | 值类型 | 缺省值 | |
---|---|---|---|---|
tocAffix | Affix the TOC during page scrolling | onoff | 1 | |
tocCollapseSubSections | Collapse all sub-sections in TOC to save space | onoff | 1 | |
tocCollapseOnScroll | Collapse TOC during page scrolling | onoff | 1 | |
tocCollapsed | Collapse TOC on every pages | onoff | 0 | |
tocLayout | TOC layout | multichoice | default | default navbarg |
钩子
HTML钩子
所有文件必须位于模板目录(lib / tpl / bootstrap3 /)或conf /目录中。
文件名 | 插入到页面HTML中的位置 |
---|---|
meta.html | <head>和</head>之间 |
topheader.html | 紧接着<body>标签之后 |
header.html | Above the upper blue bar, below the pagename and wiki title |
navbar.html | DEPRECATED (see the note below) - Inside the navbar, use this to add additional links (e.g. <li><a href=“/foo”>Foo</a></li> ) |
pageheader.html | breadcrumbs下面,页面实际内容的上方 |
pagefooter.html | Above the lower blue bar, below the last changed Date |
footer.html | 在页面的最后,位于</ body>标记之前 |
sidebarheader.html | 边侧栏上方 |
sidebarfooter.html | 边侧栏下方 |
social.html | Below the header.html , use this to add a social buttons (eg. Google+, Twitter, LinkedIn, etc) |
rightsidebarheader.html | 右边侧栏上方 |
rightsidebarfooter.html | 右边侧栏下方 |
Dokuwiki钩子
可以通过创建简单的DokuWiki“钩子”页面来自定义页面的各个部分。 bootstrap3模板会将这些钩子页面内容插入到页面的总体布局中。
钩子页面名 | 说明 | 名字空间单位 |
---|---|---|
:sidebar | The sidebar | YES |
:rightsidebar | The right-sidebar | YES |
:navbar | Navbar with sub-menus | YES |
:pageheader | Header of the Wiki article | YES |
:pagefooter | Footer of the Wiki article | YES |
:footer | Footer of the page | YES |
:cookie:banner | Cookie-Law banner | NO |
:cookie:policy | Cookie-Law policy | NO |
:help | Help page for “Help Page Icon” | YES |
:header | Header of page below the navbar | YES |
:topheader | Top Header of page (on top of navbar if fixedTopNavbar is off) | YES |
群聊是2人以的聊天会话,慧总网群聊首先需要知道对方的用户名,然后再开启一个2人聊天窗口,开启后添加其他用户进入聊天,开启群聊。
1.点击右上角的聊天图标,在弹出的下拉菜单中选择【查看所以对话】
2.在搜索框中输入需要加入的用户名,点击用户确认。
3.点击聊天配置,选择【管理聊天室】
4.输入第三人用户名,即可开启3人以上群聊
假如看到一篇好的文章,需要和作者单独沟通,那么这里就我们可以使用私聊功能。
1.找到要私聊的作者或者用户,点击名字
2.在作者详情也,点击“...”菜单,在下拉菜单中,【开始与某某新会话】
3.在弹出的聊天对话框中输入自己想要说的话就可以了
CSS文件
DokuWiki本体的CSS文件位于lib / styles目录中,不过DokuWiki本体仅定义了一些最基础的CSS,更多的CSS存在于模板和各个插件里面。
所有CSS文件都是通过lib/exe /css.php程序获取的。该程序还处理缓存,模式替换,LESS预处理和优化,由tpl_metaheaders()函数调用。
加载CSS的顺序如下: 在CSS中,如果为同一属性指定了不同的值,并且样式冲突,则稍后加载的样式将优先,并且属性值将被覆盖,因此首选样式是从后面开始。
- 基本样式:lib /styles/*.css
- 插件样式:lib / plugins / <插件名称> / *。css
- 模板样式:在lib / tpl / <模板名称> /style.ini中定义
- 用户样式:conf / user * .css
如果要通过自定义CSS添加样式,则基本上应将其添加到用户样式(conf / user * .css)中。
媒体类型
样式表支持五种媒体类型:
- screen:用于显示器
- print:用于打印
- all:用于所有的媒体设备
- rtl:
- feed:
外部链接
JavaScript文件
DokuWiki本体的JavaScript文件在lib/scripts目录中,jQuery库文件也在里面。
像CSS一样,有一个PHP程序lib/exe/js.php,它把相关的JavaScript文件(例如模板和插件)打包到一起,并由tpl_metaheaders()函数调用。
加载以下JavaScript。
- DokuWiki自动生成的JavaScript:
编辑屏幕工具栏等。 - DokuWiki本体的JavaScript文件:
lib/scripts/*.js - 插件的JavaScript文件:
lib/plugins/<插件名称>/script.js - 模板的JavaScript文件:
lib/tpl/<模板名称>/script.js - 包含用户自定义代码的JavaScript文件:
conf/userscript.js
如果要自定义JavaScript并添加处理,则基本上应将其添加到用户脚本conf / userscript.js)。
Include语法
DokuWiki的JavaScript调度程序允许您使用特殊的JavaScript注释来包含其他脚本文件。 这在通常只解析单个JavaScript文件的情况下很有用,例如 在模板或插件中。
include
/* DOKUWIKI:include somefile.js */
include_once
/* DOKUWIKI:include_once common_library.js */
全局变量
DokuWiki提供了可在JavaScript中使用的预定义全局变量,下面时较常用的一些:
- DOKU_BASE:根目录路径(ex:/)
- DOKU_TPL: 模板路径(ex:/lib/tpl/<模板名称>/)
- LANG:一组语言依存文本值
- JSINFO
- ACT: 当前动作模式(ex:show)
- id:当前页面ID(ex:products:pen)
- isadmin:表示是否时管理员
- isauth:表示是否时作者
- namespace:当前名称空间(ex:products)
- useHeadingNavigation :表示是否对导航链接使用第一个标题
- useHeadingContent:表示是否对内容链接使用第一个标题
外部链接
Struct插件是一个真正意义上的数据库插件,它可以用来创建和管理数据库表,结合表单等其他插件,为页面提供各种应用功能。
Schema定义
Schema(模式)用于管理可以分配给页面的结构化数据,我们可以将它们视为表定义。模式定义哪些字段将可用以及它们具有什么类型。
要创建新模式,请以管理员身份登录并访问“管理员”页面。从“附加插件”中选择Struct Schema Editor(结构模式编辑器)。使用表单创建新的模式。
有两种模式:Page Schema(页面模式)和Lookup Schema(查找模式)。
- Page Schema(页面模式)
页面模式定义可以分配给页面的数据结构。每组数据仅用于输入的一页,与Data插件相似。 - Lookup Schema(查找模式)
查找模式不绑定页面,它们存储独立于任何页面的任意数量的数据集(行),我们可以将“查找模式”视为页面中的表格,可以在页面中任意引用其值。
可以在目录中选择现有模式,并在此处进行编辑。
重要提示:不能删除字段,只能将其禁用!
数据编辑
Page Schema
如下图所示,Page Schema的数据行直接与页面关联。
当在管理控制台中将Page Schema分配给所有匹配的页面(分配可以在页面或命名空间的基础上进行,也可以使用 正则表达式)后,数据将会自动添加到对应的页面。
页面(/demo/products/003):
Lookup Schema
Lookup Schema存储未绑定到任何页面的任意数据。 要创建此类数据,需要通过特殊语法创建编辑器:
---- struct lookup ---- schema: someschema ----
这将创建一个显示Lookup Schema表中所有数据的列表。 当前数据行可以通过内联编辑进行编辑,也可以通过删除按钮删除。 可以通过列表下方的表单添加新的数据行。
数据查询
通过简单的语法即可完成数据的查询的,该语法将生成一个动态表,其中列出了所有页面以及与某些条件匹配的关联数据。
---- struct table ---- schema: schema_name cols: %pageid%, other, cols ----
选项
- schema/from
必须。列出要查询哪些schema表里的数据。 - cols/select
必须。要显示的项目。 使用与“Data Entry”中相同的名称。 - head/header/headers
可选。如果指定,这些名称将在表标题中使用。 - max/limit
可选。指定显示的最大行数,超过最大行数的数据将自动分页显示。 如果未给出,则显示所有匹配的行 - sort/order
可选。指定用于排序的项目,前面添加^表示反转排序 - filter/where/filterand/and
可选。指定过滤条件。 多次指定时各个过滤条件将进行“与”操作。 - filteror/or
可选。 类似于filter,但多次指定时各个过滤条件将进行“或”操作。 - dynfilters
可选。 Set to 1 to enable a row of input fields for dynamically filtering the table - summarize
可选。 设成1表示对列进行合计。 - align
可选。 列对齐列表。 对齐方式可以是左(l),中(c)或右(r) - rownumbers
可选。设成1表示显示行号。 - width/widths
可选。指定列的显示宽度。 - csv
可选。设置为则不显示CSV导出按钮
别名
从包含相同字段名的多个Schema中选择数据时,必须在它们之前加上Schema名称:
---- struct table ---- schema: schema1, schema2 cols: %pageid%, schema1.name, schema2.name ----
可以为Schema定义别名, 别名与Schema名称之间用空格分隔:
---- struct table ---- schema: schema1 A, schema2 B cols: %pageid%, A.name, B.name ----
特殊列名
- %pageid%
- %title%
- %lastupdate%
- %lasteditor%
- %lastsummary%
外部链接
Bootswrapper插件结合Bootstrap3模板,用于为wiki页面插入各类Bootstrap组件:
- Jumbotron
- Buttons
- Alerts
- Text
- Tooltips
- Grids
- Thumbnails
- Panels
- Wells
- Labels
- Nav & Tabs (with dropdown)
- Page heading
- Lead
- Badges
- List Group
- Progress Bars
- Affix
- Carousel
- Accordion
- Callouts
- Modal (with remote attribute)
- Popover
语法
Jumbotron
<jumbotron> ===== Hello, world! ===== This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featuredcontent or information. </jumbotron>
Panel
<panel type="default" title="Title of Panel" subtitle="Subtitle" icon="fa fa-house"> Panel content </panel>
Alert
<alert type="success" icon="glyphicon glyphicon-user" dismiss="true"> **Well done!** You successfully read this important alert message. </alert>
Text
* <text type="muted">muted</text> * <text type="primary">primary</text> * <text type="success">success</text> * <text type="info">info</text> * <text type="warning">warning</text> * <text type="danger">danger</text>
Tooltip
<tooltip title="Sample Text" location="bottom">Lorem ipsum</tooltip> dolor sit amet...
Grids
<grid> <col sm="6">.col-sm-6</col> <col sm="6">.col-sm-6</col> </grid>
<grid> <col xs="12" sm="6" lg="8">.col-xs-12 .col-sm-6 .col-lg-8</col> <col xs="6" lg="4">.col-xs-6 .col-lg-4</col> </grid>
Thumbnail
<grid> ... <col xs="6" md="3"> <thumbnail> {{ wiki:dokuwiki-128.png }} </thumbnail> </col> ... </grid>
<grid> ... <col xs="6" md="3"> <thumbnail> {{ wiki:dokuwiki-128.png }} <caption> === DokuWiki === //DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn't require a database. It is loved by users for its clean and readable syntax. The ease of maintenance, backup and integration makes it an administrator's favorite. Built in access controls and authentication connectors make DokuWiki especially useful in the enterprise context and the large number of plugins contributed by its vibrant community allow for a broad range of use cases beyond a traditional wiki.// </caption> </thumbnail> ... </col> </grid>
Well
<well>Look, I'm in a well!</well>
Button
<button type="success" size="lg" icon="glyphicon glyphicon-edit">[[:wiki:welcome]]</button>
Navigation
<nav> * [[:start]] * [[:plugin:bootswrapper|Plugin]] * [[playground:playground]] * DokuWiki * [[:wiki:welcome]] * [[:wiki:syntax]] </nav>
Accordion
<accordion> <panel title="First panel"> First panel content </panel> <panel title="Second panel"> Second panel content </panel> </accordion>
函数参考 ¶
- 影响 PHP 行为的扩展
- APC — Alternative PHP Cache (可选 PHP 缓存)
- APCu — APC User Cache
- APD — Advanced PHP debugger
- bcompiler — PHP 字节码编译器
- BLENC — Blenc - BLowfish ENCoder for PHP source scripts
- Componere
- 错误处理 — 错误处理和日志记录
- FFI — Foreign Function Interface
- htscanner — htaccess-like support for all SAPIs
- inclued — Inclusion hierarchy viewer
- Memtrack
- OPcache
- 输出控制 — 输出缓冲控制
- PHP 选项/信息 — PHP 选项和信息
- phpdbg — Interactive PHP Debugger
- runkit
- scream — Break the silence operator
- uopz — User Operations for Zend
- Weakref — Weak References
- WinCache — Windows Cache for PHP
- Xhprof — 层次式性能分析器
- 音频格式操作
- 身份认证服务
- 针对命令行的扩展
- 压缩与归档扩展
- 信用卡处理
- MCVE — MCVE (Monetra) Payment
- 加密扩展
- 数据库扩展
- 日期与时间相关扩展
- 文件系统相关扩展
- 国际化与字符编码支持
- 图像生成和处理
- Cairo
- Exif — 可交换图像信息
- GD — 图像处理和 GD
- Gmagick
- ImageMagick — 图像处理(ImageMagick)
- 邮件相关扩展
- 数学扩展
- 非文本内容的 MIME 输出
- 进程控制扩展
- 其它基本扩展
- GeoIP — Geo IP 定位
- FANN — FANN (快速人工神经网络)
- JSON — JavaScript对象符号(JSON)
- Judy — Judy Arrays
- Lua
- LuaSandbox
- Misc. — 杂项函数
- Parsekit
- SeasLog
- SPL — PHP标准库 (SPL)
- SPL Types — SPL Type Handling
- Streams
- Swoole
- Tidy
- Tokenizer
- URLs
- V8js — V8 Javascript Engine Integration
- Yaml — YAML 数据序列化
- Yaf — Yet Another Framework
- Yaconf
- Taint
- Data Structures
- 其它服务
- chdb — Constant hash database
- cURL — Client URL 库
- Event
- FAM — File Alteration Monitor
- FTP
- Gearman
- Gopher — Net Gopher
- Gupnp
- Hyperwave API
- LDAP — Lightweight Directory Access Protocol
- Memcache
- Memcached
- mqseries
- 网络
- RRD — RRDtool
- SAM — Simple Asynchronous Messaging
- SNMP
- Sockets
- SSH2 — Secure Shell2
- Stomp — Stomp Client
- SVM — 支持向量机
- SVN — Subversion
- TCP — TCP Wrappers
- Varnish
- YAZ
- YP/NIS
- 0MQ消息系统 — ZMQ
- ZooKeeper
- 搜索引擎扩展
- mnoGoSearch
- Solr — Apache Solr
- Sphinx — Sphinx 客户端
- Swish — Swish Indexing
- 针对服务器的扩展
- Apache
- FastCGI 进程管理器
- IIS — IIS Administration
- NSAPI
- Session 扩展
- Msession — Mohawk Software Session Handler Functions
- Sessions — Session Handling
- Session PgSQL — PostgreSQL Session Save Handler
- 文本处理
- BBCode — Bulletin Board Code
- CommonMark
- Parle — Parsing and lexing
- PCRE — 正则表达式(兼容 Perl)
- POSIX Regex — Regular Expression (POSIX Extended)
- ssdeep — ssdeep Fuzzy Hashing
- 字符串
- 变量与类型相关扩展
- Web 服务
- Windows 专用扩展
- COM — COM and .Net (Windows)
- win32ps
- win32service
- XML 操作
- 图形用户界面(GUI) 扩展