/** * Initialize. */ public static function init() { add_filter('wp_generate_attachment_metadata', array(__CLASS__, 'create_2x_images'), 10, 2); add_filter('delete_attachment', array(__CLASS__, 'delete_2x_images')); add_action('admin_menu', array(__CLASS__, 'admin_menu')); add_action('admin_init', array(__CLASS__, 'setup_settings')); add_action('admin_head-upload.php', array(__CLASS__, 'add_bulk_action')); add_action('admin_action_ib_retina_bulk_delete', array(__CLASS__, 'bulk_delete')); add_action('admin_action_-1', array(__CLASS__, 'bulk_delete')); self::$capability = apply_filters('ib_retina_cap', 'manage_options'); }
Version: 1.1.0 Author: educatorteam Author URI: http://educatorplugin.com License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: ib-retina */ /* Copyright (C) 2015 http://educatorplugin.com/ - contact@educatorplugin.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ define('IB_RETINA_URL', plugins_url('', __FILE__)); require_once 'include/ib-retina.php'; IB_Retina::init(); if (is_admin()) { require_once 'include/ib-retina-admin.php'; IB_Retina_Admin::init(); }