-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsettings.tpl
42 lines (40 loc) · 1.55 KB
/
settings.tpl
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
<script>
$(function () {ldelim}
$('#twitterSettings').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
{rdelim});
</script>
<form
class="pkp_form"
id="twitterSettings"
method="POST"
action="{url router=$smarty.const.ROUTE_COMPONENT op="manage" category="blocks" plugin=$pluginName verb="settings" save=true}"
>
<!-- Always add the csrf token to secure your form -->
{csrf}
{fbvFormArea}
<div class="pkp_notification">
<div class="notifyWarning">
{translate key="plugins.blocks.twitter.cookie.warning"}
</div>
</div>
{fbvFormSection title="plugins.blocks.twitter.tweet.title"}
{fbvElement type="text" id="tweetTitle" value=$tweetTitle}
{/fbvFormSection}
{fbvFormSection title="plugins.blocks.twitter.tweet.url"}
{fbvElement type="url" id="tweetUrl" value=$tweetUrl}
{/fbvFormSection}
{fbvFormSection title="plugins.blocks.twitter.tweet.color"}
{fbvElement type="text" id="tweetColor" value=$tweetColor}
{/fbvFormSection}
{fbvFormSection title="plugins.blocks.twitter.tweet.height"}
{fbvElement type="text" id="tweetHeight" value=$tweetHeight}
{/fbvFormSection}
{fbvFormSection title="plugins.blocks.twitter.tweet.options"}
{fbvElement type="text" id="tweetOptions" value=$tweetOptions}
{/fbvFormSection}
{fbvFormSection title="plugins.blocks.twitter.tweet.limit"}
{fbvElement type="text" id="tweetDataLimit" value=$tweetDataLimit}
{/fbvFormSection}
{/fbvFormArea}
{fbvFormButtons submitText="common.save"}
</form>