options = [ ['name' => 'Google Photos settings', 'desc' => 'Control settings for Google Photos', 'category' => 'google-settings', 'type' => 'section',], /* ['name' => 'Use own Google Client ID?', 'desc' => "Photonic can perform authentication with its own Client ID. Select this option if you want to use your own Client ID instead. Creating a Google Client ID can take at least 15-30 minutes, but can save you from potential API quota issues if too many people start using Photonic's ID. Note that if you have already defined a Client ID and Secret below they will be used regardless of this option. ", 'id' => "google_google_use_own_keys", 'grouping' => 'google-settings', 'type' => 'checkbox'],*/ ['name' => 'Google Client ID', 'desc' => "Enter your Google Client ID. You can get / create one from Google's API Manager. The documentation page can help you with further instructions. If you have previously obtained a Client ID for Picasa you can use that here, provided you follow the additional instructions in the documentation.
media parameter in the shortcode:',
'id' => 'google_media',
'grouping' => 'google-settings',
'type' => 'select',
'options' => Utilities::media_options()],
['name' => "Hide Photo Count in Album Title Display",
'desc' => "This will hide the number of photos in your Album's title.",
'id' => "google_hide_album_photo_count_display",
'grouping' => 'google-settings',
'type' => 'checkbox'],
['name' => "Photo titles and captions",
'desc' => "What do you want to show as the photo title in the tooltip and lightbox?",
'id' => "google_title_caption",
'grouping' => "google-settings",
'type' => 'select',
'options' => [
'none' => esc_html__('No title / caption / description', 'photonic'),
'title' => esc_html__('Always use the photo title, even if blank', 'photonic'),
]],
['name' => "Chain queries",
'desc' => "When you use Photonic to display a selected list of albums, Photonic will only display the matches from the first page of results. Select this option to let it display albums from later pages.",
'id' => "google_chain_queries",
'grouping' => 'google-settings',
'type' => 'checkbox'],
['name' => "Photos (Main Page)",
'desc' => "Control settings for photos from Google Photos when displayed in your page",
'category' => 'google-photos',
'type' => 'section',],
['name' => "What is this section?",
'desc' => "Options in this section are in effect when you use the shortcode format [gallery type='google' view='photos']. In other words, the photos are printed directly on the page.",
'grouping' => 'google-photos',
'type' => "blurb",],
['name' => "Photo Title Display",
'desc' => "How do you want the title of the photos?",
'id' => "google_photo_title_display",
'grouping' => 'google-photos',
'type' => 'radio',
'options' => $this->title_styles()],
['name' => "Constrain Photos Per Row",
'desc' => "How do you want the control the number of photo thumbnails per row by default? This can be overridden by adding the 'columns' parameter to the 'gallery' shortcode.",
'id' => "google_photos_per_row_constraint",
'grouping' => 'google-photos',
'type' => 'select',
'options' => ["padding" => "Fix the padding around the thumbnails",
"count" => "Fix the number of thumbnails per row",
]],
['name' => "Constrain by padding",
'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by",
'id' => "google_photos_constrain_by_padding",
'grouping' => 'google-photos',
'type' => 'text',
'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored."],
['name' => "Constrain by number of thumbnails",
'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails",
'id' => "google_photos_constrain_by_count",
'grouping' => 'google-photos',
'type' => 'select',
'options' => $this->selection_range(1, 25)],
['name' => "Photos (Overlaid Popup Panel)",
'desc' => "Control settings for photos from Google Photos when displayed in a popup",
'category' => 'google-photos-pop',
'type' => 'section',],
['name' => "What is this section?",
'desc' => "Options in this section are in effect when you use the shortcode format [gallery type='google' view='albums'], then click on an album to show an overlaid panel. In other words, the photos are printed directly in the overlaid panel.",
'grouping' => 'google-photos-pop',
'type' => "blurb",],
['name' => "Photo Title Display",
'desc' => "How do you want the title of the photos?",
'id' => "google_photo_pop_title_display",
'grouping' => 'google-photos-pop',
'type' => 'radio',
'options' => $this->title_styles()],
['name' => "Constrain Photos Per Row",
'desc' => "How do you want the control the number of photo thumbnails per row by default? This can be overridden by adding the 'columns' parameter to the 'gallery' shortcode.",
'id' => "google_photos_pop_per_row_constraint",
'grouping' => 'google-photos-pop',
'type' => 'select',
'options' => ["padding" => "Fix the padding around the thumbnails",
"count" => "Fix the number of thumbnails per row",
]],
['name' => "Constrain by padding",
'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by",
'id' => "google_photos_pop_constrain_by_padding",
'grouping' => 'google-photos-pop',
'type' => 'text',
'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored."],
['name' => "Constrain by number of thumbnails",
'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails",
'id' => "google_photos_pop_constrain_by_count",
'grouping' => 'google-photos-pop',
'type' => 'select',
'options' => $this->selection_range(1, 25)],
];
}
public static function get_instance() {
if (self::$instance == null) {
self::$instance = new Google();
}
return self::$instance;
}
}