PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 2.20
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v2.20
3.36 3.35 3.34 3.33 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.33 2.34 2.40 2.41 2.42 2.43 2.44 All 141 releases
photonic / options / google-options.php

google-options.php in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 2.20, at options/google-options.php

201 lines 8.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 global $photonic_google_options;
4
5 $photonic_google_options = array(
6 array('name' => 'Google Photos settings',
7 'desc' => 'Control settings for Google Photos',
8 'category' => 'google-settings',
9 'type' => 'section',),
10
11 /* array('name' => 'Use own Google Client ID?',
12 'desc' => "Photonic can perform authentication with its own Client ID. Select this option if you want to use your own Client ID instead.
13 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.
14 <strong>Note that if you have already defined a Client ID and Secret below they will be used regardless of this option.</strong>
15 ",
16 'id' => "google_google_use_own_keys",
17 'grouping' => 'google-settings',
18 'type' => 'checkbox',
19 'std' => ''),*/
20
21 array('name' => 'Google Client ID',
22 'desc' => "Enter your Google Client ID. You can get / create one from Google's <a href='https://console.developers.google.com/apis/'>API Manager</a>.
23 The <a href='https://aquoid.com/plugins/photonic/google-photos/#api-key'>documentation page</a> can help you with further instructions.
24 If you have previously obtained a Client ID for Picasa you can use that here, provided you follow the additional instructions in the documentation.
25 <ol>
26 <li>Use the option for 'OAuth Client ID', and subsequently pick 'Web applications'.</li>
27 <li>Make sure that you add these as your Redirect URIs:
28 <ol>
29 <li>".site_url()."</li>
30 <li>".admin_url('admin.php?page=photonic-auth&source=google')."</li>
31 </ol>
32 <strong>Without the above your authentication will not work.</strong>
33 </li>
34 </ol>",
35 'id' => 'google_client_id',
36 'grouping' => 'google-settings',
37 'type' => 'text',
38 'std' => ''),
39
40 array('name' => 'Google Client Secret',
41 'desc' => "Enter your Google Client Secret.",
42 'id' => 'google_client_secret',
43 'grouping' => 'google-settings',
44 'type' => 'text',
45 'std' => ''),
46
47 array('name' => 'Refresh Token (for Back-end / Server-side Authentication)',
48 'desc' => "To access any content in Google Photos you need to get a token. To get your token go to
49 <em>Photonic &rarr; Authentication &rarr; Google Photos &rarr; Google Photos Refresh Token Getter</em>, and authenticate.",
50 'id' => 'google_refresh_token',
51 'grouping' => 'google-settings',
52 'type' => 'text',
53 'std' => ''),
54
55 array('name' => 'Media to show',
56 'desc' => 'You can choose to include photos as well as videos in your output. This can be overridden by the <code>media</code> parameter in the shortcode:',
57 'id' => 'google_media',
58 'grouping' => 'google-settings',
59 'type' => 'select',
60 'options' => Photonic::media_options(),
61 'std' => 'photos'),
62
63 /* array('name' => "Disable lightbox linking",
64 'desc' => "Check this to disable linking the photo title in the lightbox to the original photo.",
65 'id' => "google_disable_title_link",
66 'grouping' => 'google-settings',
67 'type' => 'checkbox',
68 'std' => ''),*/
69
70 array('name' => "Hide Photo Count in Album Title Display",
71 'desc' => "This will hide the number of photos in your Album's title.",
72 'id' => "google_hide_album_photo_count_display",
73 'grouping' => 'google-settings',
74 'type' => 'checkbox',
75 'std' => ''),
76
77 array('name' => "Photos (Main Page)",
78 'desc' => "Control settings for photos from Google Photos when displayed in your page",
79 'category' => 'google-photos',
80 'type' => 'section',),
81
82 array('name' => "What is this section?",
83 'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='google' view='photos']</code>. In other words, the photos are printed directly on the page.",
84 'grouping' => 'google-photos',
85 'type' => "blurb",),
86
87 array('name' => "Photo Title Display",
88 'desc' => "How do you want the title of the photos?",
89 'id' => "google_photo_title_display",
90 'grouping' => 'google-photos',
91 'type' => 'radio',
92 'options' => photonic_title_styles(),
93 'std' => "tooltip"),
94
95 array('name' => "Constrain Photos Per Row",
96 'desc' => "How do you want the control the number of photo thumbnails per row by default? This can be overridden by adding the '<code>columns</code>' parameter to the '<code>gallery</code>' shortcode.",
97 'id' => "google_photos_per_row_constraint",
98 'grouping' => 'google-photos',
99 'type' => 'select',
100 'options' => array("padding" => "Fix the padding around the thumbnails",
101 "count" => "Fix the number of thumbnails per row",
102 ),
103 'std' => "padding"),
104
105 array('name' => "Constrain by padding",
106 'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by",
107 'id' => "google_photos_constrain_by_padding",
108 'grouping' => 'google-photos',
109 'type' => 'text',
110 'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.",
111 'std' => "15"),
112
113 array('name' => "Constrain by number of thumbnails",
114 'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails",
115 'id' => "google_photos_constrain_by_count",
116 'grouping' => 'google-photos',
117 'type' => 'select',
118 'options' => photonic_selection_range(1, 25),
119 'std' => 5),
120
121 array('name' => "Photo Thumbnail Border",
122 'desc' => "Setup the border of photo thumbnail when the photo is displayed in the overlaid popup panel.",
123 'id' => "google_photo_thumb_border",
124 'grouping' => 'google-photos',
125 'type' => 'border',
126 'options' => array(),
127 'std' => photonic_default_border(),
128 ),
129
130 array('name' => "Photo Thumbnail - Padding between border and image",
131 'desc' => "Setup the padding between the photo thumbnail and its border.",
132 'id' => "google_photo_thumb_padding",
133 'grouping' => 'google-photos',
134 'type' => 'padding',
135 'options' => array(),
136 'std' => photonic_default_padding(),
137 ),
138
139 array('name' => "Photos (Overlaid Popup Panel)",
140 'desc' => "Control settings for photos from Google Photos when displayed in a popup",
141 'category' => 'google-photos-pop',
142 'type' => 'section',),
143
144 array('name' => "What is this section?",
145 'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='google' view='albums']</code>, then click on an album to show an overlaid panel. In other words, the photos are printed directly in the overlaid panel.",
146 'grouping' => 'google-photos-pop',
147 'type' => "blurb",),
148
149 array('name' => "Photo Title Display",
150 'desc' => "How do you want the title of the photos?",
151 'id' => "google_photo_pop_title_display",
152 'grouping' => 'google-photos-pop',
153 'type' => 'radio',
154 'options' => photonic_title_styles(),
155 'std' => "tooltip"),
156
157 array('name' => "Constrain Photos Per Row",
158 'desc' => "How do you want the control the number of photo thumbnails per row by default? This can be overridden by adding the '<code>columns</code>' parameter to the '<code>gallery</code>' shortcode.",
159 'id' => "google_photos_pop_per_row_constraint",
160 'grouping' => 'google-photos-pop',
161 'type' => 'select',
162 'options' => array("padding" => "Fix the padding around the thumbnails",
163 "count" => "Fix the number of thumbnails per row",
164 ),
165 'std' => "padding"),
166
167 array('name' => "Constrain by padding",
168 'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by",
169 'id' => "google_photos_pop_constrain_by_padding",
170 'grouping' => 'google-photos-pop',
171 'type' => 'text',
172 'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.",
173 'std' => "15"),
174
175 array('name' => "Constrain by number of thumbnails",
176 'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails",
177 'id' => "google_photos_pop_constrain_by_count",
178 'grouping' => 'google-photos-pop',
179 'type' => 'select',
180 'options' => photonic_selection_range(1, 25),
181 'std' => 5),
182
183 array('name' => "Photo Thumbnail Border",
184 'desc' => "Setup the border of photo thumbnail when the photo is displayed as a part of a photoset or in a photo-stream. This is valid for the short-code usage <code>[gallery type='flickr' photoset_id='xyz']</code>, or <code>[gallery type='flickr' user_id='abc' view='photos']</code>.",
185 'id' => "google_photo_pop_thumb_border",
186 'grouping' => 'google-photos-pop',
187 'type' => 'border',
188 'options' => array(),
189 'std' => photonic_default_border(),
190 ),
191
192 array('name' => "Photo Thumbnail - Padding between border and image",
193 'desc' => "Setup the padding between the photo thumbnail and its border.",
194 'id' => "google_photo_pop_thumb_padding",
195 'grouping' => 'google-photos-pop',
196 'type' => 'padding',
197 'options' => array(),
198 'std' => photonic_default_padding(),
199 ),
200 );
201