PluginProbe
Visual Slider / trunk
Visual Slider vtrunk
visual-slider / admin / custom-css.php

custom-css.php in Visual Slider trunk, at admin/custom-css.php

27 lines 596 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly.
4 }
5 if( ! function_exists( 'vs_perview_layer_size' ) ) {
6 function vs_perview_layer_size($value=false){
7 $css='';
8 if(!empty($value['horizontal'])){
9 $css.='--vs-lr-rt:'.$value['horizontal'].'%;';
10 }
11 if(!empty($value['vertical'])){
12 $css.='--vs-lr-tp:'.$value['vertical'].'%;';
13 }
14 if(!empty($value['width'])){
15 $css.='--vs-lr-wt:'.$value['width'].'%;';
16 }
17 if(!empty($value['height'])){
18 $css.='--vs-lr-ht:'.$value['height'].'%;';
19 }
20 $css.='--vs-lr-lt:auto;';
21
22
23
24 return $css;
25
26 }
27 }