本文整理汇总了PHP中smartsliderIsFull函数的典型用法代码示例。如果您正苦于以下问题:PHP smartsliderIsFull函数的具体用法?PHP smartsliderIsFull怎么用?PHP smartsliderIsFull使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smartsliderIsFull函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onNextendSliderGeneratorList
function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
{
if ($showall || smartsliderIsFull()) {
$group[$this->_group] = 'Posts';
if (!isset($list[$this->_group])) {
$list[$this->_group] = array();
}
$list[$this->_group][$this->_group . '_posts'] = array('By filter', $this->getPath() . 'posts' . DIRECTORY_SEPARATOR, true, true, true, 'article');
$custom_posts = get_post_types();
if (isset($custom_posts['post'])) {
unset($custom_posts['post']);
}
if (isset($custom_posts['nav_menu_item'])) {
unset($custom_posts['nav_menu_item']);
}
if (isset($custom_posts['revision'])) {
unset($custom_posts['revision']);
}
if (isset($custom_posts['attachment'])) {
unset($custom_posts['attachment']);
}
foreach ($custom_posts as $cp) {
$list[$this->_group][$this->_group . '_customposts__' . $cp] = array('Custom - ' . ucfirst($cp), $this->getPath() . 'customposts' . DIRECTORY_SEPARATOR, true, true, true, 'article');
if (smartsliderIsFull() && !class_exists('NextendGeneratorPosts_Customposts__' . $cp)) {
require_once $this->getPath() . 'customposts' . DIRECTORY_SEPARATOR . 'generator.php';
eval('class NextendGeneratorPosts_Customposts__' . $cp . ' extends NextendGeneratorPosts_Customposts{}');
}
}
}
}
示例2: onNextendSliderGeneratorList
function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
{
if ($showall || smartsliderIsFull()) {
$group[$this->_group] = 'Posts';
if (!isset($list[$this->_group])) {
$list[$this->_group] = array();
}
$list[$this->_group][$this->_group . '_posts'] = array('By filter', $this->getPath() . 'posts' . DIRECTORY_SEPARATOR, true, true, true, 'article');
}
}
示例3: onNextendSliderGeneratorList
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);
}
}
示例4: onNextendSliderGeneratorList
function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
{
if ($showall || smartsliderIsFull()) {
$group[self::$_group] = 'YouTube';
if (!isset($list[self::$_group])) {
$list[self::$_group] = array();
}
$configured = is_string(NextendSmartSliderStorage::get(self::$_group));
$list[self::$_group][self::$_group . '_bysearch'] = array('By search', $this->getPath() . 'bysearch' . DIRECTORY_SEPARATOR, $configured, true, true);
$list[self::$_group][self::$_group . '_byplaylist'] = array('By playlist', $this->getPath() . 'byplaylist' . DIRECTORY_SEPARATOR, $configured, true, true);
}
}
示例5: onNextendSliderGeneratorList
function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
{
if ($showall || smartsliderIsFull()) {
$installed = class_exists('nggGallery', false) || class_exists('C_Component_Registry', false);
if ($showall || $installed) {
$group[$this->_group] = 'Nextgen';
if (!isset($list[$this->_group])) {
$list[$this->_group] = array();
}
$list[$this->_group][$this->_group . '_gallery'] = array('Nextgen Gallery', $this->getPath() . 'gallery' . DIRECTORY_SEPARATOR, true, true, $installed ? true : 'http://wordpress.org/plugins/nextgen-gallery/', 'image');
}
}
}
示例6: onNextendSliderGeneratorList
function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
{
if ($showall || smartsliderIsFull()) {
$group[self::$_group] = 'Instagram';
if (!isset($list[self::$_group])) {
$list[self::$_group] = array();
}
$configured = is_string(NextendSmartSliderStorage::get(self::$_group));
$list[self::$_group][self::$_group . '_myfeed'] = array(NextendText::_('My_feed'), $this->getPath() . 'myfeed' . DIRECTORY_SEPARATOR, $configured, true, true);
$list[self::$_group][self::$_group . '_tagsearch'] = array(NextendText::_('Search_by_tag'), $this->getPath() . 'tagsearch' . DIRECTORY_SEPARATOR, $configured, true, true);
$list[self::$_group][self::$_group . '_myphotos'] = array(NextendText::_('My_photos'), $this->getPath() . 'myphotos' . DIRECTORY_SEPARATOR, $configured, true, true);
}
}
示例7: onNextendSliderGeneratorList
function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
{
if ($showall || smartsliderIsFull()) {
$group[$this->_group] = 'Joomla content';
if (!isset($list[$this->_group])) {
$list[$this->_group] = array();
}
$list[$this->_group][$this->_group . '_joomlacontent'] = array(NextendText::_('Contents_by_category'), $this->getPath() . 'joomlacontent' . DIRECTORY_SEPARATOR, true, true, true, 'article');
if ($showall == false) {
$list[$this->_group][$this->_group . '_joomlacategory'] = array(NextendText::_('Subcategories_by_category'), $this->getPath() . 'joomlacategory' . DIRECTORY_SEPARATOR, true, true, true, 'article');
}
}
}
示例8: onNextendSliderGeneratorList
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');
}
}
}
示例9: onNextendSliderGeneratorList
function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
{
if ($showall || smartsliderIsFull()) {
$installed = NextendFilesystem::existsFolder(JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_easyblog');
if ($showall || $installed) {
$group[$this->_group] = 'EasyBlog';
if (!isset($list[$this->_group])) {
$list[$this->_group] = array();
}
$list[$this->_group][$this->_group . '_posts'] = array(NextendText::_('Posts'), $this->getPath() . 'posts' . DIRECTORY_SEPARATOR, true, true, $installed ? true : 'http://extensions.joomla.org/extensions/authoring-a-content/blog/12630', 'article');
}
}
}
示例10: onNextendSliderGeneratorList
function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
{
if ($showall || smartsliderIsFull()) {
$installed = NextendFilesystem::existsFolder(JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_flexicontent');
if ($showall || $installed) {
$group[$this->_group] = 'FLEXIcontent';
if (!isset($list[$this->_group])) {
$list[$this->_group] = array();
}
$list[$this->_group][$this->_group . '_items'] = array(NextendText::_('Items'), $this->getPath() . 'items' . DIRECTORY_SEPARATOR, true, true, $installed ? true : 'http://extensions.joomla.org/extensions/authoring-a-content/content-construction/10667', null);
}
}
}
示例11: generateDynamicThumbs
function generateDynamicThumbs($controller, $path, $group, $type, $title, $configured, $full, $available)
{
?>
<div class="smartslider-dynamic-thumb">
<div><?php
echo $title;
?>
</div>
<img src="<?php
echo NextendUri::pathToUri($path);
?>
" /><br />
<?php
if ($full && !smartsliderIsFull()) {
?>
<a class="button small g" href="http://www.nextendweb.com/smart-slider/" target="_blank">Get full</a>
<?php
} elseif (!$configured) {
?>
<a class="button small b" href="<?php
echo $controller->route('controller=settings&view=sliders_settings&action=' . $group);
?>
" target="_blank">Configure</a>
<?php
} elseif ($available !== true) {
?>
<a class="button small" href="<?php
echo $available;
?>
" target="_blank">Check extension</a>
<?php
} else {
?>
<a class="button small b" href="<?php
echo $controller->route('controller=sliders&view=sliders_slider&action=createdynamic&step=2&group=' . $group . '&type=' . $type);
?>
">Start</a>
<?php
}
?>
</div>
<?php
}
示例12: onNextendSliderGeneratorList
function onNextendSliderGeneratorList(&$group, &$list, $showall = false)
{
if ($showall || smartsliderIsFull()) {
$installed = NextendFilesystem::existsFolder(JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_zoo');
if ($installed) {
$group[$this->_group] = 'ZOO';
if (!isset($list[$this->_group])) {
$list[$this->_group] = array();
}
require_once JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_zoo' . DIRECTORY_SEPARATOR . 'config.php';
$zoo = App::getInstance('zoo');
$apps = $zoo->table->application->all(array('order' => 'name'));
require_once $this->getPath() . 'items' . DIRECTORY_SEPARATOR . 'generator.php';
foreach ($apps as $app) {
foreach ($app->getTypes() as $type) {
//Make them class name safe
$appid = preg_replace('/[^a-zA-Z0-9_\\x7f-\\xff]*/', '', $app->id);
$identifier = preg_replace('/[^a-zA-Z0-9_\\x7f-\\xff]*/', '', $type->identifier);
$list[$this->_group][$this->_group . '_items__' . $appid . '___' . $identifier] = array(ucfirst($app->name) . ' (' . ucfirst($type->identifier) . ')', $this->getPath() . 'items' . DIRECTORY_SEPARATOR, true, true, $installed ? true : 'http://extensions.joomla.org/extensions/authoring-a-content/content-construction/12479', null);
if (!class_exists('NextendGeneratorZoo_items__' . $appid . '___' . $identifier)) {
eval('class NextendGeneratorZoo_items__' . $appid . '___' . $identifier . ' extends NextendGeneratorZoo_Items{}');
}
}
}
} else {
if ($showall) {
$group[$this->_group] = 'ZOO';
if (!isset($list[$this->_group])) {
$list[$this->_group] = array();
}
$list[$this->_group][$this->_group . '_items'] = array('Zoo', $this->getPath() . 'items' . DIRECTORY_SEPARATOR, true, true, 'http://extensions.joomla.org/extensions/authoring-a-content/content-construction/12479', null);
}
}
$app = JFactory::getApplication();
if ($app->isAdmin() && ((NextendRequest::getVar('action') == 'createdynamic' || NextendRequest::getVar('action') == 'generatorsettings') && NextendRequest::getVar('group') == 'zoo' && NextendRequest::getVar('type'))) {
$class = 'NextendGenerator' . NextendRequest::getVar('type');
$data = new NextendData();
$data->set('source', NextendRequest::getVar('type'));
new $class($data);
}
}
}
示例13:
global $smartslidercontroller;
$problems = $smartslidercontroller->problems();
if ($problems) {
?>
<div class="nextend-possibleproblems"><?php
echo $problems;
?>
</div>
<?php
}
?>
</a>
</div>
<?php
if (!smartsliderIsFull()) {
?>
<div class="smartslider-button smartslider-getfull">
<a class="smartslider-button-link" href="<?php
echo $this->route('controller=sliders&view=sliders_full&action=full');
?>
">
<div></div>
<?php
echo NextendText::_('Get full');
?>
</a>
</div>
<?php
}
?>
示例14: generateImportThumbs
function generateImportThumbs($controller, $path, $filename, $imagesToUrl, $full = false)
{
?>
<div class="smartslider-import-thumb">
<img src="<?php
echo NextendUri::pathToUri($path);
?>
" /><br />
<?php
if (!$full || smartsliderIsFull()) {
?>
<a class="button small b" href="<?php
echo $controller->route('controller=sliders&view=sliders_slider&action=importlocal&full=' . ($full ? 1 : 0) . '&slider=' . substr($filename, 0, -4));
?>
">Import</a>
<?php
} else {
?>
<a class="button small g" href="http://www.nextendweb.com/smart-slider/" target="_blank">Get full</a>
<?php
}
?>
<?php
if (isset($imagesToUrl[$filename])) {
?>
<a class="button small" href="<?php
echo $imagesToUrl[$filename];
?>
" target="_blank">Preview</a>
<?php
}
?>
</div>
<?php
}