| 1 |
<?php |
| 2 |
|
| 3 |
namespace Photonic_Plugin\Options; |
| 4 |
|
| 5 |
use Photonic_Plugin\Core\Utilities; |
| 6 |
|
| 7 |
class Instagram extends Option_Tab { |
| 8 |
protected function __construct() { |
| 9 |
$this->options = [ |
| 10 |
[ |
| 11 |
'name' => 'Instagram settings', |
| 12 |
'desc' => 'Control settings for Instagram', |
| 13 |
'category' => 'instagram-settings', |
| 14 |
'type' => 'section', |
| 15 |
], |
| 16 |
|
| 17 |
[ |
| 18 |
'name' => "Instagram Update", |
| 19 |
'desc' => "With effect from September 2022, Meta has blocked its API for individual developers, and only allows registered businesses. |
| 20 |
As Photonic is developed by an individual, unfortunately Instagram can no longer be supported. Please switch to a business-supported plugin if you wish to use Instagram as a source for your galleries.", |
| 21 |
'grouping' => 'instagram-settings', |
| 22 |
'type' => 'blurb', |
| 23 |
], |
| 24 |
|
| 25 |
/* |
| 26 |
[ |
| 27 |
'name' => 'Instagram Access Token', |
| 28 |
'desc' => "Enter your Instagram Access Token. You can get this from <em>Photonic → Authentication</em> by clicking on <em>Login and get Access Token</em>", |
| 29 |
'id' => 'instagram_access_token', |
| 30 |
'grouping' => 'instagram-settings', |
| 31 |
'type' => 'text' |
| 32 |
], |
| 33 |
|
| 34 |
[ |
| 35 |
'name' => 'Media to show', |
| 36 |
'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:', |
| 37 |
'id' => 'instagram_media', |
| 38 |
'grouping' => 'instagram-settings', |
| 39 |
'type' => 'select', |
| 40 |
'options' => Utilities::media_options() |
| 41 |
], |
| 42 |
|
| 43 |
[ |
| 44 |
'name' => 'Disable lightbox linking', |
| 45 |
'desc' => 'Check this to disable linking the photo title in the lightbox to the original photo page.', |
| 46 |
'id' => 'instagram_disable_title_link', |
| 47 |
'grouping' => 'instagram-settings', |
| 48 |
'type' => 'checkbox' |
| 49 |
], |
| 50 |
|
| 51 |
[ |
| 52 |
'name' => 'Caption positioning for carousels / posts', |
| 53 |
'desc' => "Instagram carousels (posts) don't have a caption for each individual photo, rather the caption is for the post itself. Where do want the caption to show while displaying the carousel? You can override this for each shortcode individually.", |
| 54 |
'id' => 'instagram_carousel_caption_position', |
| 55 |
'grouping' => 'instagram-settings', |
| 56 |
'type' => 'select', |
| 57 |
'options' => [ |
| 58 |
'none' => 'Do not show the caption', |
| 59 |
'above' => 'Show above the photos', |
| 60 |
'below' => 'Show below the photos', |
| 61 |
] |
| 62 |
], |
| 63 |
|
| 64 |
[ |
| 65 |
'name' => 'Title Display', |
| 66 |
'desc' => 'How do you want the title of the photo thumbnail?', |
| 67 |
'id' => 'instagram_photo_title_display', |
| 68 |
'grouping' => 'instagram-settings', |
| 69 |
'type' => 'radio', |
| 70 |
'options' => $this->title_styles() |
| 71 |
], |
| 72 |
*/ |
| 73 |
]; |
| 74 |
} |
| 75 |
} |
| 76 |
|