1 | <div class="titrePage"> |
---|
2 | <h2>FacebookPlug</h2> |
---|
3 | </div> |
---|
4 | <br> |
---|
5 | |
---|
6 | <form method="post" class="properties"> |
---|
7 | |
---|
8 | <fieldset id="fbpConf"> |
---|
9 | {if isset($social_plugin)} |
---|
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 | |
---|
29 | <li> |
---|
30 | <label> |
---|
31 | <span class="property">{'Layout style'|@translate}</span> |
---|
32 | <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_LAYOUT" size="1"> |
---|
33 | {html_options options=$social_plugin.like_button.LAYOUT_OPTIONS selected=$social_plugin.like_button.LAYOUT_OPTIONS_SELECTED} |
---|
34 | </select> |
---|
35 | </label> |
---|
36 | </li> |
---|
37 | <li> |
---|
38 | <label> |
---|
39 | <span class="property">{'Show faces'|@translate}</span> |
---|
40 | <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_SHOW_FACES" {$social_plugin.like_button.SHOW_FACES} /> |
---|
41 | </label> |
---|
42 | </li> |
---|
43 | <li> |
---|
44 | <label> |
---|
45 | <span class="property">{'Verb to display'|@translate}</span> |
---|
46 | <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ACTION" size="1"> |
---|
47 | {html_options options=$social_plugin.like_button.ACTION_OPTIONS selected=$social_plugin.like_button.ACTION_OPTIONS_SELECTED} |
---|
48 | </select> |
---|
49 | </label> |
---|
50 | </li> |
---|
51 | <li> |
---|
52 | <label> |
---|
53 | <span class="property">{'Color scheme'|@translate}</span> |
---|
54 | <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_COLORSCHEME" size="1"> |
---|
55 | {html_options options=$social_plugin.like_button.COLORSCHEME_OPTIONS selected=$social_plugin.like_button.COLORSCHEME_OPTIONS_SELECTED} |
---|
56 | </select> |
---|
57 | </label> |
---|
58 | </li> |
---|
59 | |
---|
60 | {* <li> |
---|
61 | <span class="property"> |
---|
62 | <label for="fbp_day_number">{'fbp_day_number'|@translate}</label> |
---|
63 | </span> |
---|
64 | <input type="text" size="3" maxlength="4" name="fbp_day_number" id="fbp_day_number" value="{$fbp_DAY_NUMBER}" /> |
---|
65 | </li>*} |
---|
66 | </div> |
---|
67 | </ul> |
---|
68 | {/if}{* isset $social_plugin*} |
---|
69 | |
---|
70 | {if isset($advanced)} |
---|
71 | <ul> |
---|
72 | <li> |
---|
73 | <label> |
---|
74 | <span class="property">{'Asynchronous Facebook access'|@translate}</span> |
---|
75 | <input type="checkbox" name="FBP_ASYNC_SCRIPT" {$advanced.FBP_ASYNC_SCRIPT} /> |
---|
76 | </label> |
---|
77 | </li> |
---|
78 | |
---|
79 | <li> |
---|
80 | <label> |
---|
81 | <span class="property">{'Allow Facebook to see private page (recommended)'|@translate}</span> |
---|
82 | <input type="checkbox" name="FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE" {$advanced.FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE} /> |
---|
83 | </label> |
---|
84 | </li> |
---|
85 | </ul> |
---|
86 | {/if}{* isset $advanced*} |
---|
87 | |
---|
88 | </fieldset> |
---|
89 | |
---|
90 | <p> |
---|
91 | <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"> |
---|
92 | <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}"> |
---|
93 | </p> |
---|
94 | |
---|
95 | </form> |
---|
96 | |
---|
97 | {literal} |
---|
98 | <script type="text/javascript"> |
---|
99 | function show_hide(checkbox_name, div_name) |
---|
100 | { |
---|
101 | if (jQuery("input[name="+checkbox_name+"]").attr('checked')) |
---|
102 | { |
---|
103 | jQuery("#"+div_name).show(); |
---|
104 | } |
---|
105 | else |
---|
106 | { |
---|
107 | jQuery("#"+div_name).hide(); |
---|
108 | } |
---|
109 | } |
---|
110 | |
---|
111 | function init_checkbox(checkbox_name, div_name) |
---|
112 | { |
---|
113 | jQuery("input[name="+checkbox_name+"]").click( |
---|
114 | function() |
---|
115 | { |
---|
116 | show_hide(checkbox_name, div_name); |
---|
117 | } |
---|
118 | ); |
---|
119 | show_hide(checkbox_name, div_name); |
---|
120 | } |
---|
121 | |
---|
122 | jQuery(document).ready( |
---|
123 | function() |
---|
124 | { |
---|
125 | //Init all main checkbox |
---|
126 | init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED", "like_button"); |
---|
127 | }); |
---|
128 | |
---|
129 | </script> |
---|
130 | {/literal} |
---|