-
Notifications
You must be signed in to change notification settings - Fork 0
/
expubEpub.class.php
37 lines (32 loc) · 1017 Bytes
/
expubEpub.class.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
<?php
/**
* A fundamental class from which all other classes in the plugin should be derived.
* The purpose of this class is to hold data useful to all classes.
*/
if ( !defined('EXP_DEV') )
define('EXP_DEV', FALSE);
abstract class Expub_Epub {
const TEXT_DOMAIN = 'expub-epub';
const EXP_VERSION = '1';
const DB_VERSION = 1;
const PLUGIN_NAME = 'exPub ePub Exporter for Wordpress';
const DEBUG = EXP_DEV; // Use define( 'EXP_DEV', TRUE/FALSE ) within your wp-config.
/**
* A wrapper around WP's __() to add the plugin's text domain
*
* @param string $string
* @return string|void
*/
public static function __( $string ) {
return __(apply_filters( 'exp_string_'.sanitize_title($string), $string ), self::TEXT_DOMAIN );
}
/**
* A wrapper around WP's _e() to add the plugin's text domain
*
* @param string $string
* @return void
*/
public static function _e( $string ) {
return _e(apply_filters( 'exp_string_'.sanitize_title($string), $string ), self::TEXT_DOMAIN );
}
}