开发者 | cais |
---|---|
更新时间 | 2018年7月25日 02:36 |
捐献地址: | 去捐款 |
PHP版本: | 3.6 及以上 |
WordPress版本: | 4.9 |
版权: | GNU General Public License v2 |
版权网址: | 版权信息 |
[aside]CONTENT[/aside]
. The default values of the shortcode are type: aside; and, status: open.
[aside]CONTENT[/aside] = [aside type="aside" status="open"]CONTENT[/aside]
[aside]
shortcode and have it initially "closed" any status other than "open" will work as the plugin will change the status to "closed" if it is not equal to "open".
The pre-defined aside types currently included:
We are not aware of any concerns as they pertain to the GDPR.
Not all possible combinations of existing BNS Inline Aside types have been set as defaults. Please feel free to add the bns-inline-asides-custom-stylesheet.css option and create your own combinations ... ... and let us know about them. We would be very happy to consider adding them as defaults.
To add your own custom aside type styles you might consider creating a new stylesheet in this plugin's folder using the name: bnsia-custom-types.css
The plugin will create a class name from the custom aside type you use in your shortcode. For example, [aside type="bacon"]
will generate these classes you can style:
If you do not want to use the default 'show' and 'hide' parameters, you can change them to your own preference in each instance of the shortcode. If you want your aside type to be dynamically inserted into the message simply use the %s
placeholder in your custom message.
Here are some examples:
[aside type="bacon" show="Want to see my <em>%s</em>?" status="closed"]
[aside type="soup" hide="No %s for you!"]
BNS Inline Asides Update Message
functionBNS_CUSTOM_*
define statements_x
i18n implementation to show
and hide
default messagesBNS_Inline_Asides::replace_spaces
with sanitize_html_class
functionalityBNSIA_Scripts_and_Styles
to scripts_and_styles
readme.txt
to note additional default types of asides/wp-content/bns-customs/
shortcode_atts
bnsia-custom-types.css
in /wp-content/
folderreplace_spaces
usage)bnsia
class to theme elements other than defaultwp_localize_script
to maintain the dynamic elementelement
shortcode attribute to allow the use of specific HTML tagsload_plugin_textdomain
as redundantp
CSS related elements and propertiesblockquote
background: none
propertyBNS Inline Asides TextDomain
i18n supportBNS Theme Element
to set CSS element to be usedbnsia
class (to be used as default)is_admin
check from enqueue action function (not needed)