-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformater-wp-pack.php
44 lines (36 loc) · 1.13 KB
/
formater-wp-pack.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
<?php
/**
* Plugin Name: Formater-wp-pack
* Description: Manage svg and pdf files
* Version: 2.1.1
* Author: epointal
* Author URI: http://elisabeth.pointal.org/
* GitHub Plugin URI: terresolide/formater-wp-pack
**/
if ( ! defined( 'ABSPATH' ) ) exit;
Class Formater_WP_Pack
{
private static $_instance;
private static $_pdf_manager;
private static $_svg_manager;
public static $url;
public static $VERSION = '2.1.1';
private function __construct()
{
self::$url = plugins_url().'/formater-wp-pack';
add_action('plugins_loaded', array( &$this, 'initialize'));
}
public function initialize(){
require_once plugin_dir_path( __FILE__ ) . '/class/Fm_pdf_manager.php';
require_once plugin_dir_path( __FILE__ ) . '/class/Fm_svg_manager.php';
self::$_pdf_manager = new Fm_pdf_manager();
self::$_svg_manager = new Fm_svg_manager();
}
public static function get_instance(){
if( is_null( self::$_instance)){
self::$_instance = new Formater_WP_Pack();
}
return self::$_instance;
}
}
Formater_WP_Pack::get_instance();