| 1 |
=== Image Source Control === |
| 2 |
Contributors: webzunft |
| 3 |
Tags: image, images, picture, picture source, image source, mediathek, media, caption, copyright |
| 4 |
Requires at least: 5.0 |
| 5 |
Tested up to: 5.2 |
| 6 |
Stable tag: 1.10.1 |
| 7 |
Requires PHP: 5.6 |
| 8 |
License: GPLv3 or later |
| 9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html |
| 10 |
|
| 11 |
The Image Source Control manages image sources, displays them and warns if they are missing. |
| 12 |
|
| 13 |
== Description == |
| 14 |
|
| 15 |
Did you ever forget to add the source to an image file in the frontend and the lawyer of the copyright holder knocked on your door? |
| 16 |
|
| 17 |
Image Source Control (ISC) helps to prevent this situation. |
| 18 |
|
| 19 |
> <strong>github repository</strong> |
| 20 |
> |
| 21 |
> I might not always be able to work on feature requests or fix buxes, but you can submit them to the github repository. |
| 22 |
> I will definitely review them there. |
| 23 |
> https://github.com/webgilde/image-source-control |
| 24 |
|
| 25 |
**Image Sources Lists** |
| 26 |
|
| 27 |
You can choose between different image source list types: |
| 28 |
|
| 29 |
* source as image caption/overlay (not compatible with all themes) |
| 30 |
* source list below the content |
| 31 |
* combined source list of all images |
| 32 |
|
| 33 |
**Frontend Features** |
| 34 |
|
| 35 |
* display sources for images in content, galleries, shortcodes and featured images |
| 36 |
* show image source directly in the image (not working with all images and themes) |
| 37 |
* include a list with all images and their sources of the current page/post |
| 38 |
* include a list with all images and their sources with all images or only those included in posts |
| 39 |
* attach lists be the content automatically or using shortcodes or template functions |
| 40 |
* display image sources on archive pages |
| 41 |
|
| 42 |
**Backend Features** |
| 43 |
|
| 44 |
* manage image source within media dashboard and in the Image block settings |
| 45 |
* mark an image to belong to the uploader |
| 46 |
* lists images with missing sources in the backend |
| 47 |
* warnings, if image source is missing |
| 48 |
* link sources to any url |
| 49 |
* manage, display and link licenses |
| 50 |
|
| 51 |
**Localization** |
| 52 |
|
| 53 |
English, German |
| 54 |
|
| 55 |
== Instructions == |
| 56 |
|
| 57 |
Also have a look at the [image source control website](http://webgilde.com/en/image-source-control/image-source-control-manual/). |
| 58 |
|
| 59 |
Find a list of images with missing sources under _Media > Missing sources_ |
| 60 |
|
| 61 |
**automatic image sources** |
| 62 |
|
| 63 |
You can choose to display image sources automatically below the post content or as a small overlay above your images. Just visit the settings page of the plugin to enable those options. |
| 64 |
|
| 65 |
**manually included image sources on pages/posts** |
| 66 |
|
| 67 |
You can add the image source list manually to pages or post via the shortcode `[isc_list]` in your content editor. You can use `[isc_list id="123]` to show the list of any post or page. |
| 68 |
|
| 69 |
You can also add the list with the function `isc_list()` within the loop in your template files. Use `isc_list( $post_id )` to show the image source list outside the loop. |
| 70 |
|
| 71 |
You should also check first if the function exists before using it: |
| 72 |
`<?php if( function_exists('isc_list') ) { isc_list(); } ?>` |
| 73 |
|
| 74 |
**list all image sources** |
| 75 |
|
| 76 |
You can add a paginated list with ALL attachments and sources to a post or page using the shortcode `[isc_list_all]`. Use `[isc_list_all per_page="25"]` to show only a limited number of images per page. |
| 77 |
|
| 78 |
The plugin searches your post content and thumbnail for images (attachments) and lists them, if you included at least the image source or marked it as your own image. |
| 79 |
|
| 80 |
== Legal Notice == |
| 81 |
|
| 82 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 83 |
|
| 84 |
== Installation == |
| 85 |
|
| 86 |
This section describes how to install the plugin and get it working. |
| 87 |
|
| 88 |
e.g. |
| 89 |
|
| 90 |
1. Upload `wg-image-source-control`-folder to the `/wp-content/plugins/` directory |
| 91 |
1. Activate ISC through the 'Plugins' menu in WordPress |
| 92 |
1. Visit _Settings > Image Control_ to set up the plugin |
| 93 |
|
| 94 |
See the _Instructions_ section [here](https://wordpress.org/plugins/image-source-control-isc/#description). |
| 95 |
|
| 96 |
== Screenshots == |
| 97 |
|
| 98 |
1. edit image source settings in the Image block |
| 99 |
1. display a list with all images of your site and their sources |
| 100 |
1. display image source within the image |
| 101 |
1. some of the settings to customize how to display image sources |
| 102 |
|
| 103 |
== Changelog == |
| 104 |
|
| 105 |
= 1.10.1 = |
| 106 |
|
| 107 |
* fix for block translations |
| 108 |
|
| 109 |
= 1.10 = |
| 110 |
|
| 111 |
* added image source settings to Image block |
| 112 |
|
| 113 |
= 1.9.7 = |
| 114 |
|
| 115 |
* changed `licence` string to `license` to match en_US language base |
| 116 |
* extended list of copyright licenses |
| 117 |
|
| 118 |
= 1.9.6 = |
| 119 |
|
| 120 |
* fixed issue using [isc_list] without overlays |
| 121 |
|
| 122 |
= 1.9.5 = |
| 123 |
|
| 124 |
* removed additional output introduced in 1.9.3 |
| 125 |
|
| 126 |
= 1.9.4 = |
| 127 |
|
| 128 |
* fixed index error |
| 129 |
|
| 130 |
= 1.9.3 = |
| 131 |
|
| 132 |
* prevent image source overlay on full image source list and below |
| 133 |
* optimized query of missing-sources check |
| 134 |
* only check for missing sources when an image was uploaded or once every 24 hours |
| 135 |
|
| 136 |
= 1.9.2 = |
| 137 |
|
| 138 |
* prevent infinite loop for posts with automatic image source lists where images are not index yet |
| 139 |
* moved German translation to wordpress.org |
| 140 |
|
| 141 |
= 1.9.1 = |
| 142 |
|
| 143 |
* delayed displaying source overlay by 100 ms to give images a chance to load their height |
| 144 |
* fixed wrong height of the overlay being used |
| 145 |
* fixed missing textdomain code to allow translations added through wordpress.org |
| 146 |
|
| 147 |
= 1.9 = |
| 148 |
|
| 149 |
THIS UPDATE CONTAINS SOME BASIC CHANGES ON HOW IMAGES ARE DETECTED IN THE CONTENT. PLEASE TEST IT. |
| 150 |
|
| 151 |
Please [reach out](https://wordpress.org/support/plugin/image-source-control-isc) in case you are suddenly missing any image sources. |
| 152 |
|
| 153 |
* rewritten the way how images are detected in the content of the post or page |
| 154 |
* replaced use of image url with attachment ID where possible to lift some heavy loads |
| 155 |
* fix for image names including dimensions (e.g., 300x250) |
| 156 |
* works with version 2.4.0 of Gutenberg plugin |
| 157 |
* place overlay correctly even when page continues to shift after being loaded |
| 158 |
* load public JavaScript in footer by default |
| 159 |
* prevent saving ISC post meta information on non-public post types |
| 160 |
|
| 161 |
= 1.8.11.2 = |
| 162 |
|
| 163 |
* fixed align value not being understood correctly |
| 164 |
|
| 165 |
= 1.8.11.1 = |
| 166 |
|
| 167 |
* fixed missing index issue |
| 168 |
* call parent class in admin class constructor |
| 169 |
|
| 170 |
= 1.8.11 = |
| 171 |
|
| 172 |
* cleanup |
| 173 |
* removed log spam introduced with 1.8.10 |
| 174 |
* prevent SQL injection through crafted img src attributes |
| 175 |
|
| 176 |
= 1.8.10.1 = |
| 177 |
|
| 178 |
* hotfix for php below 5.3 |
| 179 |
|
| 180 |
= 1.8.10 = |
| 181 |
|
| 182 |
* don’t list images attached to non-public posts in the full image list, when only visible images should be displayed, thanks to heiglandreas |
| 183 |
* added fallback to read images from galleries |
| 184 |
* added `isc_get_image_by_url_query` filter |
| 185 |
* fixed image list being empty due to autosave |
| 186 |
* read src from attribute according to dom documentation, thanks to heiglandreas |
| 187 |
* tested with WordPress 4.4 beta 4 |
| 188 |
|
| 189 |
= 1.8.9 = |
| 190 |
|
| 191 |
* rather use than error-log query |
| 192 |
|
| 193 |
= 1.8.8 = |
| 194 |
|
| 195 |
* search for image urls regardless of their used protocol (http or https) |
| 196 |
|
| 197 |
= 1.8.6 | 1.8.7 = |
| 198 |
|
| 199 |
* removed duplicate post links on full source list |
| 200 |
|
| 201 |
= 1.8.5 = |
| 202 |
|
| 203 |
* fixed deprecated sanitize_url() |
| 204 |
|
| 205 |
= 1.8.4 = |
| 206 |
|
| 207 |
* [feature] added option to display all images in the full list, not just those visible in posts |
| 208 |
* [fixed] default author text not showing up |
| 209 |
|
| 210 |
= 1.8.3 = |
| 211 |
|
| 212 |
* [fixed] saving pre text for source overlay, thanks to maler.whick |
| 213 |
|
| 214 |
= 1.8.2 = |
| 215 |
|
| 216 |
* [feature] show image sources for changed images |
| 217 |
* [feature] show image sources for images with query parameters |
| 218 |
|
| 219 |
= 1.8.1 = |
| 220 |
|
| 221 |
* [fixed] set default value for new option to prevent error message |
| 222 |
|
| 223 |
= 1.8 = |
| 224 |
|
| 225 |
* [feature] display image sources on archive pages (see settings) |
| 226 |
* [feature] use `isc_thumbnail_source()` to display thumbnail source in templates |
| 227 |
* [feature] added image sources for galleries and other shortcodes |
| 228 |
* updated German translation |
| 229 |
|
| 230 |
= 1.7.3 = |
| 231 |
|
| 232 |
* [fixed] bug on ajax calls preventing the source fields to show up on ajax called pages in the dashboard |
| 233 |
* [fixed] bug on multisite update |
| 234 |
* [optimized] don’t hide setting boxes |
| 235 |
* [optimized] finished moving all publically needed function to its own class |
| 236 |
|
| 237 |
= 1.7.2 = |
| 238 |
|
| 239 |
* [fixed] error message shown when list type settings was empty or unsaved |
| 240 |
* [fixed] source overlay showing if no image source was set for it |
| 241 |
* [optimized] trim source input |
| 242 |
|
| 243 |
= 1.7.1 = |
| 244 |
|
| 245 |
* [fixed] source list function referring to the wrong plugin class |
| 246 |
|
| 247 |
= 1.7.0 = |
| 248 |
|
| 249 |
* [optimized] manage different source display types on top of settings page |
| 250 |
* [optimized] renamed settings page to "Image Sources" |
| 251 |
* [removed] hiding source list elements in the frontend is no longer possible |
| 252 |
* [fixed] show source list not only below posts, but every other post type |
| 253 |
* [fixed] removed screenshots from main plugin files |
| 254 |
|