-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathreadme.txt
263 lines (199 loc) · 9.44 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
=== Print-O-Matic ===
Contributors: twinpictures, baden03
Donate link: https://pluginoven.com/panares-fund/
Tags: print, print element, print shortcode, send to print, print button, print me, jQuery, print page, javascript, twinpictures, plugin oven
Requires at least: 4.9
Tested up to: 6.1.1
Stable tag: 2.1.10
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Adds the ability to target print elements using a simple [print-me] shortcode. Extra jQuery Jedi love given to filled out forms.
== Description ==
Print-O-Matic adds the ability to print any post, page or page element by using a simple [print-me] shortcode. A <a href='https://pluginoven.com/plugins/print-o-matic/documentation/shortcode/'>complete listing of shortcode options</a> are available, as well as <a href='https://wordpress.org/support/plugin/print-o-matic/'>free community support</a>.
== Installation ==
1. Old-school: upload the `print-o-matic` folder to the `/wp-content/plug-ins/` directory via FTP. Hipster: Ironically add Print-O-Matic via the WordPress Plug-ins menu.
1. Activate the Plug-in
1. Add a the shortcode to your post like so: `[print-me target="div#id_of_element_to_print" title="Print Form"]`
1. Test that the this plug-in meets your demanding needs.
1. Tweak the CSS to match your flavor.
1. Rate the plug-in and verify if it works at wordpress.org.
1. Leave a comment regarding bugs, feature request, cocktail recipes at https://wordpress.org/support/topic-tag/print-o-matic/
== Frequently Asked Questions ==
= Where can I fork this plugin and contribute changes? =
<a href='https://github.com/baden03/print-o-matic'>github</a>
= I am a Social Netwookiee, might Twinpictures have a Facebook page? =
Yes, yes... <a href='https://www.facebook.com/twinpictures'>Twinpictures is on Facebook</a>.
= Does Twinpictures do the Twitter? =
Ah yes! <a href='https://twitter.com/twinpictures'>@Twinpictures</a> does the twitter tweeting around here.
= How does one use the shortcode, exactly? =
A <a href='https://pluginoven.com/plugins/print-o-matic/documentation/'>complete listing of shortcode options</a> has been provided to answer this exact question.
= Where can I translate this plugin into my favorite language? =
Use the <a href='https://translate.wordpress.org/projects/wp-plugins/print-o-matic/'>Community translation for Print-O-Matic</a> at WordPress
= Who likes to rock the party? =
We like to rock the party.
== Screenshots ==
1. See the printer icon? Guess what happens when it's clicked?
1. Print-O-Matic Options screen for Ultimate Flexibility
== Changelog ==
= 2.1.10 =
* removed pause before print
* fixed issue of not printing correctly in safari
= 2.1.9 =
* now escapes only the title attribute value, not the entire attribute string
= 2.1.8 =
* security update. Now the plugin is escaping all shortcode attributes before output.
= 2.1.7 =
* re-added method of passing default and print-trigger specific data to js script using wp_add_inline_script
* added a bit of pause to allow for top and bot html to fully load
* pause before print now is for adjustingg the amount of time to let the print preview render before reverting back to display layout
= 2.1.6 =
* pause before print is now pause time to allow the browser to render the print-preview before resetting back to display layout
= 2.1.5 =
* reverted back to wp_localize_script to pass print data to js script
* moved pause before print to the post print cleanup
* fully tested with version 6.0
= 2.1.4 =
* try and force lazy load images to load before print
= 2.1.3 =
* improved method of passing default and print-trigger specific data to js script using wp_add_inline_script
* added line numbers back to CodeMirror, with admin css
= 2.1.2 =
* custom html settings in the plugin options also use CodeMirror
* no longer escaping print css before being passed to wp_add_inline_style
* removed line numbers from CodeMirror elements
* fixed issue with only first element being printed
= 2.1.1 =
* added back code to printomat.js
= 2.1.0 =
* prevent default on print triggers
* rolled back tested tag to 5.8.1 as only RC1 versions are apparently accepted
* more escaping for security
* tightened up the code a bit
* custom css sections of plugin options page now use CodeMirror
* improved method of adding custom css using wp_add_inline_style
= 2.0.3 =
* updated link to documentation
* textarea input fields now escaped using esc_textarea() on plugin options page
= 2.0.2 =
* targets are validated before print
* field values in the plugin options page are now escaped using esc_attr()
= 2.0.1 =
* added ability to define [print target by class](https://spacedonkey.de/4188/print-o-matic-external-print-trigger-target-by-class/)
* patched xss security issue
= 2.0 =
* complete re-write using new print-elements method by [@szepeshazi](https://github.com/szepeshazi/print-elements)
* fully tested with WordPress 5.8.1
= 1.7.12 =
* Fully tested with WordPress 5.2.1
* print window opens in new tab
* uses wp_localize to pass variables to script
* added option to include print-me scripts in admin dashboard
* added reviver.lt's Edge fix
= 1.7.11 =
* Fully tested with WordPress 5.1
* Fixed typos
= 1.7.10 =
* Fully tested with WordPress 4.9.1
* Added default print title
* IE bug fix: select elements now print selected values
= 1.7.9 =
* Fully tested with WordPress 4.8
= 1.7.8 =
* Safari on iOS will now rendering print preview correctly when close after print is used
* fixed link to twinpictures author website
= 1.7.7 =
* tested with WordPress 4.7.3
* replaced http links with https
= 1.7.6 =
* top and bottom print page html now use do_shortcode instead of the_content filter to avoid conflicts with social sharing plugins
* fixed error of extra character in the title tag.
= 1.7.5 =
* added missing alt tag
* fully tested with WordPress 4.6
= 1.7.4 =
* added missing alt tag
* reworked script to build new window more efficiently
* working (not fully resolved) on Edge. Some issues will are related to a bug in Edge.
= 1.7.3 =
* top and bottom html will process shortcakes
* work around to clone IE element values that don’t have ID attributes… ugh
* added option to close the print window after print dialogue box is closed
* work around IE syntax errors when NO form elements are present… double ugh
= 1.7.2 =
* added IE hack to fill in missing input text values for IE browsers.
= 1.7.1 =
* checks for older IE MSIE, IE 11 Trident & IE 12 Edge properly
= 1.7 =
* checks for IE (MSIE, Trident & Edge)
* plugin fully tested with WordPress 4.5
* added external printstyle for external triggers
* print window no longer auto-closes
* removed language files in favour of WordPress Language Packs
= 1.6.6 =
* plugin fully tested with WordPress 4.4.0
= 1.6.5 =
* adjusted method of determining if the print_data object exists and has property
* adjusted the language domain to work with WordPress’ new language translation system
= 1.6.4 =
* addressed move lovely IE issues
* mega hack-o-riffic workaround for IE input text elements loosing user input values
= 1.6.3 =
* fixed bug with title not passing target correctly when displaying both icon and title
= 1.6.2 =
* fixed issue with printstyle default value not saving
* deactivating plugin no longer clears all settings
= 1.6.1 =
* corrected typo in printstyle attribute
= 1.6.0 =
* added tag and class attributes
* target now passed using data attribute rather than hidden input field
= 1.5.7 =
* added pause_before_print attribute and option to manually pause the print dialogue box to let the page fully load.
= 1.5.6 =
* typo correction
* replaced redundant inline scripts with smarter print_data js object placed in footer
* added icons for WordPress 4.0
= 1.5.5 =
* Added some Internet Explorer workarounds
* Added optional jQuery clone.fix to address issues with cloning textarea elements
* Added %prev% and %next% target placeholders to print elements immediately preceding or following the print button
* Added 3 second delay if iframe is detected in print page
* Added Russian language translation
= 1.5.4 =
* load scripts option now defaults to always
* improvements for roll-your-own print-o-matic elements
* added german and hungarian translations
= 1.5.3 =
* works also in IE 11
* print command now waits for page to fully load
* added option to load scrips only on pages where shortcode is used
= 1.5.2 =
* fixed bug with do_not_print
* added alt attribute
* works again in horrid IE browsers
= 1.5.1 =
* added the do_not_print attribute
= 1.5 =
* added print page top and bottom HTML section (special thanks to Daniel Kevin Johansen @ 555Haxor.dk & Game-Site.dk [email protected])
* added option to select alternate print icons
* can now show icon, text and icon & text print button
* form values now include radio and checkbox selections
* removed php4 constructors
* added I18n localization support
* fixed printicon attribute bug in shortcode
* added custom css for display page as well as print page
= 1.4 =
* target may now use %ID% as a placeholder for the post ID
= 1.3 =
* Fixed so the print dialog box will display in IE (buggy, buggy IE)
= 1.2 =
* Added Printicon Attribute to insert text-only print link
= 1.1 =
* Added Options page with default target attribute and css style settings
= 1.0.1 =
* Removed space from title of new window to prevent the wonderful IE8 from throwing errors.
= 1.0 =
* The plug-in was forked and completely rewritten from Print Button Shortcode by MyWebsiteAdvisor.
== Upgrade Notice ==
* now escapes only the title attribute value, not the entire attribute string