当前位置: 首页>>代码示例>>PHP>>正文


PHP JFBCFactory::getAllWidgetProviderNames方法代码示例

本文整理汇总了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;
 }
开发者ID:q0821,项目名称:esportshop,代码行数:11,代码来源:providerlist.php

示例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;
 }
开发者ID:q0821,项目名称:esportshop,代码行数:20,代码来源:jfbcsystem.php

示例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) {
开发者ID:q0821,项目名称:esportshop,代码行数:31,代码来源:examples.php


注:本文中的JFBCFactory::getAllWidgetProviderNames方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。