C:\xampp\htdocs\landing\wp-content\updraft\plugins-old\LayerSlider\includes\slider_utils.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

function layerslider_builder_convert_numbers(&$item$key) {
    if(
is_numeric($item)) {
        
$item = (float) $item;
    }
}

function 
ls_ordinal_number($number) {
    
$ends = array('th','st','nd','rd','th','th','th','th','th','th');
    
$mod100 $number 100;
    return 
$number . ($mod100 >= 11 && $mod100 <= 13 'th' :  $ends[$number 10]);
}



function 
layerslider_check_unit($str$key '') {

    if(
strstr($str'px') == false && strstr($str'%') == false) {
        if( 
$key !== 'z-index' && $key !== 'font-weight' && $key !== 'opacity') {
            return 
$str.'px';
        }
    }

    return 
$str;
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586