PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 1.10
Image Source Control Lite – Show Image Credits and Captions v1.10
3.12.0 3.11.0 trunk 1.1 1.1.1 1.1.2 1.1.2.1 1.1.3 1.10 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.2 1.2.0.1 1.2.0.2 1.2.0.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.4.1 1.3.5 All 110 releases
← All changes | isc.php +33 -25 1.3.51.10 View file →
@@ -1,16 +1,17 @@
1 1 <?php
2 2 /*
3 3 Plugin Name: Image Source Control
4 - Version: 1.3.5
5 - Plugin URI: http://webgilde.com/en/image-source-control/
4 + Version: 1.10
5 + Plugin URI: https://webgilde.com/en/image-source-control/
6 6 Description: The Image Source Control saves the source of an image, lists them and warns if it is missing.
7 7 Author: Thomas Maier
8 - Author URI: http://www.webgilde.com/
8 + Author URI: https://webgilde.com/
9 + Text Domain: image-source-control-isc
9 10 License: GPL v3
10 11
11 12 Image Source Control Plugin for WordPress
12 - Copyright (C) 2012, Thomas Maier - thomas.maier@webgilde.com
13 + Copyright (C) 2012-2018, Thomas Maier
13 14
14 15 This program is free software: you can redistribute it and/or modify
15 16 it under the terms of the GNU General Public License as published by
16 17 the Free Software Foundation, either version 3 of the License, or
@@ -23,36 +24,43 @@
23 24
24 25 You should have received a copy of the GNU General Public License
25 26 along with this program. If not, see <http://www.gnu.org/licenses/>.
26 27 *
27 - * Followed the following tutorials
28 - * http://wpengineer.com/2076/add-custom-field-attachment-in-wordpress/
29 - * http://bueltge.de/eigene-felder-dateiverwaltung-wordpress/1226/ (same like above, but in German)
30 28 *
31 - *
32 29 */
33 30
34 31 //avoid direct calls to this file
35 -if (!function_exists('add_action')) {
36 - header('Status: 403 Forbidden');
37 - header('HTTP/1.1 403 Forbidden');
32 +if ( ! function_exists( 'add_action' ) ) {
33 + header( 'Status: 403 Forbidden' );
34 + header( 'HTTP/1.1 403 Forbidden' );
38 35 exit();
39 36 }
40 37
41 -define('ISCVERSION', '1.3.5');
42 -define('ISCNAME', 'Image Source Control');
43 -define('ISCTEXTDOMAIN', 'isc');
44 -define('ISCDIR', basename(dirname(__FILE__)));
45 -define('ISCPATH', plugin_dir_path(__FILE__));
46 -define('WEBGILDE', 'http://webgilde.com/en/image-source-control');
38 +define( 'ISCVERSION', '1.10' );
39 +define( 'ISCNAME', 'Image Source Control' );
40 +define( 'ISCDIR', basename( dirname( __FILE__ ) ) );
41 +define( 'ISCPATH', plugin_dir_path( __FILE__ ) );
42 +define( 'WEBGILDE', 'https://webgilde.com/en/image-source-control' );
47 43
48 -load_plugin_textdomain(ISCTEXTDOMAIN, false, dirname(plugin_basename(__FILE__)) . '/languages/');
44 +load_plugin_textdomain( 'image-source-control-isc', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
49 45
50 -require_once(ISCPATH . 'isc.class.php');
46 +if ( ! class_exists('ISC_Class')) {
47 + require_once ISCPATH . 'isc.class.php' ;
48 +}
51 49
52 -global $my_isc;
53 -$my_isc = new ISC_CLASS();
50 +if ( is_admin() ) {
51 + if ( ! class_exists( 'ISC_Admin' ) ) {
52 + require_once ISCPATH . 'admin/admin.php' ;
53 + }
54 + new ISC_Admin;
55 +} elseif (!is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX )) {
56 + // include frontend functions
57 + if ( ! class_exists( 'ISC_Public' ) ) {
58 + require_once ISCPATH . 'public/public.php';
59 + }
60 + new ISC_Public;
61 + require_once ISCPATH . 'functions.php';
62 +} else {
63 + new ISC_Class;
64 +}
54 65
55 -function isc_list($post_id = 0) {
56 - global $my_isc;
57 - echo $my_isc->list_post_attachments_with_sources($post_id);
58 -}
66 +require_once ISCPATH . 'gutenberg/gutenberg.php';