• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP JHtmlBootstrap类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: display

 function display($tpl = null)
 {
     $this->Params = JFactory::getApplication()->getParams("com_oziogallery3");
     // Set Meta Description
     if ($description = $this->Params->get('menu-meta_description')) {
         $this->document->setDescription($description);
     }
     // Set Meta Keywords
     if ($keywords = $this->Params->get('menu-meta_keywords')) {
         $this->document->setMetadata('keywords', $keywords);
     }
     // Set robots (index, follow)
     if ($robots = $this->Params->get('robots')) {
         $this->document->setMetadata('robots', $robots);
     }
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/magnific-popup/magnific-popup.css");
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/00fuerte/css/supersized.css");
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/00fuerte/theme/supersized.shutter.css");
     //$this->document->addScript(JUri::base(true) . "/media/jui/js/jquery.min.js");
     //$this->document->addScript(JUri::base(true) . "/media/jui/js/jquery-noconflict.js");
     //JHtml::_('jquery.framework');
     JHtml::_('bootstrap.framework');
     if ($this->Params->get("load_css_bootstrap", 0) == 1) {
         JHtmlBootstrap::loadCSS();
     }
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/magnific-popup/jquery.magnific-popup.min.js");
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/js/supersized.js");
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/js/jquery.easing.min.js");
     // Solo per l'effetto easeOutExpo
     // Kreatif - evento mobile - tablet touch
     $this->document->addScript(JURI::base(true) . "/media/com_oziogallery3/js/jquery.touchwipe.1.1.1.js");
     $prefix = JUri::base(true) . "/index.php?option=com_oziogallery3&view=loader";
     $menu = JFactory::getApplication()->getMenu();
     $itemid = $menu->getActive() or $itemid = $menu->getDefault();
     $this->document->addScript($prefix . "&type=js&filename=shutter" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
     $this->document->addScript($prefix . "&type=js&filename=tinybox" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/00fuerte/js/jquery.ba-bbq.js");
     $this->document->addScript($prefix . "&v=00fuerte&filename=supersized-starter&type=js" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/jquery-pwi.js");
     if ($this->Params->get("show_photowall", 0) == 1) {
         $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/modernizr.custom.js");
         //$this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/toucheffects.js");
         $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/jquery.nanoscroller.min.js");
         $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/jquery.lazyload.min.js");
         $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/00fuerte/css/nanoscroller.css");
     }
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/intense.js");
     // per la compatibilità con Internet Explorer
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/jQuery.XDomainRequest.js");
     $current_uri = JFactory::getURI();
     if ($this->Params->get("info_button", false)) {
         if (empty($GLOBALS["contentmap"]["gapi"])) {
             $GLOBALS["contentmap"]["gapi"] = true;
             $this->document->addScript(($current_uri->isSSL() ? 'https' : 'http') . "://maps.google.com/maps/api/js?sensor=false");
         }
     }
     $this->gallerywidth = $this->Params->get("gallerywidth", array("text" => "100", "select" => "%"));
     $this->play_button_style = $this->Params->get("play_button", "0") ? '' : 'style="display:none;"';
     parent::display($tpl);
 }
开发者ID:rahxam,项目名称:ozio,代码行数:60,代码来源:view.html.php


示例2: notes

 /**
  * Displays a note icon.
  *
  * @param   integer  $count   The number of notes for the user
  * @param   integer  $userId  The user ID
  *
  * @return  string  A link to a modal window with the user notes
  *
  * @since   2.5
  */
 public static function notes($count, $userId)
 {
     if (empty($count)) {
         return '';
     }
     $title = JText::plural('COM_USERS_N_USER_NOTES', $count);
     echo JHtmlBootstrap::renderModal('userModal_' . (int) $userId, array('url' => JRoute::_('index.php?option=com_users&view=notes&tmpl=component&layout=modal&u_id=' . (int) $userId), 'title' => $title, 'width' => '800px', 'height' => '500px'));
     return '<a href="#userModal_' . (int) $userId . '" id="modal-' . (int) $userId . '" data-toggle="modal">' . '<span class="label label-info"><i class="icon-drawer-2"></i>' . $title . '</span></a>';
 }
开发者ID:educakanchay,项目名称:kanchay,代码行数:19,代码来源:users.php


示例3: __construct

 public function __construct($context)
 {
     $this->_jtemplate = $context;
     parent::__construct();
     JHtmlBootstrap::loadCss($includeMaincss = true, $this->_jtemplate->direction);
     JHtmlBootstrap::framework();
     $this->_jparams = $this->_jtemplate->params ? $this->_jtemplate->params : JFactory::getApplication()->getTemplate(true)->params;
     $this->_google = new stdClass();
     $this->setShowcase();
     $this->setBackground();
     $this->_mobile = Avatar::isHandleDevice();
     $this->_responsive = $this->_jparams->get('active_responsive') ? $this->_jparams->get('active_responsive') : false;
     $this->_jquery = $this->_jparams->get('load_jquery') ? $this->_jparams->get('load_jquery') : false;
     $this->_optimize = $this->_jparams->get('optimize');
 }
开发者ID:kenyonjohnston,项目名称:hott_theater,代码行数:15,代码来源:template.php


示例4: display

 function display($tpl = null)
 {
     $application = JFactory::getApplication("site");
     $this->Params = $application->getParams("com_oziogallery3");
     // Set Meta Description
     if ($description = $this->Params->get('menu-meta_description')) {
         $this->document->setDescription($description);
     }
     // Set Meta Keywords
     if ($keywords = $this->Params->get('menu-meta_keywords')) {
         $this->document->setMetadata('keywords', $keywords);
     }
     // Set robots (index, follow)
     if ($robots = $this->Params->get('robots')) {
         $this->document->setMetadata('robots', $robots);
     }
     JHtml::_('bootstrap.framework');
     if ($this->Params->get("load_css_bootstrap", 0) == 1) {
         JHtmlBootstrap::loadCSS();
     }
     //$this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/jquery-pwi.js");
     $prefix = JUri::base(true) . "/index.php?option=com_oziogallery3&amp;view=loader";
     $menu = JFactory::getApplication()->getMenu();
     $itemid = $menu->getActive() or $itemid = $menu->getDefault();
     $this->document->addScript($prefix . "&amp;filename=map&amp;type=js" . "&amp;Itemid=" . $itemid->id . "&amp;id=" . $itemid->id);
     // per la compatibilità con Internet Explorer
     $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/jQuery.XDomainRequest.js");
     $this->document->addStyleSheet(JUri::base(true) . "/components/com_oziogallery3/views/map/css/map.css");
     // Api key parameter for Google map
     $api_key = $this->Params->get('api_key', NULL);
     $api_key = $api_key ? "&amp;key=" . $api_key : "";
     // Language parameter for Google map
     // See Google maps Language coverage at https://spreadsheets.google.com/pub?key=p9pdwsai2hDMsLkXsoM05KQ&gid=1
     // Use JFactory::getLanguage(), because we can't rely on $lang variable
     $language = JFactory::getLanguage()->get("tag", NULL);
     $language = $language ? "&amp;language=" . $language : "";
     $current_uri = JFactory::getURI();
     if (empty($GLOBALS["contentmap"]["gapi"])) {
         $GLOBALS["contentmap"]["gapi"] = true;
         $this->document->addScript(($current_uri->isSSL() ? 'https' : 'http') . "://maps.google.com/maps/api/js?sensor=false" . $language . $api_key);
     }
     if ($this->Params->get("cluster", "1")) {
         $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/markerclusterer_compiled.js");
     }
     $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/oms.min.js");
     parent::display($tpl);
 }
开发者ID:MOYA8564,项目名称:oziogallery2,代码行数:47,代码来源:view.html.php


示例5: display

 function display($tpl = null)
 {
     $application = JFactory::getApplication("site");
     $this->Params = $application->getParams("com_oziogallery3");
     $style = $this->Params->get('list_style');
     // Set Meta Description
     if ($description = $this->Params->get('menu-meta_description')) {
         $this->document->setDescription($description);
     }
     // Set Meta Keywords
     if ($keywords = $this->Params->get('menu-meta_keywords')) {
         $this->document->setMetadata('keywords', $keywords);
     }
     // Set robots (index, follow)
     if ($robots = $this->Params->get('robots')) {
         $this->document->setMetadata('robots', $robots);
     }
     //$this->document->addScript(JUri::base(true) . "/media/jui/js/jquery.min.js");
     //$this->document->addScript(JUri::base(true) . "/media/jui/js/jquery-noconflict.js");
     //JHtml::_('jquery.framework');
     JHtml::_('bootstrap.framework');
     if ($this->Params->get("load_css_bootstrap", 0) == 1) {
         JHtmlBootstrap::loadCSS();
     }
     $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/jquery-pwi.js");
     $prefix = JUri::base(true) . "/index.php?option=com_oziogallery3&amp;view=loader";
     $menu = JFactory::getApplication()->getMenu();
     $itemid = $menu->getActive() or $itemid = $menu->getDefault();
     if ($style == 'hovereffect') {
         //he
         $this->document->addScript($prefix . "&amp;filename=pwi_hovereffect&amp;type=js" . "&amp;Itemid=" . $itemid->id . "&amp;id=" . $itemid->id);
         $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/modernizr.custom.js");
         $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/toucheffects.js");
     } else {
         $this->document->addScript($prefix . "&amp;filename=pwi&amp;type=js" . "&amp;Itemid=" . $itemid->id . "&amp;id=" . $itemid->id);
     }
     $this->document->addScript($prefix . "&amp;filename=dateformat&amp;type=js" . "&amp;Itemid=" . $itemid->id . "&amp;id=" . $itemid->id);
     // per la compatibilità con Internet Explorer
     $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/jQuery.XDomainRequest.js");
     if ($style == 'hovereffect') {
         $this->document->addStyleSheet(JUri::base(true) . "/components/com_oziogallery3/views/list/css/list_hovereffect.css");
     } else {
         $this->document->addStyleSheet(JUri::base(true) . "/components/com_oziogallery3/views/list/css/list.css");
     }
     parent::display($tpl);
 }
开发者ID:scarsroga,项目名称:blog-soa,代码行数:46,代码来源:view.html.php


示例6: framework

 /**
  * Method to load the Bootstrap JavaScript framework into the document head
  *
  * If debugging mode is on an uncompressed version of Bootstrap is included for easier debugging.
  *
  * @param   mixed  $debug  Is debugging mode on? [optional]
  *
  * @return  void
  *
  * @since   3.0
  */
 public static function framework($debug = null)
 {
     // Use Joomla version first
     if (JevJoomlaVersion::isCompatible("3.0")) {
         JHtmlBootstrap::framework($debug);
         return;
     }
     // Fall back to JEvents version
     JLoader::register('JevHtmlBootstrap', JEV_PATH . "libraries/bootstrap.php");
     try {
         JevHtmlBootstrap::framework($debug);
         return;
     } catch (Exception $ex) {
     }
     // Finally use library version as last resort
     // Only load once
     if (!empty(static::$loaded[__METHOD__])) {
         return;
     }
     // Load jQuery
     JevHtmlJquery::framework();
     // If no debugging value is set, use the configuration setting
     if ($debug === null) {
         $config = JFactory::getConfig();
         $debug = (bool) $config->get('debug');
     }
     JHtml::_('script', 'libraries/jevents/bootstrap/js/bootstrap.min.js', false, false, false, false, $debug);
     static::$loaded[__METHOD__] = true;
     return;
 }
开发者ID:poorgeek,项目名称:JEvents,代码行数:41,代码来源:bootstrap.php


示例7: __construct

 function __construct($params, $modid)
 {
     $this->_modid = $modid;
     $this->modparams =& $params;
     $jevents_config = JEVConfig::getInstance();
     $this->datamodel = new JEventsDataModel();
     // find appropriate Itemid and setup catids for datamodel
     $this->myItemid = $this->datamodel->setupModuleCatids($this->modparams);
     $this->catout = $this->datamodel->getCatidsOutLink(true);
     $user = JFactory::getUser();
     // Can't use getCfg since this cannot be changed by Joomfish etc.
     $tmplang = JFactory::getLanguage();
     $this->langtag = $tmplang->getTag();
     // get params exclusive to module
     $this->inccss = $params->get('modlatest_inccss', 0);
     if ($this->inccss) {
         $modtheme = $params->get("com_calViewName", "");
         if ($modtheme == "" || $modtheme == "global") {
             $modtheme = JEV_CommonFunctions::getJEventsViewName();
         }
         $this->jevlayout = $modtheme;
         JEVHelper::componentStylesheet($this, "modstyle.css");
     }
     // get params exclusive to component
     $this->com_starday = intval($jevents_config->get('com_starday', 0));
     $this->com_calUseStdTime = intval($jevents_config->get('com_calUseStdTime', 1));
     if ($this->com_calUseStdTime) {
         $this->defaultfFormatStr = IS_WIN ? $this->_defaultfFormatStr12winos : $this->_defaultfFormatStr12;
     } else {
         $this->defaultfFormatStr = $this->_defaultfFormatStr24;
     }
     // get params depending on switch
     if (intval($params->get('modlatest_useLocalParam', 0)) == 1) {
         $myparam =& $params;
     } else {
         $myparam =& $jevents_config;
     }
     $this->maxEvents = intval($myparam->get('modlatest_MaxEvents', 15));
     $this->dispMode = intval($myparam->get('modlatest_Mode', 0));
     $this->startNow = intval($myparam->get('startnow', 0));
     $this->pastOnly = intval($myparam->get('pastonly', 0));
     $this->rangeDays = intval($myparam->get('modlatest_Days', 30));
     $this->norepeat = intval($myparam->get('modlatest_NoRepeat', 0));
     $this->multiday = intval($myparam->get('modlatest_multiday', 0));
     $this->displayLinks = intval($myparam->get('modlatest_DispLinks', 1));
     $this->displayYear = intval($myparam->get('modlatest_DispYear', 0));
     $this->disableDateStyle = intval($myparam->get('modlatest_DisDateStyle', 0));
     $this->disableTitleStyle = intval($myparam->get('modlatest_DisTitleStyle', 0));
     $this->linkCloaking = intval($myparam->get('modlatest_LinkCloaking', 0));
     $this->linkToCal = intval($myparam->get('modlatest_LinkToCal', 0));
     $this->customFormatStr = $myparam->get('modlatest_CustFmtStr', '');
     $this->displayRSS = intval($myparam->get('modlatest_RSS', 0));
     $this->sortReverse = intval($myparam->get('modlatest_SortReverse', 0));
     if ($myparam->get("bootstrapcss", 1) == 1) {
         $cfg = JEVConfig::getInstance();
         if ($cfg->get("bootstrapcss", 1) == 1) {
             // This version of bootstrap has maximum compatability with JEvents due to enhanced namespacing
             JHTML::stylesheet("com_jevents/bootstrap.css", array(), true);
             // Responsive version of bootstrap with maximum compatibility with JEvents due to enhanced namespacing
             JHTML::stylesheet("com_jevents/bootstrap-responsive.css", array(), true);
         } else {
             if ($cfg->get("bootstrapcss", 1) == 2) {
                 JHtmlBootstrap::loadCss();
             }
         }
     } else {
         if ($myparam->get("bootstrapcss", 1) == 2) {
             JHtmlBootstrap::loadCss();
         }
     }
     if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) {
         $document = JFactory::getDocument();
         JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
     }
     if ($myparam->get("modlatest_customcss", false)) {
         JFactory::getDocument()->addStyleDeclaration($myparam->get("modlatest_customcss", false));
     }
     if ($this->dispMode > 7) {
         $this->dispMode = 0;
     }
     // $maxEvents hardcoded to 105 for now to avoid bad mistakes in params
     if ($this->maxEvents > 150) {
         $this->maxEvents = 150;
     }
     if ($this->displayRSS) {
         if ($modid > 0) {
             // do not use JRoute since this creates .rss link which normal sef can't deal with
             $this->rsslink = JURI::root() . 'index.php?option=' . JEV_COM_COMPONENT . '&amp;task=modlatest.rss&amp;format=feed&amp;type=rss&amp;modid=' . $modid;
         } else {
             $this->displayRSS = false;
         }
     }
 }
开发者ID:hriggs,项目名称:cs-website,代码行数:93,代码来源:latest.php


示例8: JUIEnable

 public function JUIEnable()
 {
     if ($this->enable_bootstrap) {
         JHtml::_('bootstrap.framework');
         JHtmlBootstrap::loadCss($this->responsive_css);
         if (!$this->responsive_css) {
             $this->tpl->addStyleSheet($this->relative_path . 'css/bootstrap.min.css');
         }
     }
 }
开发者ID:aldegtyarev,项目名称:vip-kvartira,代码行数:10,代码来源:j3.php


示例9: defined

<?php

/**
 * @package     Template.Schwaderhof
 *
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
// Add JavaScript Frameworks
JHtmlBootstrap::framework();
// Add Stylesheets
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template.css');
// Adjusting content width
$left = $this->countModules('position-7');
$right = $this->countModules('position-8');
if ($left && $right) {
    $span = 'span6';
} elseif ($left && !$right || !$left && $right) {
    $span = 'span9';
} else {
    $span = 'span12';
}
?>
<!DOCTYPE html>
<html>
<head>
	<jdoc:include type="head" />
</head>
<body>
开发者ID:Bakual,项目名称:Schwaderhof,代码行数:31,代码来源:index.php


示例10: testLoadCss

 /**
  * Tests the loadCss method.
  *
  * @return  void
  *
  * @since   3.1
  */
 public function testLoadCss()
 {
     // Initialise the Bootstrap JS framework
     JHtmlBootstrap::loadCss(true, 'rtl');
     // Get the document instance
     $document = JFactory::getDocument();
     $this->assertArrayHasKey('/media/jui/css/bootstrap.min.css', $document->_styleSheets, 'Verify that the base Bootstrap CSS is loaded');
     $this->assertArrayHasKey('/media/jui/css/bootstrap-rtl.css', $document->_styleSheets, 'Verify that the RTL Bootstrap CSS is loaded');
 }
开发者ID:karimzg,项目名称:joomla,代码行数:16,代码来源:JHtmlBootstrapTest.php


示例11: defined

<?php

/**
 * @package     Joomla.Site
 * @subpackage  Template.Blank_J3
 *
 * @copyright   Copyright (C) 2005 - 2016 Saity74, LLC. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
require_once JPATH_THEMES . '/blank_j3/_php/blank_j3.php';
JHtmlBootstrap::loadCss(false);
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$params = $this->params;
$tmpl = new Blank_J3($this);
$assets = $tmpl->get_assets();
// Add styles..
$doc->addStyleSheet($assets['styles']);
// Add scripts..
$doc->addScript($assets['scripts']);
$menu = $app->getMenu()->getActive();
$body_class = '';
if (is_object($menu)) {
    $body_class = $tmpl->is_frontpage() ? 'g-homepage ' : '';
    $body_class .= $menu->params->get('pageclass_sfx');
    $body_class .= str_replace('_', '-', ' g-jm-' . $menu->query['option'] . '-' . $menu->query['view']);
}
?>

<!DOCTYPE html>
开发者ID:shanginn,项目名称:joomla-developer-template,代码行数:31,代码来源:index.php


示例12: getInput

 /**
  * Returns the HTML for a thumbnail selection form field.
  *
  * @return  object    The thumbnail selection form field.
  * @since   2.0
  */
 protected function getInput()
 {
     JHtml::_('bootstrap.tooltip');
     $app = JFactory::getApplication();
     $db = JFactory::getDBO();
     $doc = JFactory::getDocument();
     $imagelib_id = $this->element['imagelib_id'] ? $this->element['imagelib_id'] : 'imagelib';
     $script = array();
     $html = array();
     $css = array();
     $catid = 0;
     if ($app->isAdmin()) {
         // Get category id from request
         $cids = JRequest::getVar('cid', array(), '', 'array');
         if (isset($cids[0])) {
             $catid = intval($cids[0]);
         }
         // Prepare the path for the thumbnail preview
         $path = JRoute::_('index.php?option=' . _JOOM_OPTION . '&controller=images&view=image&format=raw&type=thumb', false) . '&cid=';
     } else {
         // Get category id from request
         $catid = JRequest::getInt('catid', 0);
         // Prepare the path for the thumbnail preview
         $path = JRoute::_('index.php?option=' . _JOOM_OPTION . '&view=image&format=raw&type=thumb', false) . '&id=';
     }
     $script[] = '  function joom_selectimage(id, title, object, filename) {';
     $script[] = '    document.getElementById(object + "_id").value = id;';
     $script[] = '    document.getElementById(object + "_name").value = title;';
     $script[] = '    jQuery("#' . $this->id . '_clear").removeClass("hidden");';
     $script[] = '    if(id != "") {';
     $script[] = '      document.getElementById("' . $imagelib_id . '").src = "' . $path . '" + id';
     $script[] = '    } else {';
     $script[] = '      document.getElementById("' . $imagelib_id . '").src = "' . JURI::root(true) . '/media/system/images/blank.png";';
     $script[] = '    }';
     $script[] = '    jQuery("#modalSelectThumbnail").modal("hide");';
     $script[] = '  }';
     $script[] = '  function joom_clearthumb() {';
     $script[] = '    jQuery("#' . $this->id . '_clear").addClass("hidden");';
     $script[] = '    document.getElementById("' . $this->id . '_id").value = 0;';
     $script[] = '    document.getElementById("' . $this->id . '_name").value = "-";';
     $script[] = '    document.getElementById("' . $imagelib_id . '").src = "' . JURI::root(true) . '/media/system/images/blank.png";';
     $script[] = '    return false';
     $script[] = '  }';
     $doc->addScriptDeclaration(implode("\n", $script));
     // Remove bottom border from modal header as we will not have a title
     $css[] = '  #modalSelectThumbnail .modal-header {';
     $css[] = '    border-bottom: none;';
     $css[] = '  }';
     $doc->addStyleDeclaration(implode("\n", $css));
     // Get the image title
     $img = JTable::getInstance('joomgalleryimages', 'Table');
     if (!empty($this->value)) {
         $img->load($this->value);
     } else {
         $img->imgtitle = '-';
     }
     $title = htmlspecialchars($img->imgtitle, ENT_QUOTES, 'UTF-8');
     $link = 'index.php?option=com_joomgallery&amp;view=mini&amp;extended=0&amp;format=raw&amp;object=' . $this->id . '&amp;type=category&amp;catid=' . $catid;
     $html[] = '<span class="input-append">';
     $html[] = '<input type="text" class="input-medium" id="' . $this->id . '_name" value="' . $title . '"' . ' readonly="readonly" disabled="disabled" size="35" />';
     $html[] = '<a href="#modalSelectThumbnail"  class="btn hasTooltip" role="button"  data-toggle="modal"' . ' title="' . ($app->isAdmin() ? JHtml::tooltipText('COM_JOOMGALLERY_CATMAN_SELECT_THUMBNAIL_TIP') : JHtml::tooltipText('COM_JOOMGALLERY_COMMON_SELECT_THUMBNAIL_TIP')) . '">' . '<i class="icon-image"></i> ' . ($app->isAdmin() ? JText::_('COM_JOOMGALLERY_CATMAN_SELECT_THUMBNAIL') : JText::_('COM_JOOMGALLERY_COMMON_SELECT')) . '</a>';
     $html[] = JHtmlBootstrap::renderModal('modalSelectThumbnail', array('url' => $link . '&amp;' . JSession::getFormToken() . '=1"', 'width' => '620px', 'height' => '390px'));
     $html[] = '<button id="' . $this->id . '_clear" class="btn' . ($this->value ? '' : ' hidden') . ' hasTooltip" title="' . ($app->isAdmin() ? JHtml::tooltipText('COM_JOOMGALLERY_CATMAN_REMOVE_CATTHUMB_TIP') : JHtml::tooltipText('COM_JOOMGALLERY_COMMON_REMOVE_CATTHUMB_TIP')) . '" onclick="return joom_clearthumb()"><span class="icon-remove"></span></button>';
     $html[] = '</span>';
     $html[] = '<input type="hidden" id="' . $this->id . '_id" name="' . $this->name . '" value="' . $this->value . '"/>';
     return implode("\n", $html);
 }
开发者ID:pabloarias,项目名称:JoomGallery,代码行数:73,代码来源:thumbnail.php


示例13: defined

<?php

/**
 * Part of Component Fbimporter files.
 *
 * @copyright   Copyright (C) 2014 Asikart. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
// No direct access
defined('_JEXEC') or die;
JHtmlBootstrap::tooltip();
JHtmlFormbehavior::chosen('select');
JHtmlBehavior::formvalidation();
/**
 * Prepare data for this template.
 *
 * @var $container Windwalker\DI\Container
 * @var $data      Windwalker\Data\Data
 * @var $item      \stdClass
 */
$container = $this->getContainer();
$form = $data->form;
$item = $data->item;
$fieldsets = $data->form->getFieldsets();
?>
<!-- Validate Script -->
<script type="text/javascript">
	Joomla.submitbutton = function(task)
	{
		if (task == 'format.edit.cancel' || document.formvalidator.isValid(document.id('adminForm')))
		{
开发者ID:beingsane,项目名称:facebook-importer,代码行数:31,代码来源:edit.php


示例14: defined

<?php

/**
 * Part of Component {{extension.name.cap}} files.
 *
 * @copyright   Copyright (C) 2014 Asikart. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
// No direct access
defined('_JEXEC') or die;
$tab = $data->tab;
$fieldsets = $data->form->getFieldsets();
?>

<?php 
echo JHtmlBootstrap::addTab('{{controller.item.name.lower}}EditTab', $tab, \JText::_($data->view->option . '_EDIT_' . strtoupper($tab)));
?>

<div class="row-fluid">
	<div class="span12">
		<?php 
echo $this->loadTemplate('fieldset', array('fieldset' => $fieldsets['rules'], 'class' => 'form-horizontal'));
?>
	</div>
</div>

<?php 
echo JHtmlBootstrap::endTab();
开发者ID:beingsane,项目名称:quickcontent,代码行数:28,代码来源:edit_tab_rules.php


示例15: array

// This loads jQuery too!
JevHtmlBootstrap::framework();
// jQnc not only fixes noConflict it creates the jQuery alias we use in JEvents "jevqc" so we always need it
JEVHelper::script("components/com_jevents/assets/js/jQnc.js");
if (JComponentHelper::getParams(JEV_COM_COMPONENT)->get("fixjquery", 1)) {
    // this script should come after all the URL based scripts in Joomla so should be a safe place to know that noConflict has been set
    JFactory::getDocument()->addScriptDeclaration("checkJQ();");
}
if (JComponentHelper::getParams(JEV_COM_COMPONENT)->get("bootstrapcss", 1) == 1) {
    // This version of bootstrap has maximum compatibility with JEvents due to enhanced namespacing
    JHTML::stylesheet("com_jevents/bootstrap.css", array(), true);
    // Responsive version of bootstrap with maximum compatibility with JEvents due to enhanced namespacing
    JHTML::stylesheet("com_jevents/bootstrap-responsive.css", array(), true);
} else {
    if (JComponentHelper::getParams(JEV_COM_COMPONENT)->get("bootstrapcss", 1) == 2) {
        JHtmlBootstrap::loadCss();
    }
}
$newparams = JFactory::getApplication('site')->getParams();
// Because the application sets a default page title,
// we need to get it from the menu item itself
$menu = JFactory::getApplication()->getMenu()->getActive();
if ($menu) {
    $newparams->def('page_heading', $newparams->get('page_title', $menu->title));
} else {
    $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
    $newparams->def('page_heading', $params->get('page_title'));
}
// handle global menu item parameter for viewname
$com_calViewName = $newparams->get('com_calViewName', "");
if ($com_calViewName == "global" || $com_calViewName == "") {
开发者ID:hriggs,项目名称:cs-website,代码行数:31,代码来源:jevents.php


示例16:

									<span><?php 
            echo $button['text'];
            ?>
</span>
								</div>
							</a>
						</div>
					</div>
				<?php 
        }
        ?>
				<div class="clearfix"></div>
			</div>
			<div class="clr"></div>
			<?php 
        echo $tabs ? JHtmlBootstrap::endTab() : null;
        ?>

		<?php 
    }
    ?>

		<?php 
    echo $tabs ? JHtmlBootstrap::endTabSet() : null;
    ?>

	</div>
<?php 
}
?>
<div class="clearfix clr"></div>
开发者ID:lyrasoft,项目名称:lyrasoft.github.io,代码行数:31,代码来源:joomla25.php


示例17: defined

<?php

defined('_JEXEC') or die;
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$sitename = $app->get('sitename');
// Add JavaScript Frameworks.
JHtml::_('bootstrap.framework');
// Load optional rtl Bootstrap css and Bootstrap bugfixes.
JHtmlBootstrap::loadCss(false, $this->direction);
// Add Stylesheet.
$this->addStyleSheet('media/jui/css/icomoon.css');
$this->addStyleSheet('media/jui/css/bootstrap.min.css');
$doc->addStyleSheet('templates/' . $this->template . '/css/style.css');
?>
<!DOCTYPE html>
<html lang="<?php 
echo $this->language;
?>
" dir="<?php 
echo $this->direction;
?>
">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<jdoc:include type="head" />
	<!--[if lt IE 9]>
		<script src="<?php 
echo $this->baseurl;
开发者ID:beingsane,项目名称:slush-joomla,代码行数:31,代码来源:index.php


示例18: _prepareHead

    /**
     * Preparing head section for the template
     *
     * @return void
     */
    private function _prepareHead()
    {
        // Only continue if requested return format is html
        if (strcasecmp(get_class($this->_document), 'JDocumentHTML') != 0) {
            return;
        }
        // Load Joomla script framework
        JHtml::_('behavior.framework', true);
        // Load optional Bootstrap's right-to-left CSS file
        !class_exists('JHtmlBootstrap') or JHtmlBootstrap::loadCss(true);
        // Load Bootstrap stylesheets
        if (is_readable(JPATH_ROOT . '/plugins/system/jsntplframework/assets/3rd-party/bootstrap/css/bootstrap-frontend.min.css')) {
            $this->_document->addStylesheet($this->_document->rootUrl . '/plugins/system/jsntplframework/assets/3rd-party/bootstrap/css/bootstrap-frontend.min.css');
        } else {
            $this->_document->addStylesheet($this->_document->rootUrl . '/plugins/system/jsntplframework/assets/3rd-party/bootstrap/css/bootstrap.min.css');
        }
        if (!$this->_document->isFree and $this->_document->mobileSupport and $this->_document->templateWidth['type'] == 'responsive') {
            if (is_readable(JPATH_ROOT . '/plugins/system/jsntplframework/assets/3rd-party/bootstrap/css/bootstrap-responsive-frontend.min.css')) {
                $this->_document->addStylesheet($this->_document->rootUrl . '/plugins/system/jsntplframework/assets/3rd-party/bootstrap/css/bootstrap-responsive-frontend.min.css');
            } else {
                $this->_document->addStylesheet($this->_document->rootUrl . '/plugins/system/jsntplframework/assets/3rd-party/bootstrap/css/bootstrap-responsive.min.css');
            }
        }
        // Prepare custom font style
        if (@is_array($this->_document->fontStyle[$this->_document->fontStyle['style']]) and is_readable(JPATH_ROOT . '/templates/' . basename($this->_document->templateUrl) . '/css/styles/' . $this->_document->fontStyle['style'] . '.css.php')) {
            $this->_document->customStyle = $this->_document->fontStyle[$this->_document->fontStyle['style']];
            // Generate custom style
            ob_start();
            require_once JPATH_ROOT . '/templates/' . basename($this->_document->templateUrl) . '/css/styles/' . $this->_document->fontStyle['style'] . '.css.php';
            $this->_document->customStyle = ob_get_clean();
            // Create custom style declaration file
            if (!JFile::write(JPATH_ROOT . '/templates/' . basename($this->_document->templateUrl) . '/css/styles/' . $this->_document->fontStyle['style'] . '.css', $this->_document->customStyle)) {
                $this->_document->addStyleDeclaration($this->_document->customStyle);
            }
        }
        // Load other stylesheets
        if ($this->_loadTemplateCSS == true) {
            // Print optimize
            if ($this->_document->printOptimize) {
                $this->_document->addStylesheet($this->_document->templateUrl . "/css/print.css", 'text/css', 'Print');
            }
            // Load general stylesheets
            $this->_document->addStylesheet($this->_document->rootUrl . '/templates/system/css/system.css');
            $this->_document->addStylesheet($this->_document->rootUrl . '/templates/system/css/general.css');
            $this->_document->addStylesheet($this->_document->templateUrl . '/css/template.css');
            // Load PRO template styles
            if ($this->_template->edition != 'FREE') {
                if (is_readable(JPATH_ROOT . '/templates/' . basename($this->_document->templateUrl) . '/css/template_pro.css')) {
                    $this->_document->addStylesheet($this->_document->templateUrl . '/css/template_pro.css');
                }
            }
            // Load customization styles
            $this->_document->addStylesheet($this->_document->templateUrl . '/css/colors/' . $this->_document->templateColor . '.css');
            if (is_readable(JPATH_ROOT . '/templates/' . basename($this->_document->templateUrl) . '/css/styles/' . $this->_document->fontStyle['style'] . '.css')) {
                $this->_document->addStylesheet($this->_document->templateUrl . '/css/styles/' . $this->_document->fontStyle['style'] . '.css');
            }
            // Auto icon link stylesheet
            if ($this->_document->autoIconLink) {
                $this->_document->addStylesheet($this->_document->templateUrl . '/css/jsn_iconlinks.css');
            }
            // Right to left stylesheet
            if ($this->_document->direction == "rtl") {
                $this->_document->addStylesheet($this->_document->templateUrl . '/css/jsn_rtl.css');
            }
            // Enable mobile support
            if ($this->_document->mobileSupport) {
                $this->_document->addCustomTag('<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />');
            }
            // IE7 Specific stylesheet
            if ($this->_document->isIE7) {
                $this->_document->addStylesheet($this->_document->rootUrl . '/css/jsn_fixie7.css');
            }
            // Process template width
            switch ($this->_document->templateWidth['type']) {
                case 'fixed':
                case 'float':
                    $unit = $this->_document->templateWidth['type'] == 'fixed' ? 'px' : '%';
                    $this->_document->customWidth = $this->_document->templateWidth[$this->_document->templateWidth['type']] . $unit;
                    break;
                case 'responsive':
                default:
                    if (!$this->_document->isFree) {
                        $enabledLayout = $this->_document->templateWidth[$this->_document->templateWidth['type']];
                        $hasWideLayout = is_readable(JPATH_ROOT . '/templates/' . basename($this->_document->templateUrl) . '/css/layouts/jsn_wide.css');
                        $hasMobileLayout = is_readable(JPATH_ROOT . '/templates/' . basename($this->_document->templateUrl) . '/css/layouts/jsn_mobile.css');
                        if (in_array('wide', $enabledLayout) and $hasWideLayout) {
                            $this->_document->addStylesheet($this->_document->templateUrl . '/css/layouts/jsn_wide.css');
                        }
                        if ($this->_document->mobileSupport and in_array('mobile', $enabledLayout) and $hasMobileLayout) {
                            $this->_document->addStylesheet($this->_document->templateUrl . '/css/layouts/jsn_mobile.css');
                        }
                    }
                    $this->_document->customWidth = 'responsive';
                    break;
            }
//.........这里部分代码省略.........
开发者ID:NallelyFlores89,项目名称:basvec,代码行数:101,代码来

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP JHtmlSidebar类代码示例发布时间:2022-05-23
下一篇:
PHP JHtmlBehavior类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap