PATH:
home
/
letacommog
/
lesfinessaveurs
/
wp-content
/
plugins
/
fusion-builder
/
inc
/
templates
/
previews
<?php global $fusion_settings; if ( ! $fusion_settings ) { $fusion_settings = Fusion_Settings::get_instance(); } $size = strtolower( $fusion_settings->get( 'button_size' ) ); $shape = strtolower( $fusion_settings->get( 'button_shape' ) ); $type = strtolower( $fusion_settings->get( 'button_type' ) ); $gradient_top = $gradient_bottom = $accent_color = $border_color = $border_width = ''; $gradient_top = fusion_color_needs_adjustment( $fusion_settings->get( 'button_gradient_top_color' ) ) ? '#f8f8f8' : $fusion_settings->get( 'button_gradient_top_color' ); $gradient_bottom = fusion_color_needs_adjustment( $fusion_settings->get( 'button_gradient_bottom_color' ) ) ? '#f8f8f8' : $fusion_settings->get( 'button_gradient_bottom_color' ); $accent_color = fusion_color_needs_adjustment( $fusion_settings->get( 'button_accent_color' ) ) ? '#f8f8f8' : $fusion_settings->get( 'button_accent_color' ); $border_width = $fusion_settings->get( 'button_border_width' ); $text_transform = $fusion_settings->get( 'button_text_transform' ); ?> <script type="text/template" id="fusion-builder-block-module-button-preview-template"> <# var button_style = ''; var button_icon = ''; if ( '' === params.shape ) { var button_shape = '<?php echo esc_attr( $shape ); ?>'; } else { var button_shape = params.shape; } if ( '' === params.type ) { var button_type = '<?php echo esc_attr( $type ); ?>'; } else { var button_type = params.type; } if ( '' === params.size || ! params.size ) { var button_size = '<?php echo esc_attr( $size ); ?>'; } else { var button_size = params.size; } if ( 'default' === params.color ) { var accent_color = '<?php echo esc_attr( $accent_color ); ?>'; var border_width = '<?php echo esc_attr( $border_width ); ?>'; var button_background = 'linear-gradient(<?php echo esc_attr( $gradient_top ); ?>, <?php echo esc_attr( $gradient_bottom ); ?>)'; } else if ( 'custom' === params.color ) { var accent_color = ( params.accent_color ) ? params.accent_color : '<?php echo esc_attr( $accent_color ); ?>'; if ( params.border_width ) { var border_width = ( -1 === params.border_width.indexOf( 'px' ) ) ? params.border_width + 'px' : params.border_width; } else { var border_width = '<?php echo esc_attr( $border_width ); ?>'; } var gradient_top = ( params.button_gradient_top_color ) ? params.button_gradient_top_color : '<?php echo esc_attr( $gradient_top ); ?>'; var gradient_bottom = ( params.button_gradient_bottom_color ) ? params.button_gradient_bottom_color : '<?php echo esc_attr( $gradient_bottom ); ?>'; if ( '' !== gradient_top && '' !== gradient_bottom ) { var button_background = 'linear-gradient(' + gradient_top + ', ' + gradient_bottom + ')'; } else { var button_background = gradient_top; } if ( ( '' === button_background || ( -1 !== gradient_top.indexOf( 'rgba(255,255,255' ) && -1 !== gradient_bottom.indexOf( 'rgba(255,255,255' ) ) ) && ( '#ffffff' === accent_color || -1 !== accent_color.indexOf( 'rgba(255,255,255' ) ) ) { button_background = '#dddddd'; } } else { var button_color = params.color; } if ( '' !== params.icon ) { var button_icon = params.icon; } else { var button_icon = 'no-icon'; } if ( 'undefined' !== typeof button_icon && -1 === button_icon.trim().indexOf( ' ' ) ) { button_icon = 'fa ' + button_icon; } if ( '' === params.text_transform ) { var text_transform = '<?php echo esc_attr( $text_transform ); ?>'; } else { var text_transform = params.text_transform; } #> <# if ( 'custom' === params.color || 'default' === params.color ) { #> <a class="fusion-button button-default button-{{ button_shape }} button-{{ button_type }} button-{{ button_size }}" style="background: {{ button_background }}; border: {{ border_width }} solid {{ accent_color }}; color: {{ accent_color }}; text-transform: {{ text_transform }};"><span class="fusion-button-text"><span class="fusion-module-icon {{ button_icon }}"></span>{{{ params.element_content }}}</span></a> <# } else { #> <a class="fusion-button button-default button-{{ button_shape }} button-{{ button_type }} button-{{ button_size }} button-{{ button_color }}" style="text-transform: {{ text_transform }};"><span class="fusion-button-text"><span class="fusion-module-icon {{ button_icon }}"></span>{{{ params.element_content }}}</span></a> <# }#> </script>
[+]
..
[-] fusion-image-carousel-preview.php
[edit]
[-] fusion-soundcloud-preview.php
[edit]
[-] fusion-countdown-preview.php
[edit]
[-] fusion-slider-preview.php
[edit]
[-] fusion-flipboxes-preview.php
[edit]
[-] fusion-blog-preview.php
[edit]
[-] fusion-font-awesome-preview.php
[edit]
[-] fusion-person-preview.php
[edit]
[-] fusion-share-preview.php
[edit]
[-] fusion-title-preview.php
[edit]
[-] fusion-image-frame-preview.php
[edit]
[-] fusion-testimonials-preview.php
[edit]
[-] fusion-button-preview.php
[edit]
[-] fusion-google-map-preview.php
[edit]
[-] fusion-woo-shortcodes-preview.php
[edit]
[-] fusion-chart-preview.php
[edit]
[-] fusion-counter-box-preview.php
[edit]
[-] fusion-content-boxes-preview.php
[edit]
[-] fusion-tabs-preview.php
[edit]
[-] fusion-menu-anchor-preview.php
[edit]
[-] fusion-alert-preview.php
[edit]
[-] fusion-sharingbox-preview.php
[edit]
[-] fusion-post-slider-preview.php
[edit]
[-] fusion-separator-preview.php
[edit]
[-] fusion-image-before-after-preview.php
[edit]
[-] fusion-vimeo-preview.php
[edit]
[-] fusion-checklist-preview.php
[edit]
[-] fusion-revolution-slider-preview.php
[edit]
[-] fusion-pricing-table-preview.php
[edit]
[-] fusion-recent-posts-preview.php
[edit]
[-] fusion-tagline-preview.php
[edit]
[-] fusion-progress-preview.php
[edit]
[-] fusion-text-preview.php
[edit]
[-] fusion-layer-slider-preview.php
[edit]
[-] fusion-toggles-preview.php
[edit]
[-] fusion-youtube-preview.php
[edit]
[-] fusion-gallery-preview.php
[edit]
[-] fusion-modal-preview.php
[edit]