1
0
mirror of https://github.com/kremalicious/Badged.git synced 2024-11-22 09:56:50 +01:00
Badged/badged.php

69 lines
1.7 KiB
PHP
Raw Normal View History

<?php
/**
2013-08-07 21:55:35 +02:00
* Badged
*
* Transforms the standard WordPress update & comment notification badges into iOS-styled ones.
* Just activate and enjoy the red badges.
*
* @package Badged
* @author Matthias Kretschmann <desk@kremalicious.com>
* @license GPL-2.0+
* @link http://kremalicious.com/badged/
* @copyright 2013 Matthias Kretschmann
*
* @wordpress-plugin
* Plugin Name: Badged
2012-05-31 23:24:14 +02:00
* Plugin URI: http://kremalicious.com/badged/
* Description: Transforms the standard WordPress update & comment notification badges into iOS-styled ones. Just activate and enjoy the red badges.
* Author: Matthias Kretschmann
* Author URI: http://matthiaskretschmann.com
2013-08-07 21:55:35 +02:00
* Version: 1.0.0
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /lang
* Text Domain: bdgd
*/
2013-08-07 21:55:35 +02:00
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Make the plugin work if symlinked
*
* Thanks to:
* http://alexking.org/blog/2011/12/15/wordpress-plugins-and-symlinks
*
* @since 0.3.2
*
*/
$badged_plugin_file = __FILE__;
if (isset($plugin)) {
$badged_plugin_file = $plugin;
}
else if (isset($mu_plugin)) {
$badged_plugin_file = $mu_plugin;
}
else if (isset($network_plugin)) {
$badged_plugin_file = $network_plugin;
}
define('BADGED_PLUGIN_FILE', $badged_plugin_file);
2013-08-07 21:55:35 +02:00
//define('BADGED_PLUGIN_PATH', WP_PLUGIN_DIR.'/'.basename(dirname($badged_plugin_file)));
2013-08-06 21:29:15 +02:00
/**
2013-08-07 21:55:35 +02:00
* Let's roll
2013-08-06 21:29:15 +02:00
*
2013-08-07 21:55:35 +02:00
* @since 1.0.0
2013-08-06 21:29:15 +02:00
*
*/
2013-08-07 21:55:35 +02:00
require_once( plugin_dir_path( BADGED_PLUGIN_FILE ) . 'class-badged.php' );
2013-08-06 21:29:15 +02:00
2013-08-07 21:55:35 +02:00
register_activation_hook( BADGED_PLUGIN_FILE, array( 'Badged', 'activate' ) );
register_deactivation_hook( BADGED_PLUGIN_FILE, array( 'Badged', 'deactivate' ) );
2013-08-07 21:55:35 +02:00
Badged::get_instance();