PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 2.21
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v2.21
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 / picasa-options.php

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

219 lines 9.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $photonic_picasa_options;
3
4 $photonic_picasa_options = array(
5 array('name' => "Picasa settings",
6 'desc' => "Control settings for Picasa",
7 'category' => "picasa-settings",
8 'type' => 'section',),
9
10 array('name' => "Google Client ID",
11 '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>.
12 The <em>Photonic &rarr; Getting Started</em> page can help you with further instructions.
13 <ol>
14 <li>Use the option for 'OAuth Client ID', and subsequently pick 'Web applications'.</li>
15 <li>Make sure that you add these as your Redirect URIs:
16 <ol>
17 <li>".site_url()."</li>
18 <li>".admin_url('admin.php?page=photonic-auth&source=picasa')."</li>
19 </ol>
20 <strong>Without the above your authentication will not work.</strong>
21 </li>
22 </ol>",
23 'id' => "picasa_client_id",
24 'grouping' => "picasa-settings",
25 'type' => 'text',
26 'std' => ''),
27
28 array('name' => "Google Client Secret",
29 'desc' => "Enter your Google Client Secret. You only need this if you have private photos that you want people to login to see, or if you want to use Back-end authentication.",
30 'id' => "picasa_client_secret",
31 'grouping' => "picasa-settings",
32 'type' => 'text',
33 'std' => ''),
34
35 array('name' => "Refresh Token (for Back-end / Server-side Authentication)",
36 'desc' => "To access any content in Google Photos you need to get a token. This wasn't a requirement for Picasa. To get your token go to
37 <em>Photonic &rarr; Authentication &rarr; Picasa / Google Photos &rarr; Picasa / Google Refresh Token Getter</em>, and authenticate. If you have set
38 up a Refresh Token, your users can see Google Photos without a Google account. Note that Google doesn't have any way to make photos truly public.",
39 'id' => "picasa_refresh_token",
40 'grouping' => "picasa-settings",
41 'type' => 'text',
42 'std' => ''),
43
44 array('name' => "Private Photos (for Front-end / Client-side Authentication)",
45 'desc' => "Let visitors of your site login to Picasa to see private photos for which they have permissions (will show a login button if they are not logged in)",
46 'id' => "picasa_allow_oauth",
47 'grouping' => "picasa-settings",
48 'type' => 'checkbox',
49 'std' => ''),
50
51 array('name' => "Login Box Text",
52 'desc' => "If &ldquo;Private Photos&rdquo; are enabled, this is the text users will see before the login button (you can use HTML tags here)",
53 'id' => "picasa_login_box",
54 'grouping' => "picasa-settings",
55 'type' => 'textarea',
56 'std' => "Some features that you are trying to access may be visible to logged in users of Picasa only. Please login if you want to see them."),
57
58 array('name' => "Login Button Text",
59 'desc' => "If &ldquo;Private Photos&rdquo; are enabled, this is the text users will see before the login button (you can use HTML tags other than &lt;a&gt; here)",
60 'id' => "picasa_login_button",
61 'grouping' => "picasa-settings",
62 'type' => 'text',
63 'std' => "Login"),
64
65 array('name' => 'Default user',
66 'desc' => 'If no user is specified in the shortcode this one will be used.',
67 'id' => 'picasa_default_user',
68 'grouping' => 'picasa-settings',
69 'type' => 'text',
70 'std' => ''),
71
72 array('name' => 'Media to show',
73 '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:',
74 'id' => 'picasa_media',
75 'grouping' => 'picasa-settings',
76 'type' => 'select',
77 'options' => Photonic::media_options(),
78 'std' => 'photos'),
79
80 array('name' => "Photo titles and captions",
81 'desc' => "What do you want to show as the photo title in the tooltip and lightbox?",
82 'id' => "picasa_use_desc",
83 'grouping' => "picasa-settings",
84 'type' => 'select',
85 'options' => Photonic::title_caption_options(),
86 'std' => "desc-title"),
87
88 array('name' => "Disable lightbox linking",
89 'desc' => "Check this to disable linking the photo title in the lightbox to the original photo.",
90 'id' => "picasa_disable_title_link",
91 'grouping' => "picasa-settings",
92 'type' => 'checkbox',
93 'std' => ''),
94
95 array('name' => "Photos (Main Page)",
96 'desc' => "Control settings for Picasa Photos when displayed in your page",
97 'category' => "picasa-photos",
98 'type' => 'section',),
99
100 array('name' => "What is this section?",
101 'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='picasa' user_id='abc']</code>. In other words, the photos are printed directly on the page.",
102 'grouping' => "picasa-photos",
103 'type' => "blurb",),
104
105 array('name' => "Photo Title Display",
106 'desc' => "How do you want the title of the photos?",
107 'id' => "picasa_photo_title_display",
108 'grouping' => "picasa-photos",
109 'type' => 'radio',
110 'options' => photonic_title_styles(),
111 'std' => "tooltip"),
112
113 array('name' => "Constrain Photos Per Row",
114 '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.",
115 'id' => "picasa_photos_per_row_constraint",
116 'grouping' => "picasa-photos",
117 'type' => 'select',
118 'options' => array("padding" => "Fix the padding around the thumbnails",
119 "count" => "Fix the number of thumbnails per row",
120 ),
121 'std' => "padding"),
122
123 array('name' => "Constrain by padding",
124 'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by",
125 'id' => "picasa_photos_constrain_by_padding",
126 'grouping' => "picasa-photos",
127 'type' => 'text',
128 'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.",
129 'std' => "15"),
130
131 array('name' => "Constrain by number of thumbnails",
132 'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails",
133 'id' => "picasa_photos_constrain_by_count",
134 'grouping' => "picasa-photos",
135 'type' => 'select',
136 'options' => photonic_selection_range(1, 25),
137 'std' => 5),
138
139 array('name' => "Photo Thumbnail Border",
140 '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>.",
141 'id' => "picasa_photo_thumb_border",
142 'grouping' => "picasa-photos",
143 'type' => 'border',
144 'options' => array(),
145 'std' => photonic_default_border(),
146 ),
147
148 array('name' => "Photo Thumbnail - Padding between border and image",
149 'desc' => "Setup the padding between the photo thumbnail and its border.",
150 'id' => "picasa_photo_thumb_padding",
151 'grouping' => "picasa-photos",
152 'type' => 'padding',
153 'options' => array(),
154 'std' => photonic_default_padding(),
155 ),
156
157 array('name' => "Photos (Overlaid Popup Panel)",
158 'desc' => "Control settings for Picasa Photos when displayed in a popup",
159 'category' => "picasa-photos-pop",
160 'type' => 'section',),
161
162 array('name' => "What is this section?",
163 'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='picasa' user_id='abc']</code>. In other words, the photos are printed directly on the page.",
164 'grouping' => "picasa-photos-pop",
165 'type' => "blurb",),
166
167 array('name' => "Photo Title Display",
168 'desc' => "How do you want the title of the photos?",
169 'id' => "picasa_photo_pop_title_display",
170 'grouping' => "picasa-photos-pop",
171 'type' => 'radio',
172 'options' => photonic_title_styles(),
173 'std' => "tooltip"),
174
175 array('name' => "Constrain Photos Per Row",
176 '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.",
177 'id' => "picasa_photos_pop_per_row_constraint",
178 'grouping' => "picasa-photos-pop",
179 'type' => 'select',
180 'options' => array("padding" => "Fix the padding around the thumbnails",
181 "count" => "Fix the number of thumbnails per row",
182 ),
183 'std' => "padding"),
184
185 array('name' => "Constrain by padding",
186 'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by",
187 'id' => "picasa_photos_pop_constrain_by_padding",
188 'grouping' => "picasa-photos-pop",
189 'type' => 'text',
190 'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.",
191 'std' => "15"),
192
193 array('name' => "Constrain by number of thumbnails",
194 'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails",
195 'id' => "picasa_photos_pop_constrain_by_count",
196 'grouping' => "picasa-photos-pop",
197 'type' => 'select',
198 'options' => photonic_selection_range(1, 25),
199 'std' => 5),
200
201 array('name' => "Photo Thumbnail Border",
202 '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>.",
203 'id' => "picasa_photo_pop_thumb_border",
204 'grouping' => "picasa-photos-pop",
205 'type' => 'border',
206 'options' => array(),
207 'std' => photonic_default_border(),
208 ),
209
210 array('name' => "Photo Thumbnail - Padding between border and image",
211 'desc' => "Setup the padding between the photo thumbnail and its border.",
212 'id' => "picasa_photo_pop_thumb_padding",
213 'grouping' => "picasa-photos-pop",
214 'type' => 'padding',
215 'options' => array(),
216 'std' => photonic_default_padding(),
217 ),
218 );
219