get_version(); $assets_dir = charitable()->get_path( 'assets', false ); /* The following styles are only loaded on Charitable screens. */ $screen = get_current_screen(); if ( ( ! empty( $_GET['page'] ) && 'charitable-backups' === $_GET['page'] ) ) { // phpcs:ignore wp_enqueue_style( 'charitable-backups', $assets_dir . 'css/integrations/backups.css', array(), $version ); wp_register_script( 'charitable-admin-plugins', $assets_dir . 'js/plugins/charitable-admin-plugins' . $min . '.js', array( 'jquery' ), $version, true ); } } /** * Returns and/or create the single instance of this class. * * @since 1.8.8 * * @return Charitable_Intergrations_Backups */ public static function get_instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } } endif;