Ignore:
Timestamp:
Dec 29, 2010, 11:45:21 PM (13 years ago)
Author:
rub
Message:

Add social plugin activity feed
Add convert function on admin page config
Add missing options on social plugins
Add activity tab sheet on admin config page

File:
1 edited

Legend:

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

    r8375 r8386  
    129129<h3>{'On menu of main pages'|@translate}</h3>
    130130<fieldset>
     131  <legend><a href="{$social_plugin.activity_feed.FB_PAGE}" onclick="window.open(this.href); return false;">{'Activity feed'|@translate}</a></legend>
     132  <ul>
     133    <li>
     134      <label>
     135        <span class="property">{'Enabled'|@translate}</span>
     136        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED" {$social_plugin.activity_feed.ENABLED} />
     137      </label>
     138    </li>
     139
     140    <div id='activity_feed'>
     141      <li>
     142        <label>
     143          <span class="property">{'Color scheme'|@translate}</span>
     144          <select name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_COLORSCHEME" size="1">
     145            {html_options options=$social_plugin.activity_feed.COLORSCHEME_OPTIONS selected=$social_plugin.activity_feed.COLORSCHEME_OPTIONS_SELECTED}
     146          </select>
     147        </label>
     148      </li>
     149      <li>
     150        <label>
     151          <span class="property">{'Show header'|@translate}</span>
     152          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEADER" {$social_plugin.activity_feed.HEADER} />
     153        </label>
     154      </li>
     155      <li>
     156        <label>
     157          <span class="property">{'Show recommendations'|@translate}</span>
     158          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_RECOMMENDATIONS" {$social_plugin.activity_feed.RECOMMENDATIONS} />
     159        </label>
     160      </li>
     161      <li>
     162        <label>
     163          <span class="property">{'Height'|@translate}</span>
     164          <input type="text"  size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEIGHT" value="{$social_plugin.activity_feed.HEIGHT}" />
     165        </label>
     166      </li>
     167    </div>
     168  </ul>
     169</fieldset>
     170
     171<fieldset>
    131172  <legend><a href="{$social_plugin.like_box.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like box'|@translate}</a></legend>
    132173  <ul>
     
    171212        </label>
    172213      </li>
     214      <li>
     215        <label>
     216          <span class="property">{'Height'|@translate}</span>
     217          <input type="text"  size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_HEIGHT" value="{$social_plugin.like_box.HEIGHT}" />
     218        </label>
     219      </li>
    173220    </div>
    174221  </ul>
    175222</fieldset>
     223<p><i>{'Other options are available by programming'|@translate}</i></p>
    176224{/if}{* isset $social_plugin*}
    177225
     
    251299{/if}{* isset $advanced*}
    252300
    253 
     301{if isset($activity)}
     302<center>
     303  <div>
     304  <fb:activity
     305    width="550"
     306    height="950"
     307    recommendations="true"
     308    header="true"
     309  ></fb:activity>
     310</center>
     311{/if}{* isset $activity*}
     312
     313{if ! isset($activity)}
    254314  <p>
    255315    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
    256316    <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
    257317  </p>
     318{/if}{* isset $activity*}
    258319
    259320  <p>
     
    326387      init_checkbox("FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED", "facepile");
    327388      init_checkbox("FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED", "comments");
     389      init_checkbox("FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED", "activity_feed");
    328390      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED", "like_box");
    329391      // Init message box
Note: See TracChangeset for help on using the changeset viewer.