Created
February 23, 2012 20:17
-
-
Save chadspencer/1894856 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elseif(!isset($info['file'])) { | |
foreach( FLang::instance()->ld()->languageCodes() as $language_code ){ | |
if(isset($info['file-'.$language_code])) { | |
$value = '<a href="'.$symphonySubdir.'/workspace'.$info['file-'.$language_code].'">'; | |
$value = '<a href="/workspace'.$info['file-'.$language_code].'">'; | |
$a = explode('.', $info['file']); | |
$ext = trim(strtolower($a[count($a)-1])); | |
// Check if JIT is enabled: | |
if($jitEnabled) | |
{ | |
$value .= '<img src="'.$symphonySubdir.'/image/2/100/100/5'.$info['file-'.$language_code].'" alt="thumb" width="100" height="100" />'; | |
} else { | |
// Show an icon according to it's extension: | |
$a = explode('.', basename($info['file'])); | |
$ext = strtolower($a[count($a)-1]); | |
$value .= '<img src="'.$this->getImage($ext).'" alt="thumb" width="64" heigh="64" class="icon" />'; | |
} | |
$value .= '<br />'.$language_code.' - '.$name.'</a>'; | |
$item = new XMLElement('div', $value); | |
$div->appendChild($item); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment