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

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

Add facepile

  • Property svn:eol-style set to LF
File size: 6.2 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> {'on picture pages'|@translate}</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    </div>
59  </ul>
60</fieldset>
61
62<fieldset>
63  <ul>
64    <h3><a href="{$social_plugin.facepile.FB_PAGE}" onclick="window.open(this.href); return false;">{'Facepile'|@translate}</a> {'on slideshow pages'|@translate}</h3>
65    <li>
66      <label>
67        <span class="property">{'Enabled'|@translate}</span>
68        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED" {$social_plugin.facepile.ENABLED} />
69      </label>
70    </li>
71
72    <div id='facepile'>
73      <li>
74        <label>
75          <span class="property">{'Num rows'|@translate}</span>
76          <input type="text" size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_FACEPILE_MAX_ROWS" value="{$social_plugin.facepile.MAX_ROWS}" />
77        </label>
78      </li>
79    </div>
80  </ul>
81</fieldset>
82
83<fieldset>
84  <ul>
85    <h3><a href="{$social_plugin.like_box.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like box'|@translate}</a> {'on main pages'|@translate}</h3>
86    <li>
87      <label>
88        <span class="property">{'Enabled'|@translate}</span>
89        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED" {$social_plugin.like_box.ENABLED} />
90      </label>
91    </li>
92
93    <div id='like_box'>
94      <li>
95        <label>
96          <span class="property">{'Facebook Page URL'|@translate}</span>
97          <input type="text" size="39" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_URL" value="{$social_plugin.like_box.URL}" />
98        </label>
99      </li>
100      <li>
101        <label>
102          <span class="property">{'Color scheme'|@translate}</span>
103          <select name="FBP_SOCIAL_PLUGIN_LIKE_BOX_COLORSCHEME" size="1">
104            {html_options options=$social_plugin.like_box.COLORSCHEME_OPTIONS selected=$social_plugin.like_box.COLORSCHEME_OPTIONS_SELECTED}
105          </select>
106        </label>
107      </li>
108      <li>
109        <label>
110          <span class="property">{'Show faces'|@translate}</span>
111          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_SHOW_FACES" {$social_plugin.like_box.SHOW_FACES} />
112        </label>
113      </li>
114      <li>
115        <label>
116          <span class="property">{'Show stream'|@translate}</span>
117          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_STREAM" {$social_plugin.like_box.STREAM} />
118        </label>
119      </li>
120      <li>
121        <label>
122          <span class="property">{'Show header'|@translate}</span>
123          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_HEADER" {$social_plugin.like_box.HEADER} />
124        </label>
125      </li>
126    </div>
127  </ul>
128</fieldset>
129{/if}{* isset $social_plugin*}
130
131{if isset($advanced)}
132<fieldset>
133  <ul>
134{*    <li>
135      <label>
136        <span class="property">{'Asynchronous Facebook access'|@translate}</span>
137        <input type="checkbox" name="FBP_ASYNC_SCRIPT" {$advanced.FBP_ASYNC_SCRIPT} />
138      </label>
139    </li>
140*}
141    <li>
142      <label>
143        <span class="property">{'Allow Facebook to see private page (recommended)'|@translate}</span>
144        <input type="checkbox" name="FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE" {$advanced.FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE} />
145      </label>
146    </li>
147  </ul>
148</fieldset>
149{/if}{* isset $advanced*}
150
151
152  <p>
153    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
154    <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
155  </p>
156
157</form>
158
159{literal}
160<script type="text/javascript">
161  function show_hide(checkbox_name, div_name)
162  {
163    if (jQuery("input[name="+checkbox_name+"]").attr('checked'))
164    {
165      jQuery("#"+div_name).show();
166    }
167    else
168    {
169      jQuery("#"+div_name).hide();
170    }
171  }
172
173  function init_checkbox(checkbox_name, div_name)
174  {
175    jQuery("input[name="+checkbox_name+"]").click(
176      function()
177      {
178        show_hide(checkbox_name, div_name);
179      }
180    );
181    show_hide(checkbox_name, div_name);
182  }
183
184  jQuery(document).ready(
185    function()
186    {
187      //Init all main checkbox
188      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED", "like_button");
189      init_checkbox("FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED", "facepile");
190      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED", "like_box");
191    });
192
193</script>
194{/literal}
Note: See TracBrowser for help on using the repository browser.