Auto Graphics Site Navigation with Gallery
带有图库的自动图形站点导航 p>
This plugin simplifies the creation of graphically navigable WordPress
此插件简化了可图形导航的WordPress的创建
sites, creating a list or tables of pages, posts, taxonomies, and
网站,创建页面,帖子,分类法和
的列表或表格
custom post types, selected in a variety of ways.
自定义帖子类型,可以通过多种方式选择。
Highly customizable
高度可定制的
output using a variety of optional user-defined filters.
使用各种可选的用户定义过滤器输出。 p>
- Sites with nested pages can show a table of clickable thumbnails
- 页面嵌套的网站可以显示可点击缩略图的表
of child pages, with size of the tables, and the number of rows,
子页面的数量,表格的大小和行数,
automatically computed to fit, based on the thumbnail sizes.
根据缩略图大小自动计算以适合。 li>
- A table of posts selected by tag, category, or author can be
- 可以按标签,类别或作者选择的帖子表
displayed in the same manner.
以相同的方式显示。 li>
- Thumbnails of pictures, and the galleries of pictures added in
- 图片的缩略图,以及在其中添加的图片库
each page, can be automatically resized either through a single
每个页面,都可以通过单个
自动调整大小
default setting in the WordPress administration page, or by
WordPress管理页面中的默认设置,或者按
specifying a size in each page.
在每页中指定尺寸。
Missing thumbnails will be
缺少的缩略图将是
automatically generated.
自动生成的。 li>
- A gallery of images can be created simply by placing them in a new
- 只需将图像放置在新图像中即可创建图像库
directory under the wp-content/uploads directory.
wp-content / uploads目录下的目录。
Standard
标准
command-line or FTP tools can then be used to move, rename, or
然后可以使用命令行或FTP工具移动,重命名或
delete images.
删除图像。 li>
- Output and page/post selection is extensible through the use of
- 通过使用
可扩展输出和页面/帖子选择filters.
过滤器。 li>
- Works with WordPress’s standard attachment mechanism, and with
- 使用WordPress的标准附件机制以及
J. Christopher’s “Attachments” plugin (see FAQ)
J. Christopher的“附件”插件(请参阅常见问题解答) li>
ul>
NOTE: You can raise issues or participate in development at GitHub
注意:您可以在 GitHub
提出问题或参与开发
If you experience errors or missing pages, you might try the previous
如果遇到错误或页面丢失,则可以尝试上一个
stable version
.
稳定版本
。
All previous versions are archived here.
所有以前的版本都此处存档。 p>
The plugin is invoked with the [autonav] shortcode, with two basic modes:
该插件使用[autonav]短代码调用,有两种基本模式: p>
NAVIGATION.
导航。 p>
Creates a list or table of the current page’s child pages.
创建当前页面子页面的列表或表格。
Tables are
表格是
composed of linked thumbnail pictures (see “How is a Child Page’s
由链接的缩略图组成(请参阅“子页面的
如何
“Associated Image” determined?”
确定“关联图片”?”
in the FAQ).
在常见问题解答中)。
Example:
示例: p>
[autonav display="images" pics_only="1"] [autonav display =“ images” pics_only =“ 1”]
code> pre>
displays a table of the current page’s child pages.
显示当前页面子页面的表格。
Only child pages
仅子页面
that have associated pictures will be displayed.
将会显示具有相关图片的图像。
The table will have
该表将具有
3 or 4 columns depending on the default size of the thumbnails and
3或4列,具体取决于缩略图的默认大小和
depending on the column settings in the WordPress administration
取决于WordPress管理中的列设置
screen.
屏幕。 p>
GALLERY.
画廊。 p>
Creates one or more tables of linked thumbnail pictures based on the
根据
创建一个或多个链接缩略图的表。
current page’s attachments, or on specified directories of picture
当前页面的附件,或在图片的指定目录上
files under the uploads directory.
上传目录下的文件。
Examples:
例子: p>
[autonav display="attach"] [autonav display =“ attach”]
code> pre>
displays a table of images attached to the current post or page.
显示附在当前帖子或页面上的图像表。 p>
[autonav display="/project2" include="32,37,56"] [autonav display =“ / project2” include =“ 32,37,56”]
code> pre>
Displays a table, with a gallery of three pictures from the
显示一个表格,其中包含来自
的三张图片的画廊
wp-content/uploads/project2 directory, in the specified order.
wp-content / uploads / project2目录,按指定顺序。 p>
[autonav ids="57,65"] [autonav ids =“ 57,65”]
code> pre>
For compability with the [gallery] ids parameter introduced in
为了与
中引入的[gallery] id参数兼容
WordPress 3.5, displays a table of attachments with the exactly
WordPress 3.5,显示带有准确附件的表格
specified attachment IDs.
指定的附件ID。 p>
Shortcode Parameters
简码参数 h3>
Parameters not specified will be taken from the values set in the
未指定的参数将从
中设置的值中获取
WordPress admin panel.
WordPress管理面板。
The optional display parameters should be
可选的显示参数应为
enclosed in the display argument;
包含在display参数中;
for example,
例如,
[autonav display=”posts,list,thumb,title”]
[autonav display =”帖子,列表,缩略图,标题”] p>
display="x"
Displays a list or table, based on “x” as follows:
display =“ x” code>根据“ x”显示列表或表格,如下所示: p>images
— a table, with one cell for each of the child pages of the current page.-
images code> —一个表,当前页面的每个子页面都有一个单元格。 li>list
— a list, with an entry for each child of the current page-
list code> —列表,其中包含当前页面每个子项的条目 li>attached
— a table of images attached to the current post or page-
已附加 code>-附加到当前帖子或页面的图像表 li>attachments
— table of items from the “Attachments” plugin (see below)-
附件 code>-“附件”插件中的项目表(见下文) li>posts
— a table of posts listed in the postid=”” parameter-
posts code> — postid =””参数中列出的帖子表 li>posts:TYPE
— a table of posts in custom post type TYPE-
posts:TYPE code> —自定义帖子类型TYPE的帖子表 li>/folder
— a table of images located in wp-content/uploads/folder-
/ folder code> —位于wp-content / uploads / folder li>中的图像表
ul>
Optional parameters, in a comma-separated list:
可选参数,以逗号分隔: p>
list
— Used with display=”posts” for list, not table-
list code> —与display =” posts”一起用于列表,而不是表 li>plain
— Replaces unordered-list with a div, for use with
-
plain code> —用div替换无序列表,用于
JavaScript/jQuery slideshows, etc.
JavaScript / jQuery幻灯片等。 li>
thumb
— Display the thumbnail for the pages or posts-
缩略图 code>-显示页面或帖子的缩略图 li>title
— Display the title for the pages or posts-
标题 code>-显示页面或帖子的标题 li>excerpt
— Display the child page’s “manual excerpt” (see FAQ)-
摘录 code>-显示子页面的“手册摘录”(请参阅FAQ) li>siblings
— Display siblings (other children) of the current
-
兄弟姐妹 code>-显示当前兄弟姐妹(其他子代)
page
页面 li>
family
— Display all children, grandchildren, etc. of page-
家族 code>-显示页面的所有子代,孙子代等 li>self
— Include the current page (with siblings, or family)
-
self code>-包括当前页面(带有兄弟姐妹或家人)
(normally the current page or post is excluded)
(通常不包括当前页面或帖子) li>
image
— For posts, link to full-size of thumbnail instead of
-
image code> —对于帖子,请链接到全尺寸缩略图,而不是
to post itself
发布自己 li>
page
— For attachments, link to attachment page-
页面 code> —对于附件,请链接到附件页面 li>nolink
— Disables links entirely The above parameters may be
-
nolink code> —完全禁用链接上面的参数可能是
preced by ‘no’ to disable the feature (as when set by default or
以“否”开头以禁用该功能(如默认设置或
in the plugin options page).
在插件选项页面中。) li>
ul>
Example: display="list,notitle,thumb,excerpt"
示例: display =“ list,notitle,thumb,摘录” code> p>
li>
caption="x"
Adds a caption to the table.
caption =“ x” code>将标题添加到表中。 (First table only, see combine
below)
(仅第一个表,请参见下面的 combine code>) p>
li>
columns="4"
Displays 4 columns of images
columns =“ 4” code>显示4列图像 p>
li>
size="x"
Choose a display size ‘x’ as:
size =“ x” code>选择显示尺寸“ x”为: p>thumb
(or: thumbnail
), medium
, large
— WordPress-
thumb code>(或 em>: thumbnail code>),中 code>,大 code> — WordPressstandard sizes
标准尺寸 li>
size_small
, size_med
, size_large
— sizes from AutoNav settings screen-
size_small code>, size_med code>, size_large code>-AutoNav设置屏幕中的尺寸 li>300x200
— force images to be resized/cropped to an exact size-
300x200 code> —强制将图像调整大小/裁剪为精确大小 li>auto
— uses settings from autonav control panel-
auto code>-使用autonav控制面板中的设置 li>
ul>
Sizes registered with add_image_size() should also work.
在add_image_size()中注册的大小也应该起作用。 p>
li>
titles="1"
Displays page titles below images if 1 (default: “0”)
titles =“ 1” code>如果为1(默认值:“ 0”),则在图像下方显示页面标题。
(same as using title
parameter to display=
)
(与在 display = code>中使用 title code>参数相同) p>
li>
pics_only="1"
When displaying child pages, only show those with associated images
pics_only =“ 1” code>显示子页面时,仅显示具有相关图像的页面 p>
li>
ids="57,65"
Selects the attachments with the exactly specified
ids =“ 57,65” code>选择具有完全指定的附件
attachment IDs.
附件ID。
display=
is assumed to be “attach”.
display = code>假定为“附加”。Works
作品
similarly to WordPress’s built-in [gallery] shortcode.
类似于WordPress的内置[画廊]简码。
orderby=
orderby = code>
defaults to the exact ordering given, but can be overridden.
默认为给定的确切顺序,但可以覆盖。 p>
li>
include="1,7"
Used with display=/folder
syntax only;
include =“ 1,7” code>仅用于 display = / folder code>语法;others, see
其他,请参见
postid parameter.
postid参数。
The resulting table will have only two pictures,
结果表将只有两张图片,
the first found ending in “1” and “7” — note that because both 1
第一个以“ 1”和“ 7”结尾的结果-请注意,因为1
and 7 are numeric, the image “pic11.jpg” would not be included, but
和7是数字,则不包含图片“ pic11.jpg”,但
“pic1.jpg” or “pic01.jpg” would be.
将是“ pic1.jpg”或“ pic01.jpg”。
For non-numeric values, the
对于非数字值,
first found picture whose name ends with the value given will be
首先找到名称名称为给定值的图片为
selected.
选择。 p>
li>
exclude="3,dessert"
Excludes posts/pages with ID 3 and the slug
exclude =“ 3,甜点” code>排除ID为3和弹头的帖子/页面
‘dessert
‘ Note: To include posts or pages by category, author,
“ 甜点 code>” 注意 strong>:要按类别,作者,
包括 em>个帖子或页面etc, see the postid
parameter.
等等,请参见 postid code>参数。 p>
li>
combine="x"
Combines table rows as follows (default: “all”)
combine =“ x” code>如下组合表行(默认值:“全部”) p>all
— all rows combined into one table-
all code> —将所有行合并到一个表中 li>none
— each row a separate table-
none code>-每行有一个单独的表 li>full
— combine all full rows into one table, with trailing row a separate table (so it can be centered)-
full code> —将所有完整的行合并到一个表中,尾随一个单独的表(以便可以居中) li>
ul>
li>
crop="1"
Crops images to fit exact size, or “0” to fit maximum
crop =“ 1” code>裁剪图像以适合确切大小,或裁剪“ 0”以适合最大值
into size, centering image;
放入大小,居中图像;
“2” crops from upper-left;
左上角为“ 2”种作物;
“3” from top
顶部的“ 3”
middle (useful with head-and-shoulders portraits)
中间(适用于头肩肖像) p>
li>
sharp="1"
Changes downsize algorithm from ‘resample’ (smooth) to
sharp =“ 1” code>将尺寸缩小算法从“重新采样”(平滑)更改为
the more blocky ‘resize’ (see below)
更具阻隔性的“调整大小”(见下文) p>
li>
start="1"
Starts at the second image or page (counting from zero)
start =“ 1” code>从第二个图像或页面开始(从零开始计数) p>
li>
count="2"
Includes only two images or pages
count =“ 2” code>仅包含两个图像或页面 p>
li>
paged="12"
Displays 12 images on one ‘page’ along with next/prev,
paged =“ 12” code>在一个“页面”上显示12张图像以及下一个/上一个
and page numbers.
和页码。
Note: ‘start’ and ‘count’ are applied first to
注意 strong>:首先将“开始”和“计数”应用于
trim which images are included in those displayed and paged.
修剪哪些图像包含在显示和分页的图像中。 p>
li>
order="desc"
Sort order: “asc
” ascending, “desc
” descending, “rand
order =“ desc” code>排序顺序:“ asc code>”升序,“ desc code>”降序,“ rand code” >” random.
>”随机。
See the
见 p>
li>
orderby="x"
Where ‘x’ is any orderby parameter (e.g., date
, title
) from the
orderby =“ x” code>其中“ x”是
中的任何orderby参数(例如, date code>, title code>)codex
法典
or one of:
或以下之一: p>
li>
imgrel="lightbox"
Sets the relation tag of the created links as:
imgrel =“ lightbox” code>将创建的链接的关系标签设置为:
p>
li>
group="vacation1"
When combined with imgrel="lightbox*"
this
group =“ vacation1” code>与 imgrel =“ lightbox *” code>结合使用时此
sets the relation tag to be: rel="lightbox[vacation1]
将关系标签设置为: rel =“ lightbox [vacation1] code> p>
li>
postid="123"
Displays images or subpages attached to the page(s)
postid =“ 123” code>显示附加到页面的图像或子页面
or post(s) with the given ID, or comma-delimited list of IDs,
或具有给定ID的帖子,或以逗号分隔的ID列表,
instead of the current page or post.
而不是当前页面或帖子。
Can also select posts in
也可以选择
中的帖子
category/tag/author;
类别/标签/作者;
or pages with specified path, author or custom
或具有指定路径,作者或自定义的页面
field value.
字段值。 p>
In addition to a numeric postid, you may select posts or pages
除了数字postid,您还可以选择帖子或页面 strong>
as follows:
如下: p>
postid="cat:17"
posts in a numeric category or categories一个或多个数字类别中的
-
postid =“ cat:17” code>帖子 li>postid="category:17"
(same, ‘cat’ is abbreviation)-
postid =“ category:17” code>(相同,“ cat”是缩写) li>postid="category:-17"
posts not in a numeric category-
postid =“ category:-17” code>在数字类别中发布 not em> li>postid="category:cakes"
posts by category name-
postid =“ category:cakes” code>按类别名称发布的帖子 li>postid="category__in:cakes,cookies"
posts in any of the listed categories列出的任何类别中的
-
postid =“ category__in:cakes,cookies” code>帖子 li>postid="category__and:cakes,chocolate"
posts that must be in both
-
postid =“ category__and:cakes,chocolate” code>帖子必须同时在两个帖子中
categories
类别 li>
postid="category__not_in:cakes,chocolate"
posts not one or more categories-
postid =“ category__not_in:cakes,chocolate” code>发布的不是一个或多个类别 li>postid="category:*"
posts in the same category as the current post/page与当前帖子/页面相同类别的
-
postid =“ category:*” code>帖子 li>postid="tag:37,38,53"
posts with numerically specified tag(s)-
postid =“ tag:37,38,53” code>带有数字指定标签的帖子 li>postid="tag:chocolate"
posts by tag name-
postid =“ tag:chocolate” code>通过标签名称发帖 li>postid="tag__and:chocolate,hot"
posts that have both tags带有两个标签的
-
postid =“ tag__and:chocolate,hot” code>帖子 li>postid="author:27"
posts or child pages with a specific author
-
postid =“ author:27” code>具有特定作者的帖子或子页面
by ID,
通过ID, li>
postid="author:Todd"
…by author name,-
postid =“ author:Todd” code>…作者姓名, li>postid="author:*"
…by same author as current post or page.-
postid =“ author:*” code>…与当前帖子或页面的作者相同。 li>postid="status:future"
future posts or pages.-
postid =“ status:future” code>以后的帖子或页面。 see list in the
中的请参见 em>列表codex
法典
status=* for same status as current post/page.
status = *,表示与当前帖子/页面相同的状态。
Can also use custom status types.
也可以使用自定义状态类型。 li>
postid="movies:comedy"
posts tagged in a custom taxonomy在自定义分类法中标记的
-
postid =“ movies:comedy” code>帖子 li>postid="movies:drama,horror"
posts with any of those tags in
-
postid =“ movies:drama,horror” code>带有
中任何标签的帖子custom taxonomy (if ‘movies’ taxonomy is defined) or with
自定义分类法(如果定义了“电影”分类法)或
custom field
自定义字段 li>
postid="month:january"
subpages of current page, with custom
当前页面的
-
postid =“ month:january” code>子页面,具有自定义
field “month”=”january” Note: selection of Pages by taxonomy not
字段“ month” =“ january” 注意 strong>:按分类 em>选择的页面不是
yet supported
尚未支持 li>
postid="recipes/desserts"
page by its full path (NOT merely its slug)-
postid =“ recipes / desserts” code>页面的完整路径(不仅仅是它的子弹) li>
ul>
li>
ul>
You can specify both a page/post ID and one of the above.
您可以同时指定页面/帖子ID 和 em>其中之一。For example,
例如,
postid=”27,author:Todd” would show subpages of the page with ID=27 that have
postid =“ 27,author:Todd”将显示ID = 27的页面子页面,其中
author Todd.
作者托德。 p>
Note that any of several plugins, like this
请注意,以下几个插件中的任何一个,例如此
one
,
一个
,
must be used to associate a category with a page.
必须用于将类别与页面相关联。
Once you have done
完成后
so, you can for example, create a page for each of your categories
因此,例如,您可以为每个类别创建一个页面
which will display a list of the most recent posts in “its” category:
这将显示“其”类别中的最新帖子列表: p>
[autonav display="posts,nothumb,title,list" postid="category:*"] [autonav display =“ posts,nothumb,title,list” postid =“ category:*”]
code> pre>
You could also display a list of all the most recent posts not in
您还可以在
中显示所有最新帖子的列表,不是 em>the page’s category:
页面的类别: p>
[autonav display="posts,nothumb,title,list" postid="category__not_in:*"] [autonav display =“ posts,nothumb,title,list” postid =“ category__not_in:*”]
code> pre>
The postid selectors category__and, category__in, category__not_in
postid选择器类别__和类别__ in,类别__not_in
permit more complex category selection, as described in the
允许更复杂的类别选择,如
中所述
codex.
法典。 p>
You may also select attachments based on their parent (given by
您还可以根据其父项选择附件 strong>(由
提供)slug or post-ID), their author (which WordPress sets when the
slug或post-ID),作者(WordPress设置
attachment is uploaded;
附件已上传;
there is no built-in way to edit an
没有内置的方式来编辑
attachment’s author, although a plugin may provide one), by status
附件的作者(尽管一个插件可能会提供)),通过 status code>
or by the categories or tags set through the Media Tags
或通过媒体标签设置的类别或标签
plugin
or the
插件
或
Attachment Taxonomy
附件分类法
plugin
:
插件
: p>
[autonav display="attached" postid="recipes,tag:dessert"] [autonav display =“ attached” postid =“ recipes,tag:dessert”]
code> pre>
would display images, attached to the recipes page, having the
将显示附在食谱页面上的图像,该图像具有
attachment tag “dessert”.
附件标签“甜点”。 p>
It is even possible to display attachments having a certain tag or
甚至可以显示具有特定标签或
的附件
category from all posts and pages, a special case of postid="-1"
:
所有 em>帖子和页面中的类别, postid =“-1” code>的特殊情况: p>[autonav display="attached" postid="-1,tag:dessert"] [autonav display =“ attached” postid =“-1,tag:甜点”]
code> pre>
Note that you must set the taxonomies on the AutoNav settings
注意 strong>,您必须在AutoNav设置中设置分类法
page.
页。
For Media Tags, use attachment tag, “media-tags
“;
对于媒体标签,请使用附件标签“ media-tags code>”;for the
对于
Attachment Taxonomy plugin, use “attachment_tag
” and
附件分类法插件,使用“ attachment_tag code>”和
“attachment_category
“.
“ attachment_category code>”。Other taxonomy names are permissible in hopes
希望使用其他分类法名称
of being compatible with future WP versions.
与将来的WP版本兼容。 p>
NOTE: The Sharp parameter is now regarded only by an optional
注意:Sharp参数现在只能由可选的
使用
addon.
添加在。
Additional example values are:
其他示例值是: p>
ul>
Development Notes
开发说明 h3>
- [Note 20120111] Other filetypes handled in get_images_from_folder()
- [Note 20120111]在get_images_from_folder()中处理的其他文件类型
must take care to let actual images take priority regardless of
必须注意让实际图像优先考虑,
which appears first in directory.
它首先出现在目录中。
The switch statement will need to
switch语句将需要
take this into account.
考虑到这一点。 li>
ul>