source: extensions/FacebookPlug/Plugin/tpl/admin.config.tpl @ 8250

Last change on this file since 8250 was 8250, checked in by rub, 13 years ago

Fix use render_element_content to add XFBML
Begin like box implementation

  • Property svn:eol-style set to LF
File size: 5.8 KB
Line 
1<div class="titrePage">
2  <h2>FacebookPlug</h2>
3</div>
4<br>
5
6<form method="post" class="properties">
7
8{if isset($social_plugin)}
9<fieldset>
10  <ul>
11    <h3><a href="{$social_plugin.like_button.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like button'|@translate}</a></h3>
12    <li>
13      <label>
14        <span class="property">{'Enabled'|@translate}</span>
15        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED" {$social_plugin.like_button.ENABLED} />
16      </label>
17    </li>
18
19    <div id='like_button'>
20      <li>
21        <label>
22          <span class="property">{'URL type'|@translate}</span>
23          <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_URL_TYPE" size="1">
24            {html_options options=$social_plugin.like_button.URL_TYPE_OPTIONS selected=$social_plugin.like_button.URL_TYPE_OPTIONS_SELECTED}
25          </select>
26        </label>
27      </li>
28      <li>
29        <label>
30          <span class="property">{'Layout style'|@translate}</span>
31          <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_LAYOUT" size="1">
32            {html_options options=$social_plugin.like_button.LAYOUT_OPTIONS selected=$social_plugin.like_button.LAYOUT_OPTIONS_SELECTED}
33          </select>
34        </label>
35      </li>
36      <li>
37        <label>
38          <span class="property">{'Show faces'|@translate}</span>
39          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_SHOW_FACES" {$social_plugin.like_button.SHOW_FACES} />
40        </label>
41      </li>
42      <li>
43        <label>
44          <span class="property">{'Verb to display'|@translate}</span>
45          <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ACTION" size="1">
46            {html_options options=$social_plugin.like_button.ACTION_OPTIONS selected=$social_plugin.like_button.ACTION_OPTIONS_SELECTED}
47          </select>
48        </label>
49      </li>
50      <li>
51        <label>
52          <span class="property">{'Color scheme'|@translate}</span>
53          <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_COLORSCHEME" size="1">
54            {html_options options=$social_plugin.like_button.COLORSCHEME_OPTIONS selected=$social_plugin.like_button.COLORSCHEME_OPTIONS_SELECTED}
55          </select>
56        </label>
57      </li>
58{*      <li>
59        <span class="property">
60          <label for="fbp_day_number">{'fbp_day_number'|@translate}</label>
61        </span>
62        <input type="text" size="3" maxlength="4" name="fbp_day_number" id="fbp_day_number" value="{$fbp_DAY_NUMBER}" />
63      </li>*}
64    </div>
65  </ul>
66</fieldset>
67
68<fieldset>
69  <ul>
70    <h3><a href="{$social_plugin.like_box.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like box'|@translate}</a></h3>
71    <li>
72      <label>
73        <span class="property">{'Enabled'|@translate}</span>
74        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED" {$social_plugin.like_box.ENABLED} />
75      </label>
76    </li>
77
78    <div id='like_box'>
79      <li>
80        <label>
81          <span class="property">{'URL type'|@translate}</span>
82          <select name="FBP_SOCIAL_PLUGIN_LIKE_BOX_URL_TYPE" size="1">
83            {html_options options=$social_plugin.like_box.URL_TYPE_OPTIONS selected=$social_plugin.like_box.URL_TYPE_OPTIONS_SELECTED}
84          </select>
85        </label>
86      </li>
87      <li>
88        <label>
89          <span class="property">{'Color scheme'|@translate}</span>
90          <select name="FBP_SOCIAL_PLUGIN_LIKE_BOX_COLORSCHEME" size="1">
91            {html_options options=$social_plugin.like_box.COLORSCHEME_OPTIONS selected=$social_plugin.like_box.COLORSCHEME_OPTIONS_SELECTED}
92          </select>
93        </label>
94      </li>
95      <li>
96        <label>
97          <span class="property">{'Show faces'|@translate}</span>
98          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_SHOW_FACES" {$social_plugin.like_box.SHOW_FACES} />
99        </label>
100      </li>
101      <li>
102        <label>
103          <span class="property">{'Show stream'|@translate}</span>
104          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_STREAM" {$social_plugin.like_box.STREAM} />
105        </label>
106      </li>
107      <li>
108        <label>
109          <span class="property">{'Show header'|@translate}</span>
110          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_HEADER" {$social_plugin.like_box.HEADER} />
111        </label>
112      </li>
113    </div>
114  </ul>
115</fieldset>
116{/if}{* isset $social_plugin*}
117
118{if isset($advanced)}
119<fieldset>
120  <ul>
121    <li>
122      <label>
123        <span class="property">{'Asynchronous Facebook access'|@translate}</span>
124        <input type="checkbox" name="FBP_ASYNC_SCRIPT" {$advanced.FBP_ASYNC_SCRIPT} />
125      </label>
126    </li>
127
128    <li>
129      <label>
130        <span class="property">{'Allow Facebook to see private page (recommended)'|@translate}</span>
131        <input type="checkbox" name="FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE" {$advanced.FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE} />
132      </label>
133    </li>
134  </ul>
135</fieldset>
136{/if}{* isset $advanced*}
137
138
139  <p>
140    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
141    <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
142  </p>
143
144</form>
145
146{literal}
147<script type="text/javascript">
148  function show_hide(checkbox_name, div_name)
149  {
150    if (jQuery("input[name="+checkbox_name+"]").attr('checked'))
151    {
152      jQuery("#"+div_name).show();
153    }
154    else
155    {
156      jQuery("#"+div_name).hide();
157    }
158  }
159
160  function init_checkbox(checkbox_name, div_name)
161  {
162    jQuery("input[name="+checkbox_name+"]").click(
163      function()
164      {
165        show_hide(checkbox_name, div_name);
166      }
167    );
168    show_hide(checkbox_name, div_name);
169  }
170
171  jQuery(document).ready(
172    function()
173    {
174      //Init all main checkbox
175      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED", "like_button");
176      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED", "like_box");
177    });
178
179</script>
180{/literal}
Note: See TracBrowser for help on using the repository browser.