get_plugin_sdks_dir_path() . '/Aws3/aws-autoloader.php'; } /** * @inheritDoc */ public static function signed_urls_support_desc() { global $as3cf; return sprintf( __( 'Private Media Supported with upgrade', 'amazon-s3-and-cloudfront' ), $as3cf::dbrains_url( '/wp-offload-media/upgrade/', array( 'utm_campaign' => 'WP+Offload+S3', ) ) ); } /** * Description for when Block All Public Access is enabled and Delivery Provider supports it. * * @return string */ public static function get_block_public_access_enabled_supported_desc() { global $as3cf; $mesg = __( 'Since you\'re using Amazon CloudFront for delivery we recommend you keep Block All Public Access enabled.', 'amazon-s3-and-cloudfront' ); $mesg .= ' '; $mesg .= $as3cf::settings_more_info_link( 'bucket', '', 'change+bucket+access' ); return $mesg; } /** * Description for when Block All Public Access is disabled and Delivery Provider supports it. * * @return string */ public static function get_block_public_access_disabled_supported_desc() { global $as3cf; $mesg = __( 'Since you\'re using Amazon CloudFront for delivery we recommend you enable Block All Public Access once you have set up the required Origin Access Identity and bucket policy.', 'amazon-s3-and-cloudfront' ); $mesg .= ' '; $mesg .= $as3cf::settings_more_info_link( 'bucket', '', 'change+bucket+access' ); return $mesg; } /** * Prompt text to confirm that everything is in place to enable Block All Public Access. * * @return string */ public static function get_block_public_access_confirm_setup_prompt() { global $as3cf; $bucket_settings_doc = $as3cf::dbrains_url( '/wp-offload-media/doc/settings/', array( 'utm_campaign' => 'support+docs', 'utm_content' => 'change+bucket+access' ), 'bucket' ); return sprintf( __( 'I have set up the required Origin Access Identity and bucket policy', 'amazon-s3-and-cloudfront' ), $bucket_settings_doc ); } /** * Description for when Object Ownership is enforced and Delivery Provider supports it. * * @return string */ public static function get_object_ownership_enforced_supported_desc(): string { global $as3cf; $mesg = __( 'Since you\'re using Amazon CloudFront for delivery we recommend you keep Object Ownership enforced.', 'amazon-s3-and-cloudfront' ); $mesg .= ' '; $mesg .= $as3cf::settings_more_info_link( 'bucket', '', 'change+bucket+access' ); return $mesg; } /** * Description for when Object Ownership is not enforced and Delivery Provider supports it. * * @return string */ public static function get_object_ownership_not_enforced_supported_desc(): string { global $as3cf; $mesg = __( 'Since you\'re using Amazon CloudFront for delivery we recommend you enforce Object Ownership once you have set up the required Origin Access Identity and bucket policy.', 'amazon-s3-and-cloudfront' ); $mesg .= ' '; $mesg .= $as3cf::settings_more_info_link( 'bucket', '', 'change+bucket+access' ); return $mesg; } /** * Title to be shown for provider's console link. * * @return string */ public static function get_console_title(): string { return _x( 'CloudFront Distributions', 'Provider console link text', 'amazon-s3-and-cloudfront' ); } }