public function resize_url($full_uri = false) { if (!module::get_var("aws_s3", "enabled")) { return parent::resize_url($full_uri); } if ($this->is_album() && $this->id > 1) { return aws_s3::generate_url("rs/" . $this->relative_path() . "/.album.jpg", $this->view_1 == 1 ? false : true, $this->updated); } else { return aws_s3::generate_url("rs/" . $this->relative_path(), $this->view_1 == 1 ? false : true, $this->updated); } }