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


PHP flexicontent_html::getToolTip方法代码示例

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


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

示例1: isset

    ?>
			</td>
			<td style="text-align:right; width:24px;">
				<?php 
    echo @$row->category ? isset($row->category->positions) ? '<a href="' . $catlink . '">' . $editMultiple . '</a>' : $noeditlayout : '';
    ?>
			</td>
			<td style="text-align: left">
				<?php 
    if ($defaulttitle_cat) {
        ?>
					<span data-placement="top" class="<?php 
        echo $tip_class;
        ?>
" title="<?php 
        echo flexicontent_html::getToolTip('', $description_cat, 1, 1);
        ?>
" >
						<?php 
        echo JText::_($defaulttitle_cat);
        ?>
					</span>
				<?php 
    }
    ?>
			</td>
		</tr>
		<?php 
    $k = 1 - $k;
    $i++;
}
开发者ID:nettdotkomm,项目名称:flexicontent-cck,代码行数:31,代码来源:default.php

示例2:

            echo $item->is_active_item ? 'fcitem_active' : '';
            ?>
" >
				<?php 
            if ($add_tooltips) {
                ?>
				<a href="<?php 
                echo $item->link;
                ?>
"
						class="fcitem_link <?php 
                echo $tooltip_class;
                ?>
"
						title="<?php 
                echo flexicontent_html::getToolTip($item->fulltitle, $item->text, 0, 1);
                ?>
">
					<?php 
                echo $item->title;
                ?>
				</a>
				<?php 
            } else {
                ?>
				<a href="<?php 
                echo $item->link;
                ?>
"><?php 
                echo $item->title;
                ?>
开发者ID:noxidsoft,项目名称:flexicontent-cck,代码行数:31,代码来源:default.php

示例3:

		<div class="nowrap_box inlinefile-lang-box">
			<label class="label inlinefile-lang-lbl ' . $tip_class . '" title="' . flexicontent_html::getToolTip('FLEXI_LANGUAGE', 'FLEXI_FILE_LANGUAGE_DESC', 1, 1) . '" id="' . $elementid_n . '_file-lang-lbl" for="' . $elementid_n . '_file-lang">
				' . JText::_('FLEXI_LANGUAGE') . '
			</label>
			<span class="inlinefile-lang-data">
				' . flexicontent_html::buildlanguageslist($fieldname_n . '[file-lang]', 'class="fc_filelang use_select2_lib"', !isset($form_data[$file_id]) ? $file_data->language : $form_data[$file_id]['file-lang'], 1) . '
			</span>
		</div>' : '') . ($iform_desc ? '
		<div class="nowrap_box inlinefile-desc-box">
			<label class="label inlinefile-desc-lbl ' . $tip_class . '" title="' . flexicontent_html::getToolTip('FLEXI_DESCRIPTION', 'FLEXI_FILE_DESCRIPTION_DESC', 1, 1) . '" id="' . $elementid_n . '_file-desc-lbl" for="' . $elementid_n . '_file-desc">
				' . JText::_('FLEXI_DESCRIPTION') . '
			</label>
			<span class="inlinefile-desc-data">
				<textarea id="' . $elementid_n . '_file-desc" cols="24" rows="3" name="' . $fieldname_n . '[file-desc]" class="fc_filedesc">' . (!isset($form_data[$file_id]) ? $file_data->description : $form_data[$file_id]['file-desc']) . '</textarea>
			</span>
		</div>' : '') . ($iform_dir ? '
		<div class="nowrap_box inlinefile-secure-box">
			<label class="label inlinefile-secure-lbl ' . $tip_class . '" data-placement="top" title="' . flexicontent_html::getToolTip('FLEXI_URL_SECURE', 'FLEXI_URL_SECURE_DESC', 1, 1) . '" id="' . $elementid_n . '_secure-lbl">
				' . JText::_('FLEXI_URL_SECURE') . '
			</label>
			' . ($has_values ? '
			<span class="inlinefile-secure-info" style="' . (!$has_values ? 'display:none;' : '') . '">
				<span class="badge badge-info">' . JText::_($file_data->secure ? 'FLEXI_YES' : 'FLEXI_NO') . '</span>
			</span>' : '') . '
			<span class="inlinefile-secure-data" style="' . ($has_values ? 'display:none;' : '') . '">
				' . flexicontent_html::buildradiochecklist(array(1 => JText::_('FLEXI_YES'), 0 => JText::_('FLEXI_NO')), $fieldname_n . '[secure]', !isset($form_data[$file_id]) ? 1 : (int) $form_data[$file_id]['secure'], 0, ' class="fc_filedir" ', $elementid_n . '_secure') . '
			</span>
		</div>' : '') . '
	<div class="fcclear"></div>';
    $n++;
}
开发者ID:nettdotkomm,项目名称:flexicontent-cck,代码行数:31,代码来源:field_InlineBoxes.php

示例4: htmlspecialchars

				<img src="' . $field->prevThumb . '" alt="Previous"/>
			' : '') . '
		</a>
	</span>';
} else {
    $html .= '
	<span class="fc-pagenav-prev">
		<span class="btn disabled">
			<i class="icon-previous"></i>
			' . htmlspecialchars($prev_label, ENT_NOQUOTES, 'UTF-8') . '
		</span>
	</span>';
}
// Previous item linking
if ($field->next) {
    $tooltip = $use_tooltip ? ' title="' . flexicontent_html::getToolTip($tooltip_title_next, $field->nexttitle, 0) . '"' : '';
    $html .= '
	<span class="fc-pagenav-next' . ($use_tooltip ? $tooltip_class : '') . '" ' . ($use_tooltip ? $tooltip : '') . '>
		<a class="btn" href="' . $field->nexturl . '">
			<i class="icon-next"></i>
			' . ($use_title ? $field->nexttitle : htmlspecialchars($next_label, ENT_NOQUOTES, 'UTF-8')) . '
			' . ($field->nextThumb ? '
				<br/>
				<img src="' . $field->nextThumb . '" alt="Next"/>
			' : '') . '
		</a>
	</span>';
} else {
    $html .= '
	<span class="fc-pagenav-next">
		<span class="btn disabled">
开发者ID:khetsothea,项目名称:flexicontent-cck,代码行数:31,代码来源:value_legacy.php

示例5: getUploadLimitsTxt

    function getUploadLimitsTxt(&$field)
    {
        $tip_class = FLEXI_J30GE ? ' hasTooltip' : ' hasTip';
        $hint_image = JHTML::image('components/com_flexicontent/assets/images/comment.png', JText::_('FLEXI_NOTES'), '');
        $upload_maxsize = $field->parameters->get('upload_maxsize');
        $phpUploadLimit = flexicontent_upload::getPHPuploadLimit();
        $server_limit_exceeded = $phpUploadLimit['value'] < $upload_maxsize;
        if ($server_limit_exceeded) {
            $warn_image = JHTML::image('components/com_flexicontent/assets/images/warning.png', JText::_('FLEXI_NOTES'), '');
        }
        $conf_limit_class = $server_limit_exceeded ? '' : 'badge-success';
        $conf_limit_style = $server_limit_exceeded ? 'text-decoration: line-through;' : '';
        $conf_lim_image = $server_limit_exceeded ? $warn_image . $hint_image : $hint_image;
        $sys_limit_class = $server_limit_exceeded ? 'badge-important' : '';
        return '
		<span class="fc-img-field-upload-limits-box">
			<span class="label label-info fc-upload-box-lbl">' . JText::_($server_limit_exceeded ? 'FLEXI_UPLOAD_LIMITS' : 'FLEXI_UPLOAD_LIMIT') . '</span>
			<span class="fc-php-upload-limit-box">
				<span class="' . $tip_class . '" style="margin-left:24px;" title="' . flexicontent_html::getToolTip('FLEXI_FIELD_CONF_UPLOAD_MAX_LIMIT', 'FLEXI_FIELD_CONF_UPLOAD_MAX_LIMIT_DESC', 1, 1) . '">' . $conf_lim_image . '</span>
				<span class="badge ' . $conf_limit_class . '" style="' . $conf_limit_style . '">' . round($upload_maxsize / (1024 * 1024), 2) . ' M </span>
			</span>
			' . ($server_limit_exceeded ? '
			<span class="fc-sys-upload-limit-box">
				<span class="' . $tip_class . '" style="margin-left:24px;" title="' . flexicontent_html::getToolTip(JText::_('FLEXI_SERVER_UPLOAD_MAX_LIMIT'), JText::sprintf('FLEXI_SERVER_UPLOAD_MAX_LIMIT_DESC', $phpUploadLimit['name']), 0, 1) . '">' . $hint_image . '</span>
				<span class="badge ' . $sys_limit_class . '">' . round($phpUploadLimit['value'] / (1024 * 1024), 2) . ' M </span>
			</span>' : '') . '
		</span>
		';
    }
开发者ID:benediktharter,项目名称:flexicontent-cck,代码行数:29,代码来源:image.php

示例6: ob_start

                continue;
            }
        }
        // Check if 'Description' field will NOT be placed via fields manager placement/ordering,
        // but instead it will be inside a custom TAB or inside the 'Description' TAB (default)
        if ($field->field_type == 'maintext' && isset($all_tab_fields['text'])) {
            ob_start();
        }
        // Decide label classes, tooltip, etc
        $lbl_class = 'label';
        $lbl_title = '';
        // field has tooltip
        $edithelp = $field->edithelp ? $field->edithelp : 1;
        if ($field->description && ($edithelp == 1 || $edithelp == 2)) {
            $lbl_class .= ($edithelp == 2 ? ' fc_tooltip_icon ' : ' ') . $tip_class;
            $lbl_title = flexicontent_html::getToolTip(trim($field->label, ':'), $field->description, 0, 1);
        }
        // field is required
        $required = $field->parameters->get('required', 0);
        if ($required) {
            $lbl_class .= ' required';
        }
        // Some fields may force a container width ?
        $display_label_form = $field->parameters->get('display_label_form', 1);
        $row_k = 1 - $row_k;
        $full_width = $display_label_form == 0 || $display_label_form == 2 || $display_label_form == -1;
        $width = $field->parameters->get('container_width', $full_width ? '100%!important;' : false);
        $container_width = empty($width) ? '' : 'width:' . $width . ($width != (int) $width ? 'px!important;' : '');
        $container_class = "fcfield_row" . $row_k . " container_fcfield container_fcfield_id_" . $field->id . " container_fcfield_name_" . $field->name;
        ?>
			
开发者ID:benediktharter,项目名称:flexicontent-cck,代码行数:30,代码来源:form.php

示例7: onDisplayField


//.........这里部分代码省略.........
            if ($compact_edit) {
                $add_here .= '
				<button class="toggle_group_down btn btn-small btn-success" style="' . ($compact_edit == 2 ? 'display:none;' : '') . ' min-width: 120px;" onclick="fc_toggle_box_via_btn(jQuery(this).closest(\'li\').find(\'.fcfieldval_container_outer:not(.fcAlwaysVisibleField)\'), this, \'\', jQuery(this).next(), 1); return false;">
					<i class="icon-downarrow"></i>' . JText::_('FLEXI_FIELD_GROUP_EDIT_DETAILS') . '
				</button>
				<button class="toggle_group_up   btn btn-small" style="' . ($compact_edit == 1 ? 'display:none;' : '') . ' min-width: 120px;" onclick="fc_toggle_box_via_btn(jQuery(this).closest(\'li\').find(\'.fcfieldval_container_outer:not(.fcAlwaysVisibleField)\'), this, \'\', jQuery(this).prev(), 0); return false;">
					<i class="icon-uparrow"></i>' . JText::_('FLEXI_FIELD_GROUP_HIDE_DETAILS') . '
				</button>
			';
            }
        } else {
            $remove_button = '';
            $move2 = '';
            $add_here = '';
            $js .= '';
            $css .= '';
        }
        if ($js) {
            $document->addScriptDeclaration($js);
        }
        if ($css) {
            $document->addStyleDeclaration($css);
        }
        $close_btn = FLEXI_J30GE ? '<a class="close" data-dismiss="alert">&#215;</a>' : '<a class="fc-close" onclick="this.parentNode.parentNode.removeChild(this.parentNode);">&#215;</a>';
        $alert_box = FLEXI_J30GE ? '<div %s class="alert alert-%s %s">' . $close_btn . '%s</div>' : '<div %s class="fc-mssg fc-%s %s">' . $close_btn . '%s</div>';
        if ($compact_edit) {
            $compact_edit_excluded = $field->parameters->get('compact_edit_excluded', array());
            if (empty($compact_edit_excluded)) {
                $compact_edit_excluded = array();
            }
            if (!is_array($compact_edit_excluded)) {
                $compact_edit_excluded = preg_split("/[\\|,]/", $compact_edit_excluded);
            }
            $compact_edit_excluded = array_flip($compact_edit_excluded);
        }
        $field->html = array();
        for ($n = 0; $n < $max_count; $n++) {
            $field->html[$n] = '
				' . ($use_ingroup ? '' : $move2) . '
				' . ($use_ingroup ? '' : $remove_button) . '
				' . ($use_ingroup || !$add_position ? '' : $add_here) . '
				';
            // Append item-form display HTML of the every field in the group
            $i = 0;
            foreach ($grouped_fields as $field_id => $grouped_field) {
                $lbl_class = 'flexi label sub_label';
                $lbl_title = '';
                // field has tooltip
                $edithelp = $grouped_field->edithelp ? $grouped_field->edithelp : 1;
                if ($grouped_field->description && ($edithelp == 1 || $edithelp == 2)) {
                    $lbl_class .= ($edithelp == 2 ? ' fc_tooltip_icon ' : ' ') . $tooltip_class;
                    $lbl_title = flexicontent_html::getToolTip(trim($field->label, ':'), $grouped_field->description, 0, 1);
                }
                $field->html[$n] .= '<div class="fcclear"></div>
				<div class="fcfieldval_container_outer' . ($compact_edit && isset($compact_edit_excluded[$field_id]) ? ' fcAlwaysVisibleField' : '') . '">
					<label class="' . $lbl_class . '" title="' . $lbl_title . '" for="custom_' . $grouped_field->name . '_' . $n . '" for_bck="custom_' . $grouped_field->name . '_' . $n . '">' . $grouped_field->label . '</label>
					<div class="fcfieldval_container valuebox fcfieldval_container_' . $grouped_field->id . ' container_fcfield_name_' . $grouped_field->name . '" >
						' . ($grouped_field->description && $edithelp == 3 ? sprintf($alert_box, '', 'info', 'fc-nobgimage', $grouped_field->description) : '') . '
						' . @$grouped_field->html[$n] . '
					</div>
				</div>
				';
                $i++;
            }
            if (!$multiple) {
                break;
            }
            // multiple values disabled, break out of the loop, not adding further values even if the exist
        }
        // Non value HTML
        $non_value_html = '';
        foreach ($grouped_fields as $field_id => $grouped_field) {
            $non_value_html .= @$grouped_field->html[-1];
        }
        // Implode form HTML as a list
        $list_classes = "fcfield-sortables";
        $list_classes .= " fcfield-group";
        if (count($field->html)) {
            $field->html = '<li class="fcfieldval_container valuebox fcfieldval_container_' . $field->id . ' container_fcfield_name_' . $field->name . '">' . implode('</li><li class="fcfieldval_container valuebox fcfieldval_container_' . $field->id . ' container_fcfield_name_' . $field->name . '">', $field->html) . '</li>';
            $field->html = '<div id="sortables_outer_' . $field->id . '"><ul class="' . $list_classes . '" id="sortables_' . $field->id . '">' . $field->html . '</ul></div>';
        } else {
            $field->html = '';
        }
        if (!$add_position) {
            $field->html .= '<span class="fcfield-addvalue fccleared" onclick="addField' . $field->id . '(this);" title="' . JText::_('FLEXI_ADD_TO_BOTTOM') . '"></span>';
        }
        // Append non value html of fields
        $field->html = ($field->parameters->get('compact_edit_global', 0) ? '
			<div class="toggle_all_values_buttons_box">
				<span id="sortables_' . $field->id . '_btn" class="btn" onclick="fc_toggle_box_via_btn(jQuery(\'#sortables_outer_' . $field->id . '\'), this, \'\', jQuery(this).next(), 0); return false;">
					<i class="icon-uparrow"></i>' . JText::_('FLEXI_FIELD_GROUP_HIDE_VALUES') . '
				</span>
				<span id="sortables_' . $field->id . '_btn" class="btn btn-success" onclick="fc_toggle_box_via_btn(jQuery(\'#sortables_outer_' . $field->id . '\'), this, \'\', jQuery(this).prev(), 1); return false;" style="display:none;">
					<i class="icon-downarrow"></i>' . JText::_('FLEXI_FIELD_GROUP_SHOW_VALUES') . '
				</span>
			</div>
				' : '') . '
			' . $field->html . ($non_value_html ? '
				<div class="fcclear"></div>' . $non_value_html : '');
    }
开发者ID:noxidsoft,项目名称:flexicontent-cck,代码行数:101,代码来源:fieldgroup.php

示例8: getInput


//.........这里部分代码省略.........
                    $attr_arr['seton_list'] = $sub_option->attributes()->seton_list;
                }
                if (isset($sub_option->attributes()->setoff_list)) {
                    $attr_arr['setoff_list'] = $sub_option->attributes()->setoff_list;
                }
                if (isset($sub_option->attributes()->refsh_list)) {
                    $attr_arr['refsh_list'] = $sub_option->attributes()->refsh_list;
                }
                if (isset($sub_option->attributes()->force_list)) {
                    $attr_arr['force_list'] = $sub_option->attributes()->force_list;
                }
                if (isset($sub_option->attributes()->show_list)) {
                    $attr_arr['show_list'] = $sub_option->attributes()->show_list;
                }
                if (isset($sub_option->attributes()->hide_list)) {
                    $attr_arr['hide_list'] = $sub_option->attributes()->hide_list;
                }
                if (isset($sub_option->attributes()->fcconfigs)) {
                    $attr_arr['fcconfigs'] = $sub_option->attributes()->fcconfigs;
                }
                if (isset($sub_option->attributes()->fcreadonly)) {
                    $attr_arr['fcreadonly'] = $sub_option->attributes()->fcreadonly;
                }
                if (isset($sub_option->attributes()->class)) {
                    $attr_arr['class'] = $sub_option->attributes()->class;
                }
                $val = $sub_option->attributes()->value;
                $text = FLEXI_J30GE ? $sub_option->__toString() : $sub_option->data();
                //$options[] = JHTML::_('select.option', $val, JText::_($text));
                $options[] = array('value' => $val, 'text' => JText::_($text), 'attr' => $attr_arr);
            }
            // Check for current option is a GROUP and add its END
            if ($name == "group") {
                $options[] = JHTML::_('select.optgroup', '');
            }
        }
        /* support for parameter multi-value, multi-parameter dependencies in non-FLEXIcontent views */
        static $js_added = false;
        if (!$js_added) {
            $js_added = true;
            $doc = JFactory::getDocument();
            $doc->addScript(JURI::root(true) . '/components/com_flexicontent/assets/js/flexi-lib.js');
            if (JRequest::getCmd('option') != 'com_flexicontent') {
                $js = "\n\t\t\t\tjQuery(document).ready(function(){\n\t\t\t\t\t" . (FLEXI_J30GE ? "fc_bindFormDependencies('body', 2, '.control-group');" : "fc_bindFormDependencies('body', 1, 'li');") . "\n\t\t\t\t});\n\t\t\t\t";
                $doc->addScriptDeclaration($js);
            }
        }
        if ($subtype == 'radio') {
            $_class = ' class ="' . $attribs['list.attr']['class'] . '"';
            $_id = ' id="' . $element_id . '"';
            $html = '';
            foreach ($options as $i => $option) {
                $selected = count($values) && $values[0] == $option['value'] ? ' checked="checked"' : '';
                $input_attribs = '';
                $label_class = '';
                foreach ($option['attr'] as $k => $v) {
                    if ($k == 'class') {
                        $label_class = $v;
                        continue;
                    }
                    $input_attribs .= ' ' . $k . '="' . $v . '"';
                }
                $html .= '
					<input id="' . $element_id . $i . '" type="radio" value="' . $option['value'] . '" name="' . $fieldname . '" ' . $input_attribs . $selected . '/>
					<label class="' . $label_class . '" for="' . $element_id . $i . '" value="' . $option['text'] . '">
						' . $option['text'] . '
					</label>';
            }
            $html = '
				<fieldset ' . $_class . $_id . '>
				' . $html . '
				</fieldset>
				';
        } else {
            $html = JHTML::_('select.genericlist', $options, $fieldname, $attribs);
        }
        if ($inline_tip = @$attributes['inline_tip']) {
            $tip_img = @$attributes['tip_img'];
            $tip_img = $tip_img ? $tip_img : 'comment.png';
            $preview_img = @$attributes['preview_img'];
            $preview_img = $preview_img ? $preview_img : '';
            $tip_class = @$attributes['tip_class'];
            $tip_class .= FLEXI_J30GE ? ' hasTooltip' : ' hasTip';
            $hintmage = JHTML::image('administrator/components/com_flexicontent/assets/images/' . $tip_img, JText::_('FLEXI_NOTES'), ' align="left" style="max-height:24px; padding:0px; margin-left:12px; margin-right:0px;" ');
            $previewimage = $preview_img ? JHTML::image('administrator/components/com_flexicontent/assets/images/' . $preview_img, JText::_('FLEXI_NOTES'), ' align="left" style="max-height:24px; padding:0px; margin:0px;" ') : '';
            $tip_text = '<span class="' . $tip_class . '" style="float:left;" title="' . flexicontent_html::getToolTip(null, $inline_tip, 1, 1) . '">' . $hintmage . $previewimage . '</span>';
        }
        if ($inline_tip = @$attributes['inline_tip2']) {
            $tip_img = @$attributes['tip_img2'];
            $tip_img = $tip_img ? $tip_img : 'comment.png';
            $preview_img = @$attributes['preview_img2'];
            $preview_img = $preview_img ? $preview_img : '';
            $tip_class = @$attributes['tip_class2'];
            $tip_class .= FLEXI_J30GE ? ' hasTooltip' : ' hasTip';
            $hintmage = JHTML::image('administrator/components/com_flexicontent/assets/images/' . $tip_img, JText::_('FLEXI_NOTES'), ' align="left" style="max-height:24px; padding:0px; margin-left:12px; margin-right:0px;" ');
            $previewimage = $preview_img ? JHTML::image('administrator/components/com_flexicontent/assets/images/' . $preview_img, JText::_('FLEXI_NOTES'), ' align="left" style="max-height:24px; padding:0px; margin:0px;" ') : '';
            $tip_text2 = '<span class="' . $tip_class . '" style="float:left;" title="' . flexicontent_html::getToolTip(null, $inline_tip, 1, 1) . '">' . $hintmage . $previewimage . '</span>';
        }
        return $html . @$tip_text . @$tip_text2;
    }
开发者ID:khetsothea,项目名称:flexicontent-cck,代码行数:101,代码来源:multilist.php

示例9: buildstateslist

 /**
  * Method to build the Joomfish languages list
  *
  * @return object
  * @since 1.5
  */
 static function buildstateslist($name, $attribs, $selected, $displaytype = 1, $tagid = null)
 {
     static $state_names = null;
     static $state_descrs = null;
     static $state_imgs = null;
     if (!$state_names) {
         $state_names = array(1 => JText::_('FLEXI_PUBLISHED'), -5 => JText::_('FLEXI_IN_PROGRESS'), 0 => JText::_('FLEXI_UNPUBLISHED'), -3 => JText::_('FLEXI_PENDING'), -4 => JText::_('FLEXI_TO_WRITE'), 2 => JText::_('FLEXI_ARCHIVED'), -2 => JText::_('FLEXI_TRASHED'), '' => JText::_('FLEXI_UNKNOWN'));
         $state_descrs = array(1 => JText::_('FLEXI_PUBLISH_THIS_ITEM'), -5 => JText::_('FLEXI_SET_STATE_AS_IN_PROGRESS'), 0 => JText::_('FLEXI_UNPUBLISH_THIS_ITEM'), -3 => JText::_('FLEXI_SET_STATE_AS_PENDING'), -4 => JText::_('FLEXI_SET_STATE_AS_TO_WRITE'), 2 => JText::_('FLEXI_ARCHIVE_THIS_ITEM'), -2 => JText::_('FLEXI_TRASH_THIS_ITEM'), '' => 'FLEXI_UNKNOWN');
         $state_imgs = array(1 => 'tick.png', -5 => 'publish_g.png', 0 => 'publish_x.png', -3 => 'publish_r.png', -4 => 'publish_y.png', 2 => 'archive.png', -2 => 'trash.png', '' => 'unknown.png');
     }
     $state[] = JHTML::_('select.option', '', JText::_(!is_numeric($displaytype) && is_string($displaytype) ? $displaytype : 'FLEXI_DO_NOT_CHANGE'));
     $state[] = JHTML::_('select.option', -4, $state_names[-4]);
     $state[] = JHTML::_('select.option', -3, $state_names[-3]);
     $state[] = JHTML::_('select.option', -5, $state_names[-5]);
     $state[] = JHTML::_('select.option', 1, $state_names[1]);
     $state[] = JHTML::_('select.option', 0, $state_names[0]);
     $state[] = JHTML::_('select.option', 2, $state_names[2]);
     $state[] = JHTML::_('select.option', -2, $state_names[-2]);
     $tagid = $tagid ? $tagid : str_replace('[', '_', preg_replace('#\\]|\\[\\]#', '', $name));
     if ($displaytype == 1 || !is_numeric($displaytype) && is_string($displaytype)) {
         $list = JHTML::_('select.genericlist', $state, $name, $attribs, 'value', 'text', $selected, $tagid);
     } else {
         if ($displaytype == 2) {
             $state_ids = array(1, -5, 0, -3, -4);
             // published: 1, -5   unpublished: 0, -3, -4
             $state_ids[] = 2;
             // archived
             $state_ids[] = -2;
             // trashed
             $state_colors = array(1 => 'darkgreen', -5 => 'darkgreen', 0 => 'darkred', -3 => 'darkred', -4 => 'darkred', 2 => 'darkblue', -2 => 'gray');
             $img_path = JURI::root(true) . "/components/com_flexicontent/assets/images/";
             $list = '';
             $checked = $selected === '' ? ' checked="checked"' : '';
             $list .= '<input id="state9999" type="radio" name="state" class="state" value="" ' . $checked . '/>';
             $tooltip_class = FLEXI_J30GE ? ' hasTooltip' : ' hasTip';
             $tooltip_title = flexicontent_html::getToolTip('FLEXI_USE_STATE_COLUMN', 'FLEXI_USE_STATE_COLUMN_TIP', 1, 1);
             $list .= '<label class="state_box' . $tooltip_class . '" for="state9999" title="' . $tooltip_title . '">';
             $list .= JText::_('FLEXI_USE_STATE_COLUMN');
             $list .= '</label>';
             foreach ($state_ids as $i => $state_id) {
                 //if ($state_id==0 || $state_id==2) $list .= "<br/>";
                 $checked = $state_id == $selected ? ' checked="checked"' : '';
                 $list .= '<input id="state' . $state_id . '" type="radio" name="state" class="state" value="' . $state_id . '" ' . $checked . '/>';
                 $list .= '<label class="state_box" for="state' . $state_id . '" title="' . $state_names[$state_id] . '" style="color:' . $state_colors[$state_id] . ';">';
                 $list .= $state_names[$state_id];
                 //$list 	.= '<img src="'.$img_path.$state_imgs[$state_id].'" width="16" height="16" style="border-width:0;" alt="'.$state_names[$state_id].'" />';
                 $list .= '</label>';
             }
         } else {
             $list = 'Bad type in buildstateslist()';
         }
     }
     return $list;
 }
开发者ID:nettdotkomm,项目名称:flexicontent-cck,代码行数:60,代码来源:flexicontent.helper.php

示例10: foreach

?>
				</th>
				<th class="left">
					<?php 
echo JHtml::_('grid.sort', 'COM_USERS_HEADING_ASSET_NAME', 'a.name', $listDirn, $listOrder);
?>
				</th>
				<?php 
foreach ($this->actions as $key => $action) {
    ?>
				<th width="5%">
					<span class="<?php 
    echo $tip_class;
    ?>
" title="<?php 
    echo flexicontent_html::getToolTip(JText::_($key), JText::_($action[1]), 0, 1);
    ?>
">
						<?php 
    echo JText::_($key);
    ?>
					</span>
				</th>
				<?php 
}
?>
				<th class="nowrap" width="5%">
					<?php 
echo JHtml::_('grid.sort', 'COM_USERS_HEADING_LFT', 'a.lft', $listDirn, $listOrder);
?>
				</th>
开发者ID:khetsothea,项目名称:flexicontent-cck,代码行数:31,代码来源:default.php

示例11: elseif

			
			<td align="center"><?php 
    echo $row->access_level;
    ?>
</td>
			
			<td align="center" class="col_lang">
				
				<?php 
    if (0 && !empty($row->lang) && !empty($this->langs->{$row->lang}->imgsrc)) {
        ?>
					<img class="<?php 
        echo $tip_class;
        ?>
" title="<?php 
        echo flexicontent_html::getToolTip(JText::_('FLEXI_LANGUAGE'), $row->lang == '*' ? JText::_("All") : (!empty($row->lang) ? $this->langs->{$row->lang}->name : ''), 0, 1);
        ?>
"
						src="<?php 
        echo $this->langs->{$row->lang}->imgsrc;
        ?>
" alt="<?php 
        echo $row->lang;
        ?>
" />
				<?php 
    } elseif (!empty($row->lang)) {
        ?>
					<?php 
        echo $row->lang == '*' ? JText::_("All") : (!empty($row->lang) ? $this->langs->{$row->lang}->name : '');
        ?>
开发者ID:khetsothea,项目名称:flexicontent-cck,代码行数:30,代码来源:default.php

示例12: foreach

				</span>
				<div class="fcclear"></div>
				
				<?php 
foreach ($code_btn_lbls as $_posname => $btn_lbl) {
    ?>
				<span class="code_box <?php 
    echo $_posname;
    ?>
 nowrap_box" style="display:none;" >
					<span class="btn <?php 
    echo $tip_class;
    ?>
"
						title="<?php 
    echo flexicontent_html::getToolTip('Insert code', $code_btn_tips[$_posname], 0, 1);
    ?>
"
						onclick="toggle_code_inputbox(this);"><span class="icon-eye"></span><?php 
    echo JText::_($code_btn_lbls[$_posname]);
    ?>
</span>
					<span class="nowrap_box" style="display:none; float:left; clear:both; margin:2px 0px 0px 0px;">
						<div class="alert alert-warning" style="clear:both; margin:2px 0px 2px 0px;"><?php 
    echo JText::_('FLEXI_COPY_CODE');
    ?>
</div>
						<div class="alert alert-info" style="clear:both; margin:2px 0px 2px 0px;">
							<?php 
    echo $code_btn_tips[$_posname];
    ?>
开发者ID:nettdotkomm,项目名称:flexicontent-cck,代码行数:31,代码来源:default.php

示例13:

$search_autocomplete = $params->get('search_autocomplete', 1);
// Filters configuration
$use_filters = $params->get('use_filters', 0) && $filters;
$show_filter_labels = $params->get('show_filter_labels', 1);
// a ZERO initial value of show_search_go ... is AUTO
$show_search_go = $show_search_go || !$filter_autosubmit;
// || $use_search;
// Calculate needed flags
$filter_instructions = $use_search || $use_filters ? $filter_instructions : 0;
// Create instructions (tooltip or inline message)
$legend_class = 'fc_legend_text';
$legend_tip = '';
if ($filter_instructions == 1) {
    $legend_class .= FLEXI_J30GE ? ' hasTooltip' : ' hasTip';
    $legend_tip = ($use_search ? '<b>' . JText::_('FLEXI_TEXT_SEARCH') . '</b><br/>' . JText::_('FLEXI_TEXT_SEARCH_INFO') : '') . ($use_search || $use_filters ? '<br/><br/>' : '') . ($use_filters ? '<b>' . JText::_('FLEXI_FIELD_FILTERS') . '</b><br/>' . JText::_('FLEXI_FIELD_FILTERS_INFO') : '');
    $legend_tip = flexicontent_html::getToolTip(null, $legend_tip, 0, 1);
} else {
    if ($filter_instructions == 2) {
        $legend_inline = ($use_search ? '<strong>' . JText::_('FLEXI_TEXT_SEARCH') . '</strong><br/>' . JText::_('FLEXI_TEXT_SEARCH_INFO') : '') . ($use_search || $use_filters ? '<br/><br/>' : '') . ($use_filters ? '<strong>' . JText::_('FLEXI_FIELD_FILTERS') . '</strong><br/>' . JText::_('FLEXI_FIELD_FILTERS_INFO') : '');
    }
}
if ($use_search || $use_filters) {
    /* BOF search and filters block */
    if (!$params->get('disablecss', '')) {
        JFactory::getDocument()->addStyleSheet(JURI::root(true) . '/components/com_flexicontent/assets/css/flexi_filters.css');
    }
    $searchphrase_selector = flexicontent_html::searchphrase_selector($params, $form_name);
    ?>

<div id="<?php 
    echo $form_id;
开发者ID:noxidsoft,项目名称:flexicontent-cck,代码行数:31,代码来源:filters.php

示例14: foreach

,'previous',true);"
				>
				
				<?php 
            $img_path = JURI::base(true) . '/';
            ?>
				<?php 
            $handle_classes = 'mod_fc_item_handle' . ($item_handles_dir == 'horizontal' ? ' fc_scrollitem_h' : ' fc_scrollitem_v');
            ?>
				<?php 
            foreach ($list[$ord]['standard'] as $item) {
                ?>
					<?php 
                $tip_html = '';
                if ($item_handle_title == 1 || $item_handle_text == 1) {
                    $tip_html = flexicontent_html::getToolTip($item_handle_title == 1 ? $item->title : null, $item_handle_text == 1 ? $item->text : null, 0, 1);
                }
                $classes = $handle_classes . ($tip_html ? $tooltip_class : '');
                ?>
						<span class="<?php 
                echo $classes;
                ?>
" title="<?php 
                echo $tip_html;
                ?>
" >
							<img alt="" src="<?php 
                echo @$item->image ? $item->image : $img_path . $mod_default_img_path;
                ?>
" style="<?php 
                echo 'width:' . $item_handle_width . 'px; height:' . $item_handle_height . 'px';
开发者ID:khetsothea,项目名称:flexicontent-cck,代码行数:31,代码来源:carousel.php

示例15:

                ?>
					<a href="<?php 
                echo $item_link;
                ?>
" >
						<img src="<?php 
                echo $thumb;
                ?>
" alt="<?php 
                echo $title_encoded;
                ?>
" class="<?php 
                echo $tooltip_class;
                ?>
" title="<?php 
                echo flexicontent_html::getToolTip($_read_more_about, $title_encoded, 0, 0);
                ?>
"/>
					</a>
				<?php 
            } else {
                ?>
					<img src="<?php 
                echo $thumb;
                ?>
" alt="<?php 
                echo $title_encoded;
                ?>
" title="<?php 
                echo $title_encoded;
                ?>
开发者ID:khetsothea,项目名称:flexicontent-cck,代码行数:31,代码来源:default_results.php


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