PATH:
home
/
letacommog
/
vizeo
/
wp-content
/
themes
/
dt-the7
/
inc
/
extensions
/
less-vars
<?php // File Security Check if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Presscore_Lib_LessVars_Number', false ) ) : class Presscore_Lib_LessVars_Number extends Presscore_Lib_LessVars_Builder { protected $val; protected $suffix; public function __construct( $val = 0 ) { $this->val = 0; $this->suffix = ''; preg_match( '/([-0-9]*)(.*)/', $val, $matches ); if ( ! empty( $matches[1] ) ) { $this->val = intval( $matches[1] ); } if ( ! empty( $matches[2] ) ) { $this->suffix = $matches[2]; } } public function get() { return $this->get_wrapped( $this->val . $this->suffix ); } public function get_units() { return $this->suffix; } public function get_val() { return $this->val; } public function get_percents() { return $this->get_wrapped( $this->val . '%' ); } public function get_pixels() { return $this->get_wrapped( $this->val . 'px' ); } } endif;
[+]
..
[-] class-manager.php
[edit]
[-] class-builder.php
[edit]
[-] class-number.php
[edit]
[-] class-lessphp-functions.php
[edit]
[-] class-composition.php
[edit]
[-] class-image.php
[edit]
[-] interface-manager.php
[edit]
[-] class-factory.php
[edit]
[-] class-font.php
[edit]
[-] class-color.php
[edit]
[-] less-functions.php
[edit]