| 1 |
<?php |
| 2 |
global $photonic_500px_options; |
| 3 |
|
| 4 |
$photonic_500px_options = array( |
| 5 |
array('name' => "500px Settings", |
| 6 |
'desc' => "Control settings for 500px", |
| 7 |
'category' => "500px-settings", |
| 8 |
'type' => "section",), |
| 9 |
|
| 10 |
array('name' => '500px.com API Access', |
| 11 |
'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>', |
| 12 |
'grouping' => "500px-settings", |
| 13 |
'type' => 'blurb',), |
| 14 |
|
| 15 |
array('name' => "500px API Consumer Key", |
| 16 |
'desc' => "To make use of the 500px functionality you have to use your 500px API Consumer Key. |
| 17 |
You can <a href='https://500px.com/settings/applications'>register an application and obtain a key online</a> if you don't have one. |
| 18 |
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.", |
| 19 |
'id' => "500px_api_key", |
| 20 |
'grouping' => "500px-settings", |
| 21 |
'type' => 'text', |
| 22 |
'std' => ''), |
| 23 |
|
| 24 |
array('name' => "500px API Consumer Secret", |
| 25 |
'desc' => "You have to enter the Customer Secret provided by 500px after you have registered your application.", |
| 26 |
'id' => "500px_api_secret", |
| 27 |
'grouping' => "500px-settings", |
| 28 |
'type' => 'text', |
| 29 |
'std' => ''), |
| 30 |
|
| 31 |
array('name' => "Allow User Login (for Front-end / Client-side Authentication)", |
| 32 |
'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.", |
| 33 |
'id' => "500px_allow_oauth", |
| 34 |
'grouping' => "500px-settings", |
| 35 |
'type' => 'checkbox', |
| 36 |
'std' => ''), |
| 37 |
|
| 38 |
array('name' => "Access Token (for Back-end / Server-side Authentication)", |
| 39 |
'desc' => "To get your token go to <em>Photonic → Authentication → 500px</em>, and authenticate. Save the token you get here. <br/>If you have set |
| 40 |
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.", |
| 41 |
'id' => "500px_access_token", |
| 42 |
'grouping' => "500px-settings", |
| 43 |
'type' => 'text', |
| 44 |
'std' => ''), |
| 45 |
|
| 46 |
array('name' => "Access Token Secret (for Back-end / Server-side Authentication)", |
| 47 |
'desc' => "To get your token secret go to <em>Photonic → Authentication → 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.", |
| 48 |
'id' => "500px_token_secret", |
| 49 |
'grouping' => "500px-settings", |
| 50 |
'type' => 'text', |
| 51 |
'std' => ''), |
| 52 |
|
| 53 |
array('name' => "Login Box Text", |
| 54 |
'desc' => "If “Allow User Login” is enabled, this is the text users will see before the login button (you can use HTML tags here)", |
| 55 |
'id' => "500px_login_box", |
| 56 |
'grouping' => "500px-settings", |
| 57 |
'type' => "textarea", |
| 58 |
'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."), |
| 59 |
|
| 60 |
array('name' => "Login Button Text", |
| 61 |
'desc' => "If “Allow User Login” is enabled, this is the text users will see before the login button (you can use HTML tags other than <a> here)", |
| 62 |
'id' => "500px_login_button", |
| 63 |
'grouping' => "500px-settings", |
| 64 |
'type' => 'text', |
| 65 |
'std' => "Login"), |
| 66 |
|
| 67 |
array('name' => "Disable lightbox linking", |
| 68 |
'desc' => "Check this to disable linking the photo title in the lightbox to the original photo page on 500px.com.", |
| 69 |
'id' => "500px_disable_title_link", |
| 70 |
'grouping' => "500px-settings", |
| 71 |
'type' => 'checkbox', |
| 72 |
'std' => ''), |
| 73 |
|
| 74 |
array('name' => "Photo titles and captions", |
| 75 |
'desc' => "What do you want to show as the photo title in the tooltip and lightbox?", |
| 76 |
'id' => "500px_title_caption", |
| 77 |
'grouping' => "500px-settings", |
| 78 |
'type' => 'select', |
| 79 |
'options' => Photonic::title_caption_options(), |
| 80 |
'std' => "title"), |
| 81 |
|
| 82 |
|
| 83 |
array('name' => "Photos", |
| 84 |
'desc' => "Control settings for 500px Photos when displayed in your page", |
| 85 |
'category' => "500px-photos", |
| 86 |
'type' => "section",), |
| 87 |
|
| 88 |
array('name' => "What is this section?", |
| 89 |
'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='500px' feature='xyz']</code>.", |
| 90 |
'grouping' => "500px-photos", |
| 91 |
'type' => 'blurb',), |
| 92 |
|
| 93 |
array('name' => "Photo Title Display", |
| 94 |
'desc' => "How do you want the title of the photos?", |
| 95 |
'id' => "500px_photo_title_display", |
| 96 |
'grouping' => "500px-photos", |
| 97 |
'type' => 'radio', |
| 98 |
'options' => photonic_title_styles(), |
| 99 |
'std' => "tooltip"), |
| 100 |
|
| 101 |
array('name' => "Constrain Photos Per Row", |
| 102 |
'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.", |
| 103 |
'id' => "500px_photos_per_row_constraint", |
| 104 |
'grouping' => "500px-photos", |
| 105 |
'type' => 'select', |
| 106 |
'options' => array("padding" => "Fix the padding around the thumbnails", |
| 107 |
"count" => "Fix the number of thumbnails per row", |
| 108 |
), |
| 109 |
'std' => "padding"), |
| 110 |
|
| 111 |
array('name' => "Constrain by padding", |
| 112 |
'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by", |
| 113 |
'id' => "500px_photos_constrain_by_padding", |
| 114 |
'grouping' => "500px-photos", |
| 115 |
'type' => 'text', |
| 116 |
'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.", |
| 117 |
'std' => "15"), |
| 118 |
|
| 119 |
array('name' => "Constrain by number of thumbnails", |
| 120 |
'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails", |
| 121 |
'id' => "500px_photos_constrain_by_count", |
| 122 |
'grouping' => "500px-photos", |
| 123 |
'type' => 'select', |
| 124 |
'options' => photonic_selection_range(1, 25), |
| 125 |
'std' => 5), |
| 126 |
|
| 127 |
array('name' => "Photo Thumbnail Border", |
| 128 |
'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>.", |
| 129 |
'id' => "500px_photo_thumb_border", |
| 130 |
'grouping' => "500px-photos", |
| 131 |
'type' => 'border', |
| 132 |
'options' => array(), |
| 133 |
'std' => photonic_default_border(), |
| 134 |
), |
| 135 |
|
| 136 |
array('name' => "Photo Thumbnail - Padding between border and image", |
| 137 |
'desc' => "Setup the padding between the photo thumbnail and its border.", |
| 138 |
'id' => "500px_photo_thumb_padding", |
| 139 |
'grouping' => "500px-photos", |
| 140 |
'type' => 'padding', |
| 141 |
'options' => array(), |
| 142 |
'std' => photonic_default_padding(), |
| 143 |
), |
| 144 |
|
| 145 |
array('name' => "Galleries", |
| 146 |
'desc' => "Control settings for 500px Galleries when displayed in your page", |
| 147 |
'category' => "500px-galleries", |
| 148 |
'type' => "section",), |
| 149 |
|
| 150 |
array('name' => "Constrain Photos Per Row", |
| 151 |
'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.", |
| 152 |
'id' => "500px_gallery_photos_per_row_constraint", |
| 153 |
'grouping' => "500px-galleries", |
| 154 |
'type' => 'select', |
| 155 |
'options' => array("padding" => "Fix the padding around the thumbnails", |
| 156 |
"count" => "Fix the number of thumbnails per row", |
| 157 |
), |
| 158 |
'std' => "padding"), |
| 159 |
|
| 160 |
array('name' => "Constrain by padding", |
| 161 |
'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by", |
| 162 |
'id' => "500px_gallery_photos_constrain_by_padding", |
| 163 |
'grouping' => "500px-galleries", |
| 164 |
'type' => 'text', |
| 165 |
'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.", |
| 166 |
'std' => "15"), |
| 167 |
|
| 168 |
array('name' => "Constrain by number of thumbnails", |
| 169 |
'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails", |
| 170 |
'id' => "500px_gallery_photos_constrain_by_count", |
| 171 |
'grouping' => "500px-galleries", |
| 172 |
'type' => 'select', |
| 173 |
'options' => photonic_selection_range(1, 25), |
| 174 |
'std' => 5), |
| 175 |
|
| 176 |
array('name' => "Photo Title Display", |
| 177 |
'desc' => "How do you want the title of the photos?", |
| 178 |
'id' => "500px_gallery_photo_title_display", |
| 179 |
'grouping' => "500px-galleries", |
| 180 |
'type' => 'radio', |
| 181 |
'options' => photonic_title_styles(), |
| 182 |
'std' => "tooltip"), |
| 183 |
|
| 184 |
); |
| 185 |
|
| 186 |
|