PATH:
home
/
letacommog
/
lavenue
/
wp-content
/
plugins
/
Ultimate_VC_Addons
/
params
<?php if(!class_exists('Ultimate_Font_Manager_Param')) { class Ultimate_Font_Manager_Param { function __construct() { if(defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) { if(function_exists('vc_add_shortcode_param')) { vc_add_shortcode_param('ultimate_google_fonts', array($this, 'ultimate_google_fonts_settings'), UAVC_URL.'admin/vc_extend/js/vc-google-fonts-param.js'); vc_add_shortcode_param('ultimate_google_fonts_style', array($this, 'ultimate_google_fonts_style_settings')); } } else { if(function_exists('add_shortcode_param')) { add_shortcode_param('ultimate_google_fonts', array($this, 'ultimate_google_fonts_settings'), UAVC_URL.'admin/vc_extend/js/vc-google-fonts-param.js'); add_shortcode_param('ultimate_google_fonts_style', array($this, 'ultimate_google_fonts_style_settings')); } } } function ultimate_google_fonts_settings($settings, $value) { $dependency = ''; $fonts = get_option('ultimate_selected_google_fonts'); $html = '<div class="ultimate_google_font_param_block">'; $html .= '<input type="hidden" name="'.esc_attr( $settings['param_name'] ).'" class="wpb_vc_param_value vc-ultimate-google-font '.esc_attr( $settings['param_name'] ).' '.esc_attr( $settings['type'] ).'_field" value="'.esc_attr( $value ).'" '.$dependency.'/>'; //$html .= '<form class="google-fonts-form">'; $html .= '<select name="font_family" class="google-font-list">'; $html .= '<option value="">'.__('Default','ultimate_vc').'</option>'; if(!empty($fonts)) : foreach($fonts as $key => $font) { $selected = ''; if($font['font_name'] == $value) $selected = 'selected'; $html .= '<option value="'.esc_attr( $font['font_name'] ).'" '.$selected.'>'.esc_html__($font['font_name'],'ultimate_vc').'</option>'; } endif; $html .= '</select>'; //$html .= '</form>'; $html .= '</div>'; return $html; } function ultimate_google_fonts_style_settings($settings, $value) { $dependency = ''; $html = '<input type="hidden" name="'.esc_attr( $settings['param_name'] ).'" class="wpb_vc_param_value ugfont-style-value '.esc_attr( $settings['param_name'] ).' '. esc_attr( $settings['type'] ).'_field" value="'.esc_attr( $value ).'" '.$dependency.'/>'; $html .= '<div class="ultimate_fstyle"></div>'; return $html; } } } if(class_exists('Ultimate_Font_Manager_Param')) { $Ultimate_Font_Manager_Param = new Ultimate_Font_Manager_Param(); }
[+]
..
[-] Ultimate_BoxShadow.php
[edit]
[-] Ultimate_ColorPicker.php
[edit]
[-] Ultimate_Font_Manager_Param.php
[edit]
[-] Ultimate_Spacing.php
[edit]
[-] Ultimate_Border.php
[edit]
[-] Ultimate_Select.php
[edit]
[-] Ultimate_DateTime_Picker.php
[edit]
[-] Ultimate_Image_Single.php
[edit]
[-] Ultimate_ParamHeading.php
[edit]
[-] Ultimate_Responsive.php
[edit]
[-] Ultimate_Number.php
[edit]
[-] Ultimate_Animator.php
[edit]
[-] Ultimate_Margin.php
[edit]
[-] Ultimate_Navigation.php
[edit]
[-] Ultimate_Icon_Manager_Param.php
[edit]
[-] Ultimate_Switch.php
[edit]
[-] Ultimate_Radio_Image.php
[edit]
[-] Ultimate_Button.php
[edit]
[-] Ultimate_Gradient.php
[edit]