} else {
            $icon = xtc_image(DIR_WS_CATALOG . 'admin/images/icons/icon_' . str_replace('.', '', strstr($content_data['content_file'], '.')) . '.gif');
        }
        if ($content_data['content_link'] != '') {
            $filename = '<a href="' . $content_data['content_link'] . '" target="new">';
        }
        $filename .= $content_data['content_name'];
        if ($content_data['content_link'] != '') {
            $filename .= '</a>';
        }
        $button = '';
        if ($content_data['content_link'] == '') {
            if (preg_match('/.html/i', $content_data['content_file']) or preg_match('/.htm/i', $content_data['content_file']) or preg_match('/.txt/i', $content_data['content_file']) or preg_match('/.bmp/i', $content_data['content_file']) or preg_match('/.jpg/i', $content_data['content_file']) or preg_match('/.gif/i', $content_data['content_file']) or preg_match('/.png/i', $content_data['content_file']) or preg_match('/.tif/i', $content_data['content_file'])) {
                // Hetfield - 2009-08-19 - replaced deprecated function eregi with preg_match to be ready for PHP >= 5.3
                //BOF - Tomcraft - 2010-04-03 - unified popups with scrollbars and make them resizable
                //$button = '<a style="cursor:pointer" onclick="javascript:window.open(\''.xtc_href_link(FILENAME_MEDIA_CONTENT, 'coID='.$content_data['content_id']).'\', \'popup\', \'toolbar=0, width=640, height=600\')">'.xtc_image_button('button_view.gif', TEXT_VIEW).'</a>';
                $button = '<a style="cursor:pointer" onclick="javascript:window.open(\'' . xtc_href_link(FILENAME_MEDIA_CONTENT, 'coID=' . $content_data['content_id']) . '\', \'popup\', \'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no, width=640, height=600\')">' . xtc_image_button('button_view.gif', TEXT_VIEW) . '</a>';
                //BOF - Tomcraft - 2010-04-03 - unified popups with scrollbars and make them resizable
            } else {
                $button = '<a href="' . xtc_href_link('media/products/' . $content_data['content_file']) . '">' . xtc_image_button('button_download.gif', TEXT_DOWNLOAD) . '</a>';
            }
        }
        $module_content[] = array('ICON' => $icon, 'FILENAME' => $filename, 'DESCRIPTION' => $content_data['file_comment'], 'FILESIZE' => xtc_filesize($content_data['content_file']), 'BUTTON' => $button, 'HITS' => $content_data['content_read']);
    }
    $module_smarty->assign('language', $_SESSION['language']);
    $module_smarty->assign('module_content', $module_content);
    // set cache ID
    $module_smarty->caching = 0;
    $module = $module_smarty->fetch(CURRENT_TEMPLATE . '/module/products_media.html');
    $info_smarty->assign('MODULE_products_media', $module);
}
                    ?>
                                        </td>
                                        <td class="dataTableContent" align="left"><?php 
                    echo xtc_image(DIR_WS_CATALOG . 'lang/' . $lang_dir . '/admin/images/icon.gif');
                    ?>
</td>
                                        <td class="dataTableContent" align="left"><?php 
                    echo $content_array[$ii]['name'];
                    ?>
</td>
                                        <td class="dataTableContent hidden-xs" align="left"><?php 
                    echo $content_array[$ii]['file'];
                    ?>
</td>
                                        <td class="dataTableContent hidden-xs" align="left"><?php 
                    echo xtc_filesize($content_array[$ii]['file']);
                    ?>
</td>
                                        <td class="dataTableContent hidden-xs" align="left" align="middle">
                                          <?php 
                    if ($content_array[$ii]['link'] != '') {
                        echo '<a href="' . $content_array[$ii]['link'] . '" target="new">' . $content_array[$ii]['link'] . '</a>';
                    }
                    ?>
                                          &nbsp;
                                        </td>
                                        <td class="dataTableContent hidden-xs" align="left"><?php 
                    echo $content_array[$ii]['read'];
                    ?>
</td>
                                        <td class="dataTableContent" align="left">