..
public static json ( Ansel_Gallery $gallery, array $params = [] ) : string | ||
$gallery | Ansel_Gallery | The gallery to represent in this view |
$params | array | An array of parameters for this method:
full - Should a full URL be generated? [false] from - Starting image count [0] count - The number of images to include (starting at from) [0] image_view - The type of ImageGenerator to obtain the src url for. [screen] view_links - Should the JSON include links to the Image and/or Gallery View? [false] perpage - Number of images per page [from user prefs] |
return | string | A serialized JSON array. |