本文整理汇总了PHP中JFBCFactory::getAllWidgetProviderNames方法的典型用法代码示例。如果您正苦于以下问题:PHP JFBCFactory::getAllWidgetProviderNames方法的具体用法?PHP JFBCFactory::getAllWidgetProviderNames怎么用?PHP JFBCFactory::getAllWidgetProviderNames使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JFBCFactory
的用法示例。
在下文中一共展示了JFBCFactory::getAllWidgetProviderNames方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getOptions
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;
}
示例2: buildListOfTagsToReplace
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;
}
示例3: defined
<?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) {