PluginProbe
Image Source Control Lite – Show Image Credits and Captions / trunk
Image Source Control Lite – Show Image Credits and Captions vtrunk
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 +43 -51 1.10trunk View file →
@@ -1,66 +1,58 @@
1 1 <?php
2 -/*
3 - Plugin Name: Image Source Control
4 - Version: 1.10
5 - Plugin URI: https://webgilde.com/en/image-source-control/
6 - Description: The Image Source Control saves the source of an image, lists them and warns if it is missing.
7 - Author: Thomas Maier
8 - Author URI: https://webgilde.com/
9 - Text Domain: image-source-control-isc
10 - License: GPL v3
11 -
12 - Image Source Control Plugin for WordPress
13 - Copyright (C) 2012-2018, Thomas Maier
14 -
15 - This program is free software: you can redistribute it and/or modify
16 - it under the terms of the GNU General Public License as published by
17 - the Free Software Foundation, either version 3 of the License, or
18 - (at your option) any later version.
19 -
20 - This program is distributed in the hope that it will be useful,
21 - but WITHOUT ANY WARRANTY; without even the implied warranty of
22 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 - GNU General Public License for more details.
24 -
25 - You should have received a copy of the GNU General Public License
26 - along with this program. If not, see <http://www.gnu.org/licenses/>.
2 +/**
3 + * Plugin Name: Image Source Control Lite
4 + * Version: 3.12.0
5 + * Plugin URI: https://imagesourcecontrol.com/
6 + * Description: Image Source Control saves the source of an image, lists them and warns if it is missing.
7 + * Author: Thomas Maier
8 + * Author URI: https://imagesourcecontrol.com/
9 + * License: GPL v3
27 10 *
11 + * Image Source Control Plugin for WordPress
12 + * Copyright (C) 2012-2026, Thomas Maier & webgilde GmbH
28 13 *
14 + * This program is free software: you can redistribute it and/or modify
15 + * it under the terms of the GNU General Public License as published by
16 + * the Free Software Foundation, either version 3 of the License, or
17 + * (at your option) any later version.
18 + *
19 + * This program is distributed in the hope that it will be useful,
20 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 + * GNU General Public License for more details.
23 + *
24 + * You should have received a copy of the GNU General Public License
25 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
29 26 */
30 27
31 -//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 - exit();
28 +if ( defined( 'ISCVERSION' ) ) {
29 + wp_die( 'You can only activate Image Source Control once. Please disable the other version first.' );
36 30 }
37 31
38 -define( 'ISCVERSION', '1.10' );
32 +define( 'ISCVERSION', '3.12.0' );
39 33 define( 'ISCNAME', 'Image Source Control' );
40 -define( 'ISCDIR', basename( dirname( __FILE__ ) ) );
34 +define( 'ISCDIR', basename( __DIR__ ) );
41 35 define( 'ISCPATH', plugin_dir_path( __FILE__ ) );
42 -define( 'WEBGILDE', 'https://webgilde.com/en/image-source-control' );
36 +define( 'ISCBASE', plugin_basename( __FILE__ ) ); // plugin base as used by WordPress to identify it.
37 +define( 'ISCBASEURL', plugin_dir_url( __FILE__ ) ); // URL to the plugin directory.
43 38
44 -load_plugin_textdomain( 'image-source-control-isc', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
39 +// Load the autoloader.
40 +require_once ISCPATH . 'includes/class-autoloader.php';
41 +\ISC\Autoloader::get()->initialize();
45 42
46 -if ( ! class_exists('ISC_Class')) {
47 - require_once ISCPATH . 'isc.class.php' ;
43 +if ( is_admin() ) {
44 + new ISC\Admin();
45 +} elseif ( ! is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
46 + // include frontend functions.
47 + new ISC_Public();
48 + require_once ISCPATH . 'includes/functions.php';
48 49 }
49 50
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;
51 +// deprecated. Added here for backward compatibility. Will be removed in future versions.
52 +new ISC_Class();
53 +
54 +if ( ! class_exists( 'ISC_Pro_Model', false ) && file_exists( ISCPATH . 'pro/isc-pro.php' ) ) {
55 + require_once ISCPATH . 'pro/isc-pro.php';
64 56 }
65 57
66 -require_once ISCPATH . 'gutenberg/gutenberg.php';
58 +new ISC_Block_Options();