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


PHP Helper_Include::addTooltip方法代码示例

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


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

示例1: addDependencies

 public static function addDependencies($view, $layout, $tmpl = '')
 {
     $doc = JFactory::getDocument();
     $script = $tmpl == 'ajax' ? false : true;
     Helper_Include::addStyleSheets(true);
     // Additional
     switch ($view) {
         case 'box':
             JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js', 'jquery.ui.effects.min.js', 'jquery.json.min.js'));
             Helper_Include::addSmoothScrool(500);
             break;
         case 'folder':
             JCck::loadjQuery(true, true, true);
             break;
         case 'template':
             JCck::loadjQuery(true, true, true);
             Helper_Include::addJSTree('cck_tree', $script);
             break;
         case 'site':
             JCck::loadjQuery(true, true, true);
             break;
         case 'field':
             if ($script === true) {
                 JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js'));
                 JCck::loadjQueryUI();
             }
             Helper_Include::addTooltip('span[title].qtip_cck', 'left center', 'right center', 'ui-tooltip-cck-indigo_dye ui-tooltip-shadow', $script, $tmpl);
             Helper_Include::addTooltip('img[title].qtip_cck', 'right center', 'left center', 'ui-tooltip-cck-indigo_dye ui-tooltip-shadow', false, $tmpl);
             break;
         case 'type':
         case 'search':
             if ($script === true) {
                 JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js', 'jquery.biscuit.min.js'));
                 JCck::loadjQueryUI();
                 $doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/css/ui-construction.css');
                 $doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/styles/seblod/ui-construction.css');
             }
             Helper_Include::addColorbox_Live('930', '550', $script, 'cbox', ', onLoad: function(){ $("#cboxClose").remove();}');
             Helper_Include::addColorpicker($script);
             Helper_Include::addTooltip('', '', '', '', $script);
             break;
         case 'version':
             JCck::loadjQuery(true, true, true);
             break;
             // --------
         // --------
         case 'templates':
         case 'types':
         case 'fields':
         case 'searchs':
         case 'folders':
         case 'sites':
         case 'variations':
         case 'versions':
             if ($view == 'folders') {
                 JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js'));
             } else {
                 JCck::loadjQuery();
             }
             if (JCck::on()) {
                 JHtml::_('bootstrap.tooltip');
                 JHtml::_('formbehavior.chosen', 'select:not(.no-chosen)');
             }
             Helper_Include::addLavalamp('#submenu');
             Helper_Include::addSmoothScrool();
             if ($view == 'fields') {
                 Helper_Include::addColorbox('500', '300', $script, 'cbox', ', onLoad: function(){ $("#cboxClose").remove();}');
             } elseif ($view == 'templates') {
                 Helper_Include::addColorbox('850', '585', $script);
             } elseif ($view == 'types' || $view == 'searchs') {
                 Helper_Include::addColorbox('850', '430', true, 'cbox_button', ', scrolling:false');
             } elseif ($view == 'variations') {
                 JHtml::_('behavior.framework', false);
             }
             if ($view == 'searchs' || $view == 'sites') {
                 $doc->addStyleSheet(JROOT_MEDIA_CCK . '/css/jquery.sly.css');
                 $doc->addScript(JROOT_MEDIA_CCK . '/js/jquery.sly.min.js');
             }
             break;
         case 'cck':
             $doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/css/cpanel.css');
             JCck::loadjQuery();
             Helper_Include::addColorbox('930', '430', true, 'cbox_button');
             Helper_Include::addLavalamp('#submenu');
             break;
         default:
             break;
     }
 }
开发者ID:olafzieger,项目名称:joomla3.x-seblod-test,代码行数:89,代码来源:helper_include.php

示例2: defined

/**
* @version 			SEBLOD 3.x Core ~ $Id: match.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$name = $this->item->name;
$lang = JFactory::getLanguage();
$lang->load('plg_cck_field_field_x', JPATH_ADMINISTRATOR, null, false, true);
$lang->load('plg_cck_field_group_x', JPATH_ADMINISTRATOR, null, false, true);
Helper_Include::addDependencies('box', 'edit');
Helper_Include::addTooltip('span[title].qtip_cck', 'left center', 'right center');
$doc = JFactory::getDocument();
$doc->addStyleSheet(JROOT_MEDIA_CCK . '/scripts/jquery-colorbox/css/colorbox.css');
$doc->addScript(JROOT_MEDIA_CCK . '/scripts/jquery-colorbox/js/jquery.colorbox-min.js');
$js = '
			(function ($){
				JCck.Dev = {
					reset: function() {
						parent.jQuery("#' . $name . '_match_collection").val("");
						parent.jQuery("#' . $name . '_match_value").val("");
						parent.jQuery("#' . $name . '_match_options").val("");
						this.close();
					},
					submit: function() {
						var data = $("#match_collection").val();
						parent.jQuery("#' . $name . '_match_collection").val(data);
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:30,代码来源:match.php

示例3: function

						var data = $("#adminForm").serializeObject();
						var encoded = $.toJSON(data);
						parent.jQuery("#"+elem).val(encoded);
						this.close();
						return;
					}
    			}
				$(document).ready(function(){
					var elem = "pos-' . $this->item->id . '_variation_options";
					var encoded = parent.jQuery("#"+elem).val();
					var data = (encoded != "") ? $.evalJSON(encoded) : "";
					$.each(data, function(k, v) {
						$("#"+k).val( v );
					});
				});
			})(jQuery);
			';
$doc->addScriptDeclaration($js);
require_once JPATH_ADMINISTRATOR . '/components/' . CCK_COM . '/helpers/helper_workshop.php';
Helper_Include::addTooltip('label[title]', 'top left', 'bottom left');
JFactory::getLanguage()->load('files_var_cck_' . $this->item->name . '.sys', JPATH_SITE);
JFactory::getLanguage()->load('files_var_cck_seb_css3.sys', JPATH_SITE);
$template = isset($this->item->type) && $this->item->type != '' ? $this->item->type : 'seb_one';
$path = JPATH_SITE . '/templates/' . $template . '/variations/' . $this->item->name . '/options.xml';
if (!file_exists($path)) {
    $path = JPATH_LIBRARIES_CCK . '/rendering/variations/' . $this->item->name . '/options.xml';
} else {
    JFactory::getLanguage()->load('tpl_' . $template, JPATH_SITE);
}
$xml = JPath::clean($path);
Helper_Workshop::getTemplateParams($xml, '//form');
开发者ID:densem-2013,项目名称:exikom,代码行数:31,代码来源:edit.php

示例4: initScript


//.........这里部分代码省略.........
									if (isNew) {
										var attr = "input:text[name=\'json\\[options2\\]\\[options\\]\\[0\\]\\[direction\\]\']";
										if ($(attr).length) { $(attr).remove(); }
									} isNew = 0;
								});
								';
                    if (!$elem->options) {
                        //$js2	.=	'$("#sortable_core_options>div:last .button-add-core_options").click();';
                    }
                    $css .= '.button-add{display:none;}';
                    if (!$elem->options) {
                        $css .= '#collection-group-wrap-core_options__0{display:none;}';
                    }
                    $js3 = '';
                } else {
                    $js3 = '(function($){ var cur = 9999; $.fn.JCckFieldxAddAfter = function() {' . $js3 . ' $(this).next().find(".collection-group-form").append(content);} })(jQuery);';
                }
                if ($html) {
                    $html = '<div class="clr"></div><div>' . $html . '</div>';
                    $js = 'if ($("#sortable_core_options")) { ' . $js . ' $("#sortable_core_options").parent().append("' . addslashes($html) . '"); }';
                }
            }
            if ($css) {
                echo '<style type="text/css">' . $css . '</style>';
            }
            if ($js || $js2) {
                echo '<script type="text/javascript">' . 'jQuery(document).ready(function($){' . $js . $js2 . '});' . $js3 . '</script>';
            }
            return;
        }
        if ($elem->name) {
            JFactory::getLanguage()->load('plg_cck_field_' . $type . '_' . $elem->name, JPATH_ADMINISTRATOR, null, false, true);
        }
        Helper_Include::addTooltip('span[title].qtip_cck', 'left center', 'right center');
        if ($type == 'validation') {
            return;
        }
        $js2 = '';
        $js3 = '';
        if ($type == 'typo') {
            $js2 = 'if($("#typo_label").length) { $("#typo_label").val(parent.jQuery("#"+eid+"_typo_label").val()); }';
            $js3 = 'if($("#typo_label").length) { parent.jQuery("#"+eid+"_typo_label").val($("#typo_label").val()); } excluded[0] = "typo_label"';
        }
        $js = '
				(function ($){
					JCck.Dev = {
						reset: function() {
							var elem = "' . $elem->id . '_' . $type . '_options";
							parent.jQuery("#"+elem).val("");
							this.close();
						},
						submit: function() {
							if ( $("#adminForm").validationEngine("validate") === true ) {
								var eid = "' . $elem->id . '";
								var elem = "' . $elem->id . '_' . $type . '_options";
								var data = {};
								var excluded = [];
								' . $js3 . '
								$.each(cck_dev, function(k, v) {
									if(jQuery.inArray(v, excluded) == -1) {
										if(!$("#"+v).length) {
											var temp = [];
											$("[name=\\""+v+"\\[\\]\\"]").each(function(i) {
												temp[i] = $(this).val();
											});
											data[v] = temp.join("||");
开发者ID:olafzieger,项目名称:joomla3.x-seblod-test,代码行数:67,代码来源:dev.php


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