Esempio n. 1
0
    $color = $params->get('efl_oddcolor');
    //is the row even
    if (($i + 1) % 2 == 0) {
        //set the colour for the even row
        $color = $params->get('efl_evencolor');
    }
    ?>
	<tr style="background-color:<?php 
    echo $color;
    ?>
;">
		<td style="padding:1px;">
		<?php 
    //show icons?
    if ($params->get('efl_icons') == "yes") {
        echo modEasyFolderListingHelper::attachIcon($rows[$i]['ext']);
    }
    //fix the name
    $fixedName = modEasyFolderListingHelper::fixLang($params, $rows[$i]['name']);
    //link it?
    if ($params->get('efl_linktofiles') == "yes") {
        echo '<a href="' . JURI::base() . $folder . '/' . $fixedName . '.' . $rows[$i]['ext'] . '">';
    }
    //show the file's name
    echo $fixedName;
    //show extension?
    if ($params->get('efl_extensions') == "yes") {
        echo '.' . $rows[$i]['ext'];
    }
    //close the tag, if we are linking it
    if ($params->get('efl_linktofiles') == "yes") {