public static function instance() { if (!self::$instance) { self::$instance = new self(); self::$instance->get_options(); self::$instance->add_hooks(); } }
Description: Display your team members in a very attractive way as a widget or page with the shortcode [our-team] Version: 2.42 Author: SmartCat Author URI: https://smartcatdesign.net License: GPL v2 * * @author Bilal Hassan <*****@*****.**> * @copyright Smartcat Design <http://smartcatdesign.net> * */ if (!defined('ABSPATH')) { die; } if (!defined('SC_TEAM_PATH')) { define('SC_TEAM_PATH', plugin_dir_path(__FILE__)); } if (!defined('SC_TEAM_URL')) { define('SC_TEAM_URL', plugin_dir_url(__FILE__)); } require_once plugin_dir_path(__FILE__) . 'inc/class/class.smartcat-team.php'; register_activation_hook(__FILE__, array('SmartcatTeamPlugin', 'activate')); register_deactivation_hook(__FILE__, array('SmartcatTeamPlugin', 'deactivate')); SmartcatTeamPlugin::instance(); require_once SC_TEAM_PATH . 'admin/class/class-tgm-plugin-activation.php'; add_action('tgmpa_register', 'sc_team_register_required_plugin'); function sc_team_register_required_plugin() { $plugins = array(array('name' => 'Reviews & Testimonials Showcase', 'slug' => 'testimonials-reviews-showcase', 'required' => false)); $config = array('id' => 'tgmpa', 'default_path' => '', 'menu' => 'tgmpa-install-plugins', 'parent_slug' => 'themes.php', 'capability' => 'edit_theme_options', 'has_notices' => false, 'dismissable' => true, 'dismiss_msg' => '', 'is_automatic' => false, 'message' => ''); tgmpa($plugins, $config); }