<?php 
/*#################################################################*\
|# Licence Number 0NKV-1011-132L-0118
|# -------------------------------------------------------------   #|
|# Copyright (c)2018 PHP Link Directory.                           #|
|# http://www.phplinkdirectory.com                                 #|
\*#################################################################*/
	 
 
 
 
 
 
 
	 
/**
# ################################################################################
# Project:   PHP Link Directory
#
# **********************************************************************
# Copyright (C) 2004-2009 NetCreated, Inc. (http://www.netcreated.com/)
#
# This software is for use only to those who have purchased a license.
# A license must be purchased for EACH installation of the software.
#
# By using the software you agree to the terms:
#
#    - You may not redistribute, sell or otherwise share this software
#      in whole or in part without the consent of the the ownership
#      of PHP Link Directory. Please contact david@david-duval.com
#      if you need more information.
#
#    - You agree to retain a link back to http://www.phplinkdirectory.com/
#      on all pages of your directory in you purchased the $25 version
#      of the software.
#
# License holders are entitled to upgrades to the 3.4 branch of the software
# as they are made available at http://www.phplinkdirectory.com/
#
# In some cases, license holders may be required to agree to changes
# in the software license before receiving updates to the software.
# **********************************************************************
#
# For questions, help, comments, discussion, etc., please join the
# PHP Link Directory Forum http://www.phplinkdirectory.com/forum/
#
# @link           http://www.phplinkdirectory.com/
# @copyright      2004-2009 NetCreated, Inc. (http://www.netcreated.com/)
# @projectManager David DuVal <david@david-duval.com>
# @package        PHPLinkDirectory
# @version        5.0 Codename Transformer
# ################################################################################
*/
class Widget_AdsenseVertical extends Phpld_Widget {

	function getContent() {
		global $db;
		global $tables;

		$set = $this->getFrontSettings();
		$this->tpl->assign('set', $set);
						
		switch ($set['TYPE']) {
			case "Button":
				$width = 125;
				$height = 125; 
			break;
			case "Skyscraper":
				$width = 120;
				$height = 600; 
			break;	
			case "Small Square":
				$width = 200;
				$height = 200;
			break;
			case "Wide Skyscraper":
				$width = 160;
				$height = 600;
			break;
		}
		
		$this->tpl->assign('TYPE', $set['TYPE']);
		$this->tpl->assign('WIDTH', $width);
		$this->tpl->assign('HEIGHT', $height);
		return $this->tpl->fetch('content.tpl');
	}
}

?>