-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add image_aspect_ratio to generic template [square] * Add image_aspect_ratio param * Add ImageAspectRatio Enum * Add description of imageAspectRatio to README * Fix styling
- Loading branch information
Showing
5 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace NotificationChannels\Facebook\Enums; | ||
|
||
/** | ||
* Class ImageAspectRatioType. | ||
* | ||
* The aspect ratio used to render images specified by element.image_url | ||
* | ||
* @see https://developers.facebook.com/docs/messenger-platform/reference/templates/generic#payload | ||
*/ | ||
class ImageAspectRatioType | ||
{ | ||
/** | ||
* Aspect ratio of image should be 1.91:1. | ||
*/ | ||
public const HORIZONTAL = 'horizontal'; | ||
/** | ||
* Aspect ratio of image should be 1:1. | ||
*/ | ||
public const SQUARE = 'square'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters