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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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:

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.


All versions of newcity-wp-shortcodes with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^v1.3.0
php Version >=5.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package newcity/newcity-wp-shortcodes contains the following files

Loading the files please wait ....