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;
}
Example #2
0
        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;
        }
Example #3
0
    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;
    }
Example #4
0
 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;
 }
 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;
 }
        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;
        }
 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;
 }
 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;
 }
Example #9
0
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();
}
 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;
 }
Example #11
0
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;
}
 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;
 }
 function audioselect_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'] : '';
     $audio_format = isset($settings['audio_format']) ? $settings['audio_format'] : 'mpeg';
     $audio_format = explode(',', $audio_format);
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $output = '';
     $args = array('post_type' => 'attachment', 'post_mime_type' => 'audio', 'post_status' => 'inherit', 'posts_per_page' => -1);
     if ($value != '') {
         $metadata = wp_get_attachment_metadata($value);
         $disabled = '';
         $visible = 'display: block;';
         $query_audios = new WP_Query($args);
         if ($query_audios->have_posts()) {
             foreach ($query_audios->posts as $audio) {
                 if ($audio->ID == $value) {
                     $audio_id = $value;
                     $audio_title = $audio->post_title;
                     $audio_length = isset($metadata['length_formatted']) ? $metadata['length_formatted'] : 'N/A';
                     break;
                 }
             }
         }
         wp_reset_postdata();
     } else {
         $metadata = array();
         $disabled = 'disabled="disabled"';
         $visible = 'display: none;';
         $audio_id = '';
         $audio_title = '';
         $audio_url = '';
         $audio_length = '';
     }
     $output .= '<div class="ts_vcsc_audio_select_block" data-format="' . implode(',', $audio_format) . '">';
     $output .= '<input style="display: none;" name="' . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textinput audio_value ' . $param_name . ' ' . $type . '_field" type="text" value="' . $value . '" ' . $dependency . '/>';
     $output .= '<input type="button" class="audio_select button" value="' . __('Select Audio', 'ts_visual_composer_extend') . '" style="width: 150px; text-align: center;">';
     $output .= '<input type="button" class="audio_remove button" value="' . __('Remove Audio', 'ts_visual_composer_extend') . '" style="width: 150px; text-align: center; color: red; margin-left: 20px;" ' . $disabled . '>';
     $output .= '<div class="audio_metadata_frame" style="width: 100%; margin-top: 20px; ' . $visible . '">';
     $output .= '<div style="float: left; width: 92px; margin-right: 10px;">';
     if (in_array("mp3", $audio_format) || in_array("mpeg", $audio_format)) {
         $output .= '<img src="' . TS_VCSC_GetResourceURL('images/mediatypes/mp3_audio.jpg') . '" style="width: 90px; height: auto; border: 1px solid #ededed;">';
     } else {
         if (in_array("ogg", $audio_format) || in_array("ogv", $audio_format)) {
             $output .= '<img src="' . TS_VCSC_GetResourceURL('images/mediatypes/ogg_audio.jpg') . '" style="width: 90px; height: auto; border: 1px solid #ededed;">';
         }
     }
     $output .= '</div>';
     $output .= '<div style="float: left;">';
     $output .= '<div style=""><span style="">' . __('Audio ID', 'ts_visual_composer_extend') . ': </span><span class="audio_metadata audio_id">' . $audio_id . '</span></div>';
     $output .= '<div style=""><span style="">' . __('Audio Name', 'ts_visual_composer_extend') . ': </span><span class="audio_metadata audio_name">' . $audio_title . '</span></div>';
     $output .= '<div style=""><span style="">' . __('Audio Duration', 'ts_visual_composer_extend') . ': </span><span class="audio_metadata audio_duration">' . ($audio_length != '' ? $audio_length : 'N/A') . '</span></div>';
     $output .= '</div>';
     $output .= '</div>';
     $output .= '</div>';
     return $output;
 }
 function ultimate_responsive_callback($settings, $value)
 {
     $dependency = vc_generate_dependencies_attributes($settings);
     $unit = $settings['unit'];
     $medias = $settings['media'];
     if (is_numeric($value)) {
         $value = "desktop:" . $value . 'px;';
     }
     $uid = 'ultimate-responsive-' . rand(1000, 9999);
     $html = '<div class="ultimate-responsive-wrapper" id="' . $uid . '" >';
     $html .= '  <div class="ultimate-responsive-items" >';
     foreach ($medias as $key => $default_value) {
         //$html .= $key;
         switch ($key) {
             /*case 'Large Screen':  
             			$data_id  = strtolower((preg_replace('/\s+/', '_', $key)));
             			$class = 'required';
             			$dashicon = "<i class='dashicons dashicons-welcome-view-site'></i>";
             			$html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value ,$unit, $data_id);
             		break;*/
             case 'Desktop':
                 $class = 'required';
                 $data_id = strtolower(preg_replace('/\\s+/', '_', $key));
                 $dashicon = "<i class='dashicons dashicons-desktop'></i>";
                 $html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value, $unit, $data_id);
                 $html .= "<div class='simplify'>\n\t\t\t\t\t\t\t\t\t\t<div class='ult-tooltip simplify-options'>" . __("Responsive Options", "ultimate_vc") . "</div>\n\t\t\t\t\t\t\t\t\t\t<i class='simplify-icon dashicons dashicons-arrow-right-alt2'></i>\n\t\t\t\t\t\t\t\t\t  </div>";
                 break;
             case 'Tablet':
                 $class = 'optional';
                 $data_id = strtolower(preg_replace('/\\s+/', '_', $key));
                 $dashicon = "<i class='dashicons dashicons-tablet' style='transform: rotate(90deg);'></i>";
                 $html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value, $unit, $data_id);
                 break;
             case 'Tablet Portrait':
                 $class = 'optional';
                 $data_id = strtolower(preg_replace('/\\s+/', '_', $key));
                 $dashicon = "<i class='dashicons dashicons-tablet'></i>";
                 $html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value, $unit, $data_id);
                 break;
             case 'Mobile Landscape':
                 $class = 'optional';
                 $data_id = strtolower(preg_replace('/\\s+/', '_', $key));
                 $dashicon = "<i class='dashicons dashicons-smartphone' style='transform: rotate(90deg);'></i>";
                 $html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value, $unit, $data_id);
                 break;
             case 'Mobile':
                 $class = 'optional';
                 $data_id = strtolower(preg_replace('/\\s+/', '_', $key));
                 $dashicon = "<i class='dashicons dashicons-smartphone'></i>";
                 $html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value, $unit, $data_id);
                 break;
         }
     }
     $html .= '  </div>';
     $html .= $this->get_units($unit);
     $html .= '  <input type="hidden" data-unit="' . $unit . '"  name="' . $settings['param_name'] . '" class="wpb_vc_param_value ultimate-responsive-value ' . $settings['param_name'] . ' ' . $settings['type'] . '_field" value="' . $value . '" ' . $dependency . ' />';
     $html .= '</div>';
     return $html;
 }
 function imagehotspot_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'] : '';
     $min = isset($settings['min']) ? $settings['min'] : '';
     $max = isset($settings['max']) ? $settings['max'] : '';
     $step = isset($settings['step']) ? $settings['step'] : '';
     $unit = isset($settings['unit']) ? $settings['unit'] : '';
     $decimals = isset($settings['decimals']) ? $settings['decimals'] : 0;
     $suffix = isset($settings['suffix']) ? $settings['suffix'] : '';
     $class = isset($settings['class']) ? $settings['class'] : '';
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $coordinates = explode(",", $value);
     $output = '';
     $required_vc = '4.3.0';
     if (defined('WPB_VC_VERSION')) {
         if (version_compare(WPB_VC_VERSION, $required_vc) >= 0) {
             // Hotspot Image Preview
             $output .= '<div class="ts-image-hotspot-container-preview" style="margin-top: 30px;">';
             $output .= '<img class="ts-image-hotspot-image-preview" data-default="' . TS_VCSC_GetResourceURL('images/other/hotspot_raster.jpg') . '" src="">';
             $output .= '<div class="ts-image-hotspot-holder-preview">';
             $output .= '<div class="ts-image-hotspot-single-preview" style="left: ' . $coordinates[0] . '%; top: ' . $coordinates[1] . '%;">';
             $output .= '<div class="ts-image-hotspot-trigger-preview"><div class="ts-image-hotspot-trigger-pulse"></div><div class="ts-image-hotspot-trigger-dot"></div></div>';
             $output .= '</div>';
             $output .= '</div>';
             $output .= '</div>';
             $output .= '<div class="vc_clearfix"></div>';
             // Message
             $output .= '<div class="" style="text-align: justify; margin-top: 30px; font-size: 13px; font-style: italic; color: #999999;">' . __("Use the sliders below or use your mouse to drag the hotspot to its desired spot on the image.", "ts_visual_composer_extend") . '</div>';
         } else {
             // Message
             $output .= '<div class="" style="text-align: justify; margin-top: 0px; font-size: 13px; font-style: italic; color: #999999;">' . __("Use the sliders below to position the hotspot on its desired spot on the image.", "ts_visual_composer_extend") . '</div>';
         }
     } else {
         // Message
         $output .= '<div class="" style="text-align: justify; margin-top: 0px; font-size: 13px; font-style: italic; color: #999999;">' . __("Use the sliders below to position the hotspot on its desired spot on the image.", "ts_visual_composer_extend") . '</div>';
     }
     // Hidden Input
     $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="ts-nouislider-hotspot-value wpb_vc_param_value ' . $param_name . ' ' . $type . '" type="hidden" value="' . $value . '"/>';
     // X-Position Slider
     $output .= '<div class="ts-nouislider-hotspot-slider" style="width: 100%; margin-top: 20px;">';
     $output .= '<div class="" style="font-weight: bold;">' . __("Horizontal Position (X)", "ts_visual_composer_extend") . '</div>';
     $output .= '<input id="ts-input-hotspot-horizontal" style="width: 100px; float: left; margin-left: 0px; margin-right: 10px;" name="" class="ts-nouislider-serial nouislider-input-selector nouislider-input-composer" type="text" value="' . $coordinates[0] . '"/>';
     $output .= '<span style="float: left; margin-right: 30px; margin-top: 10px;" class="unit">' . $unit . '</span>';
     $output .= '<div id="ts-nouislider-hotspot-horizontal" class="ts-nouislider-input ts-nouislider-hotspot-element" data-position="horizontal" data-value="' . $coordinates[0] . '" data-min="' . $min . '" data-max="' . $max . '" data-decimals="' . $decimals . '" data-step="' . $step . '" style="width: 250px; float: left; margin-top: 10px;"></div>';
     $output .= '</div>';
     $output .= '<div class="vc_clearfix"></div>';
     // Y-Position Slider
     $output .= '<div class="ts-nouislider-hotspot-slider" style="width: 100%; margin-top: 20px;">';
     $output .= '<div class="" style="font-weight: bold;">' . __("Vertical Position (Y)", "ts_visual_composer_extend") . '</div>';
     $output .= '<input id="ts-input-hotspot-vertical" style="width: 100px; float: left; margin-left: 0px; margin-right: 10px;" name="" class="ts-nouislider-serial nouislider-input-selector nouislider-input-composer" type="text" value="' . $coordinates[1] . '"/>';
     $output .= '<span style="float: left; margin-right: 30px; margin-top: 10px;" class="unit">' . $unit . '</span>';
     $output .= '<div id="ts-nouislider-hotspot-vertical" class="ts-nouislider-input ts-nouislider-hotspot-element" data-position="vertical" data-value="' . $coordinates[1] . '" data-min="' . $min . '" data-max="' . $max . '" data-decimals="' . $decimals . '" data-step="' . $step . '" style="width: 250px; float: left; margin-top: 10px;"></div>';
     $output .= '</div>';
     return $output;
 }
Example #16
0
 function ult_param_heading_callback($settings, $value)
 {
     $dependency = vc_generate_dependencies_attributes($settings);
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $class = isset($settings['class']) ? $settings['class'] : '';
     $text = isset($settings['text']) ? $settings['text'] : '';
     $output = '<h4 ' . $dependency . ' class="wpb_vc_param_value ' . $class . '">' . $text . '</h4>';
     return $output;
 }
 function hiddentextarea_setting_field($settings, $value)
 {
     $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'] : '';
     $output = '';
     $output .= '<textarea name="' . $param_name . '" id="' . $param_name . '" class="wpb_vc_param_value ts_shortcode_hidden ' . $param_name . ' ' . $type . '" style="display: none !important;">' . $value . '</textarea>';
     return $output;
 }
 function hiddeninput_setting_field($settings, $value)
 {
     $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'] : '';
     $output = '';
     $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="wpb_vc_param_value ts_shortcode_hidden ' . $param_name . ' ' . $type . '" type="hidden" value="' . $value . '"/>';
     return $output;
 }
Example #19
0
 /**
  * post_category_attr
  * @param array $settings
  * @param string_type $value
  * @return string
  */
 function gazeta_post_category_attr($settings, $value)
 {
     $html = null;
     $dependency = function_exists('vc_generate_dependencies_attributes') ? vc_generate_dependencies_attributes($settings) : '';
     $html .= '<div class="post_category_attr">';
     $args = array('show_option_all' => __('All', 'gazeta'), 'orderby' => 'ID', 'order' => 'ASC', 'show_count' => 1, 'hide_empty' => 1, 'child_of' => 0, 'echo' => 0, 'selected' => $value, 'hierarchical' => 0, 'name' => $settings['param_name'], 'id' => $settings['param_name'], 'class' => 'wpb_vc_param_value wpb-textinput ' . $settings['param_name'] . ' ' . $settings['type'] . '_field', 'taxonomy' => 'category', 'hide_if_empty' => true);
     $html .= wp_dropdown_categories(apply_filters('gazeta_post_category_attr/args', $args));
     $html .= '</div>';
     return $html;
 }
 function ult_param_heading_callback($settings, $value)
 {
     $dependency = function_exists('vc_generate_dependencies_attributes') ? vc_generate_dependencies_attributes($settings) : '';
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $class = isset($settings['class']) ? $settings['class'] : '';
     $text = isset($settings['text']) ? $settings['text'] : '';
     $output = '<h4 ' . $dependency . ' class="wpb_vc_param_value ' . $class . '">' . $text . '</h4>';
     $output .= '<input type="hidden" name="' . $settings['param_name'] . '" class="wpb_vc_param_value ultimate-param-heading ' . $settings['param_name'] . ' ' . $settings['type'] . '_field" value="' . $value . '" ' . $dependency . '/>';
     return $output;
 }
Example #21
0
 function ultimate_hotspot_param_callback($settings, $value)
 {
     $dependency = function_exists('vc_generate_dependencies_attributes') ? vc_generate_dependencies_attributes($settings) : '';
     $class = isset($settings['class']) ? $settings['class'] : '';
     $output = '<div class="ult-hotspot-image-wrapper ' . $class . '">';
     $output .= '<img src="" class="ult-hotspot-image" alt="image"/>';
     $output .= '<div class="ult-hotspot-draggable"></div>';
     $output .= '<input type="hidden" name="' . $settings['param_name'] . '" value="' . $value . '" class="ult-hotspot-positions wpb_vc_param_value" ' . $dependency . '/>';
     $output .= '</div>';
     return $output;
 }
Example #22
0
function om_wpb_attribute_om_categories_multiple($settings, $value)
{
    $dependency = vc_generate_dependencies_attributes($settings);
    $args = array('show_option_all' => __('All Categories', 'om_theme'), 'show_option_none' => '', 'orderby' => 'name', 'hide_empty' => 0, 'echo' => 0, 'selected' => $value, 'hierarchical' => 1, 'name' => $settings['param_name'], 'id' => 'wpb_' . $settings['param_name'] . '_value', 'class' => 'wpb_vc_param_value wpb-input wpb-select ' . $settings['param_name'] . ' ' . $settings['type'] . '_field', 'depth' => 4, 'tab_index' => 0, 'taxonomy' => 'category', 'hide_if_empty' => false);
    if (isset($settings['args'])) {
        $args = array_merge($args, $settings['args']);
    }
    $select = wp_dropdown_categories($args);
    $select = str_replace('<select', '<select multiple="multiple" size="4" ' . $dependency . ' ', $select);
    return '<div class="' . $settings['type'] . '_field_block">' . $select . '</div>';
}
 function hiddeninput_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'] : '';
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $output = '';
     $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="wpb_vc_param_value ts_shortcode_hidden ' . $param_name . ' ' . $type . '" type="hidden" value="' . $value . '"/>';
     return $output;
 }
Example #24
0
function sc_number_field($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'] : '';
    $suffix = isset($settings['suffix']) ? $settings['suffix'] : '';
    $class = isset($settings['class']) ? $settings['class'] : '';
    $output .= '<input type="number" min="' . $min . '" max="' . $max . '" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" value="' . $value . '" style="max-width:100px; margin-right: 10px;" />' . $suffix;
    return $output;
}
        function ultimate_margins_param($settings, $value)
        {
            $dependency = vc_generate_dependencies_attributes($settings);
            $positions = $settings['positions'];
            $html = '<div class="ultimate-margins">
						<input type="hidden" name="' . $settings['param_name'] . '" class="wpb_vc_param_value ultimate-margin-value ' . $settings['param_name'] . ' ' . $settings['type'] . '_field" value="' . $value . '" ' . $dependency . '/>';
            foreach ($positions as $key => $position) {
                $html .= $key . ' <input type="text" style="width:50px;padding:3px" data-hmargin="' . $position . '" class="ultimate-margin-inputs" id="margin-' . $key . '" /> &nbsp;&nbsp;';
            }
            $html .= '</div>';
            return $html;
        }
 function hiddentextarea_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'] : '';
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $output = '';
     $output .= '<textarea name="' . $param_name . '" id="' . $param_name . '" class="wpb_vc_param_value ts_shortcode_hidden ' . $param_name . ' ' . $type . '" style="display: none !important;">' . $value . '</textarea>';
     return $output;
 }
        function datetimepicker($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'] : '';
            $uni = uniqid('datetimepicker-' . rand());
            $output = '<div id="ult-date-time' . $uni . '" class="ult-datetime"><input data-format="yyyy/MM/dd hh:mm:ss" readonly class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" style="width:258px;" value="' . $value . '" ' . $dependency . '/><div class="add-on" >  <i data-time-icon="Defaults-calendar-o" data-date-icon="Defaults-calendar-o"></i></div></div>';
            $output .= '<script type="text/javascript">
				
				</script>';
            return $output;
        }
 function fonts_setting_field($settings, $value)
 {
     $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 = plugin_dir_url(__FILE__);
     $output = '';
     $output .= '<div class="ts-font-selector">';
     $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="ts-font-selector-list wpb-select wpb_vc_param_value ' . $param_name . ' ' . $type . '" type="text" value="' . $value . '" data-holder="' . __("Select a Font", "ts_visual_composer_extend") . '"/>';
     $output .= '</div>';
     return $output;
 }
Example #29
0
    function ewf_vc_param_icon_settings($settings, $value)
    {
        $dependency = vc_generate_dependencies_attributes($settings);
        $output = null;
        $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
        $type = isset($settings['type']) ? $settings['type'] : '';
        $class = isset($settings['class']) ? $settings['class'] : '';
        /*###	Font Awesome	###*/
        $array_icons_fa = array("fa fa-adjust", "fa fa-anchor", "fa fa-archive", "fa fa-arrows", "fa fa-arrows-h", "fa fa-arrows-v", "fa fa-asterisk", "fa fa-ban", "fa fa-bar-chart-o", "fa fa-barcode", "fa fa-bars", "fa fa-beer", "fa fa-bell", "fa fa-bell-o", "fa fa-bolt", "fa fa-book", "fa fa-bookmark", "fa fa-bookmark-o", "fa fa-briefcase", "fa fa-bug", "fa fa-building-o", "fa fa-bullhorn", "fa fa-bullseye", "fa fa-calendar", "fa fa-calendar-o", "fa fa-camera", "fa fa-camera-retro", "fa fa-caret-square-o-down", "fa fa-caret-square-o-left", "fa fa-caret-square-o-right", "fa fa-caret-square-o-up", "fa fa-certificate", "fa fa-check", "fa fa-check-circle", "fa fa-check-circle-o", "fa fa-check-square", "fa fa-check-square-o", "fa fa-circle", "fa fa-circle-o", "fa fa-clock-o", "fa fa-cloud", "fa fa-cloud-download", "fa fa-cloud-upload", "fa fa-code", "fa fa-code-fork", "fa fa-coffee", "fa fa-cog", "fa fa-cogs", "fa fa-comment", "fa fa-comment-o", "fa fa-comments", "fa fa-comments-o", "fa fa-compass", "fa fa-credit-card", "fa fa-crop", "fa fa-crosshairs", "fa fa-cutlery", "fa fa-dashboard", "fa fa-desktop", "fa fa-dot-circle-o", "fa fa-download", "fa fa-edit", "fa fa-ellipsis-h", "fa fa-ellipsis-v", "fa fa-envelope", "fa fa-envelope-o", "fa fa-eraser", "fa fa-exchange", "fa fa-exclamation", "fa fa-exclamation-circle", "fa fa-exclamation-triangle", "fa fa-external-link", "fa fa-external-link-square", "fa fa-eye", "fa fa-eye-slash", "fa fa-female", "fa fa-fighter-jet", "fa fa-film", "fa fa-filter", "fa fa-fire", "fa fa-fire-extinguisher", "fa fa-flag", "fa fa-flag-checkered", "fa fa-flag-o", "fa fa-flash", "fa fa-flask", "fa fa-folder", "fa fa-folder-o", "fa fa-folder-open", "fa fa-folder-open-o", "fa fa-frown-o", "fa fa-gamepad", "fa fa-gavel", "fa fa-gear", "fa fa-gears", "fa fa-gift", "fa fa-glass", "fa fa-globe", "fa fa-group", "fa fa-hdd-o", "fa fa-headphones", "fa fa-heart", "fa fa-heart-o", "fa fa-home", "fa fa-inbox", "fa fa-info", "fa fa-info-circle", "fa fa-key", "fa fa-keyboard-o", "fa fa-laptop", "fa fa-leaf", "fa fa-legal", "fa fa-lemon-o", "fa fa-level-down", "fa fa-level-up", "fa fa-lightbulb-o", "fa fa-location-arrow", "fa fa-lock", "fa fa-magic", "fa fa-magnet", "fa fa-mail-forward", "fa fa-mail-reply", "fa fa-mail-reply-all", "fa fa-male", "fa fa-map-marker", "fa fa-meh-o", "fa fa-microphone", "fa fa-microphone-slash", "fa fa-minus", "fa fa-minus-circle", "fa fa-minus-square", "fa fa-minus-square-o", "fa fa-mobile", "fa fa-mobile-phone", "fa fa-money", "fa fa-moon-o", "fa fa-music", "fa fa-pencil", "fa fa-pencil-square", "fa fa-pencil-square-o", "fa fa-phone", "fa fa-phone-square", "fa fa-picture-o", "fa fa-plane", "fa fa-plus", "fa fa-plus-circle", "fa fa-plus-square", "fa fa-plus-square-o", "fa fa-power-off", "fa fa-print", "fa fa-puzzle-piece", "fa fa-qrcode", "fa fa-question", "fa fa-question-circle", "fa fa-quote-left", "fa fa-quote-right", "fa fa-random", "fa fa-refresh", "fa fa-reply", "fa fa-reply-all", "fa fa-retweet", "fa fa-road", "fa fa-rocket", "fa fa-rss", "fa fa-rss-square", "fa fa-search", "fa fa-search-minus", "fa fa-search-plus", "fa fa-share", "fa fa-share-square", "fa fa-share-square-o", "fa fa-shield", "fa fa-shopping-cart", "fa fa-sign-in", "fa fa-sign-out", "fa fa-signal", "fa fa-sitemap", "fa fa-smile-o", "fa fa-sort", "fa fa-sort-alpha-asc", "fa fa-sort-alpha-desc", "fa fa-sort-amount-asc", "fa fa-sort-amount-desc", "fa fa-sort-asc", "fa fa-sort-desc", "fa fa-sort-down", "fa fa-sort-numeric-asc", "fa fa-sort-numeric-desc", "fa fa-sort-up", "fa fa-spinner", "fa fa-square", "fa fa-square-o", "fa fa-star", "fa fa-star-half", "fa fa-star-half-empty", "fa fa-star-half-full", "fa fa-star-half-o", "fa fa-star-o", "fa fa-subscript", "fa fa-suitcase", "fa fa-sun-o", "fa fa-superscript", "fa fa-tablet", "fa fa-tachometer", "fa fa-tag", "fa fa-tags", "fa fa-tasks", "fa fa-terminal", "fa fa-thumb-tack", "fa fa-thumbs-down", "fa fa-thumbs-o-down", "fa fa-thumbs-o-up", "fa fa-thumbs-up", "fa fa-ticket", "fa fa-times", "fa fa-times-circle", "fa fa-times-circle-o", "fa fa-tint", "fa fa-toggle-down", "fa fa-toggle-left", "fa fa-toggle-right", "fa fa-toggle-up", "fa fa-trash-o", "fa fa-trophy", "fa fa-truck", "fa fa-umbrella", "fa fa-unlock", "fa fa-unlock-alt", "fa fa-unsorted", "fa fa-upload", "fa fa-user", "fa fa-users", "fa fa-video-camera", "fa fa-volume-down", "fa fa-volume-off", "fa fa-volume-up", "fa fa-warning", "fa fa-wheelchair", "fa fa-wrench");
        /*###	Icon Font Custom	###*/
        $array_icons_fontcustom = array("ifc-zoom_out", "ifc-zoom_in", "ifc-zip", "ifc-xls", "ifc-xlarge_icons", "ifc-workstation", "ifc-workflow", "ifc-word", "ifc-windows_client", "ifc-wifi_logo", "ifc-wifi_direct", "ifc-wifi", "ifc-whole_hand", "ifc-week_view", "ifc-wedding_rings", "ifc-wedding_photo", "ifc-wedding_day", "ifc-web_shield", "ifc-web_camera", "ifc-waypoint_map", "ifc-waxing_gibbous", "ifc-waxing_crescent", "ifc-wav", "ifc-water", "ifc-watch", "ifc-washing_machine", "ifc-warning_shield", "ifc-waning_gibbous", "ifc-waning_crescent", "ifc-wallet", "ifc-wacom_tablet", "ifc-vpn", "ifc-volleyball", "ifc-voip_gateway", "ifc-vkontakte", "ifc-visa", "ifc-virtual_mashine", "ifc-virtual_machine", "ifc-video_camera", "ifc-vector", "ifc-variable", "ifc-user_male4", "ifc-user_male3", "ifc-user_male2", "ifc-user_male", "ifc-user_female4", "ifc-user_female3", "ifc-user_female2", "ifc-user_female", "ifc-USD", "ifc-uppercase", "ifc-upload2_filled", "ifc-upload2", "ifc-upload_filled", "ifc-upload", "ifc-update", "ifc-up4", "ifc-up3", "ifc-up2", "ifc-up_right", "ifc-up_left", "ifc-up", "ifc-unlock", "ifc-unicast", "ifc-undo", "ifc-underline", "ifc-umbrella_filled", "ifc-umbrella", "ifc-type", "ifc-txt", "ifc-two_smartphones", "ifc-twitter", "ifc-tv_show", "ifc-tv", "ifc-tumbler", "ifc-ttf", "ifc-trophy", "ifc-treasury_map", "ifc-trash2", "ifc-trash", "ifc-transistor", "ifc-torah", "ifc-toolbox", "ifc-tones", "ifc-today", "ifc-timezone-12", "ifc-timezone-11", "ifc-timezone-10", "ifc-timezone-9", "ifc-timezone-8", "ifc-timezone-7", "ifc-timezone-6", "ifc-timezone-5", "ifc-timezone-4", "ifc-timezone-3", "ifc-timezone-2", "ifc-timezone-1", "ifc-timezone_utc", "ifc-timezone_12", "ifc-timezone_11", "ifc-timezone_10", "ifc-timezone_9", "ifc-timezone_8", "ifc-timezone_7", "ifc-timezone_6", "ifc-timezone_5", "ifc-timezone_4", "ifc-timezone_3", "ifc-timezone_2", "ifc-timezone_1", "ifc-timezone", "ifc-timer", "ifc-tif", "ifc-thumb_up", "ifc-thumb_down", "ifc-this_way_up", "ifc-text_color", "ifc-temperature", "ifc-tea", "ifc-tar", "ifc-talk", "ifc-tails", "ifc-table", "ifc-switch_camera_filled", "ifc-switch_camera", "ifc-switch", "ifc-swipe_up", "ifc-swipe_right", "ifc-swipe_left", "ifc-swipe_down", "ifc-swimming", "ifc-surface", "ifc-sun", "ifc-summer", "ifc-student", "ifc-strikethrough", "ifc-storm", "ifc-stopwatch", "ifc-stepper_motor", "ifc-stack_of_photos", "ifc-stack", "ifc-ssd", "ifc-speedometer", "ifc-speech_bubble", "ifc-south_direction", "ifc-smartphone_tablet", "ifc-small_lens", "ifc-small_icons", "ifc-slr_small_lens", "ifc-slr_large_lens", "ifc-slr_camera2_filled", "ifc-slr_camera2", "ifc-slr_camera_body", "ifc-slr_camera", "ifc-slr_back_side", "ifc-sling_here", "ifc-sleet", "ifc-slave", "ifc-skype", "ifc-skip_to_start", "ifc-shuffle", "ifc-shopping_cart_loaded", "ifc-shopping_cart_empty", "ifc-shopping_basket", "ifc-shop", "ifc-shield", "ifc-shared", "ifc-settings3", "ifc-settings2", "ifc-settings", "ifc-server", "ifc-sent", "ifc-sensor", "ifc-sell", "ifc-SEK", "ifc-security_ssl", "ifc-security_checked", "ifc-security_aes", "ifc-search", "ifc-sea_waves", "ifc-scrolling", "ifc-screwdriver", "ifc-scales_of_Balance", "ifc-sale", "ifc-sagittarius", "ifc-safari", "ifc-sad", "ifc-running_rabbit", "ifc-running", "ifc-run_command", "ifc-rugby", "ifc-rucksach", "ifc-rss", "ifc-router", "ifc-rotation_cw", "ifc-rotation_ccw", "ifc-rotate_to_portrait", "ifc-rotate_to_landscape", "ifc-rotate_camera", "ifc-rook", "ifc-right3", "ifc-right2", "ifc-right_click", "ifc-right", "ifc-rfid_tag", "ifc-rfid_signal", "ifc-rfid_sensor", "ifc-rewind", "ifc-resize", "ifc-replay", "ifc-repeat", "ifc-rename", "ifc-remove_user", "ifc-remove_image", "ifc-remote_working", "ifc-reload", "ifc-relay", "ifc-register_editor", "ifc-redo", "ifc-red_hat", "ifc-recycle_sign_filled", "ifc-recycle_sign", "ifc-read_message", "ifc-rar", "ifc-radio_tower", "ifc-radar_plot", "ifc-rack", "ifc-quote", "ifc-puzzle", "ifc-put_out", "ifc-put_in_motion", "ifc-put_in", "ifc-publisher", "ifc-psd", "ifc-processor", "ifc-private2", "ifc-print", "ifc-price_tag_usd", "ifc-price_tag_pound", "ifc-price_tag_euro", "ifc-price_tag", "ifc-pressure", "ifc-presentation", "ifc-power_point", "ifc-positive_dynamic", "ifc-portrait_mode", "ifc-popular_topic", "ifc-polyline", "ifc-polygone", "ifc-polygon", "ifc-poll_topic", "ifc-png", "ifc-plus", "ifc-plugin", "ifc-pliers", "ifc-play", "ifc-plasmid", "ifc-piston", "ifc-pinterest", "ifc-pinch", "ifc-pin", "ifc-pill", "ifc-pie_chart", "ifc-picture", "ifc-pickup", "ifc-photo", "ifc-phone2", "ifc-phone1", "ifc-perforator", "ifc-pencil_sharpener", "ifc-pen", "ifc-pdf", "ifc-pawn", "ifc-pause", "ifc-password", "ifc-passenger", "ifc-paper_clip", "ifc-paper_clamp", "ifc-panorama", "ifc-paint_bucket", "ifc-paint_basket", "ifc-pain_brush", "ifc-overhead_crane", "ifc-outlook", "ifc-outline", "ifc-outgoing_data", "ifc-otf", "ifc-osm", "ifc-origami", "ifc-opera", "ifc-opened_folder", "ifc-open_in_browser", "ifc-online", "ifc-one_note", "ifc-one_finger", "ifc-old_time_camera", "ifc-ogg", "ifc-office_lamp", "ifc-numerical_sorting_21", "ifc-north_direction", "ifc-night_vision", "ifc-new_moon", "ifc-neutral_decision", "ifc-negative_dynamic", "ifc-near_me", "ifc-nas", "ifc-mute", "ifc-musical", "ifc-music_video", "ifc-music_record", "ifc-music", "ifc-multiple_smartphones", "ifc-multiple_inputs", "ifc-multiple_devices", "ifc-multiple_cameras", "ifc-multicast", "ifc-mpg", "ifc-mp3", "ifc-movie", "ifc-moved_topic", "ifc-move_by_trolley", "ifc-mov", "ifc-mouse_trap", "ifc-mouse", "ifc-month_view", "ifc-money_box", "ifc-money_bag", "ifc-money", "ifc-mobile_home", "ifc-minus", "ifc-mind_map", "ifc-micro2", "ifc-micro", "ifc-message", "ifc-mess_tin", "ifc-menu", "ifc-memory_module", "ifc-megaphone2", "ifc-megaphone", "ifc-medium_volume", "ifc-medium_icons", "ifc-medium_battery", "ifc-math", "ifc-matches", "ifc-mastercard", "ifc-map_marker", "ifc-map_editing", "ifc-map", "ifc-male", "ifc-magnet", "ifc-mac_client", "ifc-luggage_trolley", "ifc-lowercase", "ifc-low_volume", "ifc-low_battery", "ifc-lol", "ifc-log_cabine", "ifc-lock_portrait", "ifc-lock_landscape", "ifc-lock", "ifc-livingroom", "ifc-little_snow", "ifc-little_rain", "ifc-literature", "ifc-list", "ifc-linux_client", "ifc-linkedin", "ifc-link", "ifc-line_width", "ifc-line_chart", "ifc-line", "ifc-like", "ifc-lift_cart_here", "ifc-libra", "ifc-left3", "ifc-left2", "ifc-left_click", "ifc-left", "ifc-lcd", "ifc-layers", "ifc-last_quarter", "ifc-laser_beam", "ifc-large_lens", "ifc-large_icons", "ifc-laptop", "ifc-lantern", "ifc-lamp", "ifc-knight", "ifc-knife", "ifc-kmz", "ifc-kml", "ifc-king", "ifc-keyboard", "ifc-key", "ifc-keep_dry", "ifc-jpg", "ifc-joystick", "ifc-jingle_bell", "ifc-jcb", "ifc-java_coffee_cup_logo", "ifc-iphone", "ifc-ipad", "ifc-ip_address", "ifc-invisible", "ifc-internet_explorer", "ifc-internal", "ifc-integrated_webcam", "ifc-integrated_circuit", "ifc-instagram", "ifc-infrared_beam_sensor", "ifc-infrared_beam_sending", "ifc-infrared", "ifc-informatics", "ifc-info", "ifc-increase_font", "ifc-incoming_data", "ifc-incendiary_grenade", "ifc-inbox", "ifc-in_love", "ifc-import", "ifc-idea", "ifc-icq", "ifc-hydroelectric", "ifc-humidity", "ifc-humburger", "ifc-human_footprints", "ifc-hub", "ifc-html", "ifc-hot_dog", "ifc-hot_chocolate", "ifc-horseshoe", "ifc-home", "ifc-history", "ifc-high_volume", "ifc-high_battery", "ifc-hex_burner", "ifc-herald_trumpet", "ifc-help2", "ifc-help", "ifc-helicopter", "ifc-heat_map", "ifc-heart_monitor", "ifc-headset", "ifc-headphones", "ifc-handle_with_care", "ifc-hand_planting", "ifc-hand_palm_scan", "ifc-hand", "ifc-hammer", "ifc-group", "ifc-grass", "ifc-gpx", "ifc-gps_receiving", "ifc-gps_disconnected", "ifc-google_plus", "ifc-good_decision", "ifc-gis", "ifc-gift", "ifc-gif", "ifc-geocaching", "ifc-geo_fence", "ifc-generic_text", "ifc-generic_sorting2", "ifc-generic_sorting", "ifc-genealogy", "ifc-genderqueer", "ifc-GBP", "ifc-gas2", "ifc-gantt_chart", "ifc-gallery", "ifc-gaiters", "ifc-fully_charged_battery", "ifc-full_moon", "ifc-fridge", "ifc-french_fries", "ifc-four_fingers", "ifc-forward2", "ifc-forward", "ifc-fork_truck", "ifc-fork", "ifc-football2", "ifc-football", "ifc-food", "ifc-folder", "ifc-fog_night", "ifc-fog_day", "ifc-flv", "ifc-flow_chart", "ifc-flip_vertical", "ifc-flip_horizontal", "ifc-flip_flops", "ifc-flash_light", "ifc-flag2", "ifc-flag", "ifc-first_quarter", "ifc-firefox", "ifc-find_user", "ifc-filter", "ifc-film_reel", "ifc-filled_box", "ifc-fb2", "ifc-fast_forward", "ifc-fantasy", "ifc-facebook", "ifc-external_link", "ifc-external", "ifc-export", "ifc-expensive", "ifc-expand", "ifc-exit", "ifc-exe", "ifc-excel", "ifc-EUR", "ifc-error", "ifc-eraser", "ifc-epub", "ifc-eps", "ifc-enter", "ifc-engineering", "ifc-end", "ifc-email", "ifc-ellipse", "ifc-electronics", "ifc-eggs", "ifc-edit_user", "ifc-edit_image", "ifc-edit", "ifc-east_direction", "ifc-earth_element", "ifc-dribbble", "ifc-drafting_compass", "ifc-downpour", "ifc-download2_filled", "ifc-download2", "ifc-download_filled", "ifc-download", "ifc-down4", "ifc-down2", "ifc-down_right", "ifc-down_left", "ifc-down", "ifc-double_tap", "ifc-donut_chart", "ifc-domain", "ifc-documentary", "ifc-document", "ifc-doctor_suitecase", "ifc-doctor", "ifc-doc", "ifc-do_not_tilt", "ifc-do_not_stack", "ifc-do_not_expose_to_sunlight", "ifc-do_not_drop", "ifc-dna_helix", "ifc-directions", "ifc-diamonds", "ifc-dharmacakra", "ifc-design", "ifc-delete_sign", "ifc-delete_shield", "ifc-delete_message", "ifc-define_location", "ifc-decrease_font", "ifc-day_view", "ifc-date_to", "ifc-date_from", "ifc-database_protection", "ifc-database_encryption", "ifc-database_backup", "ifc-database", "ifc-data_in_both_directions", "ifc-cymbals", "ifc-cut", "ifc-currency", "ifc-csv", "ifc-css", "ifc-crystal_ball", "ifc-crop", "ifc-creek", "ifc-coral", "ifc-copy_link", "ifc-copy", "ifc-control_panel", "ifc-content", "ifc-contacts", "ifc-contact_card", "ifc-construction_worker", "ifc-console", "ifc-connected_no_data", "ifc-compost_heap", "ifc-compass2", "ifc-compas", "ifc-command_line", "ifc-combo_chart", "ifc-comb", "ifc-color_dropper", "ifc-collect", "ifc-collapse", "ifc-coffee", "ifc-code", "ifc-coctail", "ifc-clouds", "ifc-cloud_storage", "ifc-close_up_mode", "ifc-close", "ifc-clock", "ifc-clipperboard", "ifc-clear_shopping_cart", "ifc-circuit", "ifc-chrome", "ifc-christmas_star", "ifc-christmas_gift", "ifc-chisel_tip_marker", "ifc-child_new_post", "ifc-checkmark", "ifc-checked_user", "ifc-cheap", "ifc-charge_battery", "ifc-change_user", "ifc-centre_of_gravity", "ifc-center_direction", "ifc-cash_receiving", "ifc-carabiner", "ifc-car_battery", "ifc-capacitor", "ifc-cannon", "ifc-cancel", "ifc-camping_tent", "ifc-camera_identification", "ifc-camera_addon_identification", "ifc-camera_addon", "ifc-camcoder_pro", "ifc-camcoder", "ifc-calendar", "ifc-CAD", "ifc-cable_release", "ifc-business", "ifc-bus", "ifc-bungalow", "ifc-bunch_ingredients", "ifc-broadcasting", "ifc-briefcase", "ifc-brandenburg_gate", "ifc-brain_filled", "ifc-brain", "ifc-box2", "ifc-box", "ifc-border_color", "ifc-bookmark", "ifc-blur", "ifc-bluetooth2", "ifc-bluetooth", "ifc-birthday_cake", "ifc-birthday", "ifc-biotech", "ifc-barbers_scissors", "ifc-bar_chart", "ifc-banknotes", "ifc-bandage", "ifc-ball_point_pen", "ifc-bad_decision", "ifc-background_color", "ifc-back", "ifc-avi", "ifc-average", "ifc-audio_wave2", "ifc-audio_wave", "ifc-asc", "ifc-armchair", "ifc-area_chart", "ifc-archive", "ifc-aquarius", "ifc-application_shield", "ifc-apartment", "ifc-antiseptic_cream", "ifc-android_os", "ifc-ancore", "ifc-anchor", "ifc-ammo_tin", "ifc-amex", "ifc-ambulance", "ifc-alphabetical_sorting_za", "ifc-alphabetical_sorting_az", "ifc-align_right", "ifc-align_left", "ifc-align_justify", "ifc-align_center", "ifc-alarm_clock", "ifc-airplane_take_off", "ifc-airplane", "ifc-ai", "ifc-age", "ifc-adventures", "ifc-adobe_photoshop", "ifc-adobe_indesign", "ifc-adobe_illustrator", "ifc-adobe_flash", "ifc-adobe_fireworks", "ifc-adobe_dreamweaver", "ifc-adobe_bridge", "ifc-administrative_tools", "ifc-add_user", "ifc-add_image", "ifc-add_database", "ifc-zip2", "ifc-f_tap", "ifc-f_swipe_up", "ifc-f_swipe_right", "ifc-f_swipe_left", "ifc-f_swipe_down", "ifc-f_double_tap");
        $output .= '<div class="ewf-icon-wrapper">
					
					<div class="ewf-icon-ct-wrapper">
					<div class="ewf-icon-ct-position">
					<div class="pos ewf-icon-ct-top"></div>
					<div class="pos ewf-icon-ct-top-left"></div>
					<div class="pos ewf-icon-ct-top-rigth"></div>
					<div class="pos ewf-icon-ct-left"></div>
							<div class="pos ewf-icon-ct-center"></div>
							<div class="pos ewf-icon-ct-right"></div>
							<div class="pos ewf-icon-ct-bottom"></div>
							<div class="pos ewf-icon-ct-bottom-left"></div>
							<div class="pos ewf-icon-ct-bottom-right"></div>
							
							<div class="border-square"></div>
							</div>
							
						<div class="ewf-icon-ct-selection">
						<i class="' . $value . '" ></i>
						</div>
						
						<a class="button button-primary button-large ewf-icon-ct-change" type="button" href="#">Change Icon</a>
						<a class="button button-primary button-large ewf-icon-ct-cancel" type="button" href="#">Cancel</a>
						</div>
					
					<ul class="ewf-icon-filters">';
        // $output .= '<li class="ewf-icon-set">Font Awesome</li>';
        // foreach( $array_icons_fa as $key => $icon_class){
        // $output .= '<li><i class="'.$icon_class.'" ></i></li>';
        // }
        // $output .= '<li class="ewf-icon-set mt">Icon Font Custom</li>';
        foreach ($array_icons_fontcustom as $key => $icon_class) {
            $output .= '<li><i class="' . $icon_class . '" ></i></li>';
        }
        $output .= '</ul>
				</div>';
        $output .= '<input type="hidden" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" value="' . $value . '" />';
        return $output;
    }
Example #30
0
 /**
  * Adding Orderby Attibute
  * @param unknown_type $settings
  * @param unknown_type $value
  * @return string
  */
 function gazeta_vc_orderby_attr($settings, $value)
 {
     $html = null;
     $orderby_array = function_exists('gazeta_post_orderby') ? gazeta_post_orderby() : '';
     $dependency = function_exists('vc_generate_dependencies_attributes') ? vc_generate_dependencies_attributes($settings) : '';
     $html .= '<div class="orderby_attr">';
     $html .= '<select name="' . $settings['param_name'] . '" id="' . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textinput ' . $settings['param_name'] . ' ' . $settings['type'] . '_field">';
     foreach ($orderby_array as $k => $v) {
         $html .= '<option ' . selected($value, $k, false) . ' value="' . $k . '">' . $v . '</option>';
     }
     $html .= '</select>';
     $html .= '</div>';
     return $html;
 }