aviary.phtml
3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* @var $_class N2SystemBackendSettingsView
* @see Actions
*/
$this->widget->init('topbar', array(
"actions" => array(
N2Html::tag('a', array(
'href' => '#',
'class' => 'n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-h4 n2-b n2-uc',
'onclick' => 'return NextendForm.submit("#nextend-config");'
), n2_('Save'))
)
));
?>
<div class="n2-heading-bar">
<div class="n2-h1 n2-heading"><?php n2_e('Adobe Creative SDK - Aviary image editor'); ?></div>
</div>
<div class="n2-form-tab ">
<div class="n2-h2 n2-content-box-title-bg"><?php n2_e('Get Adobe Creative SDK API access'); ?></div>
<div class="n2-description">
<p><?php n2_e('To be able to use Aviary image editing tool in this application, you have to create an own API key to gain access.'); ?></p>
<ol>
<li><?php n2_e('Register, then login to <a href="https://www.adobe.io/" target="_blank">Adobe</a>.'); ?>
</li>
<li><?php n2_e('After you have logged in press New Integration in <a href="https://www.adobe.io/console/integrations" target="_blank">here</a>.'); ?>
</li>
<li><?php n2_e('Leave the Access an API to be selected and press Continue.'); ?></li>
<li><?php n2_e('Choose Creative SDK and Continue.'); ?></li>
<li><?php n2_e('Leave it on New Integration and Continue.'); ?></li>
<li><?php n2_e('The Name and Description can be anything.'); ?></li>
<li><?php n2_e('The Platform should stay on Web.'); ?></li>
<li><?php n2_e('The Default redirect URI should be a https address to your website. Don\'t worry if your website is not on https, it still will be good. Example: https://example.com'); ?></li>
<li><?php n2_e('The Redirect URI pattern can be the same address, just you could give a pattern. It has to be a https link (again, doesn\'t have to be a real https site), and put \\ signs before every . sign. For example: https://example\\.com'); ?></li>
<li><?php n2_e('Check in the Captcha, that you are not a robot.'); ?></li>
<li><?php n2_e('Press Create Integration.'); ?></li>
<li><?php n2_e('Press Continue to Integration details.'); ?></li>
<li><?php n2_e('Copy and paste your API Key (Client ID) and Client secret into our backend and Save on it.'); ?></li>
</ol>
</div>
</div>
<?php
$values = N2ImageAviary::loadSettings();
if ($values['public'] && $values['secret']):
?>
<div class="n2-form-tab ">
<div class="n2-h2 n2-content-box-title-bg"><?php n2_e('High resolution feature'); ?></div>
<div class="n2-description">
<p><?php n2_e('By default Aviary is limited in the image size up to 1 megapixel. If you would like to edit bigger images, you can ask them (it\'s free) to enable high resolution image support on your app. '); ?></p>
<a class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green"
href="mailto:websupport@creativesdk.zendesk.com?Subject=Web%20High%20Resolution%20Upgrade%20Inquiry&Body=Hello%2C%0AI%20would%20like%20to%20ask%20you%20to%20enable%20high%20resolution%20image%20support%20on%20my%20app.%0AMy%20Client%20id%20is%3A%20<?php echo $values['public']; ?>%0A%0AName%20of%20your%20company%3A%20%0ANumber%20of%20monthly%20active%20web%20users%3A%2010">
<?php n2_e('Request access to high resolution API'); ?>
</a>
</div>
</div>
<?php
endif;
$_class->renderAviaryConfigurationForm();