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


PHP JSNISFactory::importFile方法代码示例

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


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

示例1: defined

 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
if (!defined('DS')) {
    define('DS', DIRECTORY_SEPARATOR);
}
JHtml::addIncludePath(JPATH_ROOT . DS . 'administrator' . 'components' . 'com_imageshow' . DS . '/elements/html');
$objJSNShowcaseTheme = JSNISFactory::getObj('classes.jsn_is_showcasetheme');
$objJSNShowcaseTheme->importTableByThemeName($this->_showcaseThemeName);
$objJSNShowcaseTheme->importModelByThemeName($this->_showcaseThemeName);
$modelShowcaseTheme = JModelLegacy::getInstance($this->_showcaseThemeName);
$items = $modelShowcaseTheme->getTable($themeID);
JSNISFactory::importFile('classes.jsn_is_htmlselect');
/**
 * /////////////////////////////////////////////////////////Image Panel Begin////////////////////////////////////////////////////////////////////////////
 */
$imgTransitionEffect = array('0' => array('value' => 'cube', 'text' => JText::_('THEME_SLIDER_CUBE')), '1' => array('value' => 'cubeRandom', 'text' => JText::_('THEME_SLIDER_CUBE_RANDOM')), '2' => array('value' => 'block', 'text' => JText::_('THEME_SLIDER_BLOCK')), '3' => array('value' => 'cubeStop', 'text' => JText::_('THEME_SLIDER_CUBE_STOP')), '4' => array('value' => 'cubeHide', 'text' => JText::_('THEME_SLIDER_CUBE_HIDE')), '5' => array('value' => 'cubeSize', 'text' => JText::_('THEME_SLIDER_CUBE_SIZE')), '6' => array('value' => 'horizontal', 'text' => JText::_('THEME_SLIDER_HORIZONTAL')), '7' => array('value' => 'showBars', 'text' => JText::_('THEME_SLIDER_SHOWBARS')), '8' => array('value' => 'showBarsRandom', 'text' => JText::_('THEME_SLIDER_SHOWBARS_RANDOM')), '9' => array('value' => 'tube', 'text' => JText::_('THEME_SLIDER_TUBE')), '10' => array('value' => 'fade', 'text' => JText::_('THEME_SLIDER_FADE')), '11' => array('value' => 'fadeFour', 'text' => JText::_('THEME_SLIDER_FADE_FOUR')), '12' => array('value' => 'paralell', 'text' => JText::_('THEME_SLIDER_PARALELL')), '13' => array('value' => 'blind', 'text' => JText::_('THEME_SLIDER_BLIND')), '14' => array('value' => 'blindHeight', 'text' => JText::_('THEME_SLIDER_BLIND_HEIGHT')), '15' => array('value' => 'directionTop', 'text' => JText::_('THEME_SLIDER_DIRECTION_TOP')), '16' => array('value' => 'directionBottom', 'text' => JText::_('THEME_SLIDER_DIRECTION_BOTTOM')), '17' => array('value' => 'directionRight', 'text' => JText::_('THEME_SLIDER_DIRECTION_RIGHT')), '18' => array('value' => 'directionLeft', 'text' => JText::_('THEME_SLIDER_DIRECTION_LEFT')), '19' => array('value' => 'cubeStopRandom', 'text' => JText::_('THEME_SLIDER_CUBE_STOP_RANDOM')), '20' => array('value' => 'cubeSpread', 'text' => JText::_('THEME_SLIDER_CUBE_SPREAD')), '21' => array('value' => 'cubeJelly', 'text' => JText::_('THEME_SLIDER_CUBE_JELLY')), '22' => array('value' => 'glassCube', 'text' => JText::_('THEME_SLIDER_GLASS_CUBE')), '23' => array('value' => 'glassBlock', 'text' => JText::_('THEME_SLIDER_GLASS_BLOCK')), '24' => array('value' => 'circles', 'text' => JText::_('THEME_SLIDER_CIRCLES')), '25' => array('value' => 'circlesInside', 'text' => JText::_('THEME_SLIDER_CIRCLES_INSIDE')), '26' => array('value' => 'circlesRotate', 'text' => JText::_('THEME_SLIDER_CIRCLES_ROTATE')), '27' => array('value' => 'cubeShow', 'text' => JText::_('THEME_SLIDER_CUBE_SHOW')), '28' => array('value' => 'upBars', 'text' => JText::_('THEME_SLIDER_UP_BARS')), '29' => array('value' => 'downBars', 'text' => JText::_('THEME_SLIDER_DOWN_BARS')), '30' => array('value' => 'random', 'text' => JText::_('THEME_SLIDER_RANDOM')), '31' => array('value' => 'randomSmart', 'text' => JText::_('THEME_SLIDER_RANDOM_SMART')));
$lists['imgTransitionEffect'] = JHTML::_('select.genericList', $imgTransitionEffect, 'img_transition_effect', 'class="inputbox imagePanel"', 'value', 'text', $items->img_transition_effect);
$lists['imageTransparentBackground'] = JHTML::_('jsnselect.booleanlist', 'img_transparent_background', 'class="inputbox imagePanel"', $items->img_transparent_background, 'JYES', 'JNO', false, 'yes', 'no');
$toolbarNavigationArrowsPresentation = array('0' => array('value' => 'hide', 'text' => JText::_('THEME_SLIDER_HIDE')), '1' => array('value' => 'show-always', 'text' => JText::_('THEME_SLIDER_SHOW_ALWAYS')), '2' => array('value' => 'show-on-mouse-over', 'text' => JText::_('THEME_SLIDER_SHOW_ON_MOUSE_OVER')));
$lists['toolbarNavigationArrowsPresentation'] = JHTML::_('select.genericList', $toolbarNavigationArrowsPresentation, 'toolbar_navigation_arrows_presentation', 'class="inputbox toolbarPanel"', 'value', 'text', $items->toolbar_navigation_arrows_presentation);
$thumbnailPresentationMode = array('1' => array('value' => 'dots', 'text' => JText::_('THEME_SLIDER_SHOW_AS_DOTS')), '0' => array('value' => 'numbers', 'text' => JText::_('THEME_SLIDER_SHOW_AS_NUMBERS')));
$lists['thumbnailPresentationMode'] = JHTML::_('select.genericList', $thumbnailPresentationMode, 'thumbnail_presentation_mode', 'class="inputbox thumbnailPanel"', 'value', 'text', $items->thumbnail_presentation_mode);
$thumbnailPanelPosition = array('0' => array('value' => 'left', 'text' => JText::_('THEME_SLIDER_LEFT')), '1' => array('value' => 'center', 'text' => JText::_('THEME_SLIDER_CENTER')), '2' => array('value' => 'right', 'text' => JText::_('THEME_SLIDER_RIGHT')));
$lists['thumbnailPanelPosition'] = JHTML::_('select.genericList', $thumbnailPanelPosition, 'thumnail_panel_position', 'class="inputbox thumbnailPanel"', 'value', 'text', $items->thumnail_panel_position);
$thumbnailPanelPresentation = array('0' => array('value' => 'hide', 'text' => JText::_('THEME_SLIDER_HIDE')), '1' => array('value' => 'show', 'text' => JText::_('THEME_SLIDER_SHOW')));
$lists['thumbnailPanelPresentation'] = JHTML::_('select.genericList', $thumbnailPanelPresentation, 'thumbnail_panel_presentation', 'class="inputbox thumbnailPanel"  onChange="jQuery.JSNISThemeSlider.toggleThumbnailOptions(this);"', 'value', 'text', $items->thumbnail_panel_presentation);
$captionShowCaption = array('0' => array('value' => 'hide', 'text' => JText::_('THEME_SLIDER_HIDE')), '1' => array('value' => 'show', 'text' => JText::_('THEME_SLIDER_SHOW')));
开发者ID:jdrzaic,项目名称:joomla-dummy,代码行数:31,代码来源:helper.php

示例2: defined

<?php

/**
 * @author JoomlaShine.com Team
 * @copyright JoomlaShine.com
 * @link joomlashine.com
 * @package JSN ImageShow
 * @version 3.0
 * @license GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html
 */
defined('_JEXEC') or die('Restricted access');
JSNISFactory::importFile('classes.jsn_is_mediamanager');
class JSNISThemeMedia extends JSNISMediaManager
{
    var $_showcaseThemeName = 'themeclassic';
    var $_showcaseThemeType = 'jsnimageshow';
    function &getInstance()
    {
        static $instanceThemeMedia;
        if ($instanceThemeMedia == null) {
            $instanceThemeMedia = new JSNISThemeMedia();
        }
        return $instanceThemeMedia;
    }
    function setMediaBasePath()
    {
        $act = JRequest::getCmd('act', 'custom');
        if ($act == 'custom') {
            $this->setPath(JPATH_ROOT . DS . 'images', JURI::root() . 'images');
        }
        if ($act == 'background') {
开发者ID:sangkasi,项目名称:joomla,代码行数:31,代码来源:jsn_is_thememedia.php


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