Taitava\SimpleGallery\GalleryPage
Class GalleryPage
Synopsis
class GalleryPage
extends Page
{
- // members
- private static string $table_name = 'GalleryPage';
- private static boolean $use_bootstrap = true;
- private static boolean $use_flexbox = true;
- private static boolean $require_bootstrap = false;
- private static bool $allow_image_groups = false;
- private static bool $allow_direct_images = false;
- private static array $many_many = ;
- private static array $many_many_extraFields = ;
- // methods
- public void singular_name()
- public void plural_name()
- public void getCMSFields()
- public static void DirectImagesAllowed()
- public static void ImageGroupsAllowed()
- public ArrayList GroupedImages()
- public void BootstrapHeaderCSSClass()
- public void BootstrapRowCSSClass()
- public static void NewUploadField()
Hierarchy
Extends
- Page
Tasks
Line | Task |
---|---|
100 | what is this? |
101 | what is this? |
102 | what is this? |
Members
private
- $allow_direct_images
—
Taitava\SimpleGallery\bool
This option is used to control whether if it's possible to link images directly to a GalleryPage without using an image group in between. If $allow_image_groups is false, then this option has no effect and direct images are obviously always allowed. - $allow_image_groups
—
Taitava\SimpleGallery\bool
If true, a single GalleryPage can be divided to multiple image sections. It's false by default to keep the default setup simple as the module name suggests. :) - $many_many
- $many_many_extraFields
-
$require_bootstrap
If true, require Bootstrap's CSS and JS files from this module's vendor folder. If you have already included bootstrap in your theme, keep this off. - $table_name
-
$use_bootstrap
Whether to inject bootstrap CSS classes to GalleryPage content. You can perform well without this if you set 'use_flexbox' to true, but only newest browsers support that. Both 'use_bootstrap' and 'use_flexbox' can be used together, too. -
$use_flexbox
Whether to use flexbox CSS rules to center images both horizontally and vertically. This solves problems if you have images with different heights, but is only supported by newest browsers.
Methods
public
- BootstrapHeaderCSSClass()
- BootstrapRowCSSClass()
- DirectImagesAllowed()
- GroupedImages() — Puts together images that are linked directly to this GalleryPage and images that are linked to this GalleryPage via GalleryImageGroups. Note that this method does not use GroupedList! Instead it uses a custom ArrayList structure: array( GroupID => array( 'Title' => string 'Images' => a <% loop %> able array of images in this group ) )
- ImageGroupsAllowed()
- NewUploadField()
- getCMSFields()
- plural_name()
- singular_name()