开发者 |
Michael Uno
miunosoft |
---|---|
更新时间 | 2015年2月1日 19:08 |
捐献地址: | 去捐款 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 4.1.0 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wp-admin-buttons.php
and other files compressed in the zip folder to the /wp-content/plugins/
directory.,printWPAdminButton()
[wp_admin_button href="http://my-download-url/file.zip"]
`
'http://my-download-url/file.zip') ); ?>
`
- label - the text label shown in the button.
[wp_admin_button label="Get" href="http://my-download-url/file.zip"]
`
'Get', 'href' => 'http://my-download-url/file.zip' ) ); ?>
- **size** - the button size. This argument accepts either
large,
medium,
small`.
[wp_admin_button size="large" href="http://my-download-url/file.zip"]
`
'large', 'href' => 'http://my-download-url/file.zip' ) ); ?>
- **type** - the button type. This argument accepts either
button-primary, or
buton-secondary`.
[wp_admin_button type="button-secondary" href="http://my-download-url/file.zip"]
`
'button-secondary', 'href' => 'http://my-download-url/file.zip' ) ); ?>
`
The follwoing color arguments can override the defult colors.
[wp_admin_button label_color="#ccc" background_color="transparent" href="http://my-download-url/file.zip"]
`
'#ccc',
'background_color' => 'transparent',
'href' => 'http://my-download-url/file.zip',
)
);
?>
`
The following additional HTML tag attributes can be set.
title
attribute.class
attribute.inline
style attribute.target
attribute.rel
attribute.[wp_admin_button title="Get the file now!" class="my-custom-class-selector" "style="text-align:center;" target="_blank" rel="nofollow" href="http://my-download-url/file.zip"]
`
'button-secondary',
'title' => 'Get the file now!',
'class' => 'my-custom-class-selector',
'style' => 'text-align:center',
'target' => '_blank',
'href' => 'http://my-download-url/file.zip',
)
);
?>
`