Beispiel #1
0
 protected function getOptions()
 {
     require_once JPATH_ROOT . '/components/com_jfbconnect/libraries/factory.php';
     $providers = JFBCFactory::getAllWidgetProviderNames();
     $options = array();
     $options[] = JHtml::_('select.option', "provider", "--Select your provider--");
     foreach ($providers as $provider) {
         $options[] = JHtml::_('select.option', $provider, ucfirst($provider));
     }
     return $options;
 }
Beispiel #2
0
 private function buildListOfTagsToReplace()
 {
     $tagsToReplace = JFBCFactory::cache()->get('system.alleasytags');
     if ($tagsToReplace === false) {
         $providers = JFBCFactory::getAllWidgetProviderNames();
         $tagsToReplace = array();
         foreach ($providers as $provider) {
             $widgets = JFBCFactory::getAllWidgets($provider);
             foreach ($widgets as $widget) {
                 $tagsToReplace[strtolower($widget->tagName)] = array('provider' => $provider, 'widget' => $widget->systemName);
             }
         }
         //Manually add SCLinkedinLogin, since JLinkedLogin is the actual tag
         $tagsToReplace['sclinkedinlogin'] = array('provider' => 'linkedin', 'widget' => 'login');
         //Tags like JFBCShare and JFBCRecommendations need to come up after JFBCShareDialog and JFBCRecommendationsBar
         $tagsToReplace = array_reverse($tagsToReplace);
         JFBCFactory::cache()->store($tagsToReplace, 'system.alleasytags');
     }
     $this->tagsToReplace = $tagsToReplace;
 }
Beispiel #3
0
<?php

/**
 * @package         JFBConnect
 * @copyright (c)   2009-2015 by SourceCoast - All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version         Release v6.4.2
 * @build-date      2015/08/24
 */
defined('_JEXEC') or die('Restricted access');
$filter_provider = $this->filter_provider;
$providersWithWidgets = JFBCFactory::getAllWidgetProviderNames();
?>
<p><?php 
echo JText::_('COM_JFBCONNECT_SOCIAL_EXAMPLES_DESC');
?>
</p>
<p><?php 
echo JText::_('COM_JFBCONNECT_SOCIAL_EXAMPLES_DESC2');
?>
</p>

<div id="filter-bar" class="btn-toolbar">
    <div class="btn-group pull-left">
        <select name="filter_provider" id="filter_provider" class="input-large" onchange="this.form.submit()">
            <option value="all">- <?php 
echo JText::_('COM_JFBCONNECT_SOCIAL_EXAMPLES_SELECT_PROVIDER_TYPE');
?>
 -</option>
            <?php 
foreach ($providersWithWidgets as $providerName) {