=' ) ) { require __DIR__ . '/vendor/autoload.php'; global $a3_portfolio; $a3_portfolio = new A3Rev\Portfolio(); } else { return; } /** * Load Localisation files. * * Note: the first-loaded translation file overrides any following ones if the same translation is present. * * Locales found in: * - WP_LANG_DIR/a3-portfolio/a3-portfolio-LOCALE.mo * - WP_LANG_DIR/plugins/a3-portfolio-LOCALE.mo * - /wp-content/plugins/a3-portfolio/languages/a3-portfolio-LOCALE.mo (which if not found falls back to) */ function a3_portfolio_plugin_textdomain() { $locale = apply_filters( 'plugin_locale', get_locale(), 'a3-portfolio' ); load_textdomain( 'a3-portfolio', WP_LANG_DIR . '/a3-portfolio/a3-portfolio-' . $locale . '.mo' ); load_plugin_textdomain( 'a3-portfolio', false, A3_PORTFOLIO_FOLDER.'/languages' ); } // Backwards compatibility for 3rd party plugin use functions from this plugin include( 'includes/compatibilities/classes-backwards-compatibility.php' ); // Compatibilities include ( 'includes/compatibilities/divi-theme.php' ); /** * Call when the plugin is activated */ register_activation_hook(__FILE__, array( $a3_portfolio, 'plugin_activated' ) );