| 1 |
<?php |
| 2 |
global $photonic_instagram_options; |
| 3 |
|
| 4 |
$photonic_instagram_options = array( |
| 5 |
array('name' => "Instagram settings", |
| 6 |
'desc' => "Control settings for Instagram", |
| 7 |
'category' => "instagram-settings", |
| 8 |
'type' => 'section',), |
| 9 |
|
| 10 |
array('name' => "Instagram Access Token", |
| 11 |
'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>", |
| 12 |
'id' => "instagram_access_token", |
| 13 |
'grouping' => "instagram-settings", |
| 14 |
'type' => 'text'), |
| 15 |
|
| 16 |
array('name' => 'Media to show', |
| 17 |
'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:', |
| 18 |
'id' => "instagram_media", |
| 19 |
'grouping' => "instagram-settings", |
| 20 |
'type' => 'select', |
| 21 |
'options' => Photonic::media_options()), |
| 22 |
|
| 23 |
array('name' => "Disable lightbox linking", |
| 24 |
'desc' => "Check this to disable linking the photo title in the lightbox to the original photo page.", |
| 25 |
'id' => "instagram_disable_title_link", |
| 26 |
'grouping' => "instagram-settings", |
| 27 |
'type' => 'checkbox'), |
| 28 |
|
| 29 |
array('name' => "Expanded size", |
| 30 |
'desc' => "Image size to show when you click on a thumbnail:", |
| 31 |
'id' => "instagram_main_size", |
| 32 |
'grouping' => "instagram-settings", |
| 33 |
'type' => 'select', |
| 34 |
'options' => array("low_resolution" => "Low Resolution - 306x306px, or 320x320px", "standard_resolution" => "Standard Resolution - 612x612px or 640x640px", 'largest' => 'Largest available resolution (640x640px for old images, upto 1080x1080px for new images)', )), |
| 35 |
|
| 36 |
array('name' => "Expanded video size", |
| 37 |
'desc' => "Video size to show when you click on a thumbnail:", |
| 38 |
'id' => "instagram_video_size", |
| 39 |
'grouping' => "instagram-settings", |
| 40 |
'type' => 'select', |
| 41 |
'options' => array("low_resolution" => "Low Resolution", "standard_resolution" => "Standard Resolution", 'low_bandwidth' => 'Low Bandwidth')), |
| 42 |
|
| 43 |
array('name' => "Tile image size", |
| 44 |
'desc' => "<strong>This is applicable only if you are using the random tiled gallery, masonry or mosaic layouts.</strong> This size will be used as the image for the tiles. Picking a size smaller than the Main image size above will save bandwidth if your users <strong>don't click</strong> on individual images. Conversely, leaving this the same as the Main image size will save bandwidth if your users <strong>do click</strong> on individual images:", |
| 45 |
'id' => "instagram_tile_size", |
| 46 |
'grouping' => "instagram-settings", |
| 47 |
'type' => 'select', |
| 48 |
'options' => array("same" => "Same as Main image size", "low_resolution" => "Low Resolution - 306x306px, or 320x320px", "standard_resolution" => "Standard Resolution - 612x612px or 640x640px", 'largest' => 'Largest available resolution (640x640px for old images, upto 1080x1080px for new images)', )), |
| 49 |
|
| 50 |
array('name' => "Title Display", |
| 51 |
'desc' => "How do you want the title of the photo thumbnail?", |
| 52 |
'id' => "instagram_photo_title_display", |
| 53 |
'grouping' => "instagram-settings", |
| 54 |
'type' => 'radio', |
| 55 |
'options' => photonic_title_styles()), |
| 56 |
|
| 57 |
array('name' => "Constrain Photos Per Row", |
| 58 |
'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.", |
| 59 |
'id' => "instagram_photos_per_row_constraint", |
| 60 |
'grouping' => "instagram-settings", |
| 61 |
'type' => 'select', |
| 62 |
'options' => array("padding" => "Fix the padding around the thumbnails", |
| 63 |
"count" => "Fix the number of thumbnails per row", |
| 64 |
)), |
| 65 |
|
| 66 |
array('name' => "Constrain by padding", |
| 67 |
'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by", |
| 68 |
'id' => "instagram_photos_constrain_by_padding", |
| 69 |
'grouping' => "instagram-settings", |
| 70 |
'type' => 'text', |
| 71 |
'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored."), |
| 72 |
|
| 73 |
array('name' => "Constrain by number of thumbnails", |
| 74 |
'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails", |
| 75 |
'id' => "instagram_photos_constrain_by_count", |
| 76 |
'grouping' => "instagram-settings", |
| 77 |
'type' => 'select', |
| 78 |
'options' => photonic_selection_range(1, 25)), |
| 79 |
); |