PluginProbe
Snippet Shortcodes / 1.7.1
Snippet Shortcodes v1.7.1
5.2.1 5.2 5.1.8 5.1.6 5.1.7 5.1.5 trunk 1.0 1.1 1.2 1.3 1.3.1 1.4 1.5 1.5.1 1.6 1.6.1 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.8 2.0 2.0.1 All 74 releases
shortcode-variables / readme.txt

readme.txt in Snippet Shortcodes 1.7.1, at readme.txt

165 lines 6.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 === Plugin Name ===
2 Contributors: aliakro
3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J3C968CUGDV6U
4 Tags: shortcode, variable, php, text, html, parameter, javascript, embed, reuse
5 Requires at least: 4.2.0
6 Tested up to: 4.5
7 Stable tag: 1.7.1
8 License: GPLv2 or later
9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
11 Create your own shortcodes and assign text, html, etc to them. Use these across your site and only change in one place.
12
13 == Description ==
14
15 Do you want to use the same snippet throughout your site but only have to change the value in one location? If so, this plugin maybe just what you need.
16
17 You can create your own Shortcodes and assign text, HTML, JavaScript, etc to it. You will then be given a shortcode such as:
18
19 [shortcode-variables slug="your-slug-name"]
20
21 OR, even shorter syntax:
22
23 [s-var slug="your-slug-name"]
24
25 You can embed this shortcode throughout your site and it will render the same content. Simply update the Shortcode Variable in Tools > Shortcode Variables and it will change throughout the site!
26
27 ** Specify Parameters **
28
29 Specify your own parameters:
30
31 You can now specify your own parameters when inserting a shortcode. For example, say you have a shortcode that renders a HTML table, you can now add parameters to the shortcode and specify where they appear in the shortcode e.g.
32
33 [s-var slug="render-table" border="0" background="#FFFFFF" width="50%" site-title="YeKen"] to place each parameter within a shortcode use the following syntax %%background%%, %%width%%, etc. See below:
34
35 <table border="%%border%%" style="background:%%background%%" width="%%width%%">
36 <tr>
37 <td>Welcome to our site, %%site-title%%.</td>
38 </tr>
39 </table>
40
41 ** Premade Shortcodes **
42
43 Comes with the following premade shortcodes:
44
45 - sc-todays-date - Displays today's date. Default is UK format (DD/MM/YYYY). Format can be changed by adding the parameter format="m/d/Y" onto the shortcode. Format syntax is based upon PHP date: http://php.net/manual/en/function.date.php
46 - sc-site-title - Displays the site title.
47 - sc-site-url - Displays the site URL.
48 - sc-page-title - Displays the page title.
49 - sc-admin-email - Displays the admin email address.
50 - sc-login-page - Wordpress login page. Add the parameter "redirect" to specify where the user is taken after a successful login e.g. redirect="http://www.google.co.uk".
51 - sc-username - Display the logged in username.
52 - sc-user-id - Display the current user's ID
53 - sc-user-ip - Display the current user's IP address.
54 - sc-user-email - Display the current user's email address.
55 - sc-username - Display the current user's username.
56 - sc-first-name - Display the current user's first name.
57 - sc-last-name - Display the current user's last name.
58 - sc-display-name - Display the current user's display name.
59 - sc-user-agent - Display the current user's user agent
60
61 Features:
62
63 - Insert the same piece of data, HTML, text, etc throughout your site and change in only one place.
64 - TinyMCE editor
65 - Place other WordPress shortcodes within yours
66 - Comes with a range of pre-made shortcodes
67 - Pass your own parameters into a shortcode
68
69 Languages supported:
70
71 - English (UK)
72 - Need a translation? Email us: email@YeKen.uk
73
74 * Developed by YeKen.uk *
75
76 Paypal Donate: email@YeKen.uk
77
78 == Installation ==
79
80 1. Login into Wordpress Admin Panel
81 2. Goto Plugins > Add New
82 3. Search for "Shortcode Variables"
83 4. Click Install now and activate plugin
84 5. Goto Settings > Shortcode Variables
85
86 == Frequently Asked Questions ==
87
88 = How do I add / edit / delete Shortcode Variables =
89
90 Login into Wordpress Admin Panel and goto Settings > Shortcode Variables
91
92 == Screenshots ==
93
94 1. View all shortcode variables created.
95 2. Add a new shortcode variable
96 3. Edit an existing shortcode variable
97 4. Using the shortcode variables into a page
98 5. Shortcode variables rendered in a page
99
100 == Changelog ==
101
102 = 1.7.1 =
103
104 - BUG FIX: Tweak made to "on activate" so the code required to change the relevant database tables is called correctly.
105
106 = 1.7 =
107
108 - Disable a variable. You can now disable a variable via the admin panel - if a shortcode is disabled nothing will be rendered in it's place (will remove the shortcode though).
109
110 = 1.6.1 =
111
112 - BUG FIX: Array declaration caused 500 error on non PHP 7
113
114 = 1.6 =
115
116 - Now supports custom parameters. You can now add parameters when inserting a shortcode and specify where in the shortcode those parameters should appear.
117 - BUG FIX: Removed a stray var_dump()
118
119 = 1.5.1 =
120
121 * BUG FIX: "Add new" link for message "You haven't created any shortcodes yet." wasn't working correctly
122 * BUG FIX: Typo - "Shotcodes" instead of "Shortcodes" on "Your Shortcodes" page
123
124 = 1.5 =
125
126 * Added a shorter shortcode slug. So, instead of [shortcode-variables slug="your-slug-name"] you can also use [s-var slug="your-slug-name"]
127 * BUG FIX: Some pre-made shortcodes weren't being rendered in the correct place. Fixed.
128
129 = 1.4 =
130 * Added the new pre-made shortcodes:
131 * sc-login-page - Wordpress login page. Add the parameter "redirect" to specify where the user is taken after a successful login e.g. redirect="http://www.google.co.uk".
132 * sc-username - Display the logged in username.
133 * sc-user-id - Display the current user's ID
134 * sc-user-ip - Display the current user's IP address.
135 * sc-user-email - Display the current user's email address.
136 * sc-username - Display the current user's username.
137 * sc-first-name - Display the current user's first name.
138 * sc-last-name - Display the current user's last name.
139 * sc-display-name - Display the current user's display name.
140 * sc-user-agent - Display the current user's user agent
141 * BUG FIX: Deleting a shortcode from cache when deleted from Admin panel. This stops it getting rendered when removed from the plugin.
142
143 = 1.3.1 =
144
145 * Added some messages to encourage people to suggest premade tags.
146 * Added version numbers. These are stored in DB to aid future upgrades.
147
148 = 1.3 =
149
150 This was a dummy release to fix an SVN issue with the 1.2 release!
151
152 = 1.2 =
153
154 * Added Premade shortcodes and framework to add additional ones
155 * Added Top Level menu item to support two sub pages. One for user defined shortcodes and another for premade shortcodes.
156
157 = 1.1 =
158 * Added caching to SQL queries. Therefore making shortcode rendering faster and reduce load on mySQL.
159 * TinyMCE editor for editing shortcode content.
160 * You can now specify other shortcodes within your shortcode variables.
161 * Readme.txt fixes
162
163 = 1.0 =
164 * Initial Release
165