PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 1.3.5
Image Source Control Lite – Show Image Credits and Captions v1.3.5
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 +25 -33 1.101.3.5 View file →
@@ -1,17 +1,16 @@
1 1 <?php
2 2 /*
3 3 Plugin Name: Image Source Control
4 - Version: 1.10
5 - Plugin URI: https://webgilde.com/en/image-source-control/
4 + Version: 1.3.5
5 + Plugin URI: http://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: https://webgilde.com/
9 - Text Domain: image-source-control-isc
8 + Author URI: http://www.webgilde.com/
10 9 License: GPL v3
11 10
12 11 Image Source Control Plugin for WordPress
13 - Copyright (C) 2012-2018, Thomas Maier
12 + Copyright (C) 2012, Thomas Maier - thomas.maier@webgilde.com
14 13
15 14 This program is free software: you can redistribute it and/or modify
16 15 it under the terms of the GNU General Public License as published by
17 16 the Free Software Foundation, either version 3 of the License, or
@@ -24,43 +23,36 @@
24 23
25 24 You should have received a copy of the GNU General Public License
26 25 along with this program. If not, see <http://www.gnu.org/licenses/>.
27 26 *
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)
28 30 *
31 + *
29 32 */
30 33
31 34 //avoid direct calls to this file
32 -if ( ! function_exists( 'add_action' ) ) {
33 - header( 'Status: 403 Forbidden' );
34 - header( 'HTTP/1.1 403 Forbidden' );
35 +if (!function_exists('add_action')) {
36 + header('Status: 403 Forbidden');
37 + header('HTTP/1.1 403 Forbidden');
35 38 exit();
36 39 }
37 40
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' );
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');
43 47
44 -load_plugin_textdomain( 'image-source-control-isc', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
48 +load_plugin_textdomain(ISCTEXTDOMAIN, false, dirname(plugin_basename(__FILE__)) . '/languages/');
45 49
46 -if ( ! class_exists('ISC_Class')) {
47 - require_once ISCPATH . 'isc.class.php' ;
48 -}
50 +require_once(ISCPATH . 'isc.class.php');
49 51
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;
52 +global $my_isc;
53 +$my_isc = new ISC_CLASS();
54 +
55 +function isc_list($post_id = 0) {
56 + global $my_isc;
57 + echo $my_isc->list_post_attachments_with_sources($post_id);
64 58 }
65 -
66 -require_once ISCPATH . 'gutenberg/gutenberg.php';