-
Notifications
You must be signed in to change notification settings - Fork 8
/
just-responsive-images.php
63 lines (53 loc) · 1.65 KB
/
just-responsive-images.php
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
<?php
/*
Plugin Name: Just Responsive Images
Description: Providing full control to set your own responsive image properties for WordPress 4.4+, the ability to use the <picture> tag, auto-generate image backgrounds and supports retina images.
Tags: responsive post thumbnail, post thumbnail as background, retina support, retina image, retina post thumbnail, responsive post attachment, responsive images, responsive attachments, post thumbnails, media
Version: 1.6.7
Author: JustCoded / Alex Prokopenko
Author URI: http://justcoded.com/
License: GPL3
*/
define( 'JRI_ROOT', dirname( __FILE__ ) );
require_once( JRI_ROOT . '/core/Autoload.php' );
require_once( JRI_ROOT . '/core/helpers.php' );
use jri\core;
use jri\components;
/**
* Class JustResponsiveImages
* Main plugin entry point. Includes components in constructor
*/
class JustResponsiveImages extends core\Singleton {
/**
* Textual plugin name
*
* @var string
*/
public static $plugin_name;
/**
* Current plugin version
*
* @var float
*/
public static $version;
/**
* Plugin text domain for translations
*/
const TEXTDOMAIN = 'jri';
/**
* Plugin main entry point
*
* Protected constructor prevents creating another plugin instance with "new" operator.
*/
protected function __construct() {
// init plugin name and version.
self::$plugin_name = __( 'Just Responsive Images', JustResponsiveImages::TEXTDOMAIN );
self::$version = '1.650';
// init features, which this plugin is created for.
new components\Maintenance();
new components\PostAttachment();
new components\MediaMetaInfo();
new components\UploadsCleanup();
}
}
JustResponsiveImages::run();