Subversion Repositories SmartDukaan

Rev

Rev 1316 | Rev 1386 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1316 Rev 1364
Line 343... Line 343...
343
		}
343
		}
344
		
344
		
345
		return htmlString.toString();
345
		return htmlString.toString();
346
	}
346
	}
347
 
347
 
348
 
-
 
349
	public String getSocialUtilsHtml(long productId, String productName, String requestURL) {
-
 
350
		String htmlString = "";
-
 
351
		VelocityContext context = new VelocityContext();
-
 
352
		
-
 
353
		String templateFile = "templates/socialutils.vm";
-
 
354
		
-
 
355
		context.put("PRODUCT_ID", productId + "");
-
 
356
		context.put("PRODUCT_NAME", productName);
-
 
357
		context.put("PRODUCT_URL", requestURL);
-
 
358
		
-
 
359
		htmlString = getHtmlFromVelocity(templateFile, context);
-
 
360
		return htmlString;
-
 
361
	}
-
 
362
	
-
 
363
	public String getPageTitleHtml(long productId) {
348
	public String getPageTitleHtml(long productId) {
364
		StringBuilder htmlString = new StringBuilder();
349
		StringBuilder htmlString = new StringBuilder();
365
		String filename = Utils.EXPORT_ENTITIES_PATH + productId + File.separator + "TitleSnippet.html";
350
		String filename = Utils.EXPORT_ENTITIES_PATH + productId + File.separator + "TitleSnippet.html";
366
		File f = new File(filename);
351
		File f = new File(filename);
367
		
352