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


PHP NextendPlugin::callPlugin方法代码示例

本文整理汇总了PHP中NextendPlugin::callPlugin方法的典型用法代码示例。如果您正苦于以下问题:PHP NextendPlugin::callPlugin方法的具体用法?PHP NextendPlugin::callPlugin怎么用?PHP NextendPlugin::callPlugin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在NextendPlugin的用法示例。


在下文中一共展示了NextendPlugin::callPlugin方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: fetchElement

 function fetchElement()
 {
     $v = (array) NextendParse::parse($this->parent->_value);
     $_REQUEST['fbpage'] = $v[0];
     $this->_xml->addChild('option', 'Please choose')->addAttribute('value', 0);
     $js = NextendJavascript::getInstance();
     $js->addLibraryJsAssetsFile('dojo', 'element.js');
     $js->addLibraryJsFile('dojo', dirname(__FILE__) . '/facebookalbumsbypage.js');
     $js->addLibraryJs('dojo', '
         new NextendElementFacebookAlbumsbyPage({
             val: "' . $v[0] . '",
             hidden: "' . $this->parent->_id . '",
             listhidden: "' . $this->_id . '",
             group: "nextendslidergenerator",
             method: "onNextendFacebookPageAlbums"
         });
     ');
     ob_start();
     $list = null;
     NextendPlugin::callPlugin('nextendslidergenerator', 'onNextendFacebookPageAlbums', array(&$list));
     if ($list) {
         ob_end_clean();
         if (count($list)) {
             foreach ($list as $id => $name) {
                 $this->_xml->addChild('option', htmlentities($name))->addAttribute('value', $id);
             }
         }
     }
     $this->_value = $this->_form->get($this->_name, $this->_default);
     $html = parent::fetchElement();
     if (!$list) {
         $html .= ob_get_clean();
     }
     return $html;
 }
开发者ID:AndyHuntDesign,项目名称:andyhuntdesign,代码行数:35,代码来源:facebookalbumsbypage.php

示例2: NextendSliderWidgets

 function NextendSliderWidgets($slider, $id)
 {
     $this->_slider = $slider;
     $this->_id = $id;
     $this->_widgets = array();
     $this->_enabledWidgets = array();
     $params = $this->_slider->_sliderParams;
     if ($slider->_backend) {
         return;
     }
     $plugins = array();
     NextendPlugin::callPlugin('nextendsliderwidget', 'onNextendSliderWidgetList', array(&$plugins));
     foreach ($plugins as $k => $v) {
         $widget = $params->get('widget' . $k);
         $display = NextendParse::parse($params->get('widget' . $k . 'display', '0|*|always|*|0|*|0'));
         if ($widget != '' && (isset($display[0]) && intval($display[0]) || isset($display[2]) && intval($display[2]) || isset($display[3]) && intval($display[3]))) {
             $this->_enabledWidgets[$k] = $widget;
         }
     }
     foreach ($this->_enabledWidgets as $k => $v) {
         if (nextendIsJoomla()) {
             JPluginHelper::importPlugin('nextendsliderwidget' . $k);
         }
         $class = 'plgNextendSliderWidget' . $k . $v;
         if (class_exists($class, false)) {
             $this->_widgets[$k] = call_user_func(array($class, 'render'), $slider, $id, $params);
         }
     }
 }
开发者ID:sangikumar,项目名称:IP,代码行数:29,代码来源:widgets.php

示例3: loadWordpressList

 function loadWordpressList()
 {
     nextendimport('nextend.plugin.plugin');
     require_once NEXTEND_ACCORDION_MENU . 'types' . DIRECTORY_SEPARATOR . 'loadplugin.php';
     $this->_list = array();
     NextendPlugin::callPlugin('nextendmenu', 'onNextendMenuList', array(&$this->_list));
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:7,代码来源:menutype.php

示例4: getOptions

 function getOptions()
 {
     if ($this->_list == null) {
         $this->_list = array();
         NextendPlugin::callPlugin('nextendsliderwidget', 'onNextendSliderWidgetList', array(&$this->_list));
     }
     uasort($this->_list, array($this, 'sort'));
     return $this->_list;
 }
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:9,代码来源:pluginmatrix.php

示例5: NextendSliderItems

 function NextendSliderItems($id, $slider, $admin)
 {
     $this->id = $id;
     $this->slider = $slider;
     $this->admin = $admin;
     $this->items = array();
     if (!isset(self::$i[$id])) {
         self::$i[$id] = 0;
     }
     NextendPlugin::callPlugin('nextendslideritem', 'onNextendSliderItemShortcode', array(&$this->items));
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:11,代码来源:items.php

示例6: pluginAction

 function pluginAction($tpl)
 {
     $plugin = NextendRequest::getVar('action');
     $path = null;
     NextendPlugin::callPlugin('nextendslidergenerator', 'onNextendGeneratorConfiguration', array(&$plugin, &$path));
     if ($path) {
         $path .= 'configuration.xml';
         $this->xml = $path;
         $this->group = $plugin;
         $this->render('plugin');
     } else {
         $this->defaultAction($tpl);
     }
 }
开发者ID:JonathanAJ,项目名称:Seara-da-Ciencia-UFC,代码行数:14,代码来源:view.html.php

示例7: loadList

 function loadList()
 {
     if ($this->_list == null) {
         $this->_group = array();
         $this->_list = array();
         NextendPlugin::callPlugin(NextendXmlGetAttribute($this->_xml, 'plugingroup'), NextendXmlGetAttribute($this->_xml, 'method'), array(&$this->_group, &$this->_list));
         $v = explode('_', $this->_value);
         if (!isset($this->_list[$v[0]][$this->_value])) {
             $keys = array_keys($this->_list);
             $ks = array_keys($this->_list[$keys[0]]);
             $this->_value = $this->_list[$keys[0]][$ks[0]];
         }
     }
 }
开发者ID:sangikumar,项目名称:IP,代码行数:14,代码来源:plugingroup.php

示例8: getNextendFlickr

/**
 * @return phpFlickr
 */
function getNextendFlickr()
{
    $flickr = null;
    NextendPlugin::callPlugin('nextendslidergenerator', 'onNextendFlickr', array(&$flickr));
    if ($flickr->auth_checkToken() === false) {
        if (NextendSmartSliderSettings::get('debugmessages', 1)) {
            global $smartslidercontroller;
            echo "<span style='line-height: 24px; padding: 0 10px;'>";
            echo NextendText::_('There_are_some_configuration_issues_with_Flickr_API_Please_check_the_settings') . ' <a href="' . $smartslidercontroller->route('controller=settings&view=sliders_settings&action=flickr') . '">' . NextendText::_('settings') . '</a>!<br />';
            echo "</span>";
        }
        return false;
    }
    return $flickr;
}
开发者ID:AndyHuntDesign,项目名称:andyhuntdesign,代码行数:18,代码来源:flickr.php

示例9: fetchElement

 function fetchElement()
 {
     static $options;
     if (!$options) {
         $options = array(0 => 'No_animation', 'fade' => 'Fade', 'slidelefttoright' => 'Slide_left_to_right', 'sliderighttoleft' => 'Slide_right_to_left', 'slidetoptobottom' => 'Slide_top_to_bottom', 'slidebottomtotop' => 'Slide_bottom_to_top', 'flipx' => 'Flip_X', 'fadeup' => 'Fade_up', 'fadedown' => 'Fade_down', 'fadeleft' => 'Fade_left', 'faderight' => 'Fade_right', 'bounce' => 'Bounce', 'rotate' => 'Rotate', 'rotateupleft' => 'Rotate_up_left', 'rotatedownleft' => 'Rotate_down_left', 'rotateupright' => 'Rotate_up_right', 'rotatedownright' => 'Rotate_down_right', 'rollin' => 'Roll_in', 'rollout' => 'Roll_out', 'scale' => 'Scale');
         NextendPlugin::callPlugin('nextendslider', 'onNextendSliderLayerAnimations', array(&$options));
     }
     if (count($options)) {
         foreach ($options as $k => $v) {
             $this->_xml->addChild('option', $v)->addAttribute('value', $k);
         }
     }
     $this->_value = $this->_form->get($this->_name, $this->_default);
     $html = parent::fetchElement();
     return $html;
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:16,代码来源:sliderlayeranimation.php

示例10: getNextendTwitter

function getNextendTwitter()
{
    $twitter = null;
    NextendPlugin::callPlugin('nextendslidergenerator', 'onNextendTwitter', array(&$twitter));
    $test = $twitter->request('GET', 'https://api.twitter.com/1.1/statuses/user_timeline.json', array());
    if ($test != 200) {
        if (NextendSmartSliderSettings::get('debugmessages', 1)) {
            global $smartslidercontroller;
            echo "<span style='line-height: 24px; padding: 0 10px;'>";
            echo NextendText::_('There_are_some_configuration_issues_with_Twitter_API_Please_check_the') . ' <a href="' . $smartslidercontroller->route('controller=settings&view=sliders_settings&action=twitter') . '">' . NextendText::_('settings') . '</a>!<br />';
            echo "</span>";
        }
        return false;
    }
    return $twitter;
}
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:16,代码来源:twitter.php

示例11: getNextendInstagram

/**
 * @return Instagram
 */
function getNextendInstagram()
{
    $instagram = null;
    NextendPlugin::callPlugin('nextendslidergenerator', 'onNextendInstagram', array(&$instagram));
    $test = json_decode($instagram->getUserFeed(), true);
    if ($test['meta']['code'] != 200) {
        if (NextendSmartSliderSettings::get('debugmessages', 1)) {
            global $smartslidercontroller;
            echo "<span style='line-height: 24px; padding: 0 10px;'>";
            echo NextendText::_('There_are_some_configuration_issues_with_Instagram_API_Please_check_the') . ' <a href="' . $smartslidercontroller->route('controller=settings&view=sliders_settings&action=instagram') . '">' . NextendText::_('settings') . '</a>!<br />';
            echo "</span>";
        }
        return false;
    }
    return $instagram;
}
开发者ID:AndyHuntDesign,项目名称:andyhuntdesign,代码行数:19,代码来源:instagram.php

示例12: getNextendFacebook

/**
 * @return Facebook
 */
function getNextendFacebook()
{
    $facebook = null;
    NextendPlugin::callPlugin('nextendslidergenerator', 'onNextendFacebook', array(&$facebook));
    try {
        $test = $facebook->api('/me');
    } catch (Exception $e) {
        if (NextendSmartSliderSettings::get('debugmessages', 1)) {
            global $smartslidercontroller;
            echo "<span style='line-height: 24px; padding: 0 10px;'>";
            echo NextendText::_('There_are_some_configuration_issues_with_Facebook_API_Please_check_the') . ' <a href="' . $smartslidercontroller->route('controller=settings&view=sliders_settings&action=facebook') . '">' . NextendText::_('settings') . '</a>!<br />';
            echo "</span>";
        }
        return false;
    }
    return $facebook;
}
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:20,代码来源:facebook.php

示例13: getNextendYoutube

/**
 * @return array(Google_Client,Google_Client_YouTube)
 */
function getNextendYoutube()
{
    static $google = null, $youtube = null;
    if ($google === null) {
        NextendPlugin::callPlugin('nextendslidergenerator', 'onNextendYoutube', array(&$google, &$youtube));
    }
    if ($google->isAccessTokenExpired()) {
        if (NextendSmartSliderSettings::get('debugmessages', 1)) {
            global $smartslidercontroller;
            echo "<span style='line-height: 24px; padding: 0 10px;'>";
            echo NextendText::_('There are some configuration issues with Youtube API. Please check the') . ' <a href="' . $smartslidercontroller->route('controller=settings&view=sliders_settings&action=youtube') . '">' . NextendText::_('settings') . '</a>!<br />';
            echo "</span>";
        }
        return false;
    }
    return array($google, $youtube);
}
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:20,代码来源:youtube.php

示例14: render

 function render($cache = false)
 {
     if ($this->_norender) {
         return;
     }
     $this->preRender();
     $id = $this->getId();
     $data =& $this->_data;
     $this->addJs();
     $jquery = NextendSmartSliderSettings::get('jquery', 1);
     if (!$jquery && !class_exists('NextendSmartsliderAdminController', false)) {
         $js = NextendJavascript::getInstance();
         $js->_loadedLibraries['jquery']->removeJsLibraryFile('jQuery.js');
     }
     if (isset($this->_slides[$this->_activeSlide])) {
         $this->_slides[$this->_activeSlide]['classes'] .= ' smart-slider-slide-active';
     }
     $fadeonload = (array) NextendParse::parse($this->_sliderParams->get('fadeonload', '1|*|0'));
     if (!isset($fadeonload[1])) {
         $fadeonload[1] = 0;
     } else {
         if ($fadeonload[1]) {
             $fadeonload[0] = 1;
         }
     }
     $sliderClasses = !$this->_backend && $fadeonload[0] ? 'nextend-slider-fadeload ' : '';
     $sliderClasses .= 'nextend-desktop ';
     $properties = $this->generateJSProperties();
     $fontsize = (array) NextendParse::parse($this->_sliderParams->get('globalfontsize', '12|*|11|*|10'));
     if (!isset($fontsize[1])) {
         $fontsize[1] = 11;
     }
     if (intval($fontsize[1]) <= 0) {
         $fontsize[1] = $fontsize[0];
     }
     if (!isset($fontsize[2])) {
         $fontsize[2] = 10;
     }
     if (intval($fontsize[2]) <= 0) {
         $fontsize[2] = $fontsize[1];
     }
     $size = $this->addCSS();
     $backgroundresize = $this->_sliderParams->get('backgroundresize', 0);
     if ($backgroundresize != '0') {
         $works = nextend_try_to_test_memory_limit();
         if ($works) {
             $canvasWidth = $size[4];
             $canvasHeight = $size[5];
             $resizeremote = intval(NextendSmartSliderSettings::get('resizeremote', 0));
             nextendimport('nextend.cache.image');
             $imageCache = new NextendCacheImage();
             for ($i = 0; $i < count($this->_slides); $i++) {
                 $imageCache->setBackground(substr($this->_slides[$i]['background'], 0, 6));
                 $this->_slides[$i]['bg']['desktop'] = $imageCache->resizeImage($this->_slides[$i]['bg']['desktop'], $canvasWidth, $canvasHeight, $backgroundresize, $resizeremote);
             }
         } else {
             if (NextendSmartSliderSettings::get('debugmessages', 1)) {
                 echo "It seems like the <a href='http://php.net/manual/en/ini.core.php#ini.memory-limit'>memory_limit</a> on the server is too low for the background resize. Please set it minimum 60M and reload the page! You can disable this message in <a href='http://www.nextendweb.com/wiki/smart-slider-documentation/global-settings/'>global configuration</a> 'Frontend debug message' option.";
             }
         }
     }
     $css = NextendCss::getInstance();
     $widgets = new NextendSliderWidgets($this, $id);
     $items = new NextendSliderItems($id, $this, $this->_backend);
     ob_start();
     if (!$this->_backend && $fadeonload[0]) {
         $css->addCssFile('div#' . $id . '.nextend-slider-fadeload{position: absolute; opacity: 0;}', $this->getId());
     }
     include $this->_typePath . 'slider.php';
     $slider = ob_get_clean();
     if (!$this->_backend) {
         NextendPlugin::callPlugin('nextendslideritem', 'onNextendSliderRender', array(&$slider, $id));
         $slider = preg_replace('/data-itemvalues=".*?"/', '', $slider);
         // Remove unnecessary attributes...
         $slider = preg_replace('/data-item=".*?"/', '', $slider);
         // Remove unnecessary attributes...
         $slider = preg_replace('/data-leave=""/', '', $slider);
         // Remove unnecessary attributes...
         $slider = preg_replace('/data-enter=""/', '', $slider);
         // Remove unnecessary attributes...
         $slider = preg_replace('/data-click=""/', '', $slider);
         // Remove unnecessary attributes...
         if ($cache == false) {
             if (nextendIsJoomla()) {
                 if (version_compare(JVERSION, '1.6.0', 'ge')) {
                     $dispatcher = JDispatcher::getInstance();
                     JPluginHelper::importPlugin('content');
                     $article = new stdClass();
                     $article->text = $slider;
                     $_p = array();
                     $dispatcher->trigger('onContentPrepare', array('com_smartslider2', &$article, &$_p, 0));
                     if (!empty($article->text)) {
                         $slider = $article->text;
                     }
                 }
             } elseif (nextendIsWordPress()) {
                 if (!function_exists('ss2_attr_shortcode')) {
                     function ss2_attr_shortcode($matches)
                     {
                         return 'data-' . $matches[1] . '="' . str_replace('"', '&quot;', do_shortcode(str_replace('&quot;', '"', $matches[2]))) . '"';
//.........这里部分代码省略.........
开发者ID:AndyHuntDesign,项目名称:andyhuntdesign,代码行数:101,代码来源:slider.php

示例15: loadList

 function loadList()
 {
     if ($this->_list == null) {
         $this->_group = array();
         $this->_list = array();
         NextendPlugin::callPlugin('nextendslidergenerator', 'onNextendSliderGeneratorList', array(&$this->_group, &$this->_list));
     }
 }
开发者ID:JonathanAJ,项目名称:Seara-da-Ciencia-UFC,代码行数:8,代码来源:generator.php


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