"Picasa settings", 'desc' => "Control settings for Picasa", 'category' => "picasa-settings", 'type' => 'section',), array('name' => "Google Client ID", 'desc' => "Enter your Google Client ID. You can get / create one from Google's API Manager. The Photonic → Getting Started page can help you with further instructions.
  1. Use the option for 'OAuth Client ID', and subsequently pick 'Web applications'.
  2. Make sure that you add these as your Redirect URIs:
    1. ".site_url()."
    2. ".admin_url('admin.php?page=photonic-auth&source=picasa')."
    Without the above your authentication will not work.
", 'id' => "picasa_client_id", 'grouping' => "picasa-settings", 'type' => 'text', 'std' => ''), array('name' => "Google Client Secret", '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.", 'id' => "picasa_client_secret", 'grouping' => "picasa-settings", 'type' => 'text', 'std' => ''), array('name' => "Refresh Token (for Back-end / Server-side Authentication)", '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 Photonic → Authentication → Picasa / Google Photos → Picasa / Google Refresh Token Getter, and authenticate. If you have set 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.", 'id' => "picasa_refresh_token", 'grouping' => "picasa-settings", 'type' => 'text', 'std' => ''), array('name' => "Private Photos (for Front-end / Client-side Authentication)", '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)", 'id' => "picasa_allow_oauth", 'grouping' => "picasa-settings", 'type' => 'checkbox', 'std' => ''), array('name' => "Login Box Text", 'desc' => "If “Private Photos” are enabled, this is the text users will see before the login button (you can use HTML tags here)", 'id' => "picasa_login_box", 'grouping' => "picasa-settings", 'type' => 'textarea', '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."), array('name' => "Login Button Text", 'desc' => "If “Private Photos” are enabled, this is the text users will see before the login button (you can use HTML tags other than <a> here)", 'id' => "picasa_login_button", 'grouping' => "picasa-settings", 'type' => 'text', 'std' => "Login"), array('name' => 'Default user', 'desc' => 'If no user is specified in the shortcode this one will be used.', 'id' => 'picasa_default_user', 'grouping' => 'picasa-settings', 'type' => 'text', 'std' => ''), array('name' => 'Media to show', 'desc' => 'You can choose to include photos as well as videos in your output. This can be overridden by the media parameter in the shortcode:', 'id' => 'picasa_media', 'grouping' => 'picasa-settings', 'type' => 'select', 'options' => Photonic::media_options(), 'std' => 'photos'), array('name' => "Photo titles and captions", 'desc' => "What do you want to show as the photo title in the tooltip and lightbox?", 'id' => "picasa_use_desc", 'grouping' => "picasa-settings", 'type' => 'select', 'options' => Photonic::title_caption_options(), 'std' => "desc-title"), array('name' => "Disable lightbox linking", 'desc' => "Check this to disable linking the photo title in the lightbox to the original photo.", 'id' => "picasa_disable_title_link", 'grouping' => "picasa-settings", 'type' => 'checkbox', 'std' => ''), array('name' => "Photos (Main Page)", 'desc' => "Control settings for Picasa Photos when displayed in your page", 'category' => "picasa-photos", 'type' => 'section',), array('name' => "What is this section?", 'desc' => "Options in this section are in effect when you use the shortcode format [gallery type='picasa' user_id='abc']. In other words, the photos are printed directly on the page.", 'grouping' => "picasa-photos", 'type' => "blurb",), array('name' => "Photo Title Display", 'desc' => "How do you want the title of the photos?", 'id' => "picasa_photo_title_display", 'grouping' => "picasa-photos", 'type' => 'radio', 'options' => photonic_title_styles(), 'std' => "tooltip"), array('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' => "picasa_photos_per_row_constraint", 'grouping' => "picasa-photos", 'type' => 'select', 'options' => array("padding" => "Fix the padding around the thumbnails", "count" => "Fix the number of thumbnails per row", ), 'std' => "padding"), array('name' => "Constrain by padding", 'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by", 'id' => "picasa_photos_constrain_by_padding", 'grouping' => "picasa-photos", 'type' => 'text', 'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.", 'std' => "15"), array('name' => "Constrain by number of thumbnails", 'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails", 'id' => "picasa_photos_constrain_by_count", 'grouping' => "picasa-photos", 'type' => 'select', 'options' => photonic_selection_range(1, 25), 'std' => 5), array('name' => "Photo Thumbnail Border", '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 [gallery type='flickr' photoset_id='xyz'], or [gallery type='flickr' user_id='abc' view='photos'].", 'id' => "picasa_photo_thumb_border", 'grouping' => "picasa-photos", 'type' => 'border', 'options' => array(), 'std' => photonic_default_border(), ), array('name' => "Photo Thumbnail - Padding between border and image", 'desc' => "Setup the padding between the photo thumbnail and its border.", 'id' => "picasa_photo_thumb_padding", 'grouping' => "picasa-photos", 'type' => 'padding', 'options' => array(), 'std' => photonic_default_padding(), ), array('name' => "Photos (Overlaid Popup Panel)", 'desc' => "Control settings for Picasa Photos when displayed in a popup", 'category' => "picasa-photos-pop", 'type' => 'section',), array('name' => "What is this section?", 'desc' => "Options in this section are in effect when you use the shortcode format [gallery type='picasa' user_id='abc']. In other words, the photos are printed directly on the page.", 'grouping' => "picasa-photos-pop", 'type' => "blurb",), array('name' => "Photo Title Display", 'desc' => "How do you want the title of the photos?", 'id' => "picasa_photo_pop_title_display", 'grouping' => "picasa-photos-pop", 'type' => 'radio', 'options' => photonic_title_styles(), 'std' => "tooltip"), array('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' => "picasa_photos_pop_per_row_constraint", 'grouping' => "picasa-photos-pop", 'type' => 'select', 'options' => array("padding" => "Fix the padding around the thumbnails", "count" => "Fix the number of thumbnails per row", ), 'std' => "padding"), array('name' => "Constrain by padding", 'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by", 'id' => "picasa_photos_pop_constrain_by_padding", 'grouping' => "picasa-photos-pop", 'type' => 'text', 'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.", 'std' => "15"), array('name' => "Constrain by number of thumbnails", 'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails", 'id' => "picasa_photos_pop_constrain_by_count", 'grouping' => "picasa-photos-pop", 'type' => 'select', 'options' => photonic_selection_range(1, 25), 'std' => 5), array('name' => "Photo Thumbnail Border", '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 [gallery type='flickr' photoset_id='xyz'], or [gallery type='flickr' user_id='abc' view='photos'].", 'id' => "picasa_photo_pop_thumb_border", 'grouping' => "picasa-photos-pop", 'type' => 'border', 'options' => array(), 'std' => photonic_default_border(), ), array('name' => "Photo Thumbnail - Padding between border and image", 'desc' => "Setup the padding between the photo thumbnail and its border.", 'id' => "picasa_photo_pop_thumb_padding", 'grouping' => "picasa-photos-pop", 'type' => 'padding', 'options' => array(), 'std' => photonic_default_padding(), ), );