Ignore:
Timestamp:
Dec 23, 2010, 11:53:27 AM (13 years ago)
Author:
rub
Message:

Fix use render_element_content to add XFBML
Begin like box implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/FacebookPlug/Plugin/tpl/admin.config.tpl

    r8241 r8250  
    66<form method="post" class="properties">
    77
    8 <fieldset id="fbpConf">
    9   {if isset($social_plugin)}
     8{if isset($social_plugin)}
     9<fieldset>
    1010  <ul>
    1111    <h3><a href="{$social_plugin.like_button.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like button'|@translate}</a></h3>
     
    2626        </label>
    2727      </li>
    28 
    2928      <li>
    3029        <label>
     
    5756        </label>
    5857      </li>
    59 
    6058{*      <li>
    6159        <span class="property">
     
    6664    </div>
    6765  </ul>
    68   {/if}{* isset $social_plugin*}
     66</fieldset>
    6967
    70   {if isset($advanced)}
     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>
    71120  <ul>
    72121    <li>
     
    84133    </li>
    85134  </ul>
    86   {/if}{* isset $advanced*}
     135</fieldset>
     136{/if}{* isset $advanced*}
    87137
    88 </fieldset>
    89138
    90139  <p>
     
    125174      //Init all main checkbox
    126175      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED", "like_button");
     176      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED", "like_box");
    127177    });
    128178
Note: See TracChangeset for help on using the changeset viewer.