本文整理汇总了PHP中NextendPlugin类的典型用法代码示例。如果您正苦于以下问题:PHP NextendPlugin类的具体用法?PHP NextendPlugin怎么用?PHP NextendPlugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NextendPlugin类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: 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
示例3: 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
示例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: 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
示例7: 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
示例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: 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
示例13: 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
示例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: htmlspecialchars
if (!empty($leave)) {
$attr .= ' data-leave="' . htmlspecialchars($leave) . '"';
}
return '<p class="' . $data->get('fontclass', '') . ' ' . $data->get('class', '') . '" style="' . $fontsize . $fontcolor . htmlspecialchars($data->get('css', '')) . '" ' . $attr . '>' . $data->get('content', '') . '</p>';
}
function _renderAdmin($data, $id, $sliderid, $items)
{
$fontsize = $data->get('fontsize', '');
if (!empty($fontsize)) {
$fontsize = 'font-size:' . $fontsize . '%;';
}
$fontcolors = (array) NextendParse::parse($data->get('fontcolor', ''));
$fontcolor = '';
if (isset($fontcolors[0]) && $fontcolors[0]) {
if (!empty($fontcolors[1])) {
$fontcolor = 'color:#' . $fontcolors[1] . ';';
}
}
return '<p class="' . $data->get('fontclass', '') . ' ' . $data->get('class', '') . '" style="' . $fontsize . $fontcolor . htmlspecialchars($data->get('css', '')) . '">' . $data->get('content', '') . '</p>';
}
function getValues()
{
return array('content' => NextendText::_('Empty_paragraph'), 'fontclass' => 'sliderfont6', 'fontsize' => 'auto', 'fontcolor' => '0|*|000000', 'css' => '', 'class' => '', 'onmouseclick' => '', 'onmouseenter' => '', 'onmouseleave' => '');
}
function getPath()
{
return dirname(__FILE__) . DIRECTORY_SEPARATOR . $this->_identifier . DIRECTORY_SEPARATOR;
}
}
NextendPlugin::addPlugin('nextendslideritem', 'plgNextendSliderItemParagraph');
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:30,代码来源:paragraph.php
示例16: getTemplate
var $_title = 'Vimeo';
function getTemplate()
{
return '<img src="//secure-a.vimeocdn.com/images_v6/logo.png" style="width:100%;" />';
}
function _render($data, $id, $sliderid, $items)
{
$js = NextendJavascript::getInstance();
$js->addLibraryJsFile('jquery', dirname(__FILE__) . '/vimeo/vimeo.js');
return '<div id="' . $id . '" data-vimeocode="' . $data->get('vimeourl') . '" data-autoplay="' . $data->get('autoplay', 0) . '" data-reset="' . $data->get('reset', 0) . '" data-title="' . $data->get('title', 1) . '" data-byline="' . $data->get('byline', 1) . '" data-portrait="' . $data->get('portrait', 1) . '" data-loop="' . $data->get('loop', 0) . '" data-color="' . $data->get('color', '00adef') . '" ></div>
<script type="text/javascript">
njQuery(document).ready(function () {
ssCreateVimeoPlayer("' . $id . '", "' . $sliderid . '");
});
</script>';
}
function _renderAdmin($data, $id, $sliderid, $items)
{
return '<img src="//secure-a.vimeocdn.com/images_v6/logo.png" style="width:100%;" />';
}
function getValues()
{
return array('code' => '75251217', 'autoplay' => 0, 'title' => 1, 'byline' => 1, 'portrait' => 0, 'color' => '00adef', 'loop' => 0);
}
function getPath()
{
return dirname(__FILE__) . DIRECTORY_SEPARATOR . $this->_identifier . DIRECTORY_SEPARATOR;
}
}
NextendPlugin::addPlugin('nextendslideritem', 'plgNextendSliderItemVimeo');
开发者ID:pguilford,项目名称:vcomcc,代码行数:30,代码来源:vimeo.php
示例17: array
<?php
$action = NextendRequest::getCmd('action', 'default');
$settings = array(array('id' => 'default', 'title' => NextendText::_('General_settings')), array('id' => 'layout', 'title' => NextendText::_('Layout_settings')));
if (nextendIsJoomla()) {
$settings[] = array('id' => 'joomla', 'title' => NextendText::_('Joomla_settings'));
}
$settings[] = array('id' => 'cache', 'title' => NextendText::_('Cache'));
NextendPlugin::callPlugin('nextendslidergenerator', 'onNextendGeneratorConfigurationList', array(&$settings));
$settings[] = array('id' => 'font', 'title' => NextendText::_('Global_font'));
?>
<dl class="smartslider-list smartslider-sliders-list">
<?php
$i = 0;
foreach ($settings as $setting) {
$c = $i % 2 ? 'even' : 'odd';
$i++;
$active = $action == $setting['id'];
if ($action == 'font' && NextendRequest::getInt('sliderid')) {
$active = false;
}
?>
<dt class="<?php
echo $c;
?>
smartslider-button-blue-active smartslider-icon-container <?php
echo $active ? 'active' : '';
?>
">
<a class="smartslider-button-link" href="<?php
echo $this->route('controller=settings&view=sliders_settings&action=' . $setting['id']);
开发者ID:JonathanAJ,项目名称:Seara-da-Ciencia-UFC,代码行数:31,代码来源:settings.php
示例18: 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
示例19: 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
示例20: 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
注:本文中的NextendPlugin类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论