Download the PHP package newcity/newcity-wp-shortcodes without Composer
On this page you can find all versions of the php package newcity/newcity-wp-shortcodes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package newcity-wp-shortcodes
NewCity Shortcodes Wordpress Plugin
This plugin adds shortcodes and an interface for inserting and editing their contents. The editing interface depends on the Shortcake (Shortcode UI) plugin
By default, no shortcodes are added or enabled. To enable individual shortcodes, go to Settings -> NewCity Shortcodes
and check the codes you wish to enable.
The following shortcodes are included:
- custom_blockquote
- local_script
- inline_media
Setting default enabled plugins for a theme
This plugin sets a Wordpress option called newcity_shortcodes_options
. It contains
a single array called enabled_shortcodes[]
. By setting this value with PHP, most likely
in your theme's functions.php
file, you can either lock the values down permanently or
set up an initial state for the theme.
Locking down the enabled plugins
Locking down the local scripts path
Setting initial state for enabled plugins
Shortcode Descriptions
Custom Blockquote Shortcode
Creates a blockquote that supports a citation field and wraps the quote body in a <p>
:
Local Script Shortcode
Allows the enqueuing of javascript files that are stored in the theme folder's local-scripts
folder.
This is a more secure alternative to allowing script code to be pasted directly into the content field.
By default, this shortcode will look for the script named in the source
attribute in the folder set
as the default on the plugin settings page. This folder can be overridden using the path
attribute,
but all script paths must be located inside the current theme's folder.
Enqueuing {theme-folder}/js/sample.js
when js
is the default path
Enqueuing {theme-folder}/custom-path/sample02.js
when js
is the default path
Inline Media Shortcode
A replacement for the default media placement WYSIWYG tools. Inserts an image with optional caption, wrapped in sufficient containers to allow for lots of customization.