开发者 |
DavidLemayian
chrisamico reefdog |
---|---|
更新时间 | 2015年5月29日 17:40 |
PHP版本: | 3.2 及以上 |
WordPress版本: | 4.2.2 |
版权: | GPLv2 |
版权网址: | 版权信息 |
responsive="false"
or explicitly set a width
:
[sourceafrica url="https://sourceafrica.net/documents/19789-everest.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://sourceafrica.net/documents/19789-everest.html" responsive="false"]
To embed a note, just use any note-specific URL. Notes ignore width/height
and always act responsively:
[documentcloud url="https://sourceafrica.net/documents/19789-everest.html#document/p1/a143"]
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 (documents and notes):
url
(required, string): Full URL of the sourceAFRICA 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.default_page
(integer): Page number to have the document scroll to by default.default_note
(integer): ID of the note that the document should highlight by default.notes
(boolean): Show/hide notes:search
(boolean): Hide or show search form.sidebar
(boolean): Hide or show sidebar. Defaults false
.pdf
(boolean): Hide or show link to download original PDF. Defaults true
.text
(boolean): Hide or show text tab. Defaults true
.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
[sourceAFRICA]
shortcodeheight/width
attributes) at Settings > sourceAFRICA. (This default width will only be used if you set responsive="false"
on an embed.)