本文整理汇总了PHP中JHtmlBootstrap类的典型用法代码示例。如果您正苦于以下问题:PHP JHtmlBootstrap类的具体用法?PHP JHtmlBootstrap怎么用?PHP JHtmlBootstrap使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JHtmlBootstrap类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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>';
}
示例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');
}
示例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&view=loader";
$menu = JFactory::getApplication()->getMenu();
$itemid = $menu->getActive() or $itemid = $menu->getDefault();
$this->document->addScript($prefix . "&filename=map&type=js" . "&Itemid=" . $itemid->id . "&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 ? "&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 ? "&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);
}
示例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&view=loader";
$menu = JFactory::getApplication()->getMenu();
$itemid = $menu->getActive() or $itemid = $menu->getDefault();
if ($style == 'hovereffect') {
//he
$this->document->addScript($prefix . "&filename=pwi_hovereffect&type=js" . "&Itemid=" . $itemid->id . "&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 . "&filename=pwi&type=js" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
}
$this->document->addScript($prefix . "&filename=dateformat&type=js" . "&Itemid=" . $itemid->id . "&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);
}
示例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;
}
示例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 . '&task=modlatest.rss&format=feed&type=rss&modid=' . $modid;
} else {
$this->displayRSS = false;
}
}
}
示例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');
}
}
}
示例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>
示例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');
}
示例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>
示例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&view=mini&extended=0&format=raw&object=' . $this->id . '&type=category&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 . '&' . 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);
}
示例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')))
{
示例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();
示例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 == "") {