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


PHP NextendPlugin::addPlugin方法代码示例

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


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

示例1: RGBA

            $css->addCssFile('
                #' . $id . ' .nextend-bullet-container .nextend-bullet-numbers.nextend-bullet{                
                  background:' . $rgbacss . ';
                }
                #' . $id . ' .nextend-bullet-container .nextend-bullet-numbers.nextend-bullet.active,
                #' . $id . ' .nextend-bullet-container .nextend-bullet-numbers.nextend-bullet:HOVER{
                  background:' . $rgbacsshover . ';
                }
                #' . $id . ' .nextend-bullet-container.nextend-bullet.nextend-bullet-numbers.bullet-bar-simple-rounded,              
                #' . $id . ' .nextend-bullet-container.nextend-bullet.nextend-bullet-numbers.bullet-bar-elegant-rounded,
                #' . $id . ' .nextend-bullet-container.nextend-bullet.nextend-bullet-numbers.bullet-bar-simple,              
                #' . $id . ' .nextend-bullet-container.nextend-bullet.nextend-bullet-numbers.bullet-bar-elegant{              
                  background:' . $rgbacssborderbar . ';
                }
                #' . $id . ' .nextend-bullet-numbers-thumbnail .qtip-content{
                  width:' . $thumbnailsize[0] . 'px;                
                  height:' . $thumbnailsize[1] . 'px;
                  padding: 4px;
                }         
                #' . $id . ' .nextend-bullet-numbers-thumbnail .qtip-content img{
                  box-shadow: 0 0px 0px 1px RGBA(255,255,255,.2);
                }
                #' . $id . ' .nextend-bullet-numbers-thumbnail{
                  background: ' . $rgbacssthumbnail . ';
                }', $id);
        }
        return $html;
    }
}
NextendPlugin::addPlugin('nextendsliderwidgetbullet', 'plgNextendSliderWidgetBulletNumbers');
开发者ID:pguilford,项目名称:vcomcc,代码行数:30,代码来源:numbers.php

示例2: nextendimport

<?php

nextendimport('nextend.plugin.plugin');
class plgNextendMenuWordpress
{
    var $_name = 'wordpress';
    function onNextendMenuList(&$list)
    {
        $list[$this->_name] = $this->getPath();
    }
    function getPath()
    {
        return dirname(__FILE__) . DIRECTORY_SEPARATOR . 'wordpress' . DIRECTORY_SEPARATOR;
    }
}
NextendPlugin::addPlugin('nextendmenu', 'plgNextendMenuWordpress');
开发者ID:yarylo,项目名称:cerkva.pp.ua,代码行数:16,代码来源:wordpress.php

示例3: onNextendGeneratorConfigurationList

    function onNextendGeneratorConfigurationList(&$list)
    {
        $list[] = array('id' => self::$_group, 'title' => NextendText::_('Flickr generator'));
    }
    function onNextendGeneratorConfiguration(&$group, &$path)
    {
        if ($group == self::$_group) {
            $path = $this->getPath();
        }
    }
}
/**
 * @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;
}
NextendPlugin::addPlugin('nextendslidergenerator', 'plgNextendSliderGeneratorFlickr');
开发者ID:AndyHuntDesign,项目名称:andyhuntdesign,代码行数:30,代码来源:flickr.php

示例4: nextendimportsmartslider2

<?php

nextendimportsmartslider2('nextend.smartslider.settings');
nextendimportsmartslider2('nextend.smartslider.check');
class plgNextendSliderGeneratorFacebook extends NextendPluginBase
{
    public static $_group = 'facebook';
    function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
    {
        if ($showall || smartsliderIsFull()) {
            $group[self::$_group] = 'Facebook';
            if (!isset($list[self::$_group])) {
                $list[self::$_group] = array();
            }
            $configured = is_string(NextendSmartSliderStorage::get(self::$_group));
            $list[self::$_group][self::$_group . '_postsbypage'] = array(NextendText::_('Posts_by_page'), $this->getPath() . 'postsbypage' . DIRECTORY_SEPARATOR, $configured, true, true);
            $list[self::$_group][self::$_group . '_albumbypage'] = array(NextendText::_('Photos_by_page_album'), $this->getPath() . 'albumbypage' . DIRECTORY_SEPARATOR, $configured, true, true);
            $list[self::$_group][self::$_group . '_albumbyuser'] = array(NextendText::_('Photos_by_user_album'), $this->getPath() . 'albumbyuser' . DIRECTORY_SEPARATOR, $configured, true, true);
        }
    }
    function getPath()
    {
        return dirname(__FILE__) . DIRECTORY_SEPARATOR;
    }
}
NextendPlugin::addPlugin('nextendslidergenerator', 'plgNextendSliderGeneratorFacebook');
开发者ID:JonathanAJ,项目名称:Seara-da-Ciencia-UFC,代码行数:26,代码来源:facebook.php

示例5: nextendimportsmartslider2

<?php

nextendimportsmartslider2('nextend.smartslider.settings');
nextendimportsmartslider2('nextend.smartslider.check');
class plgNextendSliderGeneratorTwitter extends NextendPluginBase
{
    public static $_group = 'twitter';
    function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
    {
        if ($showall || smartsliderIsFull()) {
            $group[self::$_group] = 'Twitter';
            if (!isset($list[self::$_group])) {
                $list[self::$_group] = array();
            }
            $configured = is_string(NextendSmartSliderStorage::get(self::$_group));
            $list[self::$_group][self::$_group . '_timeline'] = array(NextendText::_('Timeline'), $this->getPath() . 'twittertimeline' . DIRECTORY_SEPARATOR, $configured, true, true);
        }
    }
    function getPath()
    {
        return dirname(__FILE__) . DIRECTORY_SEPARATOR;
    }
}
NextendPlugin::addPlugin('nextendslidergenerator', 'plgNextendSliderGeneratorTwitter');
开发者ID:sangikumar,项目名称:IP,代码行数:24,代码来源:twitter.php

示例6: getPath

        if ($group == self::$_group) {
            $path = $this->getPath();
        }
    }
    function getPath()
    {
        return dirname(__FILE__) . DIRECTORY_SEPARATOR;
    }
}
/**
 * @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);
}
NextendPlugin::addPlugin('nextendslidergenerator', 'plgNextendSliderGeneratorYoutube');
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:30,代码来源:youtube.php

示例7: getPath

    {
        if ($group == self::$_group) {
            $path = $this->getPath();
        }
    }
    function getPath()
    {
        return dirname(__FILE__) . DIRECTORY_SEPARATOR;
    }
}
/**
 * @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;
}
NextendPlugin::addPlugin('nextendslidergenerator', 'plgNextendSliderGeneratorInstagram');
开发者ID:AndyHuntDesign,项目名称:andyhuntdesign,代码行数:30,代码来源:instagram.php

示例8: Copyright

/*
# author Roland Soos
# copyright Copyright (C) Nextendweb.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-3.0.txt GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');
nextendimportsmartslider2('nextend.smartslider.check');
class plgNextendSliderGeneratorJoomShopping extends NextendPluginBase
{
    var $_group = 'joomshopping';
    function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
    {
        if ($showall || smartsliderIsFull()) {
            $installed = NextendFilesystem::existsFile(JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_jshopping' . DIRECTORY_SEPARATOR . 'jshopping.php');
            if ($showall || $installed) {
                $group[$this->_group] = 'JoomShopping';
                if (!isset($list[$this->_group])) {
                    $list[$this->_group] = array();
                }
                $list[$this->_group][$this->_group . '_products'] = array(NextendText::_('Products'), $this->getPath() . 'products' . DIRECTORY_SEPARATOR, true, true, $installed ? true : 'http://extensions.joomla.org/extensions/e-commerce/shopping-cart/5378', 'product');
            }
        }
    }
    function getPath()
    {
        return dirname(__FILE__) . DIRECTORY_SEPARATOR;
    }
}
NextendPlugin::addPlugin('nextendslidergenerator', 'plgNextendSliderGeneratorJoomShopping');
开发者ID:pguilford,项目名称:vcomcc,代码行数:29,代码来源:joomshopping.php

示例9: array

            $cssfile = NextendFilesystem::translateToMediaPath(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'gradient' . DIRECTORY_SEPARATOR . 'style.less');
            $css->addCssFile(array($cssfile, $cssfile, array('id' => '~"#' . $id . '"')), $id);
            list($style, $data) = self::getPosition($params->get('bargradientposition', ''));
            $width = NextendParse::parse($params->get('bargradientwidth', '100%'));
            if (is_numeric($width) || $width == 'auto' || substr($width, -1) == '%') {
                $style .= 'width:' . $width . ';';
            } else {
                $data .= 'data-sswidth="' . $width . '" ';
            }
            $height = $params->get('bargradientheight', '30');
            $style .= 'height: ' . $height . 'px;';
            $style .= 'font-size: ' . intval($slider->_sliderParams->get('globalfontsize', '12')) . 'px;';
            $info = pathinfo($bargradient);
            $class = 'nextend-bar nextend-bar-g nextend-bar-g-' . basename($bargradient, '.' . $info['extension']);
            $html .= '<div class="' . $displayclass . $class . '" style="' . $style . '" ' . $data . '>';
            $html .= '<div class="inner" style="height:' . ($height - 2) . 'px;">';
            for ($i = 0; $i < count($slider->_slides); $i++) {
                $html .= '<div class="nextend-bar-slide ' . ($slider->_slides[$i]['first'] ? ' active' : '') . '">';
                $html .= '<h6 class="' . $params->get('bargradienttitlefont', '') . '" style="line-height: ' . $height . 'px;">' . $slider->_slides[$i]['title'] . '</h6>';
                if ($slider->_slides[$i]['description']) {
                    $html .= '<p class="' . $params->get('bargradientdescriptionfont', '') . '" style="line-height: ' . $height . 'px;"> - ' . $slider->_slides[$i]['description'] . '</p>';
                }
                $html .= '</div>';
            }
            $html .= '</div></div>';
        }
        return $html;
    }
}
NextendPlugin::addPlugin('nextendsliderwidgetbar', 'plgNextendSliderWidgetBarGradient');
开发者ID:AndyHuntDesign,项目名称:andyhuntdesign,代码行数:30,代码来源:gradient.php

示例10: NextendImage

            $html .= '<div class="nextend-thumbnail-strip-hider"><div class="nextend-thumbnail-strip">';
            for ($i = 0; $i < count($slider->_slides); $i++) {
                if (!$slider->_slides[$i]['thumbnail'] && $slider->_slides[$i]['bg']['desktop']) {
                    $im = new NextendImage();
                    $slider->_slides[$i]['thumbnail'] = $im->resizeImage($slider->_slides[$i]['bg']['desktop'], $thumbnailsize[0], $thumbnailsize[1]);
                }
                $html .= '<div onclick="njQuery(\'#' . $id . '\').smartslider(\'goto\',' . $i . ',false);" class="' . $class . ($slider->_slides[$i]['first'] ? ' active' : '') . '" style="' . $style . 'background-image: url(\'' . $slider->_slides[$i]['thumbnail'] . '\')"></div>';
            }
            $html .= '</div></div>';
            $html .= '<div class="nextend-arrow-right" style="height:' . $thumbnailsize[1] . 'px"></div>

            </div>
            <style>
            .nextend-thumbnail-container.nextend-thumbnail-horizontal-horizontal1 .nextend-thumbnail:HOVER,            
            .nextend-thumbnail-container.nextend-thumbnail-horizontal-horizontal1 .nextend-thumbnail.active{            
                box-shadow: inset 0 0 0 6px ' . $rgbacssthumbnailactivebackground . ';
            }
            .nextend-thumbnail-container.nextend-thumbnail-horizontal-horizontal-dark .nextend-thumbnail:HOVER,            
            .nextend-thumbnail-container.nextend-thumbnail-horizontal-horizontal-dark .nextend-thumbnail.active{
                box-shadow: 0 0 3px 1px RGBA(0,0,0,0.6), 0 0 0 6px ' . $rgbacssthumbnailactivebackground . ' inset;
            }
            </style>
            ';
            $html .= '</div>';
            $html .= "\r\n              <script type='text/javascript'>\r\n                  njQuery(document).ready(function () {\r\n                      window['" . $id . "-thumbnail'] = new smartSliderHorizontal({\r\n                          id: '" . $id . "',\r\n                          node: window.njQuery('#" . $id . "-thumbnail'),\r\n                          thumbnailperpage: '" . $thumbnailperpage . "',\r\n                          thumbnailanimation: '" . $params->get('thumbnailanimation', 700) . "'\r\n                      });\r\n                  });\r\n              </script>\r\n            ";
        }
        return $html;
    }
}
NextendPlugin::addPlugin('nextendsliderwidgetthumbnail', 'plgNextendSliderWidgetThumbnailHorizontal');
开发者ID:pguilford,项目名称:vcomcc,代码行数:30,代码来源:horizontal.php

示例11: Copyright

<?php

/*
# author Roland Soos
# copyright Copyright (C) Nextendweb.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-3.0.txt GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');
class plgNextendSliderWidgetIndicator extends NextendPluginBase
{
    var $_group = 'indicator';
    function onNextendSliderWidgetList(&$list)
    {
        $list[$this->_group] = array(NextendText::_('Indicator'), $this->getPath(), 4);
    }
    function getPath()
    {
        return dirname(__FILE__) . DIRECTORY_SEPARATOR . 'indicator' . DIRECTORY_SEPARATOR;
    }
}
NextendPlugin::addPlugin('nextendsliderwidget', 'plgNextendSliderWidgetIndicator');
开发者ID:pguilford,项目名称:vcomcc,代码行数:21,代码来源:indicator.php

示例12: defined

# @license - http://www.gnu.org/licenses/gpl-3.0.txt GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');
nextendimportsmartslider2('nextend.smartslider.plugin.slideritem');
class plgNextendSliderItemJoomlaModule extends plgNextendSliderItemAbstract
{
    var $_identifier = 'joomlamodule';
    var $_title = 'Joomla_module';
    function getTemplate()
    {
        return '<div>{{positiontype} {positionvalue}}</div>';
    }
    function _render($data, $id, $sliderid)
    {
        return '<div>{' . $data->get('positiontype', '') . ' ' . $data->get('positionvalue', '') . '}</div>';
    }
    function _renderAdmin($data, $id, $sliderid)
    {
        return $this->_render($data, $id, $sliderid);
    }
    function getValues()
    {
        return array('positiontype' => 'loadposition', 'positionvalue' => '');
    }
    function getPath()
    {
        return dirname(__FILE__) . DIRECTORY_SEPARATOR . $this->_identifier . DIRECTORY_SEPARATOR;
    }
}
NextendPlugin::addPlugin('nextendslideritem', 'plgNextendSliderItemJoomlaModule');
开发者ID:pguilford,项目名称:vcomcc,代码行数:30,代码来源:joomlamodule.php

示例13: list

            } else {
                $data .= 'data-sswidth="' . $thumbnailgalleryoutersize[0] . '" ';
            }
            if (is_numeric($thumbnailgalleryoutersize[1]) || $thumbnailgalleryoutersize[1] == 'auto' || substr($thumbnailgalleryoutersize[1], -1) == '%') {
                $positionstyle .= 'height:' . $thumbnailgalleryoutersize[1] . ';';
            } else {
                $data .= 'data-ssheight="' . $thumbnailgalleryoutersize[1] . '" ';
            }
            list($colorhexthumbnailgallerybackground, $rgbacssthumbnailgallerybackground) = NextendColor::colorToCss($params->get('thumbnailgallerybackground', 'eeeeeefff'));
            $positionstyle .= 'background: #' . $colorhexthumbnailgallerybackground . '; background: ' . $rgbacssthumbnailgallerybackground . ';';
            $br = NextendParse::parse($params->get('thumbnailgalleryborderradius', '0|*|0|*|0|*|0'));
            $positionstyle .= 'border-radius: ' . $br[0] . 'px ' . $br[1] . 'px ' . $br[2] . 'px ' . $br[3] . 'px; overflow: auto;';
            $html .= '<div id="' . $id . '-thumbnail" class="' . $displayclass . '" style="opacity: 0.9999; ' . $positionstyle . '" ' . $data . '>';
            $p = NextendParse::parse($params->get('thumbnailgallerypadding', '5|*|5|*|5|*|5'));
            $html .= '<div class="nextend-thumbnail-container ' . $class . '" style="padding: ' . $p[0] . 'px ' . $p[1] . 'px ' . $p[2] . 'px ' . $p[3] . 'px;">';
            $m = NextendParse::parse($params->get('thumbnailgallerymargin', '0|*|1|*|1|*|0'));
            for ($i = 0; $i < count($slider->_slides); $i++) {
                if (!$slider->_slides[$i]['thumbnail'] && $slider->_slides[$i]['bg']) {
                    $im = new NextendImage();
                    $slider->_slides[$i]['thumbnail'] = $im->resizeImage($slider->_slides[$i]['bg'], $thumbnailsize[0], $thumbnailsize[1]);
                }
                $html .= '<div onclick="njQuery(\'#' . $id . '\').smartslider(\'goto\',' . $i . ',false);" class="' . $class . ($slider->_slides[$i]['first'] ? ' active' : '') . '" style="' . $style . 'background-image: url(\'' . $slider->_slides[$i]['thumbnail'] . '\'); margin: ' . $m[0] . 'px ' . $m[1] . 'px ' . $m[2] . 'px ' . $m[3] . 'px;"></div>';
            }
            $html .= '</div></div>';
            $html .= "\r\n              <script type='text/javascript'>\r\n                  njQuery(document).ready(function () {\r\n                      window['" . $id . "-thumbnail'] = new smartSliderGallery({\r\n                          id: '" . $id . "',\r\n                          node: window.njQuery('#" . $id . "-thumbnail')\r\n                      });\r\n                  });\r\n              </script>\r\n            ";
        }
        return $html;
    }
}
NextendPlugin::addPlugin('nextendsliderwidgetthumbnail', 'plgNextendSliderWidgetThumbnailGallery');
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:30,代码来源:gallery.php

示例14: scale

div#' . $id . ' .nextend-smartslider-caption:HOVER .img-scale-top{
	-moz-transform: scale(1.4);
	-o-transform: scale(1.4);
	-webkit-transform: scale(1.4);
	transform: scale(1.4);
}            

div#' . $id . ' .nextend-smartslider-caption:HOVER .caption.nextend-smartslider-caption-scale-top{
	top: 0;
}';
            case 'fade':
                return 'div#' . $id . ' .nextend-smartslider-caption .caption.nextend-smartslider-caption-fade{
                  opacity: 0;
                }
                
                div#' . $id . ' .nextend-smartslider-caption:HOVER .caption.nextend-smartslider-caption-fade{
                  opacity: 1;
                }';
        }
    }
    function getValues()
    {
        return array('image' => NextendSmartSliderSettings::get('placeholder'), 'alt' => 'Image not available', 'link' => '#|*|_self', 'size' => '130|*|130', 'content' => 'Title', 'description' => 'Here comes the description text.', 'captionclass' => 'simple-bottom', 'fontclasstitle' => 'sliderfont1', 'fontclass' => 'sliderfont11', 'color' => '00000080', 'customcaptionclass' => '', 'onmouseclick' => '', 'onmouseenter' => '', 'onmouseleave' => '');
    }
    function getPath()
    {
        return dirname(__FILE__) . DIRECTORY_SEPARATOR . $this->_identifier . DIRECTORY_SEPARATOR;
    }
}
NextendPlugin::addPlugin('nextendslideritem', 'plgNextendSliderItemCaption');
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:30,代码来源:caption.php

示例15: render

    }
    static function render($slider, $id, $params)
    {
        $html = '';
        $indicatorstripe = $params->get('indicatorstripe', false);
        if ($indicatorstripe && $indicatorstripe != -1) {
            $displayclass = self::getDisplayClass($params->get('widgetindicatordisplay', '0|*|always|*|0|*|0'), true) . 'nextend-indicator ';
            $css = NextendCss::getInstance();
            $css->addCssFile(NextendFilesystem::translateToMediaPath(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'stripe' . DIRECTORY_SEPARATOR . 'style.css'));
            list($style, $data) = self::getPosition($params->get('indicatorposition', ''));
            $style .= 'z-index:10;';
            $width = NextendParse::parse($params->get('indicatorwidth', '100%'));
            if (is_numeric($width) || $width == 'auto' || substr($width, -1) == '%') {
                $style .= 'width:' . $width . ';';
            } else {
                $data .= 'data-sswidth="' . $width . '" ';
            }
            $size = intval($params->get('indicatorsize', 50));
            list($colorhex, $rgbacss) = NextendColor::colorToCss($params->get('indicatorstripecolor', '000000cc'));
            list($colorhexbg, $rgbacssbg) = NextendColor::colorToCss($params->get('backgroundstripecolor', '7670c7ff'));
            $height = $params->get('indicatorstripeheight', '6');
            $info = pathinfo($indicatorstripe);
            $class = 'nextend-indicator nextend-indicator-stripe nextend-indicator-stripe-' . basename($indicatorstripe, '.' . $info['extension']);
            $html = '<div class="' . $displayclass . 'nextend-indicator-stripe-container" style="' . $style . 'background-color:' . $colorhexbg . '; background-color:' . $rgbacssbg . '; height: ' . $height . 'px;" ' . $data . '><div class="' . $class . '" style="width: 0%; background-color:' . $colorhex . '; background-color:' . $rgbacss . '; height: ' . $height . 'px;"></div></div>';
            $html .= "\r\n              <script type='text/javascript'>\r\n                  njQuery(document).ready(function () {\r\n                      var stripe = window.njQuery('#" . $id . " .nextend-indicator-stripe');\r\n                       window['" . $id . "-indicator'] = {\r\n                          hide: function(){\r\n                              stripe.hide();\r\n                          },\r\n                          show: function(){\r\n                              stripe.show();\r\n                          },\r\n                          refresh: function(val){\r\n                              stripe.css('width', val+'%');\r\n                          }\r\n                       };\r\n                  });\r\n              </script>\r\n            ";
        }
        return $html;
    }
}
NextendPlugin::addPlugin('nextendsliderwidgetindicator', 'plgNextendSliderWidgetIndicatorStripe');
开发者ID:pguilford,项目名称:vcomcc,代码行数:30,代码来源:stripe.php


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