Subversion Repositories SmartDukaan

Rev

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

Rev 1184 Rev 1197
Line 344... Line 344...
344
		
344
		
345
		return htmlString.toString();
345
		return htmlString.toString();
346
	}
346
	}
347
 
347
 
348
 
348
 
349
	public String getSocialUtilsHtml(long productId) {
349
	public String getSocialUtilsHtml(long productId, String productName, String requestURL) {
350
		String htmlString = "";
350
		String htmlString = "";
351
		VelocityContext context = new VelocityContext();
351
		VelocityContext context = new VelocityContext();
352
		Map<String, String> params = new HashMap<String, String>();
-
 
353
		params.put("PRODUCT_ID", productId+"");
-
 
-
 
352
		
354
		String templateFile = "templates/socialutils.vm";
353
		String templateFile = "templates/socialutils.vm";
-
 
354
		
-
 
355
		context.put("PRODUCT_ID", productId + "");
355
		context.put("params", params);
356
		context.put("PRODUCT_NAME", productName);
-
 
357
		context.put("PRODUCT_URL", requestURL);
-
 
358
		
356
		htmlString = getHtmlFromVelocity(templateFile, context);
359
		htmlString = getHtmlFromVelocity(templateFile, context);
357
		return htmlString;
360
		return htmlString;
358
	}
361
	}
359
	
362
	
360
	public String getPageTitleHtml(long productId) {
363
	public String getPageTitleHtml(long productId) {