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

PHP vc_generate_dependencies_attributes函数代码示例

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

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



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

示例1: products_settings_field

function products_settings_field($settings, $value)
{
    $attr = array("post_type" => "product", "orderby" => "name", "order" => "asc", 'posts_per_page' => -1);
    $categories = get_posts($attr);
    $dependency = vc_generate_dependencies_attributes($settings);
    $data = '<input type="text" value="' . $value . '" name="' . $settings['param_name'] . '" class="wpb_vc_param_value wpb-input wpb-select vc_custom_select_custom_val ' . $settings['param_name'] . ' ' . $settings['type'] . '" id="vc_custom_select_custom_prod">';
    $data .= '<div class="vc_custom_select_custom_wrapper"><ul class="vc_custom_select_custom_vals">';
    $insterted_vals = explode(',', $value);
    foreach ($categories as $val) {
        if (in_array($val->ID, $insterted_vals)) {
            $data .= '<li data-val="' . $val->ID . '">' . $val->post_title . '<button>×</button></li>';
        }
    }
    $data .= '</ul>';
    $data .= '<ul class="vc_custom_select_custom">';
    foreach ($categories as $val) {
        $selected = '';
        if (in_array($val->ID, $insterted_vals)) {
            $selected = ' class="selected"';
        }
        $data .= '<li' . $selected . ' data-val="' . $val->ID . '">' . $val->post_title . '</li>';
    }
    $data .= '</ul></div>';
    return $data;
}
开发者ID:renatodex,项目名称:submundo-blogstore,代码行数:25,代码来源:wc-products-by-ids-skus.php


示例2: checkbox_param

        function checkbox_param($settings, $value)
        {
            $dependency = function_exists('vc_generate_dependencies_attributes') ? vc_generate_dependencies_attributes($settings) : '';
            $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
            $type = isset($settings['type']) ? $settings['type'] : '';
            $options = isset($settings['options']) ? $settings['options'] : '';
            $class = isset($settings['class']) ? $settings['class'] : '';
            $default_set = isset($settings['default_set']) ? $settings['default_set'] : false;
            $output = $checked = '';
            $un = uniqid('ultswitch-' . rand());
            if (is_array($options) && !empty($options)) {
                foreach ($options as $key => $opts) {
                    if ($value == $key) {
                        $checked = "checked";
                    } else {
                        $checked = "";
                    }
                    $uid = uniqid('ultswitchparam-' . rand());
                    $output .= '<div class="onoffswitch">
							<input type="checkbox" name="' . $param_name . '" value="' . $value . '" ' . $dependency . ' class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . ' ' . $dependency . ' onoffswitch-checkbox chk-switch-' . $un . '" id="switch' . $uid . '" ' . $checked . '>
							<label class="onoffswitch-label" for="switch' . $uid . '">
								<div class="onoffswitch-inner">
									<div class="onoffswitch-active">
										<div class="onoffswitch-switch">' . $opts['on'] . '</div>
									</div>
									<div class="onoffswitch-inactive">
										<div class="onoffswitch-switch">' . $opts['off'] . '</div>
									</div>
								</div>
							</label>
						</div>';
                    if (isset($opts['label'])) {
                        $lbl = $opts['label'];
                    } else {
                        $lbl = '';
                    }
                    $output .= '<div class="chk-label">' . $lbl . '</div><br/>';
                }
            }
            if ($default_set) {
                $set_value = 'off';
            } else {
                $set_value = '';
            }
            //$output .= '<input type="hidden" id="chk-switch-'.$un.'" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" value="'.$value.'" />';
            $output .= '<script type="text/javascript">
				jQuery("#switch' . $uid . '").change(function(){

					 if(jQuery("#switch' . $uid . '").is(":checked")){
						jQuery("#switch' . $uid . '").val("' . $key . '");
						jQuery("#switch' . $uid . '").attr("checked","checked");
					 } else {
						jQuery("#switch' . $uid . '").val("' . $set_value . '");
						jQuery("#switch' . $uid . '").removeAttr("checked");
					 }

				});
			</script>';
            return $output;
        }
开发者ID:timb1981,项目名称:ChamferZone,代码行数:60,代码来源:Ultimate_Switch.php


示例3: ewf_vc_param_position_settings

    function ewf_vc_param_position_settings($settings, $value)
    {
        $dependency = vc_generate_dependencies_attributes($settings);
        $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
        $type = isset($settings['type']) ? $settings['type'] : '';
        $min = isset($settings['min']) ? $settings['min'] : '';
        $max = isset($settings['max']) ? $settings['max'] : '';
        $class = isset($settings['class']) ? $settings['class'] : '';
        $extra_class = array('top' => null, 'top-left' => null, 'top-right' => null, 'bottom' => null, 'bottom-right' => null, 'bottom-left' => null, 'left' => null, 'right' => null);
        $extra_class[$value] = ' active';
        $output = '<div class="ewf_param_position"></div>';
        $output .= '<div class="ewf-position-box-wrapper">
					<div class="ewf-position-box">
						<div class="ewf-pb-top-right' . $extra_class['top-right'] . '"></div>
						<div class="ewf-pb-top-left' . $extra_class['top-left'] . '"></div>
						<div class="ewf-pb-top' . $extra_class['top'] . '"></div>
						<div class="ewf-pb-bottom' . $extra_class['bottom'] . '"></div>
						<div class="ewf-pb-bottom-right' . $extra_class['bottom-right'] . '"></div>
						<div class="ewf-pb-bottom-left' . $extra_class['bottom-left'] . '"></div>
						<div class="ewf-pb-left' . $extra_class['left'] . '"></div>
						<div class="ewf-pb-right' . $extra_class['right'] . '"></div>
					</div> 
				</div>';
        $output .= '<input type="hidden" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" value="' . $value . '" />';
        $output .= '</div>';
        return $output;
    }
开发者ID:kadr,项目名称:semashko,代码行数:27,代码来源:ewf-param-position.php


示例4: switch_button_settings_field

 function switch_button_settings_field($settings, $value)
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     $dependency = vc_generate_dependencies_attributes($settings);
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $type = isset($settings['type']) ? $settings['type'] : '';
     $on = isset($settings['on']) ? $settings['on'] : __("On", "ts_visual_composer_extend");
     $off = isset($settings['off']) ? $settings['off'] : __("Off", "ts_visual_composer_extend");
     $style = isset($settings['style']) ? $settings['style'] : 'select';
     // 'compact' or 'select'
     $design = isset($settings['design']) ? $settings['design'] : 'toggle-light';
     // 'toggle-light', 'toggle-modern' or 'toggle'soft'
     $width = isset($settings['width']) ? $settings['width'] : '80';
     $suffix = isset($settings['suffix']) ? $settings['suffix'] : '';
     $class = isset($settings['class']) ? $settings['class'] : '';
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $output = '';
     $output .= '<div class="ts-switch-button ts-composer-switch" data-value="' . $value . '" data-width="' . $width . '" data-style="' . $style . '" data-on="' . $on . '" data-off="' . $off . '">';
     $output .= '<input type="hidden" style="display: none; " class="toggle-input wpb_vc_param_value ' . $param_name . ' ' . $type . '" value="' . $value . '" name="' . $param_name . '"/>';
     $output .= '<div class="toggle ' . $design . '" style="width: ' . $width . 'px; height: 20px;">';
     $output .= '<div class="toggle-slide">';
     $output .= '<div class="toggle-inner">';
     $output .= '<div class="toggle-on ' . ($value == 'true' ? 'active' : '') . '">' . $on . '</div>';
     $output .= '<div class="toggle-blob"></div>';
     $output .= '<div class="toggle-off ' . ($value == 'false' ? 'active' : '') . '">' . $off . '</div>';
     $output .= '</div>';
     $output .= '</div>';
     $output .= '</div>';
     $output .= '</div>';
     return $output;
 }
开发者ID:ryansm,项目名称:saud,代码行数:31,代码来源:ts_vcsc_parameter_switch.php


示例5: datetimepicker_setting_field

 function datetimepicker_setting_field($settings, $value)
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     $dependency = vc_generate_dependencies_attributes($settings);
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $type = isset($settings['type']) ? $settings['type'] : '';
     $radios = isset($settings['options']) ? $settings['options'] : '';
     $period = isset($settings['period']) ? $settings['period'] : '';
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $output = '';
     if ($period == "datetime") {
         $output .= '<div class="ts-datetime-picker-element">';
         $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="ts-datetimepicker-value wpb_vc_param_value ' . $param_name . ' ' . $type . '" type="hidden" value="' . $value . '"/>';
         //$output		.= '<input class="ts-datetimepicker-clear" type="button" value="Clear" style="width: 150px; text-align: center; display: block; height: 30px; padding: 5px; font-size: 12px; line-height: 12px; margin-bottom: 10px;">';
         $output .= '<input class="ts-datetimepicker" type="text" placeholder="" value="' . $value . '"/>';
         $output .= '</div>';
     } else {
         if ($period == "date") {
             $output .= '<div class="ts-date-picker-element">';
             $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="ts-datepicker-value wpb_vc_param_value ' . $param_name . ' ' . $type . '" type="hidden" value="' . $value . '"/>';
             //$output		.= '<input class="ts-datetimepicker-clear" type="button" value="Clear" style="width: 150px; text-align: center; display: block; height: 30px; padding: 5px; font-size: 12px; line-height: 12px; margin-bottom: 10px;">';
             $output .= '<input class="ts-datepicker" type="text" placeholder="" value="' . $value . '"/>';
             $output .= '</div>';
         } else {
             if ($period == "time") {
                 $output .= '<div class="ts-time-picker-element">';
                 $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="ts-timepicker-value wpb_vc_param_value ' . $param_name . ' ' . $type . '" type="hidden" value="' . $value . '"/>';
                 //$output		.= '<input class="ts-datetimepicker-clear" type="button" value="Clear" style="width: 150px; text-align: center; display: block; height: 30px; padding: 5px; font-size: 12px; line-height: 12px; margin-bottom: 10px;">';
                 $output .= '<input class="ts-timepicker" type="text" placeholder="" value="' . $value . '"/>';
                 $output .= '</div>';
             }
         }
     }
     return $output;
 }
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:35,代码来源:ts_vcsc_parameter_datetimepicker.php


示例6: colorpicker_alpha_gen

        function colorpicker_alpha_gen($settings, $value)
        {
            $base = $opacity = $output = '';
            $dependency = function_exists('vc_generate_dependencies_attributes') ? vc_generate_dependencies_attributes($settings) : '';
            $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
            $type = isset($settings['type']) ? $settings['type'] : '';
            $class = isset($settings['class']) ? $settings['class'] : '';
            $uni = uniqid('colorpicker-' . rand());
            if ($value != '') {
                $arr_v = explode(',', $value);
                if (is_array($arr_v)) {
                    if (isset($arr_v[1])) {
                        $opacity = $arr_v[1];
                    }
                    if (isset($arr_v[0])) {
                        $base = $arr_v[0];
                    }
                }
            } else {
                //$opacity=1;
                //$base='#fff';
            }
            $output = '
                <input id="alpha_val' . $uni . '" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . ' vc_column_alpha" value="' . $value . '" ' . $dependency . ' data-uniqid="' . $uni . '" data-opacity="' . $opacity . '" data-hex-code="' . $base . '"/>
';
            $output .= '
<input class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" ' . $dependency . ' name="' . $param_name . '" value="' . $value . '" style="display:none"/>
<button class="alpha_clear" type="button">' . __('Clear', 'ultimate_vc') . '</button>
';
            ?>
			<script type="text/javascript">
				jQuery(document).ready(function(){
					function colorpicker_alpha(selector,id_prefix){
						jQuery(selector).each(function(){
							var aid = jQuery(this).data('uniqid');
							jQuery(id_prefix+aid).minicolors({
								change: function(hex, opacity) {
									console.log(hex+','+opacity);
									jQuery(this).parent().next().val(hex+','+opacity);
									console.log(jQuery(this).parent().next().attr('class'))
								},
								opacity: true,
								defaultValue: jQuery(this).data('hex-code'),
								position: 'default',
							});
							jQuery('.alpha_clear').click(function(){
								jQuery(this).parent().find('input').val('');
								jQuery(this).parent().find('.minicolors-swatch-color').css('background-color','');
								//$select.val('');
								//jQuery(id_prefix+aid).val('');
								//jQuery(id_prefix+aid).next().find('.minicolors-swatch-color').css('background-color','');
							})
						});
					}
					colorpicker_alpha('.vc_column_alpha','#alpha_val');
				})
				</script>
            <?php 
            return $output;
        }
开发者ID:timb1981,项目名称:ChamferZone,代码行数:60,代码来源:Ultimate_ColorPicker.php


示例7: ultimate_google_fonts_style_settings

 function ultimate_google_fonts_style_settings($settings, $value)
 {
     $dependency = vc_generate_dependencies_attributes($settings);
     $html = '<input type="hidden" name="' . $settings['param_name'] . '" class="wpb_vc_param_value ugfont-style-value ' . $settings['param_name'] . ' ' . $settings['type'] . '_field" value="' . $value . '" ' . $dependency . '/>';
     $html .= '<div class="ultimate_fstyle"></div>';
     return $html;
 }
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:7,代码来源:Ultimate_Font_Manager_Param.php


示例8: gopricing_settings_field

 function gopricing_settings_field($settings, $value)
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     $dependency = vc_generate_dependencies_attributes($settings);
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $type = isset($settings['type']) ? $settings['type'] : '';
     $radios = isset($settings['options']) ? $settings['options'] : '';
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $output = '';
     $pricing_tables = get_option('go_pricing_tables');
     if (!empty($pricing_tables)) {
         $output .= '<select name="' . $param_name . '" id="' . $param_name . '" class="ts-go-pricing-tables wpb-input wpb-select dropdown wpb_vc_param_value ' . $param_name . ' ' . $type . '" style="margin-bottom: 20px;">';
         foreach ($pricing_tables as $pricing_table) {
             $tableID = $pricing_table['table-id'];
             $tableName = $pricing_table['table-name'];
             if ($value == $tableID) {
                 $output .= '<option class="" value="' . $tableID . '" selected>' . $tableName . '</option>';
             } else {
                 $output .= '<option class="" value="' . $tableID . '">' . $tableName . '</option>';
             }
         }
         $output .= '</select>';
     } else {
         $output .= '<select name="' . $param_name . '" id="' . $param_name . '" class="ts-go-pricing-tables wpb-input wpb-select dropdown wpb_vc_param_value ' . $param_name . ' ' . $type . '" style="margin-bottom: 20px;">';
         $output .= '<option class="" value="None">No Tables could be found!</option>';
         $output .= '</select>';
     }
     return $output;
 }
开发者ID:baochung26,项目名称:happy-c,代码行数:29,代码来源:ts_vcsc_parameter_gopricing.php


示例9: parramMegaLayout

function parramMegaLayout($settings, $value)
{
    $dependency = vc_generate_dependencies_attributes($settings);
    ob_start();
    ?>
			<div class="layout_images">
				<?php 
    foreach ($settings['layout_images'] as $key => $image) {
        echo '<img src="' . $image . '" data-layout="' . $key . '" class="' . $key . ' ' . ($key == $value ? 'active' : '') . '">';
    }
    ?>
			</div>
			<input 	type="hidden"
					name="<?php 
    echo $settings['param_name'];
    ?>
"
					class="layout_image_field wpb_vc_param_value wpb-textinput <?php 
    echo $settings['param_name'] . ' ' . $settings['type'] . '_field';
    ?>
"
					value="<?php 
    echo $value;
    ?>
" <?php 
    echo $dependency;
    ?>
>
		<?php 
    return ob_get_clean();
}
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:theme.php


示例10: messenger_settings_field

 function messenger_settings_field($settings, $value)
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     $dependency = vc_generate_dependencies_attributes($settings);
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $message = isset($settings['message']) ? $settings['message'] : '';
     $type = isset($settings['type']) ? $settings['type'] : '';
     $suffix = isset($settings['suffix']) ? $settings['suffix'] : '';
     $class = isset($settings['class']) ? $settings['class'] : '';
     $color = isset($settings['color']) ? $settings['color'] : '#000000';
     $weight = isset($settings['weight']) ? $settings['weight'] : 'normal';
     $size = isset($settings['size']) ? $settings['size'] : '12';
     $margin_top = isset($settings['margin_top']) ? $settings['margin_top'] : '10';
     $margin_bottom = isset($settings['margin_bottom']) ? $settings['margin_bottom'] : '10';
     $padding_top = isset($settings['padding_top']) ? $settings['padding_top'] : '10';
     $padding_bottom = isset($settings['padding_bottom']) ? $settings['padding_bottom'] : '10';
     $border_top = isset($settings['border_top']) ? $settings['border_top'] : 'true';
     $border_bottom = isset($settings['border_bottom']) ? $settings['border_bottom'] : 'true';
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $output = '';
     if ($message != '') {
         $output .= '<div id="' . $param_name . '" class="wpb_vc_param_value ' . $param_name . ' ' . $type . '" name="' . $param_name . '" style="text-align: justify; ' . ($border_top == "true" ? "border-top: 1px solid #dddddd;" : "") . ' ' . ($border_bottom == "true" ? "border-bottom: 1px solid #dddddd;" : "") . ' color: ' . $color . '; margin: ' . $margin_top . 'px 0 ' . $margin_bottom . 'px 0; padding: ' . $padding_top . 'px 0 ' . $padding_bottom . 'px 0; font-size: ' . $size . 'px; font-weight: ' . $weight . ';">' . $message . '</div>';
     } else {
         $output .= '<div id="' . $param_name . '" class="wpb_vc_param_value ' . $param_name . ' ' . $type . '" name="' . $param_name . '" style="text-align: justify; ' . ($border_top == "true" ? "border-top: 1px solid #dddddd;" : "") . ' ' . ($border_bottom == "true" ? "border-bottom: 1px solid #dddddd;" : "") . ' color: ' . $color . '; margin: ' . $margin_top . 'px 0 ' . $margin_bottom . 'px 0; padding: ' . $padding_top . 'px 0 ' . $padding_bottom . 'px 0; font-size: ' . $size . 'px; font-weight: ' . $weight . ';">' . $value . '</div>';
     }
     return $output;
 }
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:27,代码来源:ts_vcsc_parameter_messenger.php


示例11: icon_field

function icon_field($settings, $value)
{
    $dependency = vc_generate_dependencies_attributes($settings);
    $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
    $type = isset($settings['type']) ? $settings['type'] : '';
    $class = isset($settings['class']) ? $settings['class'] : '';
    $icons = array('arrows-anticlockwise', 'arrows-anticlockwise-dashed', 'arrows-button-down', 'arrows-button-off', 'arrows-button-on', 'arrows-button-up', 'arrows-check', 'arrows-circle-check', 'arrows-circle-down', 'arrows-circle-downleft', 'arrows-circle-downright', 'arrows-circle-left', 'arrows-circle-minus', 'arrows-circle-plus', 'arrows-circle-remove', 'arrows-circle-right', 'arrows-circle-up', 'arrows-circle-upleft', 'arrows-circle-upright', 'arrows-clockwise', 'arrows-clockwise-dashed', 'arrows-compress', 'arrows-deny', 'arrows-diagonal', 'arrows-diagonal2', 'arrows-down', 'arrows-down-double', 'arrows-downleft', 'arrows-downright', 'arrows-drag-down', 'arrows-drag-down-dashed', 'arrows-drag-horiz', 'arrows-drag-left', 'arrows-drag-left-dashed', 'arrows-drag-right', 'arrows-drag-right-dashed', 'arrows-drag-up', 'arrows-drag-up-dashed', 'arrows-drag-vert', 'arrows-exclamation', 'arrows-expand', 'arrows-expand-diagonal1', 'arrows-expand-horizontal1', 'arrows-expand-vertical1', 'arrows-fit-horizontal', 'arrows-fit-vertical', 'arrows-glide', 'arrows-glide-horizontal', 'arrows-glide-vertical', 'arrows-hamburger1', 'arrows-hamburger-2', 'arrows-horizontal', 'arrows-info', 'arrows-keyboard-alt', 'arrows-keyboard-cmd', 'arrows-keyboard-delete', 'arrows-keyboard-down', 'arrows-keyboard-left', 'arrows-keyboard-return', 'arrows-keyboard-right', 'arrows-keyboard-shift', 'arrows-keyboard-tab', 'arrows-keyboard-up', 'arrows-left', 'arrows-left-double-32', 'arrows-minus', 'arrows-move', 'arrows-move2', 'arrows-move-bottom', 'arrows-move-left', 'arrows-move-right', 'arrows-move-top', 'arrows-plus', 'arrows-question', 'arrows-remove', 'arrows-right', 'arrows-right-double', 'arrows-rotate', 'arrows-rotate-anti', 'arrows-rotate-anti-dashed', 'arrows-rotate-dashed', 'arrows-shrink', 'arrows-shrink-diagonal1', 'arrows-shrink-diagonal2', 'arrows-shrink-horizonal2', 'arrows-shrink-horizontal1', 'arrows-shrink-vertical1', 'arrows-shrink-vertical2', 'arrows-sign-down', 'arrows-sign-left', 'arrows-sign-right', 'arrows-sign-up', 'arrows-slide-down1', 'arrows-slide-down2', 'arrows-slide-left1', 'arrows-slide-left2', 'arrows-slide-right1', 'arrows-slide-right2', 'arrows-slide-up1', 'arrows-slide-up2', 'arrows-slim-down', 'arrows-slim-down-dashed', 'arrows-slim-left', 'arrows-slim-left-dashed', 'arrows-slim-right', 'arrows-slim-right-dashed', 'arrows-slim-up', 'arrows-slim-up-dashed', 'arrows-square-check', 'arrows-square-down', 'arrows-square-downleft', 'arrows-square-downright', 'arrows-square-left', 'arrows-square-minus', 'arrows-square-plus', 'arrows-square-remove', 'arrows-square-right', 'arrows-square-up', 'arrows-square-upleft', 'arrows-square-upright', 'arrows-squares', 'arrows-stretch-diagonal1', 'arrows-stretch-diagonal2', 'arrows-stretch-diagonal3', 'arrows-stretch-diagonal4', 'arrows-stretch-horizontal1', 'arrows-stretch-horizontal2', 'arrows-stretch-vertical1', 'arrows-stretch-vertical2', 'arrows-switch-horizontal', 'arrows-switch-vertical', 'arrows-up', 'arrows-up-double-33', 'arrows-upleft', 'arrows-upright', 'arrows-vertical', 'basic-accelerator', 'basic-alarm', 'basic-anchor', 'basic-anticlockwise', 'basic-archive', 'basic-archive-full', 'basic-ban', 'basic-battery-charge', 'basic-battery-empty', 'basic-battery-full', 'basic-battery-half', 'basic-bolt', 'basic-book', 'basic-book-pen', 'basic-book-pencil', 'basic-bookmark', 'basic-calculator', 'basic-calendar', 'basic-cards-diamonds', 'basic-cards-hearts', 'basic-case', 'basic-chronometer', 'basic-clessidre', 'basic-clock', 'basic-clockwise', 'basic-cloud', 'basic-clubs', 'basic-compass', 'basic-cup', 'basic-diamonds', 'basic-display', 'basic-download', 'basic-exclamation', 'basic-eye', 'basic-eye-closed', 'basic-female', 'basic-flag1', 'basic-flag2', 'basic-floppydisk', 'basic-folder', 'basic-folder-multiple', 'basic-gear', 'basic-geolocalize-01', 'basic-geolocalize-05', 'basic-globe', 'basic-gunsight', 'basic-hammer', 'basic-headset', 'basic-heart', 'basic-heart-broken', 'basic-helm', 'basic-home', 'basic-info', 'basic-ipod', 'basic-joypad', 'basic-key', 'basic-keyboard', 'basic-laptop', 'basic-life-buoy', 'basic-lightbulb', 'basic-link', 'basic-lock', 'basic-lock-open', 'basic-magic-mouse', 'basic-magnifier', 'basic-magnifier-minus', 'basic-magnifier-plus', 'basic-mail', 'basic-mail-multiple', 'basic-mail-open', 'basic-mail-open-text', 'basic-male', 'basic-map', 'basic-message', 'basic-message-multiple', 'basic-message-txt', 'basic-mixer2', 'basic-mouse', 'basic-notebook', 'basic-notebook-pen', 'basic-notebook-pencil', 'basic-paperplane', 'basic-pencil-ruler', 'basic-pencil-ruler-pen', 'basic-photo', 'basic-picture', 'basic-picture-multiple', 'basic-pin1', 'basic-pin2', 'basic-postcard', 'basic-postcard-multiple', 'basic-printer', 'basic-question', 'basic-rss', 'basic-server', 'basic-server2', 'basic-server-cloud', 'basic-server-download', 'basic-server-upload', 'basic-settings', 'basic-share', 'basic-sheet', 'basic-sheet-multiple', 'basic-sheet-pen', 'basic-sheet-pencil', 'basic-sheet-txt', 'basic-signs', 'basic-smartphone', 'basic-spades', 'basic-spread', 'basic-spread-bookmark', 'basic-spread-text', 'basic-spread-text-bookmark', 'basic-star', 'basic-tablet', 'basic-target', 'basic-todo', 'basic-todo-pen', 'basic-todo-pencil', 'basic-todo-txt', 'basic-todolist-pen', 'basic-todolist-pencil', 'basic-trashcan', 'basic-trashcan-full', 'basic-trashcan-refresh', 'basic-trashcan-remove', 'basic-upload', 'basic-usb', 'basic-video', 'basic-watch', 'basic-webpage', 'basic-webpage-img-txt', 'basic-webpage-multiple', 'basic-webpage-txt', 'basic-world', 'basic-elaboration-bookmark-checck', 'basic-elaboration-bookmark-minus', 'basic-elaboration-bookmark-plus', 'basic-elaboration-bookmark-remove', 'basic-elaboration-briefcase-check', 'basic-elaboration-briefcase-download', 'basic-elaboration-briefcase-flagged', 'basic-elaboration-briefcase-minus', 'basic-elaboration-briefcase-plus', 'basic-elaboration-briefcase-refresh', 'basic-elaboration-briefcase-remove', 'basic-elaboration-briefcase-search', 'basic-elaboration-briefcase-star', 'basic-elaboration-briefcase-upload', 'basic-elaboration-browser-check', 'basic-elaboration-browser-download', 'basic-elaboration-browser-minus', 'basic-elaboration-browser-plus', 'basic-elaboration-browser-refresh', 'basic-elaboration-browser-remove', 'basic-elaboration-browser-search', 'basic-elaboration-browser-star', 'basic-elaboration-browser-upload', 'basic-elaboration-calendar-check', 'basic-elaboration-calendar-cloud', 'basic-elaboration-calendar-download', 'basic-elaboration-calendar-empty', 'basic-elaboration-calendar-flagged', 'basic-elaboration-calendar-heart', 'basic-elaboration-calendar-minus', 'basic-elaboration-calendar-next', 'basic-elaboration-calendar-noaccess', 'basic-elaboration-calendar-pencil', 'basic-elaboration-calendar-plus', 'basic-elaboration-calendar-previous', 'basic-elaboration-calendar-refresh', 'basic-elaboration-calendar-remove', 'basic-elaboration-calendar-search', 'basic-elaboration-calendar-star', 'basic-elaboration-calendar-upload', 'basic-elaboration-cloud-check', 'basic-elaboration-cloud-download', 'basic-elaboration-cloud-minus', 'basic-elaboration-cloud-noaccess', 'basic-elaboration-cloud-plus', 'basic-elaboration-cloud-refresh', 'basic-elaboration-cloud-remove', 'basic-elaboration-cloud-search', 'basic-elaboration-cloud-upload', 'basic-elaboration-document-check', 'basic-elaboration-document-cloud', 'basic-elaboration-document-download', 'basic-elaboration-document-flagged', 'basic-elaboration-document-graph', 'basic-elaboration-document-heart', 'basic-elaboration-document-minus', 'basic-elaboration-document-next', 'basic-elaboration-document-noaccess', 'basic-elaboration-document-note', 'basic-elaboration-document-pencil', 'basic-elaboration-document-picture', 'basic-elaboration-document-plus', 'basic-elaboration-document-previous', 'basic-elaboration-document-refresh', 'basic-elaboration-document-remove', 'basic-elaboration-document-search', 'basic-elaboration-document-star', 'basic-elaboration-document-upload', 'basic-elaboration-folder-check', 'basic-elaboration-folder-cloud', 'basic-elaboration-folder-document', 'basic-elaboration-folder-download', 'basic-elaboration-folder-flagged', 'basic-elaboration-folder-graph', 'basic-elaboration-folder-heart', 'basic-elaboration-folder-minus', 'basic-elaboration-folder-next', 'basic-elaboration-folder-noaccess', 'basic-elaboration-folder-note', 'basic-elaboration-folder-pencil', 'basic-elaboration-folder-picture', 'basic-elaboration-folder-plus', 'basic-elaboration-folder-previous', 'basic-elaboration-folder-refresh', 'basic-elaboration-folder-remove', 'basic-elaboration-folder-search', 'basic-elaboration-folder-star', 'basic-elaboration-folder-upload', 'basic-elaboration-mail-check', 'basic-elaboration-mail-cloud', 'basic-elaboration-mail-document', 'basic-elaboration-mail-download', 'basic-elaboration-mail-flagged', 'basic-elaboration-mail-heart', 'basic-elaboration-mail-next', 'basic-elaboration-mail-noaccess', 'basic-elaboration-mail-note', 'basic-elaboration-mail-pencil', 'basic-elaboration-mail-picture', 'basic-elaboration-mail-previous', 'basic-elaboration-mail-refresh', 'basic-elaboration-mail-remove', 'basic-elaboration-mail-search', 'basic-elaboration-mail-star', 'basic-elaboration-mail-upload', 'basic-elaboration-message-check', 'basic-elaboration-message-dots', 'basic-elaboration-message-happy', 'basic-elaboration-message-heart', 'basic-elaboration-message-minus', 'basic-elaboration-message-note', 'basic-elaboration-message-plus', 'basic-elaboration-message-refresh', 'basic-elaboration-message-remove', 'basic-elaboration-message-sad', 'basic-elaboration-smartphone-cloud', 'basic-elaboration-smartphone-heart', 'basic-elaboration-smartphone-noaccess', 'basic-elaboration-smartphone-note', 'basic-elaboration-smartphone-pencil', 'basic-elaboration-smartphone-picture', 'basic-elaboration-smartphone-refresh', 'basic-elaboration-smartphone-search', 'basic-elaboration-tablet-cloud', 'basic-elaboration-tablet-heart', 'basic-elaboration-tablet-noaccess', 'basic-elaboration-tablet-note', 'basic-elaboration-tablet-pencil', 'basic-elaboration-tablet-picture', 'basic-elaboration-tablet-refresh', 'basic-elaboration-tablet-search', 'basic-elaboration-todolist-2', 'basic-elaboration-todolist-check', 'basic-elaboration-todolist-cloud', 'basic-elaboration-todolist-download', 'basic-elaboration-todolist-flagged', 'basic-elaboration-todolist-minus', 'basic-elaboration-todolist-noaccess', 'basic-elaboration-todolist-pencil', 'basic-elaboration-todolist-plus', 'basic-elaboration-todolist-refresh', 'basic-elaboration-todolist-remove', 'basic-elaboration-todolist-search', 'basic-elaboration-todolist-star', 'basic-elaboration-todolist-upload', 'ecommerce-bag', 'ecommerce-bag-check', 'ecommerce-bag-cloud', 'ecommerce-bag-download', 'ecommerce-bag-minus', 'ecommerce-bag-plus', 'ecommerce-bag-refresh', 'ecommerce-bag-remove', 'ecommerce-bag-search', 'ecommerce-bag-upload', 'ecommerce-banknote', 'ecommerce-banknotes', 'ecommerce-basket', 'ecommerce-basket-check', 'ecommerce-basket-cloud', 'ecommerce-basket-download', 'ecommerce-basket-minus', 'ecommerce-basket-plus', 'ecommerce-basket-refresh', 'ecommerce-basket-remove', 'ecommerce-basket-search', 'ecommerce-basket-upload', 'ecommerce-bath', 'ecommerce-cart', 'ecommerce-cart-check', 'ecommerce-cart-cloud', 'ecommerce-cart-content', 'ecommerce-cart-download', 'ecommerce-cart-minus', 'ecommerce-cart-plus', 'ecommerce-cart-refresh', 'ecommerce-cart-remove', 'ecommerce-cart-search', 'ecommerce-cart-upload', 'ecommerce-cent', 'ecommerce-colon', 'ecommerce-creditcard', 'ecommerce-diamond', 'ecommerce-dollar', 'ecommerce-euro', 'ecommerce-franc', 'ecommerce-gift', 'ecommerce-graph1', 'ecommerce-graph2', 'ecommerce-graph3', 'ecommerce-graph-decrease', 'ecommerce-graph-increase', 'ecommerce-guarani', 'ecommerce-kips', 'ecommerce-lira', 'ecommerce-megaphone', 'ecommerce-money', 'ecommerce-naira', 'ecommerce-pesos', 'ecommerce-pound', 'ecommerce-receipt', 'ecommerce-receipt-bath', 'ecommerce-receipt-cent', 'ecommerce-receipt-dollar', 'ecommerce-receipt-euro', 'ecommerce-receipt-franc', 'ecommerce-receipt-guarani', 'ecommerce-receipt-kips', 'ecommerce-receipt-lira', 'ecommerce-receipt-naira', 'ecommerce-receipt-pesos', 'ecommerce-receipt-pound', 'ecommerce-receipt-rublo', 'ecommerce-receipt-rupee', 'ecommerce-receipt-tugrik', 'ecommerce-receipt-won', 'ecommerce-receipt-yen', 'ecommerce-receipt-yen2', 'ecommerce-recept-colon', 'ecommerce-rublo', 'ecommerce-rupee', 'ecommerce-safe', 'ecommerce-sale', 'ecommerce-sales', 'ecommerce-ticket', 'ecommerce-tugriks', 'ecommerce-wallet', 'ecommerce-won', 'ecommerce-yen', 'ecommerce-yen2', 'music-beginning-button', 'music-bell', 'music-cd', 'music-diapason', 'music-eject-button', 'music-end-button', 'music-fastforward-button', 'music-headphones', 'music-ipod', 'music-loudspeaker', 'music-microphone', 'music-microphone-old', 'music-mixer', 'music-mute', 'music-note-multiple', 'music-note-single', 'music-pause-button', 'music-play-button', 'music-playlist', 'music-radio-ghettoblaster', 'music-radio-portable', 'music-record', 'music-recordplayer', 'music-repeat-button', 'music-rewind-button', 'music-shuffle-button', 'music-stop-button', 'music-tape', 'music-volume-down', 'music-volume-up', 'software-add-vectorpoint', 'software-box-oval', 'software-box-polygon', 'software-box-rectangle', 'software-box-roundedrectangle', 'software-character', 'software-crop', 'software-eyedropper', 'software-font-allcaps', 'software-font-baseline-shift', 'software-font-horizontal-scale', 'software-font-kerning', 'software-font-leading', 'software-font-size', 'software-font-smallcapital', 'software-font-smallcaps', 'software-font-strikethrough', 'software-font-tracking', 'software-font-underline', 'software-font-vertical-scale', 'software-horizontal-align-center', 'software-horizontal-align-left', 'software-horizontal-align-right', 'software-horizontal-distribute-center', 'software-horizontal-distribute-left', 'software-horizontal-distribute-right', 'software-indent-firstline', 'software-indent-left', 'software-indent-right', 'software-lasso', 'software-layers1', 'software-layers2', 'software-layout', 'software-layout-2columns', 'software-layout-3columns', 'software-layout-4boxes', 'software-layout-4columns', 'software-layout-4lines', 'software-layout-8boxes', 'software-layout-header', 'software-layout-header-2columns', 'software-layout-header-3columns', 'software-layout-header-4boxes', 'software-layout-header-4columns', 'software-layout-header-complex', 'software-layout-header-complex2', 'software-layout-header-complex3', 'software-layout-header-complex4', 'software-layout-header-sideleft', 'software-layout-header-sideright', 'software-layout-sidebar-left', 'software-layout-sidebar-right', 'software-magnete', 'software-pages', 'software-paintbrush', 'software-paintbucket', 'software-paintroller', 'software-paragraph', 'software-paragraph-align-left', 'software-paragraph-align-right', 'software-paragraph-center', 'software-paragraph-justify-all', 'software-paragraph-justify-center', 'software-paragraph-justify-left', 'software-paragraph-justify-right', 'software-paragraph-space-after', 'software-paragraph-space-before', 'software-pathfinder-exclude', 'software-pathfinder-intersect', 'software-pathfinder-subtract', 'software-pathfinder-unite', 'software-pen', 'software-pen-add', 'software-pen-remove', 'software-pencil', 'software-polygonallasso', 'software-reflect-horizontal', 'software-reflect-vertical', 'software-remove-vectorpoint', 'software-scale-expand', 'software-scale-reduce', 'software-selection-oval', 'software-selection-polygon', 'software-selection-rectangle', 'software-selection-roundedrectangle', 'software-shape-oval', 'software-shape-polygon', 'software-shape-rectangle', 'software-shape-roundedrectangle', 'software-slice', 'software-transform-bezier', 'software-vector-box', 'software-vector-composite', 'software-vector-line', 'software-vertical-align-bottom', 'software-vertical-align-center', 'software-vertical-align-top', 'software-vertical-distribute-bottom', 'software-vertical-distribute-center', 'software-vertical-distribute-top', 'weather-aquarius', 'weather-aries', 'weather-cancer', 'weather-capricorn', 'weather-cloud', 'weather-cloud-drop', 'weather-cloud-lightning', 'weather-cloud-snowflake', 'weather-downpour-fullmoon', 'weather-downpour-halfmoon', 'weather-downpour-sun', 'weather-drop', 'weather-first-quarter', 'weather-fog', 'weather-fog-fullmoon', 'weather-fog-halfmoon', 'weather-fog-sun', 'weather-fullmoon', 'weather-gemini', 'weather-hail', 'weather-hail-fullmoon', 'weather-hail-halfmoon', 'weather-hail-sun', 'weather-last-quarter', 'weather-leo', 'weather-libra', 'weather-lightning', 'weather-mistyrain', 'weather-mistyrain-fullmoon', 'weather-mistyrain-halfmoon', 'weather-mistyrain-sun', 'weather-moon', 'weather-moondown-full', 'weather-moondown-half', 'weather-moonset-full', 'weather-moonset-half', 'weather-move2', 'weather-newmoon', 'weather-pisces', 'weather-rain', 'weather-rain-fullmoon', 'weather-rain-halfmoon', 'weather-rain-sun', 'weather-sagittarius', 'weather-scorpio', 'weather-snow', 'weather-snow-fullmoon', 'weather-snow-halfmoon', 'weather-snow-sun', 'weather-snowflake', 'weather-star', 'weather-storm-11', 'weather-storm-32', 'weather-storm-fullmoon', 'weather-storm-halfmoon', 'weather-storm-sun', 'weather-sun', 'weather-sundown', 'weather-sunset', 'weather-taurus', 'weather-tempest', 'weather-tempest-fullmoon', 'weather-tempest-halfmoon', 'weather-tempest-sun', 'weather-variable-fullmoon', 'weather-variable-halfmoon', 'weather-variable-sun', 'weather-virgo', 'weather-waning-cresent', 'weather-waning-gibbous', 'weather-waxing-cresent', 'weather-waxing-gibbous', 'weather-wind', 'weather-wind-e', 'weather-wind-fullmoon', 'weather-wind-halfmoon', 'weather-wind-n', 'weather-wind-ne', 'weather-wind-nw', 'weather-wind-s', 'weather-wind-se', 'weather-wind-sun', 'weather-wind-sw', 'weather-wind-w', 'weather-windgust');
    $output = '<input type="hidden" name="' . $param_name . '" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" value="' . $value . '" id="trace"/>
				<div class="icon-preview"><i class="icon ' . $value . '"></i><label>' . $value . '</label></div>';
    $output .= '<input class="search" type="text" placeholder="Search Icon" />';
    $output .= '<div id="icon-dropdown" >';
    $output .= '<ul class="icon-list">';
    $n = 1;
    foreach ($icons as $icon) {
        $selected = $icon == $value ? 'class="selected"' : '';
        $id = 'icon-' . $n;
        $output .= '<li ' . $selected . ' data-ico="' . $icon . '"><i class="icon ' . $icon . '"></i><label class="icon">' . $icon . '</label></li>';
        $n++;
    }
    $output .= '</ul>';
    $output .= '</div>';
    $output .= '<div><strong>Icon References:</strong> ';
    $output .= '<a href="' . get_template_directory_uri() . '/fonts/linea-fonts/arrows/icons-reference.html" target="_blank">Arrows</a>, ';
    $output .= '<a href="' . get_template_directory_uri() . '/fonts/linea-fonts/basic/icons-reference.html" target="_blank">Basic</a>, ';
    $output .= '<a href="' . get_template_directory_uri() . '/fonts/linea-fonts/basic_elaboration/icons-reference.html" target="_blank">Basic Elaboration</a>, ';
    $output .= '<a href="' . get_template_directory_uri() . '/fonts/linea-fonts/ecommerce/icons-reference.html" target="_blank">Ecommerce</a>, ';
    $output .= '<a href="' . get_template_directory_uri() . '/fonts/linea-fonts/music/icons-reference.html" target="_blank">Music</a>, ';
    $output .= '<a href="' . get_template_directory_uri() . '/fonts/linea-fonts/software/icons-reference.html" target="_blank">Software</a>, ';
    $output .= '<a href="' . get_template_directory_uri() . '/fonts/linea-fonts/weather/icons-reference.html" target="_blank">Weather</a>';
    $output .= '</div>';
    $output .= '<script type="text/javascript">
			jQuery(document).ready(function(){
				jQuery(".search").keyup(function(){
			 
					// Retrieve the input field text and reset the count to zero
					var filter = jQuery(this).val(), count = 0;
			 
					// Loop through the icon list
					jQuery(".icon-list li").each(function(){
			 
						// If the list item does not contain the text phrase fade it out
						if (jQuery(this).text().search(new RegExp(filter, "i")) < 0) {
							jQuery(this).fadeOut();
						} else {
							jQuery(this).show();
							count++;
						}
					});
				});
			});

			jQuery("#icon-dropdown li").click(function() {
				jQuery(this).attr("class","selected").siblings().removeAttr("class");
				var icon = jQuery(this).attr("data-ico");
				jQuery("#trace").val(icon);
				jQuery(".icon-preview").html("<i class=\'icon "+icon+"\'></i><label>"+icon+"</label>");
			});
	</script>';
    return $output;
}
开发者ID:hamaianhnhi,项目名称:shopkeeper148,代码行数:60,代码来源:icon-box.php


示例12: mapmarker_settings_field

 function mapmarker_settings_field($settings, $value)
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     $dependency = vc_generate_dependencies_attributes($settings);
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $type = isset($settings['type']) ? $settings['type'] : '';
     $pattern_select = isset($settings['value']) ? $settings['value'] : '';
     $encoding = isset($settings['encoding']) ? $settings['encoding'] : '';
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $dir = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginDir;
     $output = '';
     $counter = 0;
     $output .= __("Search for Marker:", "ts_visual_composer_extend");
     $output .= '<input name="ts-font-marker-search" id="ts-font-marker-search" class="ts-font-marker-search" type="text" placeholder="Search ..." />';
     $output .= '<div class="ts-visual-selector ts-font-marker-wrapper">';
     $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="wpb_vc_param_value ' . $param_name . ' ' . $type . '" type="hidden" value="' . $value . '"/>';
     $markerpath = $dir . 'images/marker/';
     $images = glob($markerpath . "*.png");
     foreach ($images as $img) {
         $markername = basename($img);
         $counter++;
         if ($value == '' && $counter == 1) {
             $output .= '<a class="TS_VCSC_Marker_Link current" href="#" title="' . __("Marker Name:", "ts_visual_composer_extend") . ': ' . $markername . '" rel="' . $markername . '"><img src="' . TS_VCSC_GetResourceURL('images/marker/') . $markername . '" style="height: 37px; width: 32px;"><div class="selector-tick"></div></a>';
         } else {
             if ($value == $markername) {
                 $output .= '<a class="TS_VCSC_Marker_Link current" href="#" title="' . __("Marker Name:", "ts_visual_composer_extend") . ': ' . $markername . '" rel="' . $markername . '"><img src="' . TS_VCSC_GetResourceURL('images/marker/') . $markername . '" style="height: 37px; width: 32px;"><div class="selector-tick"></div></a>';
             } else {
                 $output .= '<a class="TS_VCSC_Marker_Link" href="#" title="' . __("Marker Name:", "ts_visual_composer_extend") . ': ' . $markername . '" rel="' . $markername . '"><img src="' . TS_VCSC_GetResourceURL('images/marker/') . $markername . '" style="height: 37px; width: 32px;"></a>';
             }
         }
     }
     $output .= '</div>';
     return $output;
 }
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:34,代码来源:ts_vcsc_parameter_markerpanel.php


示例13: audioselect_settings_field

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP vc_generate_nonce函数代码示例发布时间:2022-05-23
下一篇:
PHP vc_frontend_editor函数代码示例发布时间: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