Crea una imagen
@param string $name el nombre del archivo
@param array $options [Opcional] las opciones
@param boolean $external [Opcional] Especifica si se trata de una imagen externa
@return string una etiqueta img
348121
public function img($name, array $options = [], $external = FALSE) {
        $cfg = $options + [
            'class' => ''
        ];
        
        return '<img src = "' . ($external ? $name : PO_PATH_IMG  . '/' . $name) . '" ' . Str::htmlserialize($cfg) . ' />';
    }
798989
public function displayImage($which = 'main') {
		$js = '	if(isCertifColorboxActive == 0) { 
					activatecertifcolorbox();
					isCertifColorboxActive = 1;
				}
		';
		
		$script = '';
		$controller = Globals::getController();
		if($controller && !($controller instanceof IndividualController)){
			$controller->addInlineJavascript('$(document).ready(function() { '.$js.' });');
		} else {
			$script = '<script>' . $js . '</script>';
		}
		
		if ($which == 'icon' || !file_exists($this->getServerFilename())) {
			// Use an icon
			$image =
			'<i dir="auto" class="icon-maj-certificate margin-h-2"' .
			' title="' . strip_tags($this->getFullName()) . '"' .
			'></i>';
		} else {
			$imgsize = getimagesize($this->getServerFilename());
			$image =
			'<img' .
			' class ="'. 'certif_image'					 	. '"' .
			' dir="'   . 'auto'                           	. '"' . // For the tool-tip
			' src="'   . $this->getHtmlUrlDirect() 			. '"' .
			' alt="'   . strip_tags($this->getFullName()) 	. '"' .
			' title="' . strip_tags($this->getFullName()) 	. '"' .
			$imgsize[3] . // height="yyy" width="xxx"
			'>';
		}	
		return
		'<a' .
		' class="'          . 'certgallery'                          . '"' .
		' href="'           . $this->getHtmlUrlDirect()    		 . '"' .
		' type="'           . $this->mimeType()                  . '"' .
		' data-obje-url="'  . $this->getHtmlUrl()                . '"' .
		' data-title="'     . strip_tags($this->getFullName())   . '"' .
		'>' . $image . '</a>'.$script;
	}
1230833
public function showInternal(string $name, array $opts = []): int
    {
        return $this->show($name, self::INTERNAL_GROUP, $opts);
    }
932601
function( name )
	{
		var external = this.externals[ name ];
		return CKEDITOR.getUrl(
				this.getPath( name ) +
				( ( external && ( typeof external.file == 'string' ) ) ? external.file : this.fileName + '.js' ) );
	}
1164567
public function wop($other, array $options = []): Image
    {
        return $this->callEnum($other, 'math2', OperationMath2::WOP, $options);
    }
1304220
public static function image($src, $alt = '', $options = [])
    {
        $image_tag_tpl = '<img src="%s" alt="%s"%s />';
        $cdnHost = Lb::app()->getCdnHost();
        if ($cdnHost) {
            if (!ValidationHelper::isUrl($src)) {
                $src = $cdnHost . $src;
            } else {
                $src = preg_replace('/^(http|https):\/\/.+?\//i', $cdnHost . '/', $src);
            }
        }
        return sprintf($image_tag_tpl, $src, $alt, self::assembleTagOptions($options));
    }
519020
public function imageFromBlob($content, array $options = []) {
		$options += ['type' => 'png'];
		$mimeType = 'image/' . $options['type'];

		$text = 'data:' . $mimeType . ';base64,' . base64_encode($content);

		return $this->formatTemplate('image', [
			'url' => $text,
			'attrs' => $this->templater()->formatAttributes($options, ['block', 'link'])
		]);
	}
274232
public static function customTagIsInline( $name )
    {
        $ini = eZINI::instance( 'content.ini' );
        $customInlineTagList = $ini->variable( 'CustomTagSettings', 'IsInline' );
        $customInlineIconPath = array();
        if ( $ini->hasVariable( 'CustomTagSettings', 'InlineImageIconPath' ) )
        {
            $customInlineIconPath = $ini->variable(
                'CustomTagSettings', 'InlineImageIconPath'
            );
        }

        if ( isset( $customInlineTagList[$name] ) )
        {
            if ( $customInlineTagList[$name] === 'true' )
            {
                return true;
            }
            else if ( $customInlineTagList[$name] === 'image' )
            {
                if ( isset( $customInlineIconPath[$name] ) )
                    return $customInlineIconPath[$name];
                else
                    return 'images/tango/image-x-generic22.png';
            }
        }
        return false;
    }
977101
public function equal($other, array $options = []): Image
    {
        return $this->callEnum($other, 'relational', OperationRelational::EQUAL, $options);
    }
1112817
public function media($name, array $options = []): FieldTypeInterface
    {
        return (new MediaType($name))
            ->setLocale($this->app->getLocale())
            ->setViewFactory($this->viewFactory)
            ->setOptions($options);
    }
1066904
public function pow($other, array $options = []): Image
    {
        return $this->callEnum($other, 'math2', OperationMath2::POW, $options);
    }
1108664
public function image($width = null, $height = null, array $options = [])
    {
        $url = $this->getImageUrlOrDefault();

        if (pathinfo($url, PATHINFO_EXTENSION) === 'svg') {
            return $url;
        }

        return url(Croppa::url($url, $width, $height, $options));
    }
1344233
public function group($Name, $Options = null)
    {
    
        if (!$Name) {
            throw $this->newException('You must specify a label for the group!');
        }
        
        if ($Options) {
            if (!is_array($Options)) {
                throw $this->newException('Options must be defined as an array!');
            }
            if (array_key_exists('Collapsed', $Options)) {
                $Options['Collapsed'] = ($Options['Collapsed'])?'true':'false';
            }
        }
        
        return $this->fb(null, $Name, FirePHP::GROUP_START, $Options);
    }
470372
public function thumbnail($media, $format, $options = [])
    {
        return $this->getTwigExtension()->thumbnail($media, $format, $options);
    }
814139
public function remainder($other, array $options = []): Image
    {
        if (self::isImageish($other)) {
            return self::call('remainder', $this, [$other], $options);
        } else {
            return self::call('remainder_const', $this, [$other], $options);
        }
    }
1096798
public function image($url, $alt = null, $options = [])
    {
        $options['alt'] = $alt;

        return '<img src="'.$this->_generator->asset($url).'"'.self::attributes($options).'>';
    }
1177308
public function AdCKEditor($name,$options = array())
    {
        $CKEditor = new \AdfabCore\Service\CKEditor();

        $CKEditor->returnOutput = true;

        /*
         * General module configurations
         */
        if(isset($this->Config['BasePath']))	$CKEditor->basePath 			= $this->Config['BasePath'].'/';
        if(isset($this->Config['Toolbar']))		$CKEditor->config['toolbar']    = $this->Config['Toolbar'];
        if(isset($this->Config['Width']))       $CKEditor->config['width']      = $this->Config['Width'];
        if(isset($this->Config['Height']))      $CKEditor->config['height']     = $this->Config['Height'];
        if(isset($this->Config['Language']))    $CKEditor->config['language']   = $this->Config['Language'];
        if(isset($this->Config['Color']))       $CKEditor->config['uiColor']    = $this->Config['Color'];
        if(isset($this->Config['stylesSet']))   $CKEditor->config['stylesSet']  = $this->Config['stylesSet'];
		if(isset($this->Config['contentsCss'])) $CKEditor->config['contentsCss']= $this->Config['contentsCss'];
        if(isset($this->Config['templates_files']))   $CKEditor->config['templates_files']  = $this->Config['templates_files'];

        // El Finder
        if(isset($this->Config['ElFinderBaseURL']))      $CKEditor->config['filebrowserBrowseUrl']    = $this->Config['ElFinderBaseURL'];
        if(isset($this->Config['ElFinderWindowWidth']))  $CKEditor->config['filebrowserWindowWidth']  = $this->Config['ElFinderWindowWidth'];
        if(isset($this->Config['ElFinderWindowHeight'])) $CKEditor->config['filebrowserWindowHeight'] = $this->Config['ElFinderWindowHeight'];

        /*
         * special confirmations in your form
         */
        if(isset($options['BasePath']))	 $CKEditor->basePath		    = $options['BasePath'].'/';
        if(isset($options['Toolbar']))   $CKEditor->config['toolbar']   = $options['Toolbar'];
        if(isset($options['toolbar']))   $CKEditor->config['toolbar']   = $options['toolbar'];
        if(isset($options['Width']))     $CKEditor->config['width']     = $options['Width'];
        if(isset($options['Height']))    $CKEditor->config['height']    = $options['Height'];
        if(isset($options['Language']))  $CKEditor->config['language']  = $options['Language'];
        if(isset($options['Color']))     $CKEditor->config['uiColor']   = $options['uiColor'];
        if(isset($options['stylesSet'])) $CKEditor->config['stylesSet'] = $options['stylesSet'];
        if(isset($options['contentsCss'])) $CKEditor->config['contentsCss'] = $options['contentsCss'];
        if(isset($options['templates_files']))   $CKEditor->config['templates_files']  = $options['templates_files'];

        // El Finder
        if(isset($options['ElFinderBaseURL']))           $CKEditor->config['filebrowserBrowseUrl']    = $options['ElFinderBaseURL'];
        if(isset($options['ElFinderWindowWidth']))       $CKEditor->config['filebrowserWindowWidth']  = $options['ElFinderWindowWidth'];
        if(isset($options['ElFinderWindowHeight']))      $CKEditor->config['filebrowserWindowHeight'] = $options['ElFinderWindowHeight'];

        echo $CKEditor->replace($name);
    }