forked from SymaticSolutions/PicsAscii
-
Notifications
You must be signed in to change notification settings - Fork 0
/
picsascii.php
executable file
·96 lines (87 loc) · 3.17 KB
/
picsascii.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/**
*
* @link http://symaticsolutions.com
* @since 1.0.0
* @package Picsascii
*
* @wordpress-plugin
* Plugin Name: PicsAscii
* Plugin URI: https://github.com/SymaticSolutions/PicsAscii
* Description: This plugin converts images to their ASCII representation. Useful for quick conversion for ASCII profile images.
* Version: 1.0.2
* Author: Symatic Solutions
* Author URI: http://symaticsolutions.com
* Auther Email: info@symaticsolutions.com
* Auther Skype: symatic.solutions
* License: GPL-3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: picsascii
* Domain Path: /languages
*
* PicsAscii is distributed under the terms of the GNU GPL 3.0
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Currently plugin version.
* Start at version 0.1.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'PICSASCII_VERSION', '1.0.2' );
/**
* A plugin name
*/
define( 'PICSASCII_NAME', 'picsascii' );
/**
* Plugin directory path
*/
define( 'PICSASCII_DIR_PATH', plugin_dir_path( __FILE__ ) );
/**
* The code that runs during plugin activation.
* This action is documented in includes/class-picsascii-activator.php
*/
function activate_picsascii() {
require_once PICSASCII_DIR_PATH . 'includes/class-picsascii-activator.php';
Picsascii_Activator::activate();
}
register_activation_hook( __FILE__, 'activate_picsascii' );
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-picsascii-deactivator.php
*/
function deactivate_picsascii() {
require_once PICSASCII_DIR_PATH . 'includes/class-picsascii-deactivator.php';
Picsascii_Deactivator::deactivate();
}
register_deactivation_hook( __FILE__, 'deactivate_picsascii' );
/**
* The core plugin class that is used to define internationalization, admin-specific hooks, and public-facing site hooks.
*/
require PICSASCII_DIR_PATH . 'includes/class-picsascii.php';
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks, then kicking off the plugin from this point in the file
* does not affect the page life cycle.
*
* @since 1.0.0
*/
function run_picsascii() {
$plugin = new Picsascii();
$plugin->run();
}
run_picsascii();