Amazon_S3_And_CloudFront::plugin_load PHP Method

plugin_load() public method

public plugin_load ( )
    function plugin_load()
    {
        $version = $this->get_asset_version();
        $suffix = $this->get_asset_suffix();
        $src = plugins_url('assets/css/styles.css', $this->plugin_file_path);
        wp_enqueue_style('as3cf-styles', $src, array('as3cf-modal'), $version);
        $src = plugins_url('assets/js/script' . $suffix . '.js', $this->plugin_file_path);
        wp_enqueue_script('as3cf-script', $src, array('jquery', 'as3cf-modal'), $version, true);
        wp_localize_script('as3cf-script', 'as3cf', array('strings' => array('create_bucket_error' => __('Error creating bucket', 'amazon-s3-and-cloudfront'), 'create_bucket_name_short' => __('Bucket name too short.', 'amazon-s3-and-cloudfront'), 'create_bucket_name_long' => __('Bucket name too long.', 'amazon-s3-and-cloudfront'), 'create_bucket_invalid_chars' => __('Invalid character. Bucket names can contain lowercase letters, numbers, periods and hyphens.', 'amazon-s3-and-cloudfront'), 'save_bucket_error' => __('Error saving bucket', 'amazon-s3-and-cloudfront'), 'get_buckets_error' => __('Error fetching buckets', 'amazon-s3-and-cloudfront'), 'get_url_preview_error' => __('Error getting URL preview: ', 'amazon-s3-and-cloudfront'), 'save_alert' => __('The changes you made will be lost if you navigate away from this page', 'amazon-s3-and-cloudfront'), 'get_diagnostic_info' => __('Getting diagnostic info...', 'amazon-s3-and-cloudfront'), 'get_diagnostic_info_error' => __('Error getting diagnostic info: ', 'amazon-s3-and-cloudfront')), 'nonces' => array('create_bucket' => wp_create_nonce('as3cf-create-bucket'), 'manual_bucket' => wp_create_nonce('as3cf-manual-save-bucket'), 'get_buckets' => wp_create_nonce('as3cf-get-buckets'), 'save_bucket' => wp_create_nonce('as3cf-save-bucket'), 'get_url_preview' => wp_create_nonce('as3cf-get-url-preview'), 'get_diagnostic_info' => wp_create_nonce('as3cf-get-diagnostic-info')), 'is_pro' => $this->is_pro(), 'aws_bucket_link' => $this->get_aws_bucket_link()));
        $this->handle_post_request();
        $this->http_prepare_download_log();
        $this->check_for_gd_imagick();
        do_action('as3cf_plugin_load');
    }
Amazon_S3_And_CloudFront