diff --git a/template-row.php.txt b/template-row.php.txt
deleted file mode 100644
index df7a581..0000000
--- a/template-row.php.txt
+++ /dev/null
@@ -1,291 +0,0 @@
- 0 && $lead_count > 0){
-
- $field_ids = array_keys($columns);
-
- $evenodd = '';
- foreach($leads as $lead){
- echo "\n\t\t\t\t\t\t";
-
- $address = array(); $celltitle = '';
-
- if($approved) { $leadapproved = self::check_approval($lead, $approvedcolumn); }
-
- if((isset($leadapproved) && $leadapproved && $approved) || !$approved) {
-
- $target = ($linknewwindow && empty($lightboxsettings['images'])) ? ' target="_blank"' : '';
- $valignattr = ($valign && $directoryview == 'table') ? ' valign="'.$valign.'"' : '';
- $nofollow = $nofollowlinks ? ' rel="nofollow"' : '';
- $evenodd = apply_filters('kws_gf_directory_evenodd', ($evenodd == ' odd') ? ' even' : ' odd');
- $rowstyle = !empty($rowstyle) ? ' style="'.$rowstyle.'"' : '';
-
- ?>
" class=''>", esc_html( $lead[$input_id] )), $lead, $field);
- } else {
- $value = $lead[$input_id];
- }
- }
- }
- }
- }
- break;
-
- case "fileupload" :
- case "post_image" :
- $valueArray = explode("|:|", $value);
-
- @list($url, $title, $caption, $description) = $valueArray;
- $size = '';
- if(!empty($url)){
- //displaying thumbnail (if file is an image) or an icon based on the extension
- $icon = GFEntryList::get_icon_url($url);
- if(!preg_match('/icon\_image\.gif/ism', $icon)) {
- $src = $icon;
- if(!empty($getimagesize)) {
- $size = @getimagesize($src);
- $img = "";
- } else {
- $size = false;
- $img = "";
- }
- } else { // No thickbox for non-images please
- switch(strtolower(trim($postimage))) {
- case 'image':
- $src = $url;
- break;
- case 'icon':
- default:
- $src = $icon;
- break;
- }
- if(!empty($getimagesize)) {
- $size = @getimagesize($src);
- } else {
- $size = false;
- }
- }
- $img = array(
- 'src' => $src,
- 'size' => $size,
- 'title' => $title,
- 'caption' => $caption,
- 'description' => $description,
- 'url' => esc_attr($url),
- 'code' => isset($size[3]) ? "" : ""
- );
- $img = apply_filters('kws_gf_directory_lead_image', apply_filters('kws_gf_directory_lead_image_'.$postimage, apply_filters('kws_gf_directory_lead_image_'.$lead['id'], $img)));
-
- if(in_array('images', $lightboxsettings) || !empty($lightboxsettings['images'])) {
- $lightboxclass .= ' rel="directory_all directory_images"';
- }
- $value = "{$img['code']}";
- }
- break;
-
- case "source_url" :
- if(in_array('urls', $lightboxsettings) || !empty($lightboxsettings['urls'])) {
- $lightboxclass .= ' rel="directory_all directory_urls"';
- }
- if($linkwebsite) {
- $value = ".../" .esc_attr(GFCommon::truncate_url($lead["source_url"])) . "";
- } else {
- $value = esc_attr(GFCommon::truncate_url($lead["source_url"]));
- }
- break;
-
- case "post_title":
- if( apply_filters( 'kws_gf_directory_post_title_link', false, $form, $lead ) && !empty( $lead['post_id'] ) ) {
- $value = ''. esc_html( $value ) .'';
- } else {
- $value = esc_html( $value );
- }
- break;
-
- case "textarea" :
- case "post_content" :
- case "post_excerpt" :
- if($fulltext) {
- $long_text = $value = "";
-
- if(isset($lead[$field_id]) && strlen($lead[$field_id]) >= GFORMS_MAX_FIELD_LENGTH) {
- $long_text = RGFormsModel::get_lead_field_value($lead, RGFormsModel::get_field($form, $field_id));
- }
- if(isset($lead[$field_id])) {
- $value = !empty($long_text) ? $long_text : $lead[$field_id];
- }
-
- } else {
- $value = esc_html($value);
- }
- if($wpautop) { $value = wpautop($value); };
- break;
-
- case "post_category":
- $value = GFCommon::get_lead_field_display($field, $lead[$field_id]);
- $value = GFCommon::prepare_post_category_value($lead[$field_id], $field);
- break;
-
- case "date_created" :
- $value = GFCommon::format_date($lead['date_created'], true, apply_filters( 'kws_gf_date_format', '' ));
- break;
-
- case "date" :
- if($dateformat) {
- $value = GFCommon::date_display($value, $dateformat);
- } else {
- $value = GFCommon::date_display($value, $field["dateFormat"]);
- }
- break;
-
- case "id" :
- $linkClass = '';
- break;
-
- case "list":
- $value = GFCommon::get_lead_field_display($field, $value);
- break;
-
- default:
-
- $input_type = 'text';
- if(is_email($value) && $linkemail) {$value = "$value"; }
- elseif(preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $value) && $linkwebsite) {
- $href = $value;
- if(!empty($lightboxsettings['images'])) {
- if(in_array('urls', $lightboxsettings) || !empty($lightboxsettings['urls'])) {
- $lightboxclass .= ' rel="directory_all directory_urls"';
- }
- $linkClass = $lightboxclass;
- } else {
- $linkClass = isset($linkClass) ? $linkClass : '';
- }
- if($truncatelink) {
- $value = apply_filters('kws_gf_directory_anchor_text', $value);
- }
- $value = "{$value}";
- }
- else {
- $value = esc_html($value);
- }
- }
- if($is_first_column) { echo "\n"; }
- if($value !== NULL) {
- if(isset($columns["{$field_id}"]['label']) && $hovertitle || $directoryview !== 'table') {
- $celltitle = ' title="'.esc_html(apply_filters('kws_gf_directory_th', apply_filters('kws_gf_directory_th_'.$field_id, apply_filters('kws_gf_directory_th_'.sanitize_title($columns["{$field_id}"]['label']), $columns["{$field_id}"]['label'])))).'"';
- } else {
- $celltitle = '';
- }
- echo "\t\t\t\t\t\t\t"; ?>> | '.$address.'';
- }
- }
-
- ?>
-
-
-
- |
-
-
\ No newline at end of file