# photonic/2.25/options/500px-options.php

Photonic Gallery &amp; Lightbox for Flickr, SmugMug &amp; Others, version 2.25. 186 lines.

- Page: https://pluginprobe.com/plugins/photonic/2.25/code/options/500px-options.php
- Raw: https://pluginprobe.com/plugins/photonic/2.25/raw/options/500px-options.php
- Modified: 2018-07-09T02:43:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/photonic/2.25/code/options/500px-options.php#L10-L20`.

```php
<?php
global $photonic_500px_options;

$photonic_500px_options = array(
	array('name' => "500px Settings",
		'desc' => "Control settings for 500px",
		'category' => "500px-settings",
		'type' => "section",),

	array('name' => '500px.com API Access',
		'desc' => '<div class="notice-error notice-alt">With effect from 15th June 2018, <a href="https://support.500px.com/hc/en-us/articles/360002435653-API-">500px.com has shut down its API</a>. So the settings here will not have any effect, and 500px integration will not work any more.</div>',
		'grouping' => "500px-settings",
		'type' => 'blurb',),

	array('name' => "500px API Consumer Key",
		'desc' => "To make use of the 500px functionality you have to use your 500px API Consumer Key.
							You can <a href='https://500px.com/settings/applications'>register an application and obtain a key online</a> if you don't have one.
							Note that you are responsible for following all of the 500px API's <a href='http://developer.500px.com/docs/terms'>Terms of Service</a> and the users' copyright.",
		'id' => "500px_api_key",
		'grouping' => "500px-settings",
		'type' => 'text',
		'std' => ''),

	array('name' => "500px API Consumer Secret",
		'desc' => "You have to enter the Customer Secret provided by 500px after you have registered your application.",
		'id' => "500px_api_secret",
		'grouping' => "500px-settings",
		'type' => 'text',
		'std' => ''),

	array('name' => "Allow User Login (for Front-end / Client-side Authentication)",
		'desc' => "Let visitors of your site login to 500px to see private photos for which they have permissions (will show a login button if they are not logged in). This requires your visitors to have 500px accounts themselves. See <a href='https://aquoid.com/plugins/photonic/authentication/'>here</a> for more.",
		'id' => "500px_allow_oauth",
		'grouping' => "500px-settings",
		'type' => 'checkbox',
		'std' => ''),

	array('name' => "Access Token (for Back-end / Server-side Authentication)",
		'desc' => "To get your token go to <em>Photonic &rarr; Authentication &rarr; 500px</em>, and authenticate. Save the token you get here. <br/>If you have set
			up a token, your users can see protected 500px photos without a 500px account. See <a href='https://aquoid.com/plugins/photonic/authentication/'>here</a> for more.",
		'id' => "500px_access_token",
		'grouping' => "500px-settings",
		'type' => 'text',
		'std' => ''),

	array('name' => "Access Token Secret (for Back-end / Server-side Authentication)",
		'desc' => "To get your token secret go to <em>Photonic &rarr; Authentication &rarr; 500px</em>, and authenticate. Save the token secret you get here. Your token secret works with the token set in the prvious option. See <a href='https://aquoid.com/plugins/photonic/authentication/'>here</a> for more.",
		'id' => "500px_token_secret",
		'grouping' => "500px-settings",
		'type' => 'text',
		'std' => ''),

	array('name' => "Login Box Text",
		'desc' => "If &ldquo;Allow User Login&rdquo; is enabled, this is the text users will see before the login button (you can use HTML tags here)",
		'id' => "500px_login_box",
		'grouping' => "500px-settings",
		'type' => "textarea",
		'std' => "Some features that you are trying to access may be visible to logged in users of 500px.com only. Please login if you want to see them."),

	array('name' => "Login Button Text",
		'desc' => "If &ldquo;Allow User Login&rdquo; is enabled, this is the text users will see before the login button (you can use HTML tags other than &lt;a&gt; here)",
		'id' => "500px_login_button",
		'grouping' => "500px-settings",
		'type' => 'text',
		'std' => "Login"),

	array('name' => "Disable lightbox linking",
		'desc' => "Check this to disable linking the photo title in the lightbox to the original photo page on 500px.com.",
		'id' => "500px_disable_title_link",
		'grouping' => "500px-settings",
		'type' => 'checkbox',
		'std' => ''),

	array('name' => "Photo titles and captions",
		'desc' => "What do you want to show as the photo title in the tooltip and lightbox?",
		'id' => "500px_title_caption",
		'grouping' => "500px-settings",
		'type' => 'select',
		'options' => Photonic::title_caption_options(),
		'std' => "title"),


	array('name' => "Photos",
		'desc' => "Control settings for 500px Photos when displayed in your page",
		'category' => "500px-photos",
		'type' => "section",),

	array('name' => "What is this section?",
		'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='500px' feature='xyz']</code>.",
		'grouping' => "500px-photos",
		'type' => 'blurb',),

	array('name' => "Photo Title Display",
		'desc' => "How do you want the title of the photos?",
		'id' => "500px_photo_title_display",
		'grouping' => "500px-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 '<code>columns</code>' parameter to the '<code>gallery</code>' shortcode.",
		'id' => "500px_photos_per_row_constraint",
		'grouping' => "500px-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' => "500px_photos_constrain_by_padding",
		'grouping' => "500px-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' => "500px_photos_constrain_by_count",
		'grouping' => "500px-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 <code>[gallery type='500px' photoset_id='xyz']</code>, or <code>[gallery type='500px' user_id='abc' view='photos']</code>.",
		'id' => "500px_photo_thumb_border",
		'grouping' => "500px-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' => "500px_photo_thumb_padding",
		'grouping' => "500px-photos",
		'type' => 'padding',
		'options' => array(),
		'std' => photonic_default_padding(),
	),

	array('name' => "Galleries",
		'desc' => "Control settings for 500px Galleries when displayed in your page",
		'category' => "500px-galleries",
		'type' => "section",),

	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 '<code>columns</code>' parameter to the '<code>gallery</code>' shortcode.",
		'id' => "500px_gallery_photos_per_row_constraint",
		'grouping' => "500px-galleries",
		'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' => "500px_gallery_photos_constrain_by_padding",
		'grouping' => "500px-galleries",
		'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' => "500px_gallery_photos_constrain_by_count",
		'grouping' => "500px-galleries",
		'type' => 'select',
		'options' => photonic_selection_range(1, 25),
		'std' => 5),

	array('name' => "Photo Title Display",
		'desc' => "How do you want the title of the photos?",
		'id' => "500px_gallery_photo_title_display",
		'grouping' => "500px-galleries",
		'type' => 'radio',
		'options' => photonic_title_styles(),
		'std' => "tooltip"),

);


```
