PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 3.33
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v3.33
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 / DeviantArt.php

DeviantArt.php in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 3.33, at Options/DeviantArt.php

73 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Photonic_Plugin\Options;
4
5 use Photonic_Plugin\Core\Utilities;
6
7 class DeviantArt extends Option_Tab {
8 protected function __construct() {
9 $this->options = [
10 [
11 'name' => "How To",
12 'desc' => "Control generic settings for the plugin",
13 'category' => 'deviantart-how-to',
14 'buttons' => 'no-buttons',
15 'type' => 'section',
16 ],
17
18 [
19 'name' => "Creating a gallery",
20 'desc' => "<strong>Please complete the setup steps in the \"DeviantArt Settings\" tab before attempting to create a gallery!</strong> <br/><br/>
21 To create a gallery with DeviantArt content you can use either a <strong><em>Gutenberg Block</em></strong>
22 or the <em>Add / Edit Photonic Gallery</em> button in the <strong><em>Classic Editor</em></strong>:<br/><br/>
23 <img src='" . PHOTONIC_URL . "Options/screenshots/Flickr-1.png' style='max-width: 600px;' alt='Wizard' />",
24 'grouping' => 'deviantart-how-to',
25 'type' => 'blurb',
26 ],
27
28 [
29 'name' => "DeviantArt settings",
30 'desc' => "Control settings for DeviantArt",
31 'category' => 'deviantart-settings',
32 'type' => 'section',
33 ],
34
35 [
36 'name' => "DeviantArt Client ID",
37 'desc' => "To make use of the DeviantArt functionality you have to use your DeviantArt Client ID.
38 You can <a href='https://www.deviantart.com/developers/register'>request an id online</a> if you don't have one.
39 Note that you are responsible for following DeviantArt API's <a href='https://www.deviantart.com/about/policy/api/'>License Agreement</a>.
40 As a part of the Client ID setup process:
41 <ol>
42 <li>For the option 'OAuth2 Grant Type', select 'Authorization Code'.</li>
43 <li>Make sure that you add these as your Redirect URIs:
44 <ol>
45 <li><code>" . esc_url(admin_url('admin.php?page=photonic-auth&source=deviantart')) . "</code></li>
46 </ol>
47 <strong>Without the above your authentication will not work.</strong>
48 </li>
49 </ol>",
50 'id' => 'deviantart_client_id',
51 'grouping' => 'deviantart-settings',
52 'type' => 'text'
53 ],
54
55 [
56 'name' => "DeviantArt Client Secret",
57 'desc' => "Please enter your DeviantArt API secret.",
58 'id' => 'deviantart_client_secret',
59 'grouping' => 'deviantart-settings',
60 'type' => 'text'
61 ],
62
63 [
64 'name' => "DeviantArt Refresh Token",
65 'desc' => "Please enter your DeviantArt API secret.",
66 'id' => 'deviantart_refresh_token',
67 'grouping' => 'deviantart-settings',
68 'type' => 'text'
69 ],
70 ];
71 }
72 }
73