开发者 |
chrisamico
reefdog freedmand |
---|---|
更新时间 | 2021年4月2日 23:36 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 5.5 |
版权: | GPLv2 |
版权网址: | 版权信息 |
responsive="false"
or explicitly set a width
:
[documentcloud url="https://www.documentcloud.org/documents/282753-lefler-thesis.html" width="600"]
You can set your own defaults in Settings > DocumentCloud, but default widths will be ignored unless responsive
is disabled:
[documentcloud url="https://www.documentcloud.org/documents/282753-lefler-thesis.html" responsive="false"]
To embed a single page, use any page-specific URL. Pages ignore width/height
and always act responsively:
[documentcloud url="https://www.documentcloud.org/documents/282753-lefler-thesis.html#document/p1"]
To embed a note, use any note-specific URL. Notes ignore width/height
and always act responsively:
[documentcloud url="https://www.documentcloud.org/documents/282753-lefler-thesis.html#document/p1/a53674"]
Here's the full list of embed options you can pass via shortcode attributes; some are specific to the type of resource you're embedding.
All resources:
url
(required, string): Full URL of the DocumentCloud resource.container
(string): ID of element to insert the embed into; if excluded, embedder will create its own container.height
(integer): Height (in pixels) of the embed.width
(integer): Width (in pixels) of the embed. If used, will implicitly set responsive="false"
.responsive
(boolean): Use responsive layout, which dynamically adjusts width to fill content area. Defaults true
.responsive_offset
(integer): Distance (in pixels) to vertically offset the viewer for some responsive embeds.page
(integer): Page number to have the document scroll to by default.note
(integer): ID of the note that the document should highlight by default.notes
(boolean): Hide or show notes.search
(boolean): Hide or show search form.sidebar
(boolean): Hide or show sidebar.pdf
(boolean): Hide or show link to download original PDF.text
(boolean): Hide or show text tab.zoom
(boolean): Hide or show zoom slider.format
(string): Indicate to the theme that this is a wide asset by setting this to wide
. Defaults normal
.wp-content/plugins/documentcloud
[documentcloud]
shortcodeheight/width
attributes) at Settings > DocumentCloud. (This default width will only be used if you set responsive="false"
on an embed.)url
) (#48)default_page
and default_note
options back to page
and note
(#47)sidebar
, text
, and pdf
default valuespostmeta
tablecontainer
, responsive
, responsive_offset
, default_page
, default_note
, notes
, search
, and zoom
.id
attribute. It's still usable, but support may drop in the future. Use url
instead.